


simplePreload( './images/home0.jpg', './images/homeover.jpg','./images/How_It_Worksover.jpg','./images/How_It_Works0.jpg','./images/individualsover.jpg', './images/individuals0.jpg','./images/enquiry0.jpg', './images/enquiryover.jpg'
					  , './images/professionals0.jpg', './images/professionalsover.jpg','./images/contact0.jpg', './images/contactover.jpg');
					 
		
	function simplePreload()
	{
	
	var args = simplePreload.arguments;
	
	document.imageArray = new Array(args.length);
	
	for(var i=0; i<args.length; i++)
	
	{
	
	document.imageArray[i] = new Image;
	
	document.imageArray[i].src = args[i];
	
	}
	
	}
	var menuhow=new Array();
	var menuhome=new Array();
	var menuindividuals=new Array();
	//Contents for menu Service
	var menuhow=new Array();
	menuhow[0]=''			
	menuhow[1]='<a href="./Insolvency.php" onMouseover="dropdownmenu(this, event, menuhome, \'150px\', \'Insolvency.php\')" onMouseout="delayhidemenu(); dropdownmenuOut(this, event, menuhome, \'150px\', \'Insolvency.php\');"> Insolvency</a>'
	menuhow[2]='<a href="./Corporate_Restructuring.php" onMouseover="dropdownmenu(this, event, menuhome, \'150px\', \'Corporate_Restructuring.php\')" onMouseout="delayhidemenu(); dropdownmenuOut(this, event, menuhome, \'150px\', \'Corporate_Restructuring.php\');">Corporate Restructuring</a>'
	menuhow[3]='<a href="./Receivables_Management.php" onMouseover="dropdownmenu(this, event, menuhome, \'150px\', \'Receivables_Management.php\')" onMouseout="delayhidemenu(); dropdownmenuOut(this, event, menuhome, \'150px\', \'Receivables_Management.php\');">Receivables &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Management </a>'
	menuhow[4]='<a href="./Resource_Funding.php" onMouseover="dropdownmenu(this, event, menuhome, \'150px\', \'Resource_Funding.php\')" onMouseout="delayhidemenu(); dropdownmenuOut(this, event, menuhome, \'150px\', \'Resource_Funding.php\');"> Rescue Funding</a>'
	menuhow[5]='<a href="./Asset_Management.php" onMouseover="dropdownmenu(this, event, menuhome, \'150px\', \'Asset_Management.php\')" onMouseout="delayhidemenu(); dropdownmenuOut(this, event, menuhome, \'150px\', \'Asset_Management.php\');">Asset Management </a>'
	//Contents for menu Contact
	var menuenq=new Array();
	var menuproo=new Array();
	//menuproo[0]	='<img id="spacer" src="./images/semi_trans_bg.gif" border="0" height="5px" width="100%">'		
	//menuproo[1]	='<a href="./how_it_works.php" onMouseover="dropdownmenu(this, event,menuhome, \'150px\', \'how_it_works.php\')" onMouseout="delayhidemenu(); dropdownmenuOut(this, event, menuhome, \'150px\', \'how_it_works.php\');">How it works </a>'
	//menuproo[2]	='<a href="./who_it_affects.php" onMouseover="dropdownmenu(this, event,menuhome, \'150px\', \'who_it_affects.php\')" onMouseout="delayhidemenu(); dropdownmenuOut(this, event, menuhome, \'150px\', \'who_it_affects.php\');">Who it affects?</a>'
	//menuproo[3]	='<a href="./benefits_restrictions.php" onMouseover="dropdownmenu(this,event,menuhome, \'150px\', \'benefits_restrictions.php\')" onMouseout="delayhidemenu(); dropdownmenuOut(this, event, menuhome, \'150px\', \'benefits_restrictions.php\');">The Benefits</a>'
	//menuproo[4]	=	'<a href="./insol_group_plc.php" onMouseover="dropdownmenu(this, event, menuhome, \'150px\', \'.php\')" onMouseout="delayhidemenu(); dropdownmenuOut(this, event, menuhome, \'150px\', \'insol_group_plc.php\');">Insol Group Plc</a>'
	var menuinsol=new Array();
	var menucont=new Array()
	/*menusupport[0]='<img id="spacer" src="./Images/semi_trans_bg.gif" border="0" height="3px" width="100%">'
	menusupport[1]='<a href="./commitment.html"><img id="dot" src="./Images/dot_new.png" border="0"> Commitments</a>'
	menusupport[3]='<img id="trans" src="./Images/semi_trans.gif" border="0" height="8px" width="100%">'
	*/
	var menuwidth='175px' //default menu width
	var menubgcolor='transparent'  //menu bgcolor
	var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
	var hidemenu_onclick="yes" //hide menu when user clicks within menu?
	
	/////No further editting needed
	
	var ie4=document.all
	var ns6=document.getElementById&&!document.all
	
	if (ie4||ns6)
	document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')
	
	function getposOffset(what, offsettype){
	var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
	var parentEl=what.offsetParent;
	while (parentEl!=null){
	totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
	parentEl=parentEl.offsetParent;
	}
	return totaloffset;
	}
	
	
	function showhide(obj, e, visible, hidden, menuwidth){
	if (ie4||ns6)
	dropmenuobj.style.left=dropmenuobj.style.top="-500px"
	if (menuwidth!=""){
	dropmenuobj.widthobj=dropmenuobj.style
	dropmenuobj.widthobj.width=menuwidth
	}
	if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
	obj.visibility=visible
	else if (e.type=="click")
	obj.visibility=hidden
	}
	
	function iecompattest(){
	return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
	}
	
	function clearbrowseredge(obj, whichedge){
	var edgeoffset=0
	if (whichedge=="rightedge"){
	var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
	dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
	if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
	edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
	}
	else{
	var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
	var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
	dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
	if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
	edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
	if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
	edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
	}
	}
	return edgeoffset
	}
	
	function populatemenu(what,menuwidth){
	//	alert(menuwidth);
	//menuwidth	=	menuwidth-25;	
	menuwidth	=	menuwidth.substring(0,menuwidth.length -2);
	menuwidth	=	menuwidth-12;
	//alert(menuwidth);
	if (ie4||ns6)
	dropmenuobj.innerHTML=what.join("");
	}
	
	
	function dropdownmenu(obj, e, menucontents, menuwidth, menusel){
		if( (menusel=='Asset_Management.php') || (menusel=='Corporate_Restructuring.php') || (menusel=='Insolvency.php') || (menusel=='Receivables_Management.php') || (menusel=='Resource_Funding.php')){
			menusel='how_it_works.php';
			}
		/*switch(menusel)
			{
			case "lighthousenews.php":
				document.getElementById('home').src = 'images/homeover.jpg';
			  document.getElementById('induvidual').src = 'images/individuals0.jpg';
			  document.getElementById('enquiry').src = 'images/enquiry0.jpg';
			  document.getElementById('proffession').src = 'images/professionals0.jpg';
				document.getElementById('insolvency').src = 'images/insolvency.jpg';
			  document.getElementById('contact').src = 'images/contact0.jpg';
			  document.getElementById('howitworks').src = 'images/How_It_Works0.jpg';
			  break
			case "index.php":
			  document.getElementById('home').src = 'images/homeover.jpg';
			  document.getElementById('induvidual').src = 'images/individuals0.jpg';
			  document.getElementById('enquiry').src = 'images/enquiry0.jpg';
			  document.getElementById('proffession').src = 'images/professionals0.jpg';
				document.getElementById('insolvency').src = 'images/insolvency.jpg';
			  document.getElementById('contact').src = 'images/contact0.jpg';
			  document.getElementById('howitworks').src = 'images/How_It_Works0.jpg';
			  break
			case "individuals.php":
			  document.getElementById('home').src = 'images/home0.jpg';
			  document.getElementById('induvidual').src = 'images/individualsover.jpg';
			  document.getElementById('enquiry').src = 'images/enquiry0.jpg';
			  document.getElementById('proffession').src = 'images/professionals0.jpg';
				document.getElementById('insolvency').src = 'images/insolvency.jpg';
			  document.getElementById('contact').src = 'images/contact0.jpg';
			  document.getElementById('howitworks').src = 'images/How_It_Works0.jpg';
			  break
			case "how_it_works.php":
				document.getElementById('home').src = 'images/home0.jpg';
				document.getElementById('induvidual').src = 'images/individuals0.jpg';
				document.getElementById('enquiry').src = 'images/enquiry0.jpg';
				document.getElementById('proffession').src = 'images/professionals0.jpg';
				document.getElementById('insolvency').src = 'images/insolvency.jpg';
				document.getElementById('contact').src = 'images/contact0.jpg';
				document.getElementById('howitworks').src = 'images/How_It_Worksover.jpg';
				break
			case "insolvencynotices.php":
				document.getElementById('home').src = 'images/home0.jpg';
				document.getElementById('induvidual').src = 'images/individuals0.jpg';
				document.getElementById('enquiry').src = 'images/enquiry0.jpg';
				document.getElementById('proffession').src = 'images/professionals0.jpg';
				document.getElementById('insolvency').src = 'images/insolvency_selected.jpg';
				document.getElementById('contact').src = 'images/contact0.jpg';
				document.getElementById('howitworks').src = 'images/How_It_Works0.jpg';
				break
			case "enquiry_directclient.php":
			  document.getElementById('home').src = 'images/home0.jpg';
			  document.getElementById('induvidual').src = 'images/individuals0.jpg';
			  document.getElementById('enquiry').src = 'images/enquiryover.jpg';
			  document.getElementById('proffession').src = 'images/professionals0.jpg';
				document.getElementById('insolvency').src = 'images/insolvency.jpg';
			  document.getElementById('contact').src = 'images/contact0.jpg';
			  document.getElementById('howitworks').src = 'images/How_It_Works0.jpg';
			  break
			case "enquiry_trustees.php":
			  document.getElementById('home').src = 'images/home0.jpg';
			  document.getElementById('induvidual').src = 'images/individuals0.jpg';
			  document.getElementById('enquiry').src = 'images/enquiryover.jpg';
			  document.getElementById('proffession').src = 'images/professionals0.jpg';
				document.getElementById('insolvency').src = 'images/insolvency.jpg';
			  document.getElementById('contact').src = 'images/contact0.jpg';
			  document.getElementById('howitworks').src = 'images/How_It_Works0.jpg';
			  break
			case "enquiry.php":
			  document.getElementById('home').src = 'images/home0.jpg';
			  document.getElementById('induvidual').src = 'images/individuals0.jpg';
			  document.getElementById('enquiry').src = 'images/enquiryover.jpg';
			  document.getElementById('proffession').src = 'images/professionals0.jpg';
				document.getElementById('insolvency').src = 'images/insolvency.jpg';
			  document.getElementById('contact').src = 'images/contact0.jpg';
			  document.getElementById('howitworks').src = 'images/How_It_Works0.jpg';
			  break
			 case "professionals.php":
			  document.getElementById('home').src = 'images/home0.jpg';
			  document.getElementById('induvidual').src = 'images/individuals0.jpg';
			  document.getElementById('enquiry').src = 'images/enquiry0.jpg';
			  document.getElementById('proffession').src = 'images/professionalsover.jpg';
				document.getElementById('insolvency').src = 'images/insolvency.jpg';
			  document.getElementById('contact').src = 'images/contact0.jpg';
			  document.getElementById('howitworks').src = 'images/How_It_Works0.jpg';
			  break
			 case "contactus.php":
			  document.getElementById('home').src = 'images/home0.jpg';
			  document.getElementById('induvidual').src = 'images/individuals0.jpg';
			  document.getElementById('enquiry').src = 'images/enquiry0.jpg';
			  document.getElementById('proffession').src = 'images/professionals0.jpg';
				document.getElementById('insolvency').src = 'images/insolvency.jpg';
			  document.getElementById('contact').src = 'images/contactover.jpg';
			  document.getElementById('howitworks').src = 'images/How_It_Works0.jpg';
			  break
			default:
			   document.getElementById('home').src = './images/homeover.jpg';
			}*/
	if(menucontents!=''){
	//alert(document.getElementById('home11').src);
	if (window.event) event.cancelBubble=true
	else if (e.stopPropagation) e.stopPropagation()
	clearhidemenu()
	
	dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
	populatemenu(menucontents,menuwidth)
		if (ie4||ns6){
		
		showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
		
		dropmenuobj.x=getposOffset(obj, "left")
		dropmenuobj.y=getposOffset(obj, "top")
		dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
		dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
	}
	return clickreturnvalue()
	}
	}
	function clickreturnvalue(){
	if (ie4||ns6) return false
	else return true
	}
	
	function contains_ns6(a, b) {
	while (b.parentNode)
	if ((b = b.parentNode) == a)
	return true;
	return false;
	}
	
	function dynamichide(e){
	if (ie4&&!dropmenuobj.contains(e.toElement))
	delayhidemenu()
	else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
	delayhidemenu()
	}
	
	function hidemenu(e){
	if (typeof dropmenuobj!="undefined"){
	if (ie4||ns6)
	dropmenuobj.style.visibility="hidden"
	}
	}
	
	function delayhidemenu(){
	if (ie4||ns6)
	delayhide=setTimeout("hidemenu()",disappeardelay)
	}
	
	function clearhidemenu(){
	if (typeof delayhide!="undefined")
	clearTimeout(delayhide)
	}
	
	if (hidemenu_onclick=="yes")
	document.onclick=hidemenu
	
	
	
	/*if(window.attachEvent)window.attachEvent("onload",resetStyles);
			function resetStyles(){
				unGoogle('INPUT');
				unGoogle('input');
				unGoogle('SELECT');
			}*/
			
			function unGoogle(){
	//			var t=document.getElementsByTagName(eleType);
				var t=document.forms[0].elements;
				for(var i=0;i<t.length;i++){
					//t[i].attachEvent('onpropertychange',resetCSS);
					t[i].style.backgroundColor='';
				}
				window.setTimeout("unGoogle()",500);
			}
			
	function resetCSS(){
		var s=event.srcElement.style;
		if(s.backgroundColor!='')s.backgroundColor='';
	}
			
