// JavaScript Document

function createSubMenu(sid){
	var tblsub, padding;
	
	padding = "10";
	
	switch(sid)
	{

		case "ivf":{
			submenu = "risksub";
			tblsub = "<table id='" + sid + "' cellspacing='0' cellpadding='0' border='0' style='position:absolute; width:195px;visibility:hidden;'>";
			/*tblsub = tblsub + "<tr>";
			tblsub = tblsub + "<td valign='middle' align='left' class='dyncell' onmouseover=\"DynShowMenu('" + submenu + "')\" onmouseout=\"DynHideMenu('" + submenu + "')\">";
			tblsub = tblsub + "<strong><a href='specialize.html'>";
			tblsub = tblsub + "<img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'>";
			tblsub = tblsub + "We Specialize";
			tblsub = tblsub + "<img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'>";
			tblsub = tblsub + "</a>";
			tblsub = tblsub + "</td>";
			tblsub = tblsub + "</tr>";*/
			
			tblsub = tblsub + "<tr>";
			tblsub = tblsub + "<td valign='middle' align='left' class='dyncell' onmouseover=\"DynShowMenu('" + submenu + "')\" onmouseout=\"DynHideMenu('" + submenu + "')\">";
			tblsub = tblsub + "<strong><a href='weserve.html'>";
			tblsub = tblsub + "<img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'>";
			tblsub = tblsub + "We Serve";
			tblsub = tblsub + "<img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'>";
			tblsub = tblsub + "</a>";
			tblsub = tblsub + "</td>";
			tblsub = tblsub + "</tr>";
			
			/*tblsub = tblsub + "<tr>";
			tblsub = tblsub + "<td valign='middle' align='left' class='dyncell' onmouseover=\"DynShowMenu('" + submenu + "')\" onmouseout=\"DynHideMenu('" + submenu + "')\">";
			tblsub = tblsub + "<strong><a href='businessscope.html'>";
			tblsub = tblsub + "<img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'>";
			tblsub = tblsub + "Business Scope";
			tblsub = tblsub + "<img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'>";
			tblsub = tblsub + "</a>";
			tblsub = tblsub + "</td>";
			tblsub = tblsub + "</tr>";*/
			
			tblsub = tblsub + "<tr>";
			tblsub = tblsub + "<td valign='middle' align='left' class='dyncell' onmouseover=\"DynShowMenu('" + submenu + "')\" onmouseout=\"DynHideMenu('" + submenu + "')\">";
			tblsub = tblsub + "<strong><a href='regional&country.html'>";
			tblsub = tblsub + "<img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'>";
			tblsub = tblsub + "Regional Representatives";
			tblsub = tblsub + "<img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'>";
			tblsub = tblsub + "</a>";
			//tblsub = tblsub + "<br>"; //This line will make the submenu appear below the main one
			//tblsub = tblsub + createSubMenu(submenu);
			tblsub = tblsub + "</td>";
			tblsub = tblsub + "</tr>";
			
			tblsub = tblsub + "<tr>";
			tblsub = tblsub + "<td valign='middle' align='left' class='dyncell' onmouseover=\"DynShowMenu('" + submenu + "')\" onmouseout=\"DynHideMenu('" + submenu + "')\">";
			tblsub = tblsub + "<strong><a href='regional&country.html#country'>";
			tblsub = tblsub + "<img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'>";
			tblsub = tblsub + "Countries We Cover";
			tblsub = tblsub + "<img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'>";
			tblsub = tblsub + "</a>";
			//tblsub = tblsub + "<br>"; //This line will make the submenu appear below the main one
			//tblsub = tblsub + createSubMenu(submenu);
			tblsub = tblsub + "</td>";
			tblsub = tblsub + "</tr>";
			
			tblsub = tblsub + "<tr>";
			tblsub = tblsub + "<td valign='middle' align='left' class='dyncell' onmouseover=\"DynShowMenu('" + submenu + "')\" onmouseout=\"DynHideMenu('" + submenu + "')\">";
			tblsub = tblsub + "<strong><a href='partners&services.html'>";
			tblsub = tblsub + "<img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'>";
			tblsub = tblsub + "Partners on Services";
			tblsub = tblsub + "<img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'>";
			tblsub = tblsub + "</a>";
			//tblsub = tblsub + "<br>"; //This line will make the submenu appear below the main one
			//tblsub = tblsub + createSubMenu(submenu);
			tblsub = tblsub + "</td>";
			tblsub = tblsub + "</tr>";
			
			tblsub = tblsub + "<tr>";
			tblsub = tblsub + "<td valign='middle' align='left' class='dyncell' onmouseover=\"DynShowMenu('" + submenu + "')\" onmouseout=\"DynHideMenu('" + submenu + "')\">";
			tblsub = tblsub + "<strong><a href='partners&services.html#services'>";
			tblsub = tblsub + "<img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'>";
			tblsub = tblsub + "Why Use Our Services?";
			tblsub = tblsub + "<img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'>";
			tblsub = tblsub + "</a>";
			//tblsub = tblsub + "<br>"; //This line will make the submenu appear below the main one
			//tblsub = tblsub + createSubMenu(submenu);
			tblsub = tblsub + "</td>";
			tblsub = tblsub + "</tr>";
			
			break;
		}
		
	
	}
	tblsub = tblsub + "</table>";
	//alert(tblsub);
	return tblsub;
}

