/////////////////////// WEB SOFTWARE (C) Tropical Villa Vacations ////////////////////////
/////////////////////////   JS1.2: Programmed by David Regier   /////////////////////////

//if(ntScp) java.lang.System.err.println( ": " +  + "" ); // SAVE

var THIS_YEAR = "2002"; // DAN: CHANGE ANNUALLY

// DAN: THE FOLLOWING TWO VARIABLES WILL TURN FLOWER LINK ON (true) or OFF (false)
var SHOW_MORE_HAWAII_VILLAS = false; // Set to true or false
var SHOW_RESORT_HOTELS = false; // Set to true or false

var runningLive = false; var runningLocal = false;
var theHost = document.location.hostname.toLowerCase();
if( theHost.length > 0 ) runningLive = true; else runningLocal = true;

if( theHost.length > 0 && theHost.indexOf( '' ) == -1 ) {
	var ref = document.referrer;
	var qStr = ( ref == "" ) ? "" : "?tvvref=" + escape( ref );
	// TEMP DISABLE (appears on 3.htm & villa.js & villa1.js)
	document.location.replace( "" + qStr );
}

var showAllErrors = ( GetCookie( "ReportErrors" ) == "true" ) ? true : false

var pw = "ailina";
var cb = true;
var dHTML = false;
var dHTML1 = false;
var dHTML0 = false;
var ver = "unknown";
var macOS = false;
var macIE = false;
var smTxt = false;
var ntScp = false;
var IE = false;
var N6 = false;

var theAppVersion = navigator.appVersion;
var bName = navigator.appName;
var bVer = parseInt(theAppVersion);
var exactVer = parseFloat(navigator.appVersion);
var cookiesOn = navigator.cookieEnabled;

if (bName == "Microsoft Internet Explorer") {
	IE = true;
	var splitAppVersion = theAppVersion.split('MSIE');
	bVer = parseInt( splitAppVersion[1] );
	exactVer = parseFloat( splitAppVersion[1] );
	if(bVer >= 5) { ver = "e5"; dHTML1 = true; }
	else { ver = "e4"; dHTML = true; }
}

else if (bName == "Netscape") {
	var ntScp = true;
	if (bVer >= 5) { ver = "n6"; dHTML1 = true; N6 = true; }
	else ver = "n4";
}

if( dHTML || dHTML1 ) dHTML0 = true;

if( theAppVersion.indexOf('Macintosh') > -1 ) macOS = true; //macOS = true; //SAVE
if( macOS && theAppVersion.indexOf('MSIE') > -1 ) macIE = true; //macIE = true; SAVE
if( macOS && ( ver == "n4" || ver == "e4" ) ) smTxt = true; //smTxt = true; SAVE
if( ver == 'n4' ) document.write('<STYLE> A { text-decoration:underline; } </STYLE>');
var bDoesTrans = ( ver == "e5" && navigator.platform.substring( 0, 3 ) == "Win" ) ? true : false;
var framed = true;
if( top == self ) framed = false;

function getWinWid() {
	return winWid = ( ver == "e5" || ver == "e4" ) ? document.body.clientWidth : window.innerWidth;
}
//ver = 'n4'
//---------------------------------------------------------------------------------------

	var dText = new Array(
"Seattle Washington DUI Attorneys", //0
"Issaquah Apartment Homes", //1
"You'll love our Tropical Yacht Vacations...", //2
"Find out about special promotions & holiday openings", //3
"We have Villas on Kauai, Oahu, Big Isle, Molokai & Lanai", //4
"You're going to love our fully automated slide shows...", //5
"We have villas in Asia & the South Pacific too...", //6
"Learn about us, our villas and how we do business...", //7
"Real Estate Services \"teaser tip\" forthcoming...", //8
"Concierge Services \"teaser tip\" forthcoming...", //9
"Rocky Mountain Retreats \"teaser tip\" forthcoming...", //10
"Learn more about our business friends and affiliates...", //11
"Fill out our rental inquiry form & we will get right back to you", //12
"Goes back to our homepage...", //13
"ADMIN: Click to view private listings...; this link only appears local...", //14
"Opening connection to Data-Base - please wait...", //15
"Click to learn more about this property...", //16
"ADMIN: Click for web site help; this link only appears local...", //17
"You'll love viewing photos of this property with our automated slide-show...", //18
"View photos of this property in a traditional \"click to enlarge\" style &amp; print them too...", //19
"Read our detailed \"printer-friendly\" fact sheet &amp; learn more about this property", //20
"Record this property in your \"List of Favorites\" so you can submit it with your inquiry", //21
"E-mail this property to your friends and family so they can review it too...", //22
"View our current booking calendar to check this property for availability", //23
"Fill out our Rental Inquiry/Reply form and send us your \"List of Favorites\" too...", //24
"Read what our many other satisfied customers said about this property", //25
"Click to show bedroom info...", //26
"Click to hide bedroom info...", //27
"View our reservation calendars & find open dates", //28
"Send us an e-mail now...",
"Place Holder"
	);

//--------------------------------------------------------------------------------------

function writeFooter() {

	// INSTRUCTIONS: set first member of "FooterArr" to "true" to write footer, otherwise "false" will hide footer

	var FooterArr = [ true, "<DIV CLASS='norm' ALIGN='center'>For Reservations & Information, complete our <A HREF='inquiry-form.html' onMouseOver='actLink( this ); self.status=dText[12]; return true;' onMouseOut='deactLink( this ); self.status=\"\"; return true;' TITLE='" + dText[12] +"'>Inquiry Form</A> OR;<BR>Send e-mail to <A HREF='mailto:info@tropicalvillavacations.com' onMouseOver='actLink( this ); self.status=dText[29]; return true;' onMouseOut='deactLink( this ); self.status=\"\"; return true;' TITLE='" + dText[29] +"'>info@tropicalvillavacations.com</A> or call us at (888) 875-2818 ext 2 or 6</DIV><BR>" ];

	if( FooterArr[ 0 ] ) {
		document.write( FooterArr[ 1 ] );
		if( dHTML0 ) document.title = "We are just a phone call away at 888-875-2818 ext 2 or 6 (toll free)";
	}
}
//--------------------------------------------------------------------------------------

var helpLink = ''; helpLink1 = '';
if( runningLocal ) {
	helpLink = "<A HREF='http://www.tropicalvillavacations.com/zzVillaSoftware/instructions.html' TARGET=_new-win onMouseOver='actLink( this ); self.status=dText[17]; return true;' onMouseOut='deactLink( this ); self.status=\"\"; return true;' TITLE='" + dText[17] +"'>";
	helpLink1 = '</A>';
}

