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

if(window.event + "" == "undefined") event = null;
// FOR HM_MENU BELOW
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;
//FOR HM_MENU ABOVE
//FOR COOLMENU BELOW
function showMenu(){return false};
function mout(){return false};
function dummyObject() {this.mout=mout};
oM = new dummyObject();
// FOR COOLMENU ABOVE

// 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 = "../";
if(window.homepage)
{
imgdir="images/";
sitedir="site/";
securedir="site/";
homedir="";
}
else if(window.absolutepage)
{
imgdir="http://www.gumenick.com/images/"
sitedir="http://www.gumenick.com"
securedir="http://www.gumenick.com"
homedir="http://www.gumenick.com"
}
else if(window.securepage)
{
imgdir="https://www.gumenick.com/images"
sitedir="http://www.gumenick.com"
securedir="https://www.gumenick.com"
homedir="http://www.gumenick.com"
}
// CALL TO CORRECT DIRECTORY ABOVE

// ROLLOVER CODE BELOW
function makeNavImage(name,width,height){
this.name_on="nav-" + name +"-on.gif";
this.name_off="nav-" + name +"-off.gif";
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;
}

var navitems = new Array();

navitems["home"] = new makeNavImage("home",20,127);

navitems["about"] = new makeNavImage("about",20,127);
navitems["aboutsuboverview"] = new makeNavImage("aboutsuboverview",135,35);
navitems["aboutsubawards"] = new makeNavImage("aboutsubawards",55,35);
navitems["aboutsubmission"] = new makeNavImage("aboutsubmission",54,35);
navitems["aboutsubvision"] = new makeNavImage("aboutsubvision",43,35);
navitems["aboutsubvalues"] = new makeNavImage("aboutsubvalues",49,35);
navitems["aboutsubhistory"] = new makeNavImage("aboutsubhistory",56,35);

navitems["communities"] = new makeNavImage("communities",20,127);
navitems["comsubhomes"] = new makeNavImage("comsubhomes",112,35);
navitems["comsubapmts"] = new makeNavImage("comsubapmts",87,35);
navitems["comsubother"] = new makeNavImage("comsubother",124,35);
navitems["comsubthreshold"] = new makeNavImage("comsubthreshold",81,35);

navitems["news"] = new makeNavImage("news",20,127);
navitems["newssubcurrentpr"] = new makeNavImage("newssubcurrentpr",171,35);
navitems["newssubarchpr"] = new makeNavImage("newssubarchpr",174,35);
navitems["newssubprojinfo"] = new makeNavImage("newssubprojinfo",152,35);

navitems["careers"] = new makeNavImage("careers",20,127);
navitems["careerssubjobs"] = new makeNavImage("careerssubjobs",149,35);
navitems["careerssubbenefits"] = new makeNavImage("careerssubbenefits",59,35);
navitems["careerssubrecprog"] = new makeNavImage("careerssubrecprog",156,35);

navitems["contact"] = new makeNavImage("contact",20,127);
navitems["contactsubindprop"] = new makeNavImage("contactsubindprop",152,35);
navitems["contactsubrich"] = new makeNavImage("contactsubrich",116,35);
navitems["contactsubmiami"] = new makeNavImage("contactsubmiami",87,35);

navitems["logoth"] = new makeNavImage("logoth",80,70);
navitems["logost"] = new makeNavImage("logost",135,30);
navitems["logopc"] = new makeNavImage("logopc",80,50);
navitems["logotv"] = new makeNavImage("logotv",80,60);
navitems["logoms"] = new makeNavImage("logoms",95,60);
navitems["logotp"] = new makeNavImage("logotp",95,70);
navitems["logost"] = new makeNavImage("logost",135,70);
navitems["logomm"] = new makeNavImage("logomm",135,70);
navitems["logosb"] = new makeNavImage("logosb",95,50);
navitems["logohp"] = new makeNavImage("logohp",135,50);
navitems["logogh"] = new makeNavImage("logogh",135,60);
navitems["logocg"] = new makeNavImage("logocg",135,40);
navitems["logoswa"] = new makeNavImage("logoswa",135,72);

navitems["thresholdcomms"] = new makeNavImage("thresholdcomms",100,106);
navitems["thresholdapp"] = new makeNavImage("thresholdapp",100,57);
navitems["thresholdhome"] = new makeNavImage("thresholdhome",210,131);
navitems["thresholdreturn"] = new makeNavImage("thresholdreturn",265,42);

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

function img_inact(imgName){
window.status = "";
document[imgName].src = navitems[imgName].newimage_off.src;
}
// ROLLOVER CODE ABOVE

// OTHER FUNCTIONS BELOW

function openWincomm(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)?640:w;
h = (isNaN(h) || h==null)?520:h;
o = (o==null)?"toolbar=0,location=0,directories=0,status=0,menubar=0,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 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)?770:w;
h = (isNaN(h) || h==null)?545:h;
o = (o==null)?"toolbar=0,location=0,directories=0,status=0,menubar=0,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 openWinwwd(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)?788:w;
h = (isNaN(h) || h==null)?545:h;
o = (o==null)?"toolbar=0,location=0,directories=0,status=0,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 openWinnews(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)?780:w;
h = (isNaN(h) || h==null)?615:h;
o = (o==null)?"toolbar=0,location=0,directories=0,status=0,menubar=0,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 openWinnewswide(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)?1000:w;
h = (isNaN(h) || h==null)?750:h;
o = (o==null)?"toolbar=0,location=0,directories=0,status=0,menubar=0,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 openWinnewsstreetscape(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)?1000:w;
h = (isNaN(h) || h==null)?430:h;
o = (o==null)?"toolbar=0,location=0,directories=0,status=0,menubar=0,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);
}




// OTHER FUNCTIONS ABOVE