
/* redirect incompatible browser versions and/or types.
   checking for version 3 or less and webtv */
function checkbrow(){
var agt = navigator.userAgent.toLowerCase(); 
	if ((navigator.appVersion.charAt(0) < 4) || (agt.indexOf('webtv') != -1)) {
		window.location="/upgrade.htm";
	}
}	 
checkbrow();

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


//browser status bar
window.defaultStatus = '::: IDX Group, Inc. ::: we are your e-business partner.'; 

function PrintDate()    {
var months=new Array(13);
months[1]="1";
months[2]="2";
months[3]="3";
months[4]="4";
months[5]="5";
months[6]="6";
months[7]="7";
months[8]="8";
months[9]="9";
months[10]="10";
months[11]="11";
months[12]="12";

var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year = time.getYear();
// Add correct century to year
        if (year < 1000)
                year = year + 1900;
document.write("<center><font face='verdana, geneva, arial, sans-serif' color='353D95' size='1'>");
document.write(lmonth + "." + date + "." + year + "</font></center>");
}


//--> IDX Group, Inc.  (c) 2002
function openIDXwindow(myURL, x, y) {
var xMax=640, yMax=480; // default
if (document.all) var xMax = screen.width, yMax = screen.height;
else if (document.layers) var xMax = window.outerWidth, yMax = 
window.outerHeight;
var xOffset = ((xMax - x) / 2 - 25), yOffset = ((yMax - y) / 2) + 75;
msgWindow2 = 
window.open('','newWin','width='+x+',height='+y+',resizable=yes,toolbar=no,scrollbars=yes,screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');
msgWindow2.location.href = myURL;
}
function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}

function AutoReszWindow(theURL,winName,width,height,features) { 
	if(window.screen){
		per_ancho=(width/800)*100;
		per_alto=(height/width)*100;
		win_ancho=(screen.width*per_ancho)/100;
		win_alto=(win_ancho*per_alto)/100;
		x=(screen.width-win_ancho)/2 ;//center x
		y=(screen.height-win_alto)/2;//center y
	}else{
		x=0;
		y=0;
		win_ancho=w;
		win_alto=y;
	}
	winfeatures=("top="+y+",left="+x+",width="+win_ancho+",height="+win_alto+","+features);
	window.open(theURL,winName,winfeatures);
}

function preload(imgObj,imgSrc) {
	if (document.images) {
		eval(imgObj+' = new Image()');
		eval(imgObj+'.src = "'+imgSrc+'"');
	}
}
function changeImage(layer,imgName,imgObj) {
	if (document.images) {
		if (document.layers && layer!=null) eval('document.images["'+imgName+'"].src = '+imgObj+'.src');
		else document.images[imgName].src = eval(imgObj+".src");
	}
}