var prvLink = ''; prvLink1 = '';
if( runningLocal ) {
	prvLink = "<A HREF='private.html' onMouseOver='self.status=dText[14]; return true;' onMouseOut='self.status=\"\"; return true;' TITLE='" + dText[14] +"'>";
	prvLink1 = '</A>';
}

window.onerror = errorHandler;

function errorHandler(msg, url, line) {
	if ( runningLocal || showAllErrors ) return false; // Allow native browser error reporting
	else return true; // Suppress native browser error reporting
}
//--------------------------------------------------------------------------------------

function trimString() {
	var TestString = this;
	var SpaceChar  = " ";
	while (TestString.charAt(0) == SpaceChar) {TestString = TestString.substr(1)};
	while (TestString.charAt(TestString.length-1) == SpaceChar) {TestString = TestString.substr(0,TestString.length-1)};
	return TestString.toString();
}
String.prototype.trimMe = trimString;
//--------------------------------------------------------------------------------------

function replaceLiteral( target, replacement ) {
	return this.split( target ).join( replacement );
}
String.prototype.replaceLiteral = replaceLiteral;

//--------------------------------------------------------------------------------------
function getQueryStr() {
	var queryString = unescape( document.location.search ).substring( 1 );
	if( queryString == '' ) return null;
	else return queryString;
}
//----------------------------------------------------------------------------------------
function getCallout() {

	var calloutType = '<BR>';
	var dTextCol = '#ffffcc';

	var fontSize = 10;
	if( smTxt ) fontSize += 2;

	if( dHTML0 )
		calloutType = '<DIV ID="callout" STYLE="color:' + dTextCol + '; margin:4px; font-size: ' + fontSize + 'pt; font-family: arial, helvetica; background-color:#0000cc;">&nbsp;</DIV>';

//if(ntScp) java.lang.System.err.println( "calloutType: " + calloutType + "" ); // SAVE
	return calloutType;
}
//--------------------------------------------------------------------------------------
var timeout = 0;

function activateMsg( msg ) {

	if( dHTML0 ) {
		clearTimeout(timeout);
		if( dHTML1 ) document.getElementById( 'callout' ).innerHTML = msg;
		else { var objCallout = eval( callout ); objCallout.innerHTML = msg; }
	}
}

//--------------------------------------------------------------------------------------
function deActivateMsg() {
	if( dHTML0 ) {
		if( dHTML1 ) timeout = setTimeout('document.getElementById( \'callout\' ).innerHTML = "&nbsp;"', 500);
		else timeout = setTimeout('callout.innerHTML = "&nbsp;"', 500);
	}
}

//--------------------------------------------------------------------------------------

function imageViewer( imgInfo ) {

	var theURL = "";
	var theHost = document.location.hostname;

	if( theHost.length == 0 ) theURL = "image_viewer.html?" + escape( imgInfo );
	else {
		var charIndex = theHost.lastIndexOf( "/" );
		var destinationURL = theHost.substring( 0, charIndex + 1 ) + 'image_viewer.html?';
		theURL = destinationURL + escape( imgInfo );
	}

	document.location.href = theURL;
}
//--------------------------------------------------------------------------------------

function writeSeparator( txt0, txt1 ) {
	document.write( txt0 + '<DIV CLASS="normFaint">___________________________________________________________________________________</DIV>' + txt1 );}

//--------------------------------------------------------------------------------------

// Border colors surrounding thumbnails
var activeColor = '#fed901';
var staticColor = '#0000cc';
var staticColor1 = '#fed901';

if( dHTML0 )
	document.write( "<STYLE>.borderImage{ border:1px solid " + staticColor + "; }</STYLE><STYLE>.borderImage1{ border:1px solid " + staticColor1 + "; }</STYLE>" );
else { // disable on n4
	document.write( "<STYLE>.borderImage{ border:0px }</STYLE>" );
	document.write( "<STYLE>.borderImage1{ border:0px }</STYLE>" );
}

function borderIm( image, color ) { if( dHTML0 ) image.style.borderColor=color; }

//---------------------------------------------------------------------------------------
function actLink( link ) {
	if( dHTML0 ) { link.style.color = '#ffff00'; link.style.textDecoration = 'underline'; }
}
function deactLink( link ) {
	if( dHTML0 ) { link.style.color = '#ffff00'; link.style.textDecoration = 'none'; }
}
//---------------------------------------------------------------------------------------
function actReverseLink( link ) {
	if( dHTML0 ) { link.style.backgroundColor = '#ffffcc'; link.style.color = '#000000'; }
}
function deactReverseLink( link ) {
	if( dHTML0 ) { link.style.backgroundColor = 'transparent'; link.style.color = '#0000ff'; }
}
//---------------------------------------------------------------------------------------
var tvvWin = null;
var winProblem = ( ver == "n6" || ( ver == "e4" && macIE ) ) ? true : false;


function openWin( theSite, tool, loc, status, menu, winSize ) {

	closeWin();

	var theWidth = 800 * 1.1 * winSize;
	var theHeight = 450 * winSize;

	if( screen.width < 800 && screen.height < 553 ) {
		theWidth = screen.availWidth - 30;
		theHeight = screen.availHeight - 200;
	}

	var xPos = screen.availTop;
	var yPos = screen.availLeft;

	tvvWin = window.open("","tvv_window","toolbar="+tool+",location="+loc+",directories=0,status="+status+",menubar="+menu+",scrollbars=1,resizable=1,width="+theWidth+",height="+theHeight+",top="+yPos+",left="+xPos+"");

	tvvWin.location.href = theSite;
	focusWin();
}