function fixMenu(show){
	var tbl, submenu, mainmenu;
	var padding;
	padding = "0";
	switch(show)
	{

		case "MainMenu":{
			mainmenu = "tblnav";
			tbl = "<table id='" + mainmenu + "' cellspacing='0' cellpadding='0' border='0'>";
			tbl = tbl + "<tr>";
			//tbl = tbl + "<td align='left' onmouseover=\"DynShowMenu('" + submenu + "')\" 		onmouseout=\"DynHideMenu('" + submenu + "')\">";
			tbl = tbl + "<a href='home.aspx' onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image2','','images/home2navi.jpg',1)\">";
			//tbl = tbl + "<img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'>";
			tbl = tbl + "<img src='images/homenavi.jpg' border='0' name='Image2' id='Image2'>";
			//tbl = tbl + "<img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'>";
			tbl = tbl + "</a>";
			//tbl = tbl + "<br>"; //This line will make the submenu appear below the main one
			tbl = tbl + "</td>";
			tbl = tbl + "</tr>";
			tbl = tbl + "</table>";
			break;
		}
		
		case "MainMenu1":{
			//submenu = "iui"; 
			mainmenu = "tblnav";
			tbl = "<table id='" + mainmenu + "' cellspacing='0' cellpadding='0' border='0'>";
			tbl = tbl + "<tr>";
			//tbl = tbl + "<td align='left' onmouseover=\"DynShowMenu('" + submenu + "')\" onmouseout=\"DynHideMenu('" + submenu + "')\">";
			tbl = tbl + "<a href='aboutus.html' onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image3','','images/aboutus2navi.jpg',1)\">";
			//tbl = tbl + "<img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'>";
			tbl = tbl + "<img src='images/aboutusnavi.jpg' border='0' name='Image3' id='Image3'>";
			//tbl = tbl + "<img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'>";
			tbl = tbl + "</a>";
			tbl = tbl + "<br>"; //This line will make the submenu appear below the main one
			//tbl = tbl + createSubMenu(submenu);
			tbl = tbl + "</td>";
			tbl = tbl + "</tr>";
			tbl = tbl + "</table>";
			break;
		}
		
		case "MainMenu2":{
			mainmenu = "tblnav";
			tbl = "<table id='" + mainmenu + "' cellspacing='0' cellpadding='0' border='0'>";
			tbl = tbl + "<tr>";
			//tbl = tbl + "<td align='left' onmouseover=\"DynShowMenu('" + submenu + "')\" onmouseout=\"DynHideMenu('" + submenu + "')\">";
			tbl = tbl + "<a href='services.html' onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image4','','images/service2navi.jpg',1)\">";
			//tbl = tbl + "<img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'>";
			tbl = tbl + "<img src='images/servicenavi.jpg' border='0' name='Image4' id='Image4'>";
			//tbl = tbl + "<img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'>";
			tbl = tbl + "</a>";
			tbl = tbl + "<br>"; //This line will make the submenu appear below the main one
			//tbl = tbl + createSubMenu(submenu);
			tbl = tbl + "</td>";
			tbl = tbl + "</tr>";
			tbl = tbl + "</table>";
			break;
		}
	
		case "MainMenu3":{
			//submenu = "icsi";
			mainmenu = "tblnav5";
			tbl = "<table id='" + mainmenu + "' cellspacing='0' cellpadding='0' border='0'>";
			tbl = tbl + "<tr>";
			//tbl = tbl + "<td align='left' onmouseover=\"DynShowMenu('" + submenu + "')\" onmouseout=\"DynHideMenu('" + submenu + "')\">";
			tbl = tbl + "<a href='management.html' onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image6','','images/management2navi.jpg',1)\">";
			//tbl = tbl + "<img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'>";
			tbl = tbl + "<img src='images/managementnavi.jpg' border='0' name='Image6' id='Image6'>";
			//tbl = tbl + "<img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'>";
			tbl = tbl + "</a>";
			tbl = tbl + "<br>"; //This line will make the submenu appear below the main one
			//tbl = tbl + createSubMenu(submenu);
			tbl = tbl + "</td>";
			tbl = tbl + "</tr>";
			tbl = tbl + "</table>";
			break;
		}
		
		case "MainMenu4":{
			//	
			//submenu = "fet";
			mainmenu = "tblnav6";
			tbl = "<table id='" + mainmenu + "' cellspacing='0' cellpadding='0' border='0'>";
			tbl = tbl + "<tr>";
			//tbl = tbl + "<td align='left' onmouseover=\"DynShowMenu('" + submenu + "')\" onmouseout=\"DynHideMenu('" + submenu + "')\">";
			tbl = tbl + "<a href='enquiry.aspx' onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image7','','images/enquiry2navi.jpg',1)\">";
			//tbl = tbl + "<img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'>";
			tbl = tbl + "<img src='images/enquirynavi.jpg' border='0' name='Image7' id='Image7'>";
			//tbl = tbl + "<img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'>";
			tbl = tbl + "</a>";
			tbl = tbl + "<br>"; //This line will make the submenu appear below the main one
			//tbl = tbl + createSubMenu(submenu);
			tbl = tbl + "</td>";
			tbl = tbl + "</tr>";
			tbl = tbl + "</table>";
			break;
		}
		
		case "MainMenu5":{
			//	
			mainmenu = "tblnav6";
			tbl = "<table id='" + mainmenu + "' cellspacing='0' cellpadding='0' border='0'>";
			tbl = tbl + "<tr>";
			//tbl = tbl + "<td align='left' onmouseover=\"DynShowMenu('" + submenu + "')\" onmouseout=\"DynHideMenu('" + submenu + "')\">";
			tbl = tbl + "<a href='contactus.html' onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image8','','images/contactus2navi.jpg',1)\">";
			//tbl = tbl + "<img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'>";
			tbl = tbl + "<img src='images/contactusnavi.jpg' border='0' name='Image8' id='Image8'>";
			//tbl = tbl + "<img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'>";
			tbl = tbl + "</a>";
			//tbl = tbl + "<br>"; //This line will make the submenu appear below the main one
			//tbl = tbl + createSubMenu(submenu);
			tbl = tbl + "</td>";
			tbl = tbl + "</tr>";
			tbl = tbl + "</table>";
			break;
		}
		
		case "MainMenu6":{
			//	
			mainmenu = "tblnav7";
			tbl = "<table id='" + mainmenu + "' cellspacing='0' cellpadding='0' border='0'>";
			tbl = tbl + "<tr>";
			//tbl = tbl + "<td align='left' onmouseover=\"DynShowMenu('" + submenu + "')\" onmouseout=\"DynHideMenu('" + submenu + "')\">";
			tbl = tbl + "<a href='authority.aspx' onmouseout=\"MM_swapImgRestore()\" onmouseover=\"MM_swapImage('Image9','','images/authority_mover.jpg',1)\">";
			//tbl = tbl + "<img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'>";
			tbl = tbl + "<img src='images/authority_mout.jpg' border='0' name='Image9' id='Image9'>";
			//tbl = tbl + "<img src='images/minitransparent.gif' border='0' width='" + padding + "' height='1'>";
			tbl = tbl + "</a>";
			//tbl = tbl + "<br>"; //This line will make the submenu appear below the main one
			//tbl = tbl + createSubMenu(submenu);
			tbl = tbl + "</td>";
			tbl = tbl + "</tr>";
			tbl = tbl + "</table>";
			break;
		}
		
	}
	dt.write(tbl);
	//alert(tbl);
}
function writefooter(imode){
	if(imode=="0"){
		dt.write("<div align='left' style='padding:5px' class='footer'>Website content is Copyright &copy;  Fertility Solutions. Reg No.: 198902796E.<br>All Rights Reserved. Website designed & developed by <a href='http://www.elveslab.com' target='_blank'>Elveslab</a></div>");
	}else{
		dt.write("<div align='left' class='footer'>Administrative Login<br>Website content is Copyright &copy; HQ Link Pte Ltd. Reg No.: 198902796E.<br>All Rights Reserved. Website designed & developed by <a href='http://www.elveslab.com' target='_blank'>Elveslab</a></div>");
	}
}
function writefooter1(imode){
	if(imode=="0"){
		dt.write("<div align='center' style='padding:5px' class='footer'>Website content is Copyright &copy; Fertility Solutions. Reg No.: 198902796E.<br>All Rights Reserved. Website designed & developed by <a href='http://www.elveslab.com' target='_blank'>Elveslab</a></div>");
	}else{
		dt.write("<div align='center' class='footer'>Administrative Login<br>Website content is Copyright &copy; Fertility Solutions. Reg No.: 198902796E.<br>All Rights Reserved. Website designed & developed by <a href='http://www.elveslab.com' target='_blank'>Elveslab</a></div>");
	}
}
function explode(imgurl){
	window.open("enlargeme.htm?e="+imgurl,"Big","location=0,resizable=1,width=30,height=30");
}

function changenewnavi(ori, newsrc)
	{
		//x = Math.random()*350;
		//y = Math.random()*350;
		//imgobj.style.position='absolute';
		ori.src = newsrc
	}
function changebacknavi(ori, newsrc)
	{
		//x = Math.random()*350;
		//y = Math.random()*350;
		//imgobj.style.position='absolute';
		ori.src = newsrc
	}

function showmenu(elmnt)
{
document.getElementById(elmnt).style.visibility="visible"
}

function hidemenu(elmnt)
{
document.getElementById(elmnt).style.visibility="hidden"
}

function displayImage(picName, windowName, windowWidth, windowHeight)
{
  return window.open(picName,windowName,"toolbar=no,scrollbars=no,resizable=no,width=" + (parseInt(windowWidth)+20)  + ",height=" + (parseInt(windowHeight)+20))
}
  
function doNothing(){}

