var ns = (document.layers)? true:false
var ie = (document.all)? true:false

function dead_call(){}
/*This Function is used to begin a Layer or Div tag depending upon the browser and the parameters*/
function openlyr(lyrparam){
if(ns){
	document.write("<layer "+lyrparam+">")
	document.close();}
else{
	document.write("<div "+lyrparam+">")
}
}

/*This Function is used to end a Layer or Div tag depending upon the browser*/
function closelyr(){
if(ns){
	document.write("<\/layer>")
	document.close();}
else{
	document.write("<\/div>")
}
}

/*This Function is used to insert an HTML into Layer or Div*/
function inserthtml(lyr,htm){ 
   if (document.getElementById) 
   	{document.getElementById(lyr).innerHTML = htm}
   else 
   	{lyr.innerHTML = htm}
}

/*This Function is used show Layer or Div*/
function show(lyr){
if(ns){
	document.layers[lyr].visibility="visible";}
else{
	document.all.item(lyr).style.visibility="visible";}
}

/*This Function is used hide Layer or Div*/
function hide(lyr){
if(ns){
	document.layers[lyr].visibility="hide";}
else{
	document.all.item(lyr).style.visibility="hidden";}
}

var moverm=false;
var moutm=false;
var menuTimer;
var bordercolor;
var sm_mover_bgcolor;
var sm_mout_bgcolor;

bordercolor = "#cccccc"
sm_mover_bgcolor = "#8FBFEF"
sm_mout_bgcolor = "#456289"

user_style="border: 0px #000000 solid"

function hide_menu(){
if (moverm==false && moutm==true){
	hide("menu");
	moutm=false;
	moverm=false;
	clearTimeout(menuTimer);}
}