function closeWin() {
	if( winProblem ) return;
	if( tvvWin != null && tvvWin.closed == false ) {
		tvvWin.close();
		tvvWin = null;
	}
}
function focusWin() {
	if( winProblem ) return;
	if( tvvWin != null && ( eval( "typeof tvvWin.registered" ) == 'boolean' ) )
		tvvWin.focus();
	else setTimeout( "focusWin()", 500 );
}
//---------------------------------------------------------------------------------------
function linkToWin( popUpMsg ) {
	this.popUpMsg = popUpMsg;
	if( eval( "typeof tvvWin.registered" ) == 'boolean' ) {
		tvvWin.myParent = self;
		tvvWin.popUpMsg = popUpMsg;
		if( ver == 'n4' ) setTimeout( "linkToWin( popUpMsg )", 500 );
	}
	else setTimeout( "linkToWin( popUpMsg )", 500 );
}
//----------------------------------------------------------------------------------------
// "Internal" function to return the decoded value of a cookie
function getCookieVal (offset) {
  var endstr = document.cookie.indexOf (";", offset);
  if (endstr == -1)
    endstr = document.cookie.length;
  return unescape(document.cookie.substring(offset, endstr));
}
//----------------------------------------------------------------------------------------
function FixCookieDate (date) {
  var base = new Date(0);
  var skew = base.getTime(); // dawn of (Unix) time - should be 0
  if (skew > 0)  // Except on the Mac - ahead of its time
    date.setTime (date.getTime() - skew);
}
//----------------------------------------------------------------------------------------
function GetCookie (name) {
  var arg = name + "=";
  var alen = arg.length;
  var clen = document.cookie.length;
  var i = 0;
  while (i < clen) {
    var j = i + alen;
    if (document.cookie.substring(i, j) == arg)
      return getCookieVal (j);
    i = document.cookie.indexOf(" ", i) + 1;
    if (i == 0) break;
  }
  return null;
}
//----------------------------------------------------------------------------------------
function SetCookie (name,value,expires,path,domain,secure) {
  document.cookie = name + "=" + escape (value) +
    ((expires) ? "; expires=" + expires.toGMTString() : "") +
    ((path) ? "; path=" + path : "") +
    ((domain) ? "; domain=" + domain : "") +
    ((secure) ? "; secure" : "");
}
//----------------------------------------------------------------------------------------
function DeleteCookie (name,path,domain) {
  if (GetCookie(name)) {
    document.cookie = name + "=" +
      ((path) ? "; path=" + path : "") +
      ((domain) ? "; domain=" + domain : "") +
      "; expires=Thu, 01-Jan-70 00:00:01 GMT";
  }
}
//----------------------------------------------------------------------------------------
//Global function read everytime page loads
var expdate = new Date ();
var expdate1 = new Date ();
FixCookieDate (expdate); // Correct for Mac date bug
FixCookieDate (expdate1); // Correct for Mac date bug
expdate.setTime (expdate.getTime() + (24 * 60 * 60 * 365 * 1000)); // 1 year from now
expdate1.setTime (expdate1.getTime() + (24 * 60 * 60 * 30 * 1000)); // 30 days from now - hardcoded in help.html
//----------------------------------------------------------------------------------------
if( eval( 'typeof navigator.cookieEnabled' ) == 'undefined' ) {
	cookiesOn = true;
	var test = SetCookie( 'test', true, null, '/' );
	if( GetCookie( 'test' ) == null ) cookiesOn = false;
}

var qStrReferrer = getQueryStr();
var refPage = ( qStrReferrer != null && qStrReferrer.indexOf( "tvvref=" ) == 0 ) ? qStrReferrer.split( "tvvref=" )[1] : document.referrer;
if( GetCookie( 'tvvReferrer' ) == null ) SetCookie( 'tvvReferrer', refPage, null, '/' );
//---------------------------------------------------------------------------------------

function startFilter( imgObj ) {
	if( ver == 'e5') {
		imgObj.filters.item(0).apply();
		imgObj.style.visibility = "visible";
		imgObj.filters.item(0).play();
	}
}

//----------------------------------------------------------------------------------------
function sloganStatus() { setTimeout("defaultStatus = dText[0]", 500); }
function listingStatus() { setTimeout("defaultStatus = nDataRows + ' listings available...'", 500); }
function DataBaseStatus() { self.status = dText[15]; }
//--------------------------------------------------------------------------------------

function formatDate( theDate ) {

	var date = new Date( theDate );
	var unForYear = "" + date.getYear();
	var forYear = unForYear.substring( unForYear.length - 2 );

	return "" + ( date.getMonth() + 1 ) + "/" + date.getDate() + "/" + forYear;
}
//---------------------------------------------------------------------------------------

function getHomePageLogo() {
	var logo = '<IMG SRC="images/comp_name.gif" BORDER=0 WIDTH=322 HEIGHT=94 HSPACE=0 VSPACE=0>';

	if( ver == 'e5')
		logo = logo.split('>')[0] + ' ID="photo" STYLE="visibility: hidden; filter: blendtrans(duration=1.5)" onLoad="startFilter();">';

	return prvLink + logo + prvLink1;
}
//---------------------------------------------------------------------------------------

function startFilter() {
	if( ver == 'e5') {
		photo.filters.item(0).apply();
		photo.style.visibility = "visible";
		photo.filters.item(0).play();
	}
}
var flowerOff = new Image(); flowerOff.src = "images/flowerOff.gif";
var flowerOn = new Image(); flowerOn.src = "images/flowerOn.gif";
//--------------------------------------------------------------------------------------
function activateBut( imgName ) { document[imgName].src = eval( "flowerOn.src" ); }
function deActivateBut( imgName ) { document[imgName].src = eval( "flowerOff.src" ); }
//--------------------------------------------------------------------------------------
function getRandomNum( maxNum ) {
	if( maxNum == null ) maxNum = 5;
	var randNum = ( Math.round( maxNum * Math.random() ) + 1 ) % maxNum + 1;
	return randNum;
}

//--------------------------------------------------------------------------------------

function getPage( page, qStr ) {
	if( page == "private.html" ) {
		var thisPW = ""
		var pwCookie = GetCookie( "pw" );
		if( pwCookie == pw ) thisPW = pw;
		else thisPW = prompt("Password Provided by Tropical Villa Vacations:", "");
		if ( thisPW == pw ) document.location.href = page;
		else {
			resetPullDown( 'top' );
			resetPullDown( 'bot' );
			if ( pw != '' && pw != null ) alert( 'You failed to enter a correct password...' );
			return;
		}
	}
	else if( qStr == 'none' ) document.location.href = page;
	else if( qStr == 'pop_up' ) openWin( page, '0', '0', '1', '0', 0.70 );
	else if( qStr == 'pop_up1' ) openWin( page, '1', '1', '1', '1', 0.85 );
	else document.location.href = page + '?' + escape( qStr );
}
//--------------------------------------------------------------------------------------

