function stopError() {
  return true;
}

function resize(){
	self.location.href=self.location.href;}
	
window.onerror = stopError;

window.onresize=resize;

if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;

// CALL TO CORRECT DIRECTORY BELOW - if you are on homepage you need <script> var homepage = "yes";</script> to make codework properly
var imgdir = "../images/";
var sitedir = "";
var securedir = "";
var homedir = "../";

// CALL TO CORRECT DIRECTORY ABOVE

//if you are on homepage you need <script> var homepage = "yes";</script> to make codework properly

var imgdir;
var sitedir;
var securedir;
var homedir;

if(window.homepage)
{
imgdir="images/";
sitedir="site";
securedir="site/";
homedir="";
}

else
{
imgdir="images/";
sitedir="";
securedir="";
homedir="";
}

// ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW
// ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW
// ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW

function makeNavImage(name,width,height)
{
this.name_on="nav-on-"+ name + ".jpg";
this.name_off="nav-off-"+ name + ".jpg";
this.width=width;
this.height=height;
this.newimage_on = new Image(width,height);
this.newimage_on.src = imgdir + this.name_on;
this.newimage_off = new Image(width,height);
this.newimage_off.src = imgdir + this.name_off;
}

browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
if (((browserName == "Netscape") && (browserVer >= 3)) || ((browserName =="Microsoft Internet Explorer") && (browserVer >= 4)))
{
version = "ok";

var nav_heights = 31;

var navitems = new Array(); 
navitems["ourlistings"] = new makeNavImage("ourlistings","106",nav_heights);
navitems["meetourteam"] = new makeNavImage("meetourteam","122",nav_heights);
navitems["solutions"] = new makeNavImage("solutions","182",nav_heights);
navitems["blog"] = new makeNavImage("blog","217","55");


}
else
version = "x";

function img_act(imgName)
{
if (version == "ok")
{
document [imgName].src = navitems[imgName].newimage_on.src;
}
}

function img_inact(imgName)
{
window.status = "";
 if (version == "ok")
{
document [imgName].src = navitems[imgName].newimage_off.src;
}
}

// ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE
// ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE
// ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE



// OTHER FUNCTIONS BELOW
function openWin(url,name,width,height,options){
var n = name;
var w = width;
var h = height;
var o = options;
n = (n==null)?"_blank":n;
w = (isNaN(w) || w==null)?700:w;
h = (isNaN(h) || h==null)?600:h;
o = (o==null)?"toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1":(o.indexOf(",")!=0)?","+o:o;

var posX = Math.ceil((parseInt(screen.width) - w) / 2);
var posY = Math.ceil((parseInt(screen.height) - h) / 2);
aWindow = window.open(url,n,"width=" + w + ",height=" + h + ",left=" + posX + ",top=" + posY + o);
}


function showWarning(URL)
{
	document.location = sitedir+"thirdparty.html?newUrl="+URL;
}	

function showLogin(signon)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 350)
var pHeight = (((parseInt(screen.height) / 2)) -240)
//window.open(signon,"hello","width=628,height=361,resizable=1,scrollbars=1");
window.open(signon,"hello","width=254,height=196,left=" + pWidth + ",top=" + pHeight + ",resizable=1,scrollbars=0");

}



function newWindow(page)
{
bWindow = window.open(page,'newWin');
	bWindow = null;
	return;
}

function openPDF(page)
{
bWindow = window.open(sitedir+page,'newWin');
	bWindow = null;
	return;
}

function setHeaderGraphic(graphic , alt_tag)
{
headergraphic = "";
if (!alt_tag)
var alt_tag = "";

if (graphic == null)
	{
	headergraphic = "";
	}
else
	{
	headergraphic = '<img src="' + imgdir + graphic + '" width="310" height="43" border="0" />';
	}	
	
	document.write(headergraphic);
	
}

function show_photos(buildday)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 275)
var pHeight = (((parseInt(screen.height) / 2)) -240)
window.open( "photos-" + buildday + ".html","hello","width=650,height=510,left=" + pWidth + ",top=" + pHeight + ",resizable=0,scrollbars=0");

}
// OTHER FUNCTIONS ABOVE