function PreLoadImages() {
	MM_preloadImages('/App_Themes/hefc/images/common/home_btn_ovr.png', '/App_Themes/hefc/images/common/about_us_btn_ovr.png', '/App_Themes/hefc/images/common/treatment_journey_btn_ovr.png', '/App_Themes/hefc/images/common/success_rates_btn_ovr.png', '/App_Themes/hefc/images/common/fees_btn_ovr.png', '/App_Themes/hefc/images/common/location_btn_ovr.png', '/App_Themes/hefc/images/common/contact_us_btn_ovr.png', '/App_Themes/hefc/images/common/brochure_request_ovr_btn.png', '/App_Themes/hefc/images/common/free_ivf_egg_sharers_ovr_btn.png', '/App_Themes/hefc/images/common/open_evenings_ovr_btn.png', '/App_Themes/hefc/images/common/why_us_ovr_btn.png', '/App_Themes/hefc/images/common/add_favourites_ovr_btn.png', '/App_Themes/hefc/images/common/privacy_policy_ovr_btn.png', '/App_Themes/hefc/images/common/tell_friend_ovr_btn.png', '/App_Themes/hefc/images/common/terms_condition_ovr_btn.png');
}


function MM_preloadImages() { //v3.0
  	var d=document; if(d.images)	{
		if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    	if (a[i].indexOf("#")!=0)	{
		d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];
		}
	}
}

function changeimg(sName,sImage) {
	document[sName].src = "/App_Themes/hefc/images/common/" + sImage;
}

var cssmenuids=["cssmenu1"] //Enter id(s) of CSS Horizontal UL menus, separated by commas
var csssubmenuoffset=-1 //Offset of submenus from main menu. Default is 0 pixels.

function createcssmenu2()	{
	
for (var i=0; i<cssmenuids.length; i++)	{
	
  var ultags=document.getElementById(cssmenuids[i]).getElementsByTagName("ul")
  
    for (var t=0; t<ultags.length; t++)	{
			ultags[t].style.top=ultags[t].parentNode.offsetHeight+csssubmenuoffset+"px"
			
    	var spanref=document.createElement("span")
			spanref.className="arrowdiv"
			spanref.innerHTML="&nbsp;&nbsp;&nbsp;&nbsp;"
			ultags[t].parentNode.getElementsByTagName("a")[0].appendChild(spanref)
			
    	ultags[t].parentNode.onmouseover=function()	{
					this.style.zIndex=100
    	this.getElementsByTagName("ul")[0].style.visibility="visible"
					this.getElementsByTagName("ul")[0].style.zIndex=0
    	}
    	ultags[t].parentNode.onmouseout=function(){
					this.style.zIndex=0
					this.getElementsByTagName("ul")[0].style.visibility="hidden"
					this.getElementsByTagName("ul")[0].style.zIndex=100
    	}
    }
  }
}

if (window.addEventListener)
window.addEventListener("load", createcssmenu2, false)

else if (window.attachEvent)
window.attachEvent("onload", createcssmenu2)