function writeBotLinks() {

var html = "" +
"<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0><!-- MASTER -->" +
"<!------------------------------------ ROW ----------------------------------------->" +
	"<TR ALIGN='left' VALIGN='middle'>" +
		"<TD>" +
			"<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0>" +
				"<TR>" +
					"<TD NOWRAP WIDTH=0 CLASS='pageRowHt'>" +
						"&nbsp;" +
					"</TD>" +
					"<TD>" +
"<A HREF='list-special.html' onMouseover='if( cb ) { activateBut(\"spec-holidays\"); return true; }' onMouseout='if( cb ) { deActivateBut(\"spec-holidays\"); }'><IMG SRC='images/flowerOff.gif' NAME='spec-holidays' BORDER=0 ALIGN=middle WIDTH=30 HEIGHT=28 HSPACE=7 VSPACE=0 ALT='Find out about special promotions & holiday openings' TITLE='Find out about special promotions & holiday openings'><IMG SRC='images/labelSpecialHolidays.gif' BORDER=0 ALIGN=middle WIDTH=130 HEIGHT=18 HSPACE=0 VSPACE=0></A>" +
					"</TD>" +
					"<TD NOWRAP WIDTH=45 CLASS='pageRowHt'>" +
						"&nbsp;" +
					"</TD>" +
					"<TD>" +
"<A HREF='doorway-maui.html' onMouseover='if( cb ) { activateBut(\"vacvilla-maui\"); return true; }' onMouseout='if( cb ) { deActivateBut(\"vacvilla-maui\"); }'><IMG SRC='images/flowerOff.gif' NAME='vacvilla-maui' BORDER=0 ALIGN=middle WIDTH=30 HEIGHT=28 HSPACE=7 VSPACE=0 ALT='See our extensive list of Villas on Maui' TITLE='See our extensive list of Villas on Maui'><IMG SRC='images/labelVillaMaui.gif' BORDER=0 ALIGN=middle WIDTH=94 HEIGHT=14 HSPACE=0 VSPACE=0></A>" +
					"</TD>" +
					"<TD NOWRAP WIDTH=50 CLASS='pageRowHt'>" +
						"&nbsp;" +
					"</TD>" +
					"<TD>" +
"<A HREF='yacht.html' onMouseover='if( cb ) { activateBut(\"trop-yacht-vac\"); return true; }' onMouseout='if( cb ) { deActivateBut(\"trop-yacht-vac\"); }' onClick='/*alert( \"Page Forthcoming...\" ); return false;*/'><IMG SRC='images/flowerOff.gif' NAME='trop-yacht-vac' BORDER=0 ALIGN=middle WIDTH=30 HEIGHT=28 HSPACE=7 VSPACE=0 ALT='NEW: Check out our Tropical Yacht Vacations...' TITLE='NEW: Check out our Tropical Yacht Vacations...'><IMG SRC='images/labelTropYachtVac.gif' BORDER=0 ALIGN=middle WIDTH=163 HEIGHT=18 HSPACE=0 VSPACE=0></A>" +
					"</TD>" +
				"</TR>" +
			"</TABLE>" +
		"</TD>" +
	"</TR>" +
"<!------------------------------------ ROW ----------------------------------------->" +
	"<TR ALIGN='left' VALIGN='middle'>" +
		"<TD>" +
			"<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0>" +
				"<TR>";
					var tdWid = ( SHOW_MORE_HAWAII_VILLAS ) ? 60 : 90;
					html +=
					"<TD NOWRAP WIDTH='" + tdWid + "' CLASS='pageRowHt'>" +
						"&nbsp;" +
					"</TD>" +
					"<TD>" +
"<A HREF='http://www.tropicalvillarealty.com' onMouseover='if( cb ) { activateBut(\"real-estate\"); return true; }' onMouseout='if( cb ) { deActivateBut(\"real-estate\"); }'><IMG SRC='images/flowerOff.gif' NAME='real-estate' BORDER=0 ALIGN=middle WIDTH=30 HEIGHT=28 HSPACE=7 VSPACE=0 ALT='Let us help you buy your dream home on Maui!' TITLE='Let us help you buy your dream home on Maui!' onAbort='this.src=this.src'><IMG SRC='images/labelRealEstate.gif' BORDER=0 ALIGN=middle WIDTH=138 HEIGHT=15 HSPACE=0 VSPACE=0 onAbort='this.src=this.src'></A>" +
					"</TD>";
if( SHOW_MORE_HAWAII_VILLAS ) {
	html +=
	"<TD NOWRAP WIDTH=60>" +
		"&nbsp;" +
	"</TD>" +
	"<TD>" +
		"<A HREF='doorway-hawaii.html' onMouseover='if( cb ) { activateBut(\"more-hawaii-villas\"); return true; }' onMouseout='if( cb ) { deActivateBut(\"more-hawaii-villas\"); }'><IMG SRC='images/flowerOff.gif' NAME='more-hawaii-villas' BORDER=0 ALIGN=middle WIDTH=30 HEIGHT=28 HSPACE=7 VSPACE=0 ALT='Villas on Oahu, Kauai, The Big Island, Molokai & Lanai...' TITLE='Villas on Oahu, Kauai, The Big Island, Molokai & Lanai...' onAbort='this.src=this.src'><IMG SRC='images/labelMoreHawaiiVillas.gif' BORDER=0 ALIGN=middle WIDTH=124 HEIGHT=14 HSPACE=0 VSPACE=0 onAbort='this.src=this.src'></A>"
	"</TD>";
}
else {
	html +=
	"<TD NOWRAP WIDTH=20 CLASS='pageRowHt'>" +
		"&nbsp;" +
	"</TD>";

}
html +=

					"</TD>" +
					"<TD NOWRAP WIDTH=40>" +
						"&nbsp;" +
					"</TD>" +
					"<TD>" +
"<A HREF='doorway-gallery.html' onMouseover='if( cb ) { activateBut(\"photo_gallery\"); return true; }' onMouseout='if( cb ) { deActivateBut(\"photo_gallery\"); }' onClick='return true;'><IMG SRC='images/flowerOff.gif' NAME='photo_gallery' BORDER=0 ALIGN=middle WIDTH=30 HEIGHT=28 HSPACE=7 VSPACE=0 ALT='You\"ll love our Slide-Shows and Photo Galleries...' TITLE='You\"ll love our Slide-Shows and Photo Galleries...' onAbort='this.src=this.src'><IMG SRC='images/labelPhotoGallery.gif' BORDER=0 ALIGN=middle WIDTH=91 HEIGHT=18 HSPACE=0 VSPACE=0 onAbort='this.src=this.src'></A>" +
					"</TD>" +
				"</TR>" +
			"</TD>" +
		"</TR>" +
	"</TABLE>" +
"<!------------------------------------ ROW ----------------------------------------->" +
	"<TR ALIGN='left' VALIGN='middle'>" +
		"<TD>" +
			"<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0>" +
				"<TR>";

if( SHOW_RESORT_HOTELS ) {
	html +=
	"<TD NOWRAP WIDTH=10 CLASS='pageRowHt'>" +
		"&nbsp;" +
	"</TD>" +
	"<TD>" +
		"<A HREF='hotel.html' onMouseover='if( cb ) { activateBut(\"resort_hotels\"); return true; }' onMouseout='if( cb ) { deActivateBut(\"resort_hotels\"); }'><IMG SRC='images/flowerOff.gif' NAME='resort_hotels' BORDER=0 ALIGN=middle WIDTH=30 HEIGHT=28 HSPACE=7 VSPACE=0 ALT='Our favorite resorts hotels throughout Hawaii' TITLE='Our favorite resorts hotels throughout Hawaii' onAbort='this.src=this.src'><IMG SRC='images/labelResortHotels.gif' BORDER=0 ALIGN=middle WIDTH=99 HEIGHT=15 HSPACE=0 VSPACE=0 onAbort='this.src=this.src'></A>" +
	"</TD>";
}
else {
	html +=
	"<TD NOWRAP WIDTH=100 CLASS='pageRowHt'>" +
		"&nbsp;" +
	"</TD>";

}
html +=
					"<TD NOWRAP WIDTH=45>" +
						"&nbsp;" +
					"</TD>" +
					"<TD>" +
"<A HREF='concierge-services.html' onMouseover='if( cb ) { activateBut(\"concierge\"); return true; }' onMouseout='if( cb ) { deActivateBut(\"concierge\"); }'><IMG SRC='images/flowerOff.gif' NAME='concierge' BORDER=0 ALIGN=middle WIDTH=30 HEIGHT=28 HSPACE=7 VSPACE=0 ALT='We provide our guests with &#34;authentic&#34; Concierge service!' TITLE='We provide our guests with &#34;authentic&#34; Concierge service!' onAbort='this.src=this.src'><IMG SRC='images/labelConcierge.gif' BORDER=0 ALIGN=middle WIDTH=128 HEIGHT=19 HSPACE=0 VSPACE=0 onAbort='this.src=this.src'></A>" +
					"</TD>" +
					"<TD NOWRAP WIDTH=30>" +
						"&nbsp;" +
					"</TD>" +
					"<TD>" +
"<A HREF='doorway-about-us.html' onMouseover='if( cb ) { activateBut(\"about-vac-us\"); return true; }' onMouseout='if( cb ) { deActivateBut(\"about-vac-us\"); }'><IMG SRC='images/flowerOff.gif' NAME='about-vac-us' BORDER=0 ALIGN=middle WIDTH=30 HEIGHT=28 HSPACE=7 VSPACE=0 ALT='Learn about us, our villas and how we do business...' TITLE='Learn about us, our villas and how we do business...' onAbort='this.src=this.src'><IMG SRC='images/labelAboutVacUs.gif' BORDER=0 ALIGN=middle WIDTH=182 HEIGHT=15 HSPACE=0 VSPACE=0 onAbort='this.src=this.src'></A>" +
					"</TD>" +
				"</TR>" +
			"</TABLE>" +
		"</TD>" +
	"</TR>" +
"<!------------------------------------ ROW ----------------------------------------->" +
	"<TR ALIGN='left' VALIGN='middle'>" +
		"<TD>" +
			"<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0>" +
				"<TR>" +
					"<TD NOWRAP WIDTH=60 CLASS='pageRowHt'>" +
						"&nbsp;" +
					"</TD>" +
					"<TD>" +
"<A HREF='calendar.html' onMouseover='if( cb ) { activateBut(\"avail-cal\"); this.title=dText[28]; return true; }' onMouseout='if( cb ) { deActivateBut(\"avail-cal\"); }'><IMG SRC='images/flowerOff.gif' NAME='avail-cal' BORDER=0 ALIGN=middle WIDTH=30 HEIGHT=28 HSPACE=7 VSPACE=0 onAbort='this.src=this.src'><IMG SRC='images/labelAvailabilityCalendar.gif' BORDER=0 ALIGN=middle WIDTH=137 HEIGHT=18 HSPACE=0 VSPACE=0 onAbort='this.src=this.src'></A>" +
					"</TD>" +
					"<TD NOWRAP WIDTH=40 CLASS='pageRowHt'>" +
						"&nbsp;" +
					"</TD>" +
					"<TD>" +
"<A HREF='index.html' onMouseover='if( cb ) { activateBut(\"home\"); return true; }' onMouseout='if( cb ) { deActivateBut(\"home\"); }'><IMG SRC='images/flowerOff.gif' NAME='home' BORDER=0 ALIGN=middle WIDTH=30 HEIGHT=28 HSPACE=7 VSPACE=0 ALT='Back to our home page...' TITLE='Back to our home page...' onAbort='this.src=this.src'><IMG SRC='images/labelHome.gif' BORDER=0 ALIGN=middle WIDTH=36 HEIGHT=13 HSPACE=0 VSPACE=0 onAbort='this.src=this.src'></A>" +
					"</TD>" +
					"<TD NOWRAP WIDTH=40 CLASS='pageRowHt'>" +
						"&nbsp;" +
					"</TD>" +
					"<TD>" +
"<A HREF='our-friends.html' onMouseover='if( cb ) { activateBut(\"our-friends\"); return true; }' onMouseout='if( cb ) { deActivateBut(\"our-friends\"); }'><IMG SRC='images/flowerOff.gif' NAME='our-friends' BORDER=0 ALIGN=middle WIDTH=30 HEIGHT=28 HSPACE=7 VSPACE=0 ALT='Our valued business affiliates with web site links...' TITLE='Our valued business affiliates with web site links...' onAbort='this.src=this.src'><IMG SRC='images/labelOurFriends.gif' BORDER=0 ALIGN=middle WIDTH=82 HEIGHT=14 HSPACE=0 VSPACE=0 onAbort='this.src=this.src'></A>" +
					"</TD>" +
					"<TD NOWRAP WIDTH=40>" +
						"&nbsp;" +
					"</TD>" +
					"<TD>" +
"<A HREF='doorway-contact.html' onMouseover='if( cb ) { activateBut(\"contact-us\"); return true; }' onMouseout='if( cb ) { deActivateBut(\"contact-us\"); }'><IMG SRC='images/flowerOff.gif' NAME='contact-us' BORDER=0 ALIGN=middle WIDTH=30 HEIGHT=28 HSPACE=7 VSPACE=0 ALT='Send a Rental Inquiry, Credit Card Info or contact a staff member...' TITLE='Send a Rental Inquiry, Credit Card Info or contact a staff member...' onAbort='this.src=this.src'><IMG SRC='images/labelContactUs.gif' BORDER=0 ALIGN=middle WIDTH=74 HEIGHT=13 HSPACE=0 VSPACE=0 onAbort='this.src=this.src'></A>" +
					"</TD>" +
				"</TR>" +
			"</TABLE>" +
		"</TD>" +
	"</TR>" +
"<!------------------------------------ ROW ----------------------------------------->" +
	"<TR><TD HEIGHT=10></TD></TR>" +
	"<TR>" +
		"<TD ALIGN='center'>" +
			getPullDown( "bot" ) +
		"</TD>" +
	"</TR>" +
"</TABLE><!-- MASTER -->";

document.write( html );

}

