
function mmLoadMenus() {
  if (window.mm_menu_0412182514_0) return;
        window.mm_menu_0412182514_0 = new Menu("root",131,27,"",13,"#1F659B","#1B5683","#DDEDF9","#C5DFF3","left","middle",7,0,50,-5,7,true,true,true,4,true,true);
  mm_menu_0412182514_0.addMenuItem("Villas","location='villas.php'");
  mm_menu_0412182514_0.addMenuItem("Resorts&nbsp;&&nbsp;Hotels","location='resorts.php'");
   mm_menu_0412182514_0.fontWeight="bold";
   mm_menu_0412182514_0.hideOnMouseOut=true;
   mm_menu_0412182514_0.bgColor='#95C6EA';
   mm_menu_0412182514_0.menuBorder=1;
   mm_menu_0412182514_0.menuLiteBgColor='#A3CDED';
   mm_menu_0412182514_0.menuBorderBgColor='#A3CDED';

mm_menu_0412182514_0.writeMenus();

} // mmLoadMenus()


var secs;
var lastRand;
var timerID = null;
var timerRunning = false;
var delay = 1000;
var bannerArray = Array("layoutc_r7_c2.jpg", "layoutc_r7_c2_2.jpg", "layoutc_r7_c2_3.jpg", "layoutc_r7_c2_4.jpg", "layoutc_r7_c2_5.jpg");

function showLoading(divid, onoff)	{
	var myDiv = document.getElementById(divid);
	if (onoff == 1)	{
		myDiv.style.visibility = "visible";
		/*myDiv.style.left = window.width / 2 + "px";
		myDiv.style.top = window.scrollY + "px";*/
	}
	else
		myDiv.style.visibility = "hidden";
	
	
}

function InitializeTimer(jumpStart)
{
	// Set the length of the timer, in seconds
    secs = 10;
    StopTheClock();
    if (jumpStart == 'go')	{
		secs = 0;
	}
	StartTheTimer();
	
}

function StopTheClock()
{
    if(timerRunning)
        clearTimeout(timerID);
    timerRunning = false;
}
function genRand()	{
	
	return Math.floor(Math.random()*5);
}
function StartTheTimer()
{
    if (secs==0)
    {
        StopTheClock();
        var bannerDiv = document.getElementById('bannerLoad');
		var myRand=genRand();
		
		while (myRand == genRand())	{
			myRand = genRand();									 
		}
		
		
			blendimage('bannerLoad','headImage', "images/" + bannerArray[myRand],1000);
			
			//bannerDiv.innerHTML = "<img src='images/" + bannerArray[myRand] + "' width='772' height='157' id='headImage' />";
					
		InitializeTimer();
    }
    else
    {
        self.status = secs;
        secs = secs - 1;
        timerRunning = true;
        timerID = self.setTimeout("StartTheTimer()", delay);
    }
}

function SelectAll(id)
{
    document.getElementById(id).focus();
    document.getElementById(id).select();
}
function ClearAll(id)
{
    document.getElementById(id).focus();
    document.getElementById(id).value = "";
}

function getFlashMovie(movieName) {
	document.getElementById(movieName);
}
