function MM_preloadImages() { 
  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_showHideLayers() {
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3)
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }

}



function printPartOfPage(elementId)
	{
	 var printContent = document.getElementById(elementId);
	 var windowUrl = 'about:blank';
	 var uniqueName = new Date();
	 var windowName = 'Print' + uniqueName.getTime();
	 var printWindow = window.open(windowUrl, windowName, 'left=50000,top=50000,width=0,height=0');
	 printWindow.document.write(printContent.innerHTML);
	 printWindow.document.close();
	 printWindow.focus();
	 printWindow.print();
	 printWindow.close();
	}
	
	
if (document.images) {
//Preload house image
var houseoff = new Image();
houseoff.src = "images/footer_house.gif";
var houseon = new Image();
houseon.src = "images/footer_house_ro.gif";
}

function swapImg(img,dir){
if (document.images){
	if(dir=="off"){document[img].src=eval(img+"off.src");}
	else if(dir=="on"){document[img].src=eval(img+"on.src");}
}
}

function open_window(url) {
		var win = window.open(url,'preWin','width=625,height=345,scrollbars=yes,resizable=1')
	}