//--------------------------------------------------------------------------------------

function resetGalleryPullDown() {
	if( eval("typeof document.gallery_form.gallery") == 'object' )
		document.gallery_form.gallery.selectedIndex = 0;
}
//--------------------------------------------------------------------------------------

function resetPullDown( pullDownID ) { // args: 'top' OR 'bot'
	if( eval("typeof document.pull_down_" + pullDownID) == 'object' )
		eval( 'document.pull_down_' + pullDownID + '.' + pullDownID + '.selectedIndex = 0' );
}

//--------------------------------------------------------------------------------------
function getGalleryPullDown() {

	return "" +

	"<P><FORM NAME='gallery_form'>" +
		"<SELECT NAME='gallery' onChange='if(this[selectedIndex].value != \"null|none\") { getPage( this[selectedIndex].value.split(\"|\")[0], this[selectedIndex].value.split(\"|\")[1] ); self.status=\"\"; } else { self.status=\"Please select an actual link...\"; }' onFocus='self.status=\"Get transported to another photo gallery...\"' CLASS='pullDown' TITLE='Get transported to another photo gallery...' onMouseover='self.status=\"Get transported to another photo gallery...\"' onMouseout='self.status=\"\"'>" +

			"<OPTION VALUE='doorway-gallery.html|none'>Take me to another photo gallery..." +
				"<OPTION VALUE='gallery-ss.html|LSRC=null&SORT=pg&PGSRC=pg-southmaui.js'>&nbsp;&#149;&nbsp;South Maui Slide Show" +
				"<OPTION VALUE='gallery-tn.html|LSRC=null&SORT=pg&PGSRC=pg-southmaui.js'>&nbsp;&#149;&nbsp;South Maui Photos" +
				"<OPTION VALUE='gallery-ss.html|LSRC=null&SORT=pg&PGSRC=pg-westmaui.js'>&nbsp;&#149;&nbsp;West Maui Slide Show" +
				"<OPTION VALUE='gallery-tn.html|LSRC=null&SORT=pg&PGSRC=pg-westmaui.js'>&nbsp;&#149;&nbsp;West Maui Photos" +
				"<OPTION VALUE='gallery-ss.html|LSRC=null&SORT=pg&PGSRC=pg-northmaui.js'>&nbsp;&#149;&nbsp;North Maui Slide Show" +
				"<OPTION VALUE='gallery-tn.html|LSRC=null&SORT=pg&PGSRC=pg-northmaui.js'>&nbsp;&#149;&nbsp;North Maui Photos" +

		"</SELECT>" +
	"</FORM>" +
	"";
}

