
/*****************************/
/** Define global variables **/
/*****************************/
var isNav = false;
var isIE = false;
var isNav6 = false;
var coll = "";
var styleObj = "";
var version = "";
var newWind;
var picFormat = "not assigned";

var contentBegin = '<HTML>\n<BODY BGCOLOR="#FFFFFF" MARGINWIDTH=0 MARGINHEIGHT=0 TOPMARGIN=0 LEFTMARGIN=0>\n<IMG SRC="';

var contentEnd = '" BORDER=0>\n</BODY>\n</HTML>';

/*******************************************/
/** Determine which browser is being used **/
/** Navigator or Explorer                 **/
/** If its IE the two variables are set   **/
/** that are used to construct JS DOM     **/
/** commands specific to IE               **/
/*******************************************/
if (navigator.appName == "Netscape"){
    isNav = true;
	version = navigator.appVersion.substring(0,3);
   if(parseFloat(version) >= 5.0){isNav6 = true;}

	}
	else{
      isIE = true;
      styleObj = ".style"
      coll = "all."
    }


<!-------------------------->
<!-- Base stylesheet link -->
<!-------------------------->

if(isIE || isNav6){content='<LINK REL=STYLESHEET TYPE="text\/css" HREF="basestylesheetIENav6.css">'}
else{content='<LINK REL=STYLESHEET TYPE="text\/css" HREF="basestylesheet.css">'}

document.write(content);
document.close();

/*******************/
/** Pre-load Navs **/
/*******************/
nav1off = new Image(140,21);
nav1on = new Image(140,21);
nav2off = new Image(140,21);
nav2on = new Image(140,21);
nav3off = new Image(140,21);
nav3on = new Image(140,21);
nav4off = new Image(140,21);
nav4on = new Image(140,21);
nav5off = new Image(140,21);
nav5on = new Image(140,21);
nav6off = new Image(140,21);
nav6on = new Image(140,21);
nav7off = new Image(140,21);
nav7on = new Image(140,21);


nav1off.src = "graphics/menu-1a.gif";
nav1on.src = "graphics/menu-1b.gif";
nav2off.src = "graphics/menu-2a.gif";
nav2on.src = "graphics/menu-2b.gif";
nav3off.src = "graphics/menu-3a.gif";
nav3on.src = "graphics/menu-3b.gif";
nav4off.src = "graphics/menu-4a.gif";
nav4on.src = "graphics/menu-4b.gif";
nav5off.src = "graphics/menu-5a.gif";
nav5on.src = "graphics/menu-5b.gif";
nav6off.src = "graphics/menu-6a.gif";
nav6on.src = "graphics/menu-6b.gif";
nav7off.src = "graphics/menu-7a.gif";
nav7on.src = "graphics/menu-7b.gif";

/****************************************************/
/**                Method rollon()                 **/
/****************************************************/
/** This method displays the "selected" navigation **/
/** images as the mouse is rolled onto the image   **/
/****************************************************/
function rollon(imgName){
    document[imgName].src = eval(imgName + 'on.src');
}

/**************************************************/
/**               Method rolloff()               **/
/**************************************************/
/** This method displays the "normal" navigation **/
/** images as the mouse is rolled off the image  **/
/**************************************************/
function rolloff(imgName){
    document[imgName].src = eval(imgName + "off.src");
}

/*************************************************/
/** Dummy function; used to make links inactive **/
/** during testing                              **/
/*************************************************/
function doNothing(){}

/*********************************************************/
/**                 Method loadpic()                    **/
/*********************************************************/
/** This method loads the pictures for the Villa as     **/
/** the user selects them on the "Viulla Pictures" page **/
/** This is only valid in Navigator 4.x                 **/
/*********************************************************/
function loadpic(theImage){
document.pics.src = 'graphics/' + theImage;
}

/******************************************************/
/**              Method loadIslandPics()             **/
/******************************************************/
/** This method opens a separate window and displays **/
/** the pictures Jim took of Hilton Head Island      **/
/******************************************************/
function loadIslandPics(image, size){
		if(size == 'width=262,height=400' && picFormat == 'landscape'){
			if(!newWind.closed){newWind.close();}
		}
		
		if(size == 'width=400,height=262' && picFormat == 'portrait'){
			if(!newWind.closed){newWind.close();}
		}
		
		if(size == 'width=262,height=400'){picFormat = 'portrait';}
		else{picFormat = 'landscape';}
		
		size = size + ',dependent';
		//newWind = window.open(image,'picWindow',size);
		newWind = window.open('','picWindow',size);
		
		newWind.document.write(contentBegin+image+contentEnd);
		newWind.document.close();
		newWind.focus();
}