function dragMousePos(e) {
	//get the position of the mouse
	if( !e ) { e = window.event; } if( !e || ( typeof( e.pageX ) != 'number' && typeof( e.clientX ) != 'number' ) ) { return [0,0]; }
	if( typeof( e.pageX ) == 'number' ) { var xcoord = e.pageX; var ycoord = e.pageY; } else {
		var xcoord = e.clientX; var ycoord = e.clientY;
		if( !( ( window.navigator.userAgent.indexOf( 'Opera' ) + 1 ) || ( window.ScriptEngine && ScriptEngine().indexOf( 'InScript' ) + 1 ) || window.navigator.vendor == 'KDE' ) ) {
			if( document.documentElement && ( document.documentElement.scrollTop || document.documentElement.scrollLeft ) ) {
				xcoord += document.documentElement.scrollLeft; ycoord += document.documentElement.scrollTop;
			} else if( document.body && ( document.body.scrollTop || document.body.scrollLeft ) ) {
				xcoord += document.body.scrollLeft; ycoord += document.body.scrollTop; } } }
	return [xcoord,ycoord];
}

function dragIsDown(e) {
	//make note of starting positions and detect mouse movements
	if( ( e && ( e.which > 1 || e.button > 1 ) ) || ( window.event && ( window.event.which > 1 || window.event.button > 1 ) ) ) { return false; }
	if( document.onmouseup == dragIsMove ) { document.onmousemove = storeMOUSEMOVE; document.onmouseup = window.storeMOUSEUP; } //mouseup was over chrome
	window.msStartCoord = dragMousePos(e); window.lyStartCoord = this.style?[parseInt(this.style.left),parseInt(this.style.top)]:[parseInt(this.left),parseInt(this.top)];
	if( document.captureEvents && Event.MOUSEMOVE ) { document.captureEvents(Event.MOUSEMOVE); document.captureEvents(Event.MOUSEUP); }
	window.storeMOUSEMOVE = document.onmousemove; window.storeMOUSEUP = document.onmouseup; window.storeLayer = this;
	document.onmousemove = dragIsMove; document.onmouseup = dragIsMove; return false;
}

function dragIsMove(e) {
	//move the layer to its newest position
	var msMvCo = dragMousePos(e); if( !e ) { e = window.event ? window.event : ( new Object() ); }
	var newX = window.lyStartCoord[0] + ( msMvCo[0] - window.msStartCoord[0] );
	var newY = window.lyStartCoord[1] + ( msMvCo[1] - window.msStartCoord[1] );
	//reset the mouse monitoring as before - delay needed by Gecko to stop jerky response (hence two functions instead of one)
	//as long as the Gecko user does not release one layer then click on another within 1ms (!) this will cause no problems
	if( e.type && e.type.toLowerCase() == 'mouseup' ) { document.onmousemove = storeMOUSEMOVE; document.onmouseup = window.storeMOUSEUP; }
	if( navigator.product == 'Gecko' ) { window.setTimeout('dragIsMove2('+newX+','+newY+');',1); } else { dragIsMove2(newX,newY); }
}

function dragIsMove2(x,y) { var oPix = ( document.childNodes ? 'px' : 0 ), theLayer = ( window.storeLayer.style ? window.storeLayer.style : window.storeLayer ); theLayer.left = x + oPix; theLayer.top = y + oPix; }

//Above are functions for dragable layer

function launchQ(urlQ) {
urlQ+='?nav=1&x='+document.getElementById('nav').offsetLeft+'&y='+document.getElementById('nav').offsetTop;
 window.location=urlQ;
 }


var strQ = new Querystring();
var navQ = strQ.get('nav');
var navX = strQ.get('x');
var navY = strQ.get('y');

if(navQ=="1"){
 var mNav="hidden";var qNav="visible";
 }
else{
 var mNav="visible";var qNav="hidden";
 }
if(!navX){var navX='800';}
if(!navY){var navY='22';}

 
var HTML = ""
+"<div id=\"nav\" style=\"left:"+navX+"px; top:"+navY+"px;\" onmouseover=\"this.onmousedown=dragIsDown;\" ondragstart=\"return false;\" onselectstart=\"return false;\">"
+" <div id=\"mininav\" style=\"visibility:"+mNav+"\" >"
+"  <img class=\"nospace\" src=\"images//minilaunch_bgnd.png\" width=\"212px\" height=\"50px\" />"
+"  <a href=\"javascript:;\" id=\"quickXpand\" onmousedown=\"document.getElementById('mininav').style.visibility='hidden'; document.getElementById('quicknav').style.visibility='visible';\"><\/a>"
+" <\/div>"
+" <div id=\"quicknav\" style=\"visibility:"+qNav+"\" >"
+"  <img class=\"nospace\" src=\"images//quicklaunch_bgnd.png\" width=\"633px\" height=\"94px\" />"
+"  <a href=\"javascript:;\" id=\"quickXit\" onmousedown=\"document.getElementById('mininav').style.visibility='visible'; document.getElementById('quicknav').style.visibility='hidden';\"><\/a>"
+"  <div id=\"icostrip\">"
+"   <a href=\"javascript:launchQ('index.php');\" style=\"left:-550px;\"><img id=\"imgN1\" src=\"images//icons-home_off.png\" width=\"112px\" height=\"160px\" onmouseover=\"imgSwap(this);\" onmouseout=\"imgSwap(this);\" /><\/a>"
+"   <a href=\"javascript:launchQ('about_us.php');\" style=\"left:-450px;\"><img id=\"imgN2\" src=\"images//icons-about_off.png\" width=\"112px\" height=\"160px\" onmouseover=\"imgSwap(this);\" onmouseout=\"imgSwap(this);\" /><\/a>"
+"   <a href=\"javascript:launchQ('products.php');\" style=\"left:-350px;\" ><img id=\"imgN3\" src=\"images//icons-products_off.png\" width=\"112px\" height=\"160px\" onmouseover=\"imgSwap(this);\" onmouseout=\"imgSwap(this);\" /><\/a>"
+"   <a href=\"javascript:launchQ('enquiries.php');\" style=\"left:-250px;\" ><img id=\"imgN4\" src=\"images//icons-enquiries_off.png\" width=\"112px\" height=\"160px\" onmouseover=\"imgSwap(this);\" onmouseout=\"imgSwap(this);\" /><\/a>"
+"   <a href=\"javascript:launchQ('contact_us.php');\" style=\"left:-150px;\" ><img id=\"imgN5\" src=\"images//icons-contact_off.png\" width=\"112px\" height=\"160px\" onmouseover=\"imgSwap(this);\" onmouseout=\"imgSwap(this);\" /><\/a>"
+"  <\/div>"
+" <\/div>"
+"<\/div>";

document.write(HTML);