//--------------------------------------------------------------------------------------

function getFormatedDate( theDate ) {

	var date = new Date( theDate );
	var unForYear = "" + date.getYear();
	var forYear = unForYear.substring( unForYear.length - 2 );

	return "" + ( date.getMonth() + 1 ) + "/" + date.getDate() + "/" + forYear;
}


//---------------------------------------------------------------------------------------

function getHawaiiTime() {

	var gmtOffset = 10; // for Hawaii
	var now = new Date();
	var difhrs = now.getTimezoneOffset()/60;
	var lochrs = now.getHours();
	GMThours = (difhrs < 0) ? lochrs - difhrs : lochrs + difhrs;
	now.setHours( GMThours - gmtOffset );

	var am_pm = "AM";
	var hours = now.getHours();

	if( hours >= 12 ) am_pm = "PM";
	if( hours >= 13 ) hours -= 12;
	if( hours == 0 ) hours = "12";

	var minutes = now.getMinutes();
	if( minutes < 10 ) minutes = "0" + minutes;

	var seconds = now.getSeconds();
	if( seconds < 10 ) seconds = "0" + seconds;

	var hiTime = "" + hours + ":"  + minutes + ":"  + seconds + " " + am_pm;

	return hiTime;
}
//---------------------------------------------------------------------------------------

function showTime() {

	if( dHTML0 ) {

		var hiTime = getHawaiiTime();
		var timeObj = null;

		if( dHTML )	timeObj = eval( 'time' );
		else if( dHTML1 ) timeObj = document.getElementById( 'time' );

		if( typeof timeObj == 'object' ) timeObj.innerHTML = hiTime;
	}
}

//--------------------------------------------------------------------------------------
// Pull down disable if w/i frameset since it's impossible to clear frames if user navigates this way...

