// --- Start of Script for the Main Menu ---

document.write('<STYLE TYPE="text/css">.imgTrans{ filter:revealTrans(duration=0.4,transition=12) }</STYLE>');

//Uncomment the next line for fading rollovers instead of dissolving:
//document.write('<STYLE TYPE="text/css">.imgTrans{ filter:blendTrans(duration=0.4) }</STYLE>');

var onImages=new Array();
function Rollover(imgName, imgSrc)
{
	onImages[imgName] = new Image();
	onImages[imgName].src = imgSrc;
}

function turnOn(imgName){ 
	if(document.images[imgName].filters != null)
		document.images[imgName].filters[0].apply();
	document.images[imgName].offSrc = document.images[imgName].src;
	document.images[imgName].src    = onImages[imgName].src;
	if(document.images[imgName].filters != null)
		document.images[imgName].filters[0].play();
}

function turnOff(imgName){ 
	if(document.images[imgName].filters != null)
		document.images[imgName].filters[0].stop();
	document.images[imgName].src = document.images[imgName].offSrc;
}

//Specify name of participating images, plus paths to their onMouseover replacements:
Rollover("m-home",  "Menu-Home-ON.jpg");
Rollover("m-hotels", "Menu-Hotels-ON.jpg");
Rollover("m-news", "Menu-News-ON.jpg");
Rollover("m-diving", "Menu-Diving-ON.jpg");
Rollover("m-yacht", "Menu-Yacht-ON.jpg");
Rollover("m-desert", "Menu-Desert-ON.jpg");
Rollover("m-restaurants", "Menu-Restaurants-ON.jpg");
Rollover("m-entertainment", "Menu-Entertainment-ON.jpg");
Rollover("m-casinos", "Menu-Casinos-ON.jpg");
Rollover("m-discos", "Menu-Discos-ON.jpg");
Rollover("m-cars", "Menu-Cars-ON.jpg");
Rollover("m-estate", "Menu-Estate-ON.jpg");
Rollover("m-airlines", "Menu-Airlines-ON.jpg");
Rollover("m-groundh", "Menu-GroundH-ON.jpg");
Rollover("m-inttrvl", "Menu-IntTrvl-ON.jpg");
Rollover("m-shops", "Menu-Shops-ON.jpg");
Rollover("m-fish", "Menu-Fish-ON.jpg");

// --- End of Script for the Main Menu ---


// --- Start of Script for Opening Centered Window - Used by: Fish - MailForm

function OpenCenteredWindow( url, width, height )
{
        screenWidth = window.screen.availWidth;
        screenHeight = window.screen.availHeight;
        windowWidth = 500;
        windowHeight = 360;
        windowLeft = ( screenWidth - windowWidth ) / 2;
        windowTop = ( screenHeight - windowHeight ) / 2;
        p=window.open( url, "fish", "left=" + windowLeft + ",top=" + windowTop + ",height=" + windowHeight + ",width=" + windowWidth + ",scrollbars=no");
p.focus();
}

// --- End of Script for Opening Centered Window - Used by: Fish - MailForm

// --- Start of Script for Opening Centered Window - Used by: Weather - CopyRight

function OpenCenteredWindow1( url, width, height )
{
        screenWidth = window.screen.availWidth;
        screenHeight = window.screen.availHeight;
        windowWidth = 300;
        windowHeight = 304;
        windowLeft = ( screenWidth - windowWidth ) / 2;
        windowTop = ( screenHeight - windowHeight ) / 2;
        p=window.open( url, null, "left=" + windowLeft + ",top=" + windowTop + ",height=" + windowHeight + ",width=" + windowWidth + ",scrollbars=no");
p.focus();
}

// --- End of Script for Opening Centered Window - Used by: Weather - CopyRight

// --- Start of Script for Opening Centered Window - Used by: Sponsors Pages in Cateogries Pages

function OpenCenteredWindow3( url, width, height )
{
        screenWidth = window.screen.availWidth;
        screenHeight = window.screen.availHeight;
        windowWidth = 760;
        windowHeight = 520;
        windowLeft = ( screenWidth - windowWidth ) / 2;
        windowTop = ( screenHeight - windowHeight ) / 2;
        p=window.open( url, null, "left=" + windowLeft + ",top=" + windowTop + ",height=" + windowHeight + ",width=" + windowWidth + ",scrollbars=yes" + ", resizable=yes");
p.focus();
}

// --- End of Script for Opening Centered Window - Used by: Sponsors Pages in Cateogries Pages

// --- Start of Script for Opening Centered Window - Used by: Currency - Arrivals - Departures

function OpenCenteredWindowF( url, width, height )
{
        screenWidth = window.screen.availWidth;
        screenHeight = window.screen.availHeight;
        windowWidth = screenWidth;
        windowHeight = screenHeight;
        windowLeft = ( screenWidth - windowWidth ) / 2;
        windowTop = ( screenHeight - windowHeight ) / 2;
        p=window.open( url, null, "left=" + windowLeft + ",top=" + windowTop + ",height=" + windowHeight + ",width=" + windowWidth + ",scrollbars=no");
p.focus();
}

// --- End of Script for Opening Centered Window - Used by: Currency - Arrivals - Departures

// --- Start of Script for Opening Centered Window - Used by: News Page

function OpenCenteredWindowNews( url, width, height )
{
        screenWidth = window.screen.availWidth;
        screenHeight = window.screen.availHeight;
        windowWidth = 500;
        windowHeight = 460;
        windowLeft = ( screenWidth - windowWidth ) / 2;
        windowTop = ( screenHeight - windowHeight ) / 2;
        p=window.open( url, null, "left=" + windowLeft + ",top=" + windowTop + ",height=" + windowHeight + ",width=" + windowWidth + ",scrollbars=no");
p.focus();
}

// --- End of Script for Opening Centered Window - Used by: News Page


