/* _________________________________________________________________________________________________________________________

General Site variables script
__________________________________________________________________________________________________________________________*/

pagelink		= document.location
pagename		= document.title
sitename		= 'Moving House [uk] Ltd.'
siteurl			= 'http://www.movinghouseltd.co.uk'
developer		= 'Peaknet LTD'
developerurl		= 'http://www.peaknet.co.uk'
setupdomain		= 'http://test.'
defaultStatus		= siteurl + ' ¦ ' + pagename
software		= navigator.appName
version			= parseInt(navigator.appVersion);
freephone		= "0800 587 2007";
phone			= "020 7936 9055";
fax			= "020 7936 9100";
directdial		= "020 7936 9512";

/* _________________________________________________________________________________________________________________________

NEW Detect for correct browser to determine CSS file
__________________________________________________________________________________________________________________________*/

if (document.all)					{ browser="ie"; }
else if	(document.layers)		 		{ browser="n4"; }   
else if (!document.all && document.getElementById && software=="Opera")	{ browser="Opera"; }
else if (!document.all && document.getElementById)	{ browser="n6"; }
else if (software=="")					{ browser="Mozilla"; }

/* _________________________________________________________________________________________________________________________

Print the year
__________________________________________________________________________________________________________________________*/

var now		= new Date
thisyear	= now.getYear()

if (thisyear <= 1900) { thisyear = thisyear + 1900 }

/* _________________________________________________________________________________________________________________________

Previous page
__________________________________________________________________________________________________________________________*/

function goBack()
{
history.go(-1);
}

/* _________________________________________________________________________________________________________________________

MENU slide controls
__________________________________________________________________________________________________________________________*/
/*****commented out for new site *********

function setStyleById(i, p, v)

{
var n = document.getElementById(i);
n.style[p] = v;
}

	var rangeRef, styleObj, endObj;
    
	layerSwitch="document.all";
	styleSwitch=".style";
	
	 
new ypSlideOutMenu("001", "down", 200, 300, 250, 300);
new ypSlideOutMenu("002", "down", 200, 300, 250, 300);
new ypSlideOutMenu("003", "down", 200, 300, 250, 300);

function moveMenu(MenuName) {
var oSource = event.srcElement;
 if (oSource != '') {
var Left = getPageLeft(oSource) ;
var Top = getPageTop(oSource) ;
var MenuChild = window.document.all[(MenuName)];   
MenuChild.style.left = Left - 15; 
MenuChild.style.top = Top + 21; 
}
}

**** commented out for new site *************/
function getPageLeft(obj) {
	
		var goUp = 0;
		var parent = obj;

		while (parent && parent.tagName != "BODY" &&
			parent.tagName != "HTML") {
				goUp += parent.offsetLeft;
				parent = parent.offsetParent;
		}

		return goUp;
	}


function getPageTop(obj) {
	
		var goUp = 0;
		var parent = obj;

		while (parent && parent.tagName != "BODY" &&
			parent.tagName != "HTML") {
				goUp += parent.offsetTop;
				parent = parent.offsetParent;
		}

		return goUp;
	}

/* _________________________________________________________________________________________________________________________

Output the Footer menu items
__________________________________________________________________________________________________________________________*/

function footMenu()
{
document.write('<P title=menu class=footbits>');
document.write('<A href="/" title="Home page ..." class="footurls"><b>Home page</b></a> ¦ ');
document.write('<A href=/About_Moving_House_Conveyancing.move title="Background information about Moving House [UK] Ltd ..." class=footurls>About us</a> ¦ ');
document.write('<A href=/Contact.move title="How to contact us ..." class=footurls>Contact us</a> &brvbar; ');
document.write('<A href=/Login.move title="Existing customers can check for updates here ..." target=_top class=footurls>Log-in</a> &brvbar; ');
document.write('<A href=/Privacy.move title="Important - please read ..." target=_top class=footurls>Privacy Policy</a> &brvbar; ')
document.write('<A href=/Terms.move title="Important - please read ..." class="footurls">Terms of use</a> &brvbar; ')
document.write(' &copy; ' +thisyear+ '</P>')
}

/* =========================================================================================================================
End of file
========================================================================================================================= */

function iFrame()
{
document.write('Iframe Here!');
}




function UpdateNetFee()
{
	if(document.ObjectForm.floCaseFee)
	{
		floDiscount = 0;
		if(document.ObjectForm.floDiscount)
		{
			floDiscount = parseInt(document.ObjectForm.floDiscount.value * 100)/100;
		}
		floCaseFee  = parseInt(document.ObjectForm.floNetFee.value * 100)/100;
		floCaseFee += parseInt(document.ObjectForm.floMHCFee.value * 100)/100;
		//floCaseFee -= floDiscount;
		
		//if(document.ObjectForm.floCommissionFee)
		//{
		//	floCaseFee += parseInt(document.ObjectForm.floCommissionFee.value * 100)/100;
		//}
		
		document.ObjectForm.floCaseFee.value = '£' + floCaseFee;
	}
}