function getPullDown( pullDownID ) { // args: 'top' OR 'bot'

	var eLink = ( pullDownID == "bot" ) ? getErrLink() : "";

	var inquiryForm = ( framed ) ? "" : "<OPTION VALUE='inquiry-form.html|none'>&nbsp;&#149;&nbsp;Submit a Rental Inquiry";

	var html = "" +

	"<SELECT NAME='" + pullDownID + "' onChange='if(this[selectedIndex].value != \"null|none\") { getPage( this[selectedIndex].value.split(\"|\")[0], this[selectedIndex].value.split(\"|\")[1] ); if( this[selectedIndex].value.indexOf(\"pop_up\") != -1 ) this.selectedIndex = 0;  self.status=\"\"; } else { self.status=\"Please select an actual link...\"; }' onFocus='self.status=\"Get transported to one of our main pages...\"' CLASS='pullDown' TITLE='Get transported to one of our main pages...' onMouseover='self.status=\"Get transported to one of our main pages...\"' onMouseout='self.status=\"\"'>" +

		"<OPTION VALUE='null|none'>Take me to..." +

		"<OPTION VALUE='calendar.html|none'>AVAILABILITY CALENDAR" +

		"<OPTION VALUE='doorway-maui.html|none'>VILLAS OF MAUI:" +
			"<OPTION VALUE='list.html|LSRC=listings-maui.js&SORT=mauilc'>&nbsp;&#149;&nbsp;Luxury Collection" +
			"<OPTION VALUE='list.html|LSRC=listings-maui.js&SORT=mauibf'>&nbsp;&#149;&nbsp;Beach Front" +
			"<OPTION VALUE='list.html|LSRC=listings-maui.js&SORT=mauiof'>&nbsp;&#149;&nbsp;Ocean Front" +
			"<OPTION VALUE='list.html|LSRC=listings-maui.js&SORT=mauiov'>&nbsp;&#149;&nbsp;Ocean View" +
			"<OPTION VALUE='list.html|LSRC=listings-maui.js&SORT=mauigv'>&nbsp;&#149;&nbsp;Garden View" +

			"<OPTION VALUE='list-alpha-maui.html|none'>&nbsp;&#149;&nbsp;Sorted Alphabetically" +
			"<OPTION VALUE='list-rate-maui.html|none'>&nbsp;&#149;&nbsp;Sorted By Rates" +
			"<OPTION VALUE='list-area-maui.html|none'>&nbsp;&#149;&nbsp;Sorted By Region" +
			"<OPTION VALUE='list-size-maui.html|none'>&nbsp;&#149;&nbsp;Sorted By # Bedrooms" +
			"<OPTION VALUE='list.html|LSRC=listings-maui.js&SORT=mauicc'>&nbsp;&#149;&nbsp;Cottage Collection" +

			"<OPTION VALUE='http://www.hawaiivtmaps.com/mauimaps/index6.html|pop_up1'>&nbsp;&#149;&nbsp;Maps of Maui" +

		"<OPTION VALUE='list-special.html|none'>SPECIALS & HOLIDAYS" +

		"<OPTION VALUE='http://www.tropicalvillarealty.com|none'>REAL ESTATE SERVICES" +

		"<OPTION VALUE='yacht.html|none'>YACHT VACATIONS";

		if( SHOW_RESORT_HOTELS ) html +=
			"<OPTION VALUE='hotel.html|none'>RESORT HOTELS";

		if( SHOW_MORE_HAWAII_VILLAS ) html +=
			"<OPTION VALUE='doorway-hawaii.html|none'>MORE HAWAII VILLAS";

		html +=
		"<OPTION VALUE='doorway-gallery.html|none'>PHOTO GALLERIES" +


		"<OPTION VALUE='concierge-services.html|none'>CONCIERGE SERVICES" +

		"<OPTION VALUE='doorway-about-us.html|none'>ABOUT VACATIONS & US" +


		"<OPTION VALUE='our-friends.html|none'>OUR FRIENDS" +

		"<OPTION VALUE='doorway-contact.html|none'>CONTACT US:" +
			inquiryForm +
			"<OPTION VALUE='staff-member.html|none'>&nbsp;&#149;&nbsp;Contact a Staff Member" +

			"<OPTION VALUE='mailing-list.html|pop_up'>&nbsp;&#149;&nbsp;Mailing List Subscription" +

		"<OPTION VALUE='index.html|none'>HOME" +
		"<OPTION VALUE='private.html|none'>PRIVATE LISTINGS" +

	"</SELECT>" +

	eLink;

	return html;
}
//--------------------------------------------------------------------------------------

function getErrLink() {

	recipient = "daniel@tropicalvillavacations.com";
	//recipient = "regier@maui.net";

	var eURL = "http://www.creativetouchphoto.com/other/error.html?" + escape( "recipient»" + recipient + "¦subject»Tropical Villa Vacations Web Site Problem¦referrer»" + document.location.href );

	return "<P><A HREF='javascript:openWin(\"" + eURL + "\", \"0\", \"0\", \"1\", \"0\", 0.70 );' onMouseOver='self.status=\"Report a problem about our web site\"; return true;' onMouseOut='self.status=\"\"; return true;' TITLE='Report a problem about our web site' CLASS='eightPt'><SPAN CLASS='undLn'>Report a Problem</SPAN></A>";
}
//--------------------------------------------------------------------------------------

function reportErr( eDescription ) {

	openWin( "error.html", "0", "0", "1", "0", 0.60 );
	linkToWin( eDescription );
}
//--------------------------------------------------------------------------------------
function randompick() {
  return randompick.arguments[ Math.floor( Math.random()*randompick.arguments.length ) ];
}
//--------------------------------------------------------------------------------------
// ACCESSOR VARS: bDoesTrans, exactVer