function __fncShowPopUpMB(page){
	URL = page;
	day = new Date();
	id1 = day.getTime();
	eval("page" + id1 + " = window.open(URL, '" + id1 + "', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0,width=850,height=700,left = 10,top = 10');");
}

createCookie("k01", "none1", 365);
function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}
function eraseCookie(name) {
	createCookie(name,"",-1);
}
  function createCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}
function dropdownmenuOut(obj, e, menucontents, menuwidth, menusel)
{
	if( (menusel=='Asset_Management.php') || (menusel=='how_it_works.php') || (menusel=='Corporate_Restructuring.php') || (menusel=='Insolvency.php')  || (menusel=='Receivables_Management.php')  || (menusel=='Resource_Funding.php') )
		{
			menusel='how_it_works.php';
		}
	switch(menusel)	
			{
			case "index.php":
			  document.getElementById('home').src = 'images/homeover.jpg';
			  break
			case "individuals.php":
			  document.getElementById('induvidual').src = 'images/individualsover.jpg';
			  break
			case "Receivables_Management.php":
				 document.getElementById('howitworks').src = 'images/How_It_Worksover.jpg';
				 break
			case "enquiry_trustees.php":
				document.getElementById('enquiry').src = 'images/How_It_Worksover.jpg';
				 break
			case "insolvencynotices.php":
				document.getElementById('insolvency').src = 'images/insolvency_selected.jpg';
				 break
			case "enquiry.php":
			  document.getElementById('enquiry').src = 'images/enquiryover.jpg';
			  break
		 case "professionals.php":
			  document.getElementById('proffession').src = 'images/professionalsover.jpg';
			  break
		 case "how_it_works.php":
			  document.getElementById('howitworks').src = 'images/How_It_Worksover.jpg';
			  break
		 case "contactus.php":
			  break
			default:
			   document.getElementById('home').src = './images/home0.jpg';
			}
		var menusel = document.getElementById('txtSelectedMenu').value;
    	dropdownmenu(obj, e, menucontents, menuwidth, menusel);
}

