// JavaScript Document
function mmLoadMenus() {
		
	if (window.mm_menu_1) return;
	
	window.mm_menu_1_1 = new Menu("Specialised&nbsp;services",160,20,"Verdana, Arial, Helvetica, sans-serif",10,"#ffffff","#000000","#CF0A02","#DFDDDE","left","middle",3,0,100,-260,0,true,true,true,0,true,true);
	mm_menu_1_1.addMenuItem("Our Service to you is Free","location.href='service.html'");
	mm_menu_1_1.addMenuItem("More Choice, Less Time","location.href='servicemorechoice.html'");
	mm_menu_1_1.addMenuItem("Impartiality","location.href='serviceimpartiability.html'");
	mm_menu_1_1.hideOnMouseOut=true;
	mm_menu_1_1.menuBorder=1;
	mm_menu_1_1.menuLiteBgColor='#ffffff';
	mm_menu_1_1.menuBorderBgColor='#C5C4C5';
	mm_menu_1_1.bgColor='#ffffff';
	//alert(window.mm_menu_1_1);

	window.mm_menu_1_2 = new Menu("Charter&nbsp;services",100,20,"Verdana, Arial, Helvetica, sans-serif",10,"#ffffff","#000000","#CF0A02","#DFDDDE","left","middle",3,0,100,-260,0,true,true,true,0,true,true);
	mm_menu_1_2.addMenuItem("Residential","location.href= 'pdtresidential.html'");
	mm_menu_1_2.addMenuItem("Commercial","location.href= 'commercial.html'");
	mm_menu_1_2.addMenuItem("Debt Reduction","location.href= 'debtreduction.html'");
	mm_menu_1_2.addMenuItem("Personal Loans","location.href= 'personalloans.html'");
	mm_menu_1_2.hideOnMouseOut=true;
	mm_menu_1_2.menuBorder=1;
	mm_menu_1_2.menuLiteBgColor='#ffffff';
	mm_menu_1_2.menuBorderBgColor='#C5C4C5';
	mm_menu_1_2.bgColor='#ffffff';

	window.mm_menu_1_3 = new Menu("Parents",180,20,"Verdana, Arial, Helvetica, sans-serif",10,"#ffffff","#000000","#CF0A02","#DFDDDE","left","middle",3,0,100,-260,0,true,true,true,0,true,true);
	mm_menu_1_3.addMenuItem("How much can I borrow?","location.href= 'borrowcalc.html'");
	mm_menu_1_3.addMenuItem("What will my repayments be?","location.href= 'repaycalc.html'");
	mm_menu_1_3.hideOnMouseOut=true;
	mm_menu_1_3.menuBorder=1;
	mm_menu_1_3.menuLiteBgColor='#ffffff';
	mm_menu_1_3.menuBorderBgColor='#C5C4C5';
	mm_menu_1_3.bgColor='#666666';	
	

	window.mm_menu_1 = new Menu("root",161,20,"Verdana, Arial, Helvetica, sans-serif",14,"#990000","#ece9d8","#cccccc","#000084","left","middle",3,0,1000,-260,0,true,true,false,0,true,true);
	mm_menu_1.addMenuItem(mm_menu_1_1);		
	mm_menu_1.hideOnMouseOut=true;
	mm_menu_1.childMenuIcon="arrows.gif";
	mm_menu_1.menuBorder=1;
	mm_menu_1.menuLiteBgColor='#ffffff';
	mm_menu_1.menuBorderBgColor='#555555';
	mm_menu_1.bgColor='#555555';
	mm_menu_1.writeMenus();
}
temp_var=415;
var x_pos=temp_var;
function checkBrowser(){
	this.ver=navigator.appVersion;
	this.dom=document.getElementById?1:0;
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	this.opera=!(this.ie5 || this.ie4 || this.ns4 || this.ns5) && this.dom;
	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5);
	return this;
}
/*function reloadmenu(){	

	var bw=new checkBrowser()
	var temp_x=(bw.ns4 || bw.ns5)?innerWidth:document.body.clientWidth;	
	if(temp_x>800)
		x_pos=(temp_x-620);		
	else
		x_pos=157;
	x_pos1=x_pos+155;
	x_pos2=x_pos1+155;
	x_pos3=x_pos2+155+155;
	x_pos4=x_pos2+155;
	
}*/

function reloadmenu(){	

	var bw=new checkBrowser()
	var temp_x=(bw.ns4 || bw.ns5)?innerWidth:document.body.clientWidth;	
	//alert(temp_x);
	if(bw.ns4 || bw.ns5){
		if(temp_x>1024){
			x_pos=(((temp_x/2)-504)+temp_var);
		}
		else{
			x_pos=temp_var;			
		}
	}
	else{
		if(temp_x>1024){
			x_pos=(((temp_x/2)-506)+temp_var);			
		}
		else
			x_pos=temp_var;
	}
	//alert(x_pos);
	x_pos1=x_pos+88;
	x_pos2=x_pos1+170;
	x_pos3=x_pos2+86+86;
	x_pos4=x_pos2+86;
	
}
window.onresize=reloadmenu;
window.onload=reloadmenu;
function findPos(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		curleft = obj.offsetLeft
		curtop = obj.offsetTop
		while (obj = obj.offsetParent) {
			curleft += obj.offsetLeft
			curtop += obj.offsetTop
		}
	}
	return curleft ;
}

function pop_spec(specfor) {
	win=window.open('spec.php?pic='+specfor,'specsheet','width=601, height=740, menubar=no, toolbalr=no, scrollbars=yes');
	win.focus();
}