function getTransition( transNum, duration ) {

	var trans = "";
	if( bDoesTrans ) {
		var d = duration;

		if( exactVer >= 5.5 ) {

			var thisTrans = ( transNum == 0 ) ? Math.floor( Math.random() * 17 ) + 1 : transNum;

			switch ( thisTrans ) {
				case 1: trans="Fade(duration="+d+",overlap=1)"; break;
				case 2: trans="Blinds(duration="+d+",bands="+randompick(2,4,6,8)+",direction="+randompick('up','down','right','left')+")"; break;
				case 3: trans="CheckerBoard(duration="+d+",squaresX="+randompick(2,4,8,12)+",squaresY="+randompick(2,4,8,12)+",direction="+randompick('up','down','right','left')+")"; break;
				case 4: trans="Barn(duration="+d+",motion="+randompick('in','out')+",orientation=",randompick('horizontal','vertical')+")"; break;
				case 5: trans="GradientWipe(duration="+d+",gradientSize="+randompick(0,0.1,0.3,0.5,0.7,0.9,1)+",wipeStyle="+randompick(0,1)+",motion="+randompick('forward','reverse')+")"; break;
				case 6: trans="Inset(duration="+d+")"; break;
				case 7: trans="Iris(duration="+d+",irisStyle="+randompick('DIAMOND','CIRCLE','CROSS','PLUS','SQUARE','STAR')+",motion="+randompick('in','out')+")"; break;
				case 8: trans="RadialWipe(duration="+d+",wipeStyle="+randompick('CLOCK','WEDGE','RADIAL')+")"; break;
				case 9: trans="RandomBars(duration="+d+",orientation="+randompick('horizontal','vertical')+")"; break;
				case 10: trans="RandomBars(duration="+d+")"; break;
				case 11: trans="Slide(duration="+d+",pushStyle="+randompick('HIDE','PUSH','SWAP')+",bands="+randompick(1,2,3,4,5,6,7)+")"; break;
				case 12: trans="Spiral(duration="+d+",gridSizeX="+randompick(8,16,32,64)+",gridSizeY="+randompick(8,16,32,64)+")"; break;
				case 13: trans="Stretch(duration="+d+",stretchStyle="+randompick('HIDE','PUSH','SPIN')+")"; break;
				case 14: trans="Strips(duration="+d+",motion="+randompick('leftdown','leftup','rightdown','rightup')+")"; break;
				case 15: trans="Wheel(duration="+d+",spokes="+randompick(2,4,10,16,20)+")"; break;
				case 16: trans="Zigzag(duration="+d+",gridSizeX="+randompick(8,16,32,64)+",gridSizeY="+randompick(8,16,32,64)+")"; break;
				case 17: trans="RandomDissolve(duration="+d+")"; break;
				default: alert( "SWITCH/CASE ERROR: Case caught by default handler in \"getTransition\"" );
			}
			trans = "progid:DXImageTransform.Microsoft." + trans;
		}
		else { // Old IE 5 Browsers

			switch ( transNum ) {
				case 1: trans="blendTrans(duration="+d+")"; break;
				default: trans="revealTrans(duration="+d+",transition=" + Math.floor(Math.random()*23) + ")";
			}
		}
	}
	return trans;
}
///////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////// MINI SLIDE SHOW ///////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////

// ACCESSOR VARIABLES: local, IE5, exactVer, dHTML, bDoesTrans
// ACCESSOR FUNCTIONS: randompick, getTransition
// ACCESSOR CLASSES: imgBorderMSS

var local = runningLocal;
var IE5 = ( ver == "e5" ) ? true : false;

// Declare Mini SS globals only if ImageArrMSS exists on HTML page
if( eval( "typeof ImageArrMSS" ) == "object" ) {
	var imageDirMSS = ImageArrMSS[ ImageArrMSS.length - 1 ][ 0 ];
	var SPEED_NORM_MSS = ImageArrMSS[ ImageArrMSS.length - 1 ][ 1 ];
	var showMsgMSS = ImageArrMSS[ ImageArrMSS.length - 1 ][ 2 ];
	var imgFiltNum = ImageArrMSS[ ImageArrMSS.length - 1 ][ 3 ];
	var imgFiltDur = ImageArrMSS[ ImageArrMSS.length - 1 ][ 4 ];
	var speedMSS = SPEED_NORM_MSS;
	ImageArrMSS.length = ImageArrMSS.length - 1;
	var preLoadTimerMSS = 0;
	var NextImageMSS = null;
	var slideDelayMSS = 0;
	var nSlideMSS = 0;
}

//--------------------------------------------------------------------------------------

function showSlideMSS() {

	if( NextImageMSS ) {

		var ImageMSS = document.images.slideShowMSS;

		// Must be NC4 and image is in a layer tag...
		if( eval ( "typeof ImageMSS" ) != "object" )
			ImageMSS = document.layers[ "slideShowMSSLayer" ].document.images.slideShowMSS;

		var useFilter = ( bDoesTrans && imgFiltNum >= 0 && speedMSS > 1000 );
		var transErr = false;

		if( useFilter ) {
			ImageMSS.style.filter = getTransition( imgFiltNum, imgFiltDur );
			eval( "try{ ImageMSS.filters(0).Apply(); } catch( e ){ transErr = true; }" );
		}

		ImageMSS.src = NextImageMSS.src;

		if ( useFilter && !transErr ) {
			eval( "try{ ImageMSS.filters(0).Play(); } catch( e ){ /*null action*/; }" );
		}

//		if( showMsgMSS ) {
//			var msg = ImageArrMSS[ nSlideMSS ][ 1 ];
//			var colon = ( msg ) ? ": " : "";
//			self.status = "Slide " + ( nSlideMSS + 1 ) + " of " + ImageArrMSS.length + colon + msg;
//		}
	}

}
//--------------------------------------------------------------------------------------
function skipErrantSlideMSS() {
	if( local ) alert( "Slide #" + nSlideMSS + "; " + NextImageMSS.src + " failed to load" );
	NextImageMSS = null;
}

//--------------------------------------------------------------------------------------

function preLoadNextMSS() {

	var recursionTimer = 500;

	slideDelayMSS += recursionTimer;

	if( !NextImageMSS ) {

		nSlideMSS++;
		if( nSlideMSS == ImageArrMSS.length ) nSlideMSS = 0;
		NextImageMSS = new Image();
		NextImageMSS.onerror = skipErrantSlideMSS;
		NextImageMSS.src = imageDirMSS + ImageArrMSS[ nSlideMSS ][ 0 ];
	}

	if( NextImageMSS && NextImageMSS.complete && slideDelayMSS > speedMSS ) {
		slideDelayMSS = 0;
		showSlideMSS();
		NextImageMSS = null;
		clearTimeout( preLoadTimerMSS );
		preLoadNextMSS();
	}
	else
		preLoadTimerMSS = setTimeout( "preLoadNextMSS()", recursionTimer );

}
//--------------------------------------------------------------------------------------

function imgClickHandlerMSS() {
	if( window.event && event.ctrlKey && event.altKey ) {
		if( speedMSS == SPEED_NORM_MSS ) speedMSS = 1000;
		else speedMSS = SPEED_NORM_MSS;
	}
}

//--------------------------------------------------------------------------------------

function writeImgMSS( imgWid, imgHgt, toolTip, imgStyle ) {

	var imgClass = ( imgStyle && dHTML ) ? " CLASS='" + imgStyle + "'" : "";

	document.write( "<IMG NAME='slideShowMSS' SRC='" + imageDirMSS + ImageArrMSS[ nSlideMSS ][ 0 ] + "' onError='skipErrantSlideMSS(); preLoadNextMSS(); slideDelayMSS = speedMSS + 1;' WIDTH='" + imgWid + "' HEIGHT='" + imgHgt + "' ALT='" + toolTip + "' TITLE='" + toolTip + "' onmousedown='imgClickHandlerMSS();'" + imgClass + ">" );
}

////////////////////////////////// END MINI SLIDE SHOW /////////////////////////////////
