var IE = document.all?true:false;
if (!IE) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove = getMouseXY;
var x = 0;
var y = 0;
function getMouseXY(e) {
if (IE) {  
x = event.clientX + document.body.scrollLeft;
y = event.clientY + document.body.scrollTop;
}
else { x = e.pageX;y = e.pageY;
}  
if (x < 0){x = 0;} if (y < 0){y = 0;}  
var c = document.getElementById("wrapper").offsetLeft;

if(navigator.appName == "Microsoft Internet Explorer") 
{ y = y - 1; } else { y = y - 5;   }
x = x + 254;
return true;
}

function PopupPic(sPicURL)
{
window.open("/app/popup.htm?"+sPicURL,"","menubar='no',status='no',resizable='no',HEIGHT=200,WIDTH=200");
}
function goBig(img_src) {
	var bThumb = document.getElementById("bigThumb");
	if(bThumb.src != img_src.src) {
		bThumb.src = img_src.src;
	}
}
var panels = new Array('panel1', 'panel2', 'panel3'); // IDs of the content panels must be put here
var tabs = new Array('tab1', 'tab2', 'tab3'); // IDs of the tabs must be put here
function displayPanel(nval)
{
 for(i = 0; i < panels.length; i++)
 {
	 document.getElementById(panels[i]).style.display = (nval-1 == i) ? 'block':'none';
	 document.getElementById(tabs[i]).className=(nval-1 == i) ? 'tab_sel':'tab';
 }
}
function GoListing()
{  window.location.hash ="Listing"; }
function GoMap()
{  window.location.hash ="Map"; }

function moreinfo(id){
	iwindow = dhtmlwindow.open('divbox', 'div', 'moreinfo', 'Lead Form', 'width=360px,height=500px,left=200px,top=150px,center=1')
    document.getElementById("MLS_ID").value = id;
} 
function VLogin()
{
alert("Your not logged as visitor...!");	
window.location = '/visitor/';
}

