	var DoOnLoad = false;
	var wResize = false;

	var base= ""
	var nrm = new Array();
	var omo = new Array();
	//Images
	var stuff = new Array();
	
	function winResize() 
	{
		window.onresize = resizeDiv;
	}
	
	// preload images
	if (document.images)
	{   
		for (i=0;i<stuff.length;i++)
		{
			nrm[i] = new Image;
			nrm[i].src = base + stuff[i];
			omo[i] = new Image;
			omo[i].src = base + stuff[i];
		}
	}


	// The functions: first mouseover, then mouseout

	function over(no)
	{
		if (document.images)
		{
			document.images[stuff[no]].src = omo[no].src
		}
	}

	function out(no)
	{
		if (document.images)
		{
			document.images[stuff[no]].src = nrm[no].src
		}
	}

	//function to do highlighting of menu
	BgMenu1Over='#ff9900';
	BgMenu1Out='#ffffff';
	
	BgMenu2Over='#FFCC66';
	BgMenu2Out='#FFCC99';
			
	function ChangeMenuBgColor(id, color)
	{
		var el1 = getCell(id + '_1');
		el1.bgColor = color;
		var el2 = getCell(id + '_2');
		el2.bgColor = color;
	}
	
	function getCell(id)
	{
		return document.all ? document.all(id) : document.getElementById ? document.getElementById(id) : document.layers ? document['NS_' + id].document.layers[0] : null
	}

	var Browser = CheckBrowser();
	
		
	//Returns the document object
	function getImage(id)
	{
		if (Browser.IE4plus || Browser.IEmac) return document.all[id];
		if (Browser.NS4) return document.images[id];		
		if (Browser.NS6) return document.getElementById(id);
	}
	
	//Returns the document object
	function getElement(id)
	{
		if (Browser.IE4plus || Browser.IEmac) return document.all[id];
		if (Browser.NS4) return document[id];		
		if (Browser.NS6) return document.getElementById(id);
	}


	function SwapClass(id, className)
	{
		var el = getElement(id).className = className;
	}

	function CheckBrowser()
	{
		var br = new Object();
		br.isMac = (navigator.appVersion.indexOf("Mac")!=-1) ? true : false;
		br.NS4 = (document.layers) ? true : false;
		br.IEmac = ((document.all)&&(br.isMac)) ? true : false;
		br.IE4plus = (document.all) ? true : false;
		br.IE4 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 4.")!=-1)) ? true : false;
		br.IE5 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 5.")!=-1)) ? true : false;
		br.IE6 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 6.")!=-1)) ? true : false;
		ver4 = (br.NS4 || br.IE4plus) ? true : false;
		br.NS6 = (!document.layers) && (navigator.userAgent.indexOf('Netscape')!=-1)?true:false;
	
		br.IE5plus = br.IE5 || br.IE6;
		br.IEMajor = 0;
	
		if (br.IE4plus)
		{
			var start = navigator.appVersion.indexOf("MSIE");
			var end = navigator.appVersion.indexOf(".",start);
			br.IEMajor = parseInt(navigator.appVersion.substring(start+5,end));
			br.IE5plus = (br.IEMajor>=5) ? true : false;
		}
		return br
	}
		
	
	function OnLoadSpecs()
	{
		var cnt = 1;
		while (getCell('q'+ cnt + 'text'))
		{
			ToggleSpecs('q'+ cnt);
			cnt++;
		}
	}

	function ToggleSpecs(id)
	{
		var oImage = getCell(id + 'image');
		var oText = getCell(id + 'text');
		var oGutter = getCell(id + 'gutter');
		var oContent = getCell(id + 'content');
		if (oContent.style.display != 'none') 
		{
		//Show (expand)
			if (oImage) oImage.src = 'faqPlus.gif';
			if (oText) oText.style.color = '#000000';
			if (oGutter) oGutter.style.display = '';
			if (oContent) oContent.style.display = 'none';
		}else{
		//Hide (collapse)
			if (oImage) oImage.src = 'faqMinus.gif';
			if (oText) oText.style.color = '#FF9900'; 
			if (oGutter) oGutter.style.display = 'none';
			if (oContent) oContent.style.display = '';
		}
	}
	
	function contextPopup(url) {
		var wincontext = window.open(url, 'wincontext', 'width=357,height=425,scrollbars=no,resizable=no,toolbar=no,location=no,directories=no,menubar=no,status=yes');
		wincontext.focus();
	}
	
	function MM_swapImgRestore() { //v3.0
	  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
	}
	
	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 MM_findObj(n, d) { //v4.0
	  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	  if(!x && document.getElementById) x=document.getElementById(n); return x;
	}
	
	function MM_swapImage() { //v3.0
	  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
	}

		function switchImg(firstimage,firstsrc){
			if (document.images) {
			document.images[firstimage].src = firstsrc;
			}
		}
		
		function openWin_shop(url)
		{
	 	obj=open(url, "shop_popup", "width=400,height=314,directories=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no")
	 	obj.window.focus()
		}

		function MM_openBrWindow(theURL,winName,features) { //v2.0
		  window.open(theURL,winName,features);
		}
		
		function launchWindow(url,name) {
			win=window.open(url,name)
		}
			
		function rollover(theimage) {
			document[theimage].src = eval(theimage + '_on.src')
		}
		
		function rollout(theimage) {
			document[theimage].src = eval(theimage + '_off.src');
		}
			
		function popupCentre(url,name,width,height) {
			var titleBarHeight, windowBorderWidth
			titleBarHeight = 24
			windowBorderWidth = 4
		
			var screenWidth, screenHeight
			screenWidth = 800
			screenHeight = 600
		
			if (window.screen) {
				if (window.screen.availWidth) {
					// ok browser has the appropriate properties we need to centre it
					screenWidth = window.screen.availWidth
					screenHeight = window.screen.availHeight
				}
			}
		
			var windowWidth = windowBorderWidth + width + windowBorderWidth
			var windowHeight = titleBarHeight + height + windowBorderWidth
		
			var left = (screenWidth - windowWidth) / 2
			var top = (screenHeight - windowHeight) / 2
		
			win=window.open(url,name,'left='+left+',top='+top+',screenX='+left+',screenY='+top+',width='+width+',height='+height+',scrollbars=0,resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0,copyhistory=0')
			if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
		}

		 function cmsOpenPopup
		 (href, name, width, height, x, y, menu, status, scroll, loc, resize, title, toolbar){
			 var attributes = '';
			 if (width.length > 0) attributes = attributes + ',width=' + width;
			 if (height.length > 0) attributes = attributes + ',height=' + height;
			 if (x.length > 0) attributes = attributes + ',screenx=' + x;
			 if (x.length > 0) attributes = attributes + ',left=' + x;
			 if (y.length > 0) attributes = attributes + ',screeny=' + y;
			 if (y.length > 0) attributes = attributes + ',top=' + y;
			 attributes = attributes + ',menubar=' + (menu==1?'yes':'no');
			 attributes = attributes + ',status=' + (status==1?'yes':'no');
			 attributes = attributes + ',scrollbars=' + (scroll==1?'yes':'no');
			 attributes = attributes + ',location=' + (loc==1?'yes':'no');
			 attributes = attributes + ',titlebar=' + (title==1?'yes':'no');
			 attributes = attributes + ',toolbar=' + (toolbar==1?'yes':'no');
			 attributes = attributes + ',resizable=' + (resize==1?'yes':'no');
			 attributes = attributes.substring(1,attributes.length);
			 var cmsPopup = window.open(href, name, attributes)
		 }

		//WAP pop up window
		function wapPopUp() {
	      wapWindow = window.open('http://secure.mouse2mobile.com/clients/hellomoto/launch.asp?sharedSecret=dfjksntr89we', 'wap', 'resizable=yes,width=390,innerwidth=390,height=520,innerheight=520');
		}
	
	   //Java Session pop up window
		function javaPopUp() {
	      javaWindow = window.open('https://secure.mouse2mobile.com/clients/motography/default.asp', 'java', 'resizable=yes,width=390,innerwidth=390,height=520,innerheight=520');
		}
		
	   //function to close a window
		function closeWin(){
		 aWindow = window.close()
		}
   
   
		//function to open popup window for country purchase
		function openLargePopupWin(URL) {
		  aWindow = window.open(URL,"largepopup","toolbar=no,width=750,height=620,status=no,scrollbars=auto,resizable=no,menubar=no");
		} 
   
		function openInfoWin(URL) {
		aWindow = window.open(URL,"thewindow","toolbar=no,width=450,height=320,status=no,scrollbars=auto,resizable=no,menubar=no");
		}

		function openWin_shop(url)
		{
	 	obj=open(url, "shop_popup", "width=450,height=314,directories=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no")
	 	obj.window.focus()
		}

		//function to open popup window for Right Now Integration
		function openLargePopupWin2(URL) {
		  aWindow = window.open(URL,"largepopup","toolbar=no,width=750,height=580,status=no,scrollbars=yes,resizable=yes,menubar=no");
		}
		
		
		
