function open_openhousewindow(url) {
window.open(url,"openhouse","width=500,height=200,top=0,left=0,resizable=yes,scrollbars=yes");
}
function open_tourwindow(url) {
window.open(url,"tourwindow","width=525, height=600, location=no,resizable=yes, scrollbars=yes");
}
function open_sentwindow(url) {
window.open(url,"emailwindow","width=500, height=525, location=no,resizable=no,scrollbars=yes");
}
function open_mapwindow(url) {
	window.open(url,"emailwindow","width=600, height=590, location=no,resizable=no,scrollbars=yes");
}
function open_agentwindow(url) {
window.open(url,"agentwindow","width=300, height=250, location=no,resizable=no,scrollbars=yes");
}
function open_sitewindow(url) {
window.open(url,"sitewindow","width=763, height=554, location=no,resizable=no,scrollbars=no");
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
function open_downloadtour(url) {
window.open(url,"download","width=300, height=200, location=no,resizable=no,scrollbars=yes");
}
function SetStillScene(fldStillIDs, url, activeID) {				
//document.getElementById("ViewerImg").src=url;				
document.images["ViewerImg"].src = url;
setcolor(fldStillIDs, activeID);
}
function SetVTScene(fldVTIDs, url, activeID) {				
document.panoapplet.Set_file(url);
document.panoapplet.ResetApplet();				
setcolor(fldVTIDs, activeID);
}
function setcolor(fldIDs, activeID) {

//Remove Border and color

var MediaIDs;
switch(fldIDs) {

	case "VTMediaIDs" :
		MediaIDs = document.form1.VTMediaIDs.value;
		break;
		
	case "StillMediaIDs" :
		MediaIDs = document.form1.StillMediaIDs.value;
		break;

}

var aryMedia = MediaIDs.split(",");
for (var i=0;i<aryMedia.length;i++)
{  
	document.getElementById("txt"+aryMedia[i]).className="UnSelThumb";
	document.getElementById("img"+aryMedia[i]).className="UnSeLImg";
}
		
document.getElementById("txt"+activeID).className="SelThumb";
document.getElementById("img"+activeID).className="SeLImg";

}