function fillmenu(menu_id,lyr_left,lyr_top){
htm="";
switch (menu_id){ 
case 1 :
		htm=htm+'<table cellspacing=0 cellpadding=1 width=210 class=svbk2 border=0 bgcolor='+sm_mout_bgcolor+' bordercolor='+bordercolor+' rules=groups style="cursor: hand;'+user_style+'" onMouseOver="moverm=true;moutm=false;clearTimeout(menuTimer);" onMouseOut="moverm=false;moutm=true;close_timer();">';
		
        htm=htm+'<tr><td onclick="JavaScript:window.location=\'html/inv_1franchise.htm\'" onmouseover="this.style.backgroundColor=\''+sm_mover_bgcolor+'\'" onmouseout="this.style.backgroundColor=\''+sm_mout_bgcolor+'\'">';
        htm=htm+'&nbsp;<img src="images/spacer.gif" border=0 width="4" height="3" border=0 style="background: #3EAECB; vertical-align: middle;">&nbsp; Franchise Elements</td></tr>';
        htm=htm+'<tr><td onclick="JavaScript:window.location=\'html/inv_2advantages.htm\'" onmouseover="this.style.backgroundColor=\''+sm_mover_bgcolor+'\'" onmouseout="this.style.backgroundColor=\''+sm_mout_bgcolor+'\'">';
        htm=htm+'&nbsp;<img src="images/spacer.gif" border=0 width="4" height="3" border=0 style="background: #3EAECB; vertical-align: middle;">&nbsp; Advantages of ICCDS</td></tr>';
        htm=htm+'<tr><td onclick="JavaScript:window.location=\'html/inv_3terms.htm\'" onmouseover="this.style.backgroundColor=\''+sm_mover_bgcolor+'\'" onmouseout="this.style.backgroundColor=\''+sm_mout_bgcolor+'\'">';
        htm=htm+'&nbsp;<img src="images/spacer.gif" border=0 width="4" height="3" border=0 style="background: #3EAECB; vertical-align: middle;">&nbsp; Finance & Investment Terms</td></tr>';
        htm=htm+'<tr><td onclick="JavaScript:window.location=\'html/inv_4attributes.htm\'" onmouseover="this.style.backgroundColor=\''+sm_mover_bgcolor+'\'" onmouseout="this.style.backgroundColor=\''+sm_mout_bgcolor+'\'">';
        htm=htm+'&nbsp;<img src="images/spacer.gif" border=0 width="4" height="3" border=0 style="background: #3EAECB; vertical-align: middle;">&nbsp; Attributes of Franchise</td></tr>';
        htm=htm+'<tr><td onclick="JavaScript:window.location=\'html/inv_5training.htm\'" onmouseover="this.style.backgroundColor=\''+sm_mover_bgcolor+'\'" onmouseout="this.style.backgroundColor=\''+sm_mout_bgcolor+'\'">';
        htm=htm+'&nbsp;<img src="images/spacer.gif" border=0 width="4" height="3" border=0 style="background: #3EAECB; vertical-align: middle;">&nbsp; Premier Training</td></tr>';
        htm=htm+'<tr><td onclick="JavaScript:window.location=\'html/inv_6nextstep.htm\'" onmouseover="this.style.backgroundColor=\''+sm_mover_bgcolor+'\'" onmouseout="this.style.backgroundColor=\''+sm_mout_bgcolor+'\'">';
        htm=htm+'&nbsp;<img src="images/spacer.gif" border=0 width="4" height="3" border=0 style="background: #3EAECB; vertical-align: middle;">&nbsp; Next Step</td></tr>';
        htm=htm+'<tr><td onclick="JavaScript:window.location=\'html/inv_7realestate.htm\'" onmouseover="this.style.backgroundColor=\''+sm_mover_bgcolor+'\'" onmouseout="this.style.backgroundColor=\''+sm_mout_bgcolor+'\'">';
        htm=htm+'&nbsp;<img src="images/spacer.gif" border=0 width="4" height="3" border=0 style="background: #3EAECB; vertical-align: middle;">&nbsp; Real Estate Location</td></tr>';
        htm=htm+'<tr><td onclick="JavaScript:window.location=\'html/inv_9apply.htm\'" onmouseover="this.style.backgroundColor=\''+sm_mover_bgcolor+'\'" onmouseout="this.style.backgroundColor=\''+sm_mout_bgcolor+'\'">';
        htm=htm+'&nbsp;<img src="images/spacer.gif" border=0 width="4" height="3" border=0 style="background: #3EAECB; vertical-align: middle;">&nbsp; Apply Online</td></tr>';
        htm=htm+'</table>';
	   	break; 
case 2 :
		htm=htm+'<table cellspacing=0 cellpadding=1 width=271 class=svbk2 border=0 bgcolor='+sm_mout_bgcolor+' bordercolor='+bordercolor+' rules=groups style="cursor: hand;'+user_style+'" onMouseOver="moverm=true;moutm=false;clearTimeout(menuTimer);" onMouseOut="moverm=false;moutm=true;close_timer();">';
		
        htm=htm+'<tr><td onclick="JavaScript:window.location=\'html/about.htm\'" onmouseover="this.style.backgroundColor=\''+sm_mover_bgcolor+'\'" onmouseout="this.style.backgroundColor=\''+sm_mout_bgcolor+'\'">';
        htm=htm+'&nbsp;<img src="images/spacer.gif" border=0 width="4" height="3" border=0 style="background: #EE9137; vertical-align: middle;">&nbsp; About ICCDS</td></tr>';
        htm=htm+'<tr><td onclick="JavaScript:window.location=\'html/about_1synergy.htm\'" onmouseover="this.style.backgroundColor=\''+sm_mover_bgcolor+'\'" onmouseout="this.style.backgroundColor=\''+sm_mout_bgcolor+'\'">';
        htm=htm+'&nbsp;<img src="images/spacer.gif" border=0 width="4" height="3" border=0 style="background: #EE9137; vertical-align: middle;">&nbsp; ICC Synergy</td></tr>';
        htm=htm+'<tr><td onclick="JavaScript:window.location=\'html/about_2concept.htm\'" onmouseover="this.style.backgroundColor=\''+sm_mover_bgcolor+'\'" onmouseout="this.style.backgroundColor=\''+sm_mout_bgcolor+'\'">';
        htm=htm+'&nbsp;<img src="images/spacer.gif" border=0 width="4" height="3" border=0 style="background: #EE9137; vertical-align: middle;">&nbsp; Concept</td></tr>';
        htm=htm+'<tr><td onclick="JavaScript:window.location=\'html/about_3advantages.htm\'" onmouseover="this.style.backgroundColor=\''+sm_mover_bgcolor+'\'" onmouseout="this.style.backgroundColor=\''+sm_mout_bgcolor+'\'">';
        htm=htm+'&nbsp;<img src="images/spacer.gif" border=0 width="4" height="3" border=0 style="background: #EE9137; vertical-align: middle;">&nbsp; Advantages in joining Us</td></tr>';
        htm=htm+'<tr><td onclick="JavaScript:window.location=\'html/about_4why.htm\'" onmouseover="this.style.backgroundColor=\''+sm_mover_bgcolor+'\'" onmouseout="this.style.backgroundColor=\''+sm_mout_bgcolor+'\'">';
        htm=htm+'&nbsp;<img src="images/spacer.gif" border=0 width="4" height="3" border=0 style="background: #EE9137; vertical-align: middle;">&nbsp; Why ICCDS & Biographies</td></tr>';
        htm=htm+'<tr><td onclick="JavaScript:window.location=\'html/about_5faq.htm\'" onmouseover="this.style.backgroundColor=\''+sm_mover_bgcolor+'\'" onmouseout="this.style.backgroundColor=\''+sm_mout_bgcolor+'\'">';
        htm=htm+'&nbsp;<img src="images/spacer.gif" border=0 width="4" height="3" border=0 style="background: #EE9137; vertical-align: middle;">&nbsp; ICC FAQ</td></tr>';
//        htm=htm+'<tr><td onclick="JavaScript:window.location=\'html/ICCDS_Brochure_English.pdf\'" onmouseover="this.style.backgroundColor=\''+sm_mover_bgcolor+'\'" onmouseout="this.style.backgroundColor=\''+sm_mout_bgcolor+'\'">';
//        htm=htm+'&nbsp;<img src="images/spacer.gif" border=0 width="4" height="3" border=0 style="background: #EE9137; vertical-align: middle;">&nbsp; Brochure English</td></tr>';
//        htm=htm+'<tr><td onclick="JavaScript:window.location=\'html/ICCDS_Brochure_Arabic.pdf\'" onmouseover="this.style.backgroundColor=\''+sm_mover_bgcolor+'\'" onmouseout="this.style.backgroundColor=\''+sm_mout_bgcolor+'\'">';
//        htm=htm+'&nbsp;<img src="images/spacer.gif" border=0 width="4" height="3" border=0 style="background: #EE9137; vertical-align: middle;">&nbsp; Brochure Arabic</td></tr>';
        htm=htm+'</table>';
	   	break; 
case 3 :
		htm=htm+'<table cellspacing=0 cellpadding=1 width=211 class=svbk2 border=0 bgcolor='+sm_mout_bgcolor+' bordercolor='+bordercolor+' rules=groups style="cursor: hand;'+user_style+'" onMouseOver="moverm=true;moutm=false;clearTimeout(menuTimer);" onMouseOut="moverm=false;moutm=true;close_timer();">';
		
        htm=htm+'<tr><td onclick="JavaScript:window.location=\'html/contak_1information.htm\'" onmouseover="this.style.backgroundColor=\''+sm_mover_bgcolor+'\'" onmouseout="this.style.backgroundColor=\''+sm_mout_bgcolor+'\'">';
        htm=htm+'&nbsp;<img src="images/spacer.gif" border=0 width="4" height="3" border=0 style="background: #71AB30; vertical-align: middle;">&nbsp; Contact Information</td></tr>';
        htm=htm+'<tr><td onclick="JavaScript:window.location=\'html/contak_1international.htm\'" onmouseover="this.style.backgroundColor=\''+sm_mover_bgcolor+'\'" onmouseout="this.style.backgroundColor=\''+sm_mout_bgcolor+'\'">';
        htm=htm+'&nbsp;<img src="images/spacer.gif" border=0 width="4" height="3" border=0 style="background: #71AB30; vertical-align: middle;">&nbsp; International Enquiries</td></tr>';
        htm=htm+'</table>';
	   	break; 

default : break;
} 

inserthtml("menu",htm);
PosNShow("menu",lyr_left,lyr_top);

}
var hide_timer
function PosNShow(lyr,lyr_left,lyr_top){
	if (document.body.clientWidth>780){
		document.all.item(lyr).style.pixelLeft=lyr_left+((document.body.clientWidth-780)/2);
		document.all.item(lyr).style.pixelTop=lyr_top;}
	else{
		document.all.item(lyr).style.pixelLeft=lyr_left;}
		document.all.item(lyr).style.pixelTop=lyr_top;
	show(lyr);	
	clearTimeout(menuTimer);
}

function close_timer(){
menuTimer=setTimeout("hide('menu')",500);
}