function load(file){ 
  
  var iframe = document.getElementById('frame'); 

  iframe.src = file; 
  iframe.id = 'frame'; 
  iframe.width = '700px'; 
  iframe.height = '3100px'; 
  iframe.frameborder = '0'; 
  iframe.scrolling = 'no'; 

} 



// Style Switcher

// Suckerfish Dropdown

startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";}
node.onmouseout=function() {
this.className=this.className.replace("over", "");}}}}}
window.onload=startList;



// Pop Up Window

var win=null;
function popup(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}


// Swap Image

function preloadImages() {
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=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 findObj(n, d) {
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=findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function swapImage() {
var i,j=0,x,a=swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}



	function toggle(thediv) { 
	document.getElementById("buysearch").style.display = "none"; 
	document.getElementById("rentsearch").style.display = "none"; 
	document.getElementById(thediv).style.display = "block"; 
	} 
	
	
	
	function toggle1(thediv) { 
	document.getElementById("searchsqft").style.display = "none"; 
	document.getElementById("searchweb").style.display = "none"; 
	document.getElementById(thediv).style.display = "block"; 
	} 

	
	
	
	
	
	function openTarget (form, features, windowName) {
  if (!windowName)
    windowName = 'formTarget' + (new Date().getTime());
  form.target = windowName;
  open ('', windowName, features);
}

	function check ( box ) {
		boxy = document.getElementById(box);
		boxy.checked = !boxy.checked;
		return true;
	}

