// get window heightfunction getWindowHeight(thisWindow) {  if(myBrowser == "NN" || myBrowser == "DOM") {    return(thisWindow.innerHeight);  } else if(myBrowser == "IE") {    return(thisWindow.document.body.clientHeight);  }}// get window widthfunction getWindowWidth(thisWindow) {  if(myBrowser == "NN" || myBrowser == "DOM") {    return(thisWindow.innerWidth);  } else if(myBrowser == "IE") {    return(thisWindow.document.body.clientWidth);  }}// get window horizontal centerfunction getCenter(thisWindow) {  return(Math.floor(getWindowWidth(thisWindow)/2));}// browser sniffervar myBrowser = null;if(document.all) {  myBrowser = "IE";} else if(document.layers) {  myBrowser = "NN";} else if(document.getElementById) {  myBrowser = "DOM";}// get style reference for layer objectfunction getLayer(ID) {  if(typeof ID == "string") {    if(myBrowser == "NN") {      return(document.layers[ID]);    } else if(myBrowser == "IE") {      return(document.all[ID].style);    } else if(myBrowser == "DOM") {      return(document.getElementById(ID).style);    }  }  else {    return ID;  }}// move layer to absolute coordinatesfunction moveLayer(layerName, xPos, yPos) {  var layerObj = getLayer(layerName);  if(myBrowser == "NN") {    layerObj.moveTo(xPos, yPos);  } else if(myBrowser == "IE" || myBrowser == "DOM") {    layerObj.left = xPos + "px";    layerObj.top = yPos + "px";  }}// adjust x coordinate for content layers on home pagefunction adjustX(xOffset){	var xPos;	var centerX = getCenter(self); 	if((myBrowser=="IE") || (myBrowser=="DOM")){		var minX = Math.floor(720/2);		if (centerX < minX) { xPos = minX + xOffset; }		else { xPos = centerX + xOffset; }	}	else if(myBrowser=="NN") {		var minX = Math.floor(716/2);		if (centerX < minX) { xPos = minX + xOffset - 6; }		else { xPos = centerX + xOffset - 6; }		//moveLayer('net_load_qts', xPos, minX + xOffset - 6);			}	return xPos;}// adjust y coordinate for content layers on home pagefunction adjustY(yPos) {	return yPos;}// position vertical menusfunction positionVert(){	var xPos;	var centerX = getCenter(self); 	if(myBrowser=="NN") {		var minX = Math.floor(716/2);		if (centerX < minX) { xPos = minX + vert_nav_xOffset - 8; }		else { xPos = centerX + vert_nav_xOffset - 8; }		////moveLayer('topCenter', xPos, vert_nav_yOffset);		////moveLayer('topCenter2', xPos, vert_nav_yOffset);	}	else if(myBrowser=="DOM") {		var minX = Math.floor(720/2);		if (centerX < minX) { xPos = minX + vert_nav_xOffset - 7; }		else { xPos = centerX + vert_nav_xOffset - 7; }		///moveLayer('topCenter', xPos, vert_nav_yOffset);		///moveLayer('topCenter2', xPos, vert_nav_yOffset);	}}// center menu layers, refresh NN4function handleResize(init) {  if (init==true) {    if (myBrowser=="NN") {      // setup for resize   	  document.pgWidth=window.innerWidth;      document.pgHeight=window.innerHeight;      window.captureEvents(Event.RESIZE);  	  window.onresize = handleResize;	  // setup for popups	  document.captureEvents(Event.MOUSEMOVE);    }    else if ((myBrowser=="IE") || (myBrowser=="DOM")) {	}  }  else {    if (myBrowser=="NN") {  	  if (window.innerWidth!=document.pgWidth || window.innerHeight!=document.pgHeight) {	    if (parseInt(navigator.appVersion)==4) { location.reload();	}	    else {		  if ((window.innerWidth!=document.pgWidth) && (flash == 'no')) {		     positionVert(); 		  }	    }	  }	}    else if (((myBrowser=="IE") || (myBrowser=="DOM")) && flash == 'no') {		  positionVert(); 	}  }  //document.onmousemove = mouseMove;}handleResize(true);document.popLoaded = false;document.preLoaded = false;  var vert_nav_xOffset = -360;var vert_nav_yOffset = 0;//pop up Flashvar javascript_version = 1.0;var newwin;function launchwin(winurl,winname,winfeatures){	//This launches a new window and then	//focuses it if window.focus() is supported.	newwin = window.open(winurl,winname,winfeatures);	if(javascript_version > 1.0)	{		//delay a bit here because IE4 encounters errors		//when trying to focus a recently opened window 		setTimeout('newwin.focus();',250);	}}//pop up Flash Control:launchwinflacontrolvar javascript_version = 1.0;var newwinfla;function launchwinfla(winurl,winname,winfeatures){	//This launches a new window and then	//focuses it if window.focus() is supported.	newwinfla = window.open(winurl,winname,winfeatures);	if(javascript_version > 1.0)	{		//delay a bit here because IE4 encounters errors		//when trying to focus a recently opened window 		setTimeout('newwinfla.focus();',250);	}}//Kids Site POPvar kidswin;function launchkidswin(winwidth,winheight){	kidswin = window.open('clubs/swf/kids.html','kidsclub','width='+ winwidth +',height=' + winheight + ',top='+((screen.height/2)-(550/2))+',left='+((screen.width/2)-(750/2))+',toolbar=no,scrollbars=no,resizable=no,menubar=no,status=no,directories=no,location=no'); void(0);}//Live Help Pop upvar livehelp;function launchlivehelpwin(winwidth,winheight){	livehelp = window.open('include/sa_bridge.html','livehelp','width=' + winwidth + ',height=' + winheight + ',top='+((screen.height/2)-(400/2))+',left='+((screen.width/2)-(720/2))+',toolbar=no,scrollbars=no,resizable=no,menubar=no,status=no,directories=no,location=no'); void(0);}//clubsite pop upvar clubwin;function launchclubwin(winwidth,winheight){	clubwin = window.open('ng_microsite.html','windowclub','width='+ winwidth +',height=' + winheight + ',top='+((screen.height/2)-(550/2))+',left='+((screen.width/2)-(750/2))+',toolbar=no,scrollbars=no,resizable=no,menubar=no,status=no,directories=no,location=no'); void(0);}//Club site links form email //clubsite for enews pop upvar clubwin_enews;function launchclubwinenews(winwidth,winheight){	clubwin_enews = window.open('ng_microsite_enews.html','windowclub_enews','width='+ winwidth +',height=' + winheight + ',top='+((screen.height/2)-(550/2))+',left='+((screen.width/2)-(750/2))+',toolbar=no,scrollbars=no,resizable=no,menubar=no,status=no,directories=no,location=no'); void(0);}//clubsite for enews2 pop upvar clubwin_enews2;function launchclubwinenews2(winwidth,winheight){	clubwin_enews2 = window.open('ng_microsite_enews2.html','windowclub_enews2','width='+ winwidth +',height=' + winheight + ',top='+((screen.height/2)-(550/2))+',left='+((screen.width/2)-(750/2))+',toolbar=no,scrollbars=no,resizable=no,menubar=no,status=no,directories=no,location=no'); void(0);}//clubsite for enews dealers pop upvar clubwin_ggalaxy;function launchclubwin_ggalaxy(winwidth,winheight){	clubwin_ggalaxy = window.open('ng_microsite_ggalaxy.html','windowclub_ggalaxy','width='+ winwidth +',height=' + winheight + ',top='+((screen.height/2)-(550/2))+',left='+((screen.width/2)-(750/2))+',toolbar=no,scrollbars=no,resizable=no,menubar=no,status=no,directories=no,location=no'); void(0);}//clubsite for enews dealers pop upvar clubwin_enews_dealer;function launchclubwinenews_dealer(winwidth,winheight){	clubwin_enews_dealer = window.open('ng_microsite_enews_dealer.html','windowclub_enews_dealer','width='+ winwidth +',height=' + winheight + ',top='+((screen.height/2)-(550/2))+',left='+((screen.width/2)-(750/2))+',toolbar=no,scrollbars=no,resizable=no,menubar=no,status=no,directories=no,location=no'); void(0);}//clubsite for enews drivers pop upvar clubwin_enews_drivers;function launchclubwinenews_drivers(winwidth,winheight){	clubwin_enews_drivers = window.open('ng_microsite_enews_drivers.html','windowclub_enews_drivers','width='+ winwidth +',height=' + winheight + ',top='+((screen.height/2)-(550/2))+',left='+((screen.width/2)-(750/2))+',toolbar=no,scrollbars=no,resizable=no,menubar=no,status=no,directories=no,location=no'); void(0);}//clubsite for enews irons pop upvar clubwin_enews_irons;function launchclubwinenews_irons(winwidth,winheight){	clubwin_enews_irons = window.open('ng_microsite_enews_irons.html','windowclub_enews_irons','width='+ winwidth +',height=' + winheight + ',top='+((screen.height/2)-(550/2))+',left='+((screen.width/2)-(750/2))+',toolbar=no,scrollbars=no,resizable=no,menubar=no,status=no,directories=no,location=no'); void(0);}//clubsite for enews wedges pop upvar clubwin_enews_wedges;function launchclubwinenews_wedges(winwidth,winheight){	clubwin_enews_wedges = window.open('ng_microsite_enews_wedges.html','windowclub_enews_wedges','width='+ winwidth +',height=' + winheight + ',top='+((screen.height/2)-(550/2))+',left='+((screen.width/2)-(750/2))+',toolbar=no,scrollbars=no,resizable=no,menubar=no,status=no,directories=no,location=no'); void(0);}//clubsite for enews ontour pop upvar clubwin_enews_ontour;function launchclubwinenews_ontour(winwidth,winheight){	clubwin_enews_ontour = window.open('ng_microsite_enews_ontour.html','windowclub_enews_ontour','width='+ winwidth +',height=' + winheight + ',top='+((screen.height/2)-(550/2))+',left='+((screen.width/2)-(750/2))+',toolbar=no,scrollbars=no,resizable=no,menubar=no,status=no,directories=no,location=no'); void(0);}//clubsite for enews randd pop upvar clubwin_enews_randd;function launchclubwinenews_randd(winwidth,winheight){	clubwin_enews_randd = window.open('ng_microsite_enews_randd.html','windowclub_enews_randd','width='+ winwidth +',height=' + winheight + ',top='+((screen.height/2)-(550/2))+',left='+((screen.width/2)-(750/2))+',toolbar=no,scrollbars=no,resizable=no,menubar=no,status=no,directories=no,location=no'); void(0);}//clubsite for why forged driversvar clubwin_whyforged_drivers;function launchclubwinwhyforged_drivers(winwidth,winheight){	clubwin_whyforged_drivers = window.open('ng_microsite_whyforged_drivers.html','windowclub_whyforged_drivers','width='+ winwidth +',height=' + winheight + ',top='+((screen.height/2)-(550/2))+',left='+((screen.width/2)-(750/2))+',toolbar=no,scrollbars=no,resizable=no,menubar=no,status=no,directories=no,location=no'); void(0);}//clubsite for why forged ironsvar clubwin_whyforged_irons;function launchclubwinwhyforged_irons(winwidth,winheight){	clubwin_whyforged_irons = window.open('ng_microsite_whyforged_irons.html','windowclub_whyforged_irons','width='+ winwidth +',height=' + winheight + ',top='+((screen.height/2)-(550/2))+',left='+((screen.width/2)-(750/2))+',toolbar=no,scrollbars=no,resizable=no,menubar=no,status=no,directories=no,location=no'); void(0);}//clubsite for why forged wedgesvar clubwin_whyforged_wedges;function launchclubwinwhyforged_wedges(winwidth,winheight){	clubwin_whyforged_wedges = window.open('ng_microsite_whyforged_wedges.html','windowclub_whyforged_wedges','width='+ winwidth +',height=' + winheight + ',top='+((screen.height/2)-(550/2))+',left='+((screen.width/2)-(750/2))+',toolbar=no,scrollbars=no,resizable=no,menubar=no,status=no,directories=no,location=no'); void(0);}//clubsite for test drive promovar clubwin_testdrive;function launchclubwin_testdrive(winwidth,winheight){	clubwin_testdrive = window.open('ng_microsite_testdrive.html','windowclub_testdrive','width='+ winwidth +',height=' + winheight + ',top='+((screen.height/2)-(550/2))+',left='+((screen.width/2)-(750/2))+',toolbar=no,scrollbars=no,resizable=no,menubar=no,status=no,directories=no,location=no'); void(0);}//clubsite for enews randd pop upvar clubwin_enews_randd_tom_bio;function launchclubwinenews_randd_tom_bio(winwidth,winheight){	clubwin_enews_randd_tom_bio = window.open('ng_microsite_enews_randd.html','windowclub_enews_randd','width='+ winwidth +',height=' + winheight + ',top='+((screen.height/2)-(550/2))+',left='+((screen.width/2)-(750/2))+',toolbar=no,scrollbars=no,resizable=no,menubar=no,status=no,directories=no,location=no'); void(0);}//end club pop ups//non pop upvar newwin;function launchwinnon(winurl,winheight,winwidth){	newwin = window.open(winurl,'nike_golf','toolbar=no,height=' + winheight + ',width=' + winwidth + ',directories=no,status=no,scrollbars=no,resize=no,menubar=no');}//non pop upvar newwin1;function launchwinnon1(winurl,winheight,winwidth){	newwin1 = window.open(winurl,'nike_golf1','toolbar=no,height=' + winheight + ',width=' + winwidth + ',directories=no,status=no,scrollbars=yes,resize=no,menubar=no');}//non pop up control with popup two pop ups...var newwincontrol;function launchwinnoncontrol(winurl,winheight,winwidth,winY,winX){	if (newwin)		if (newwin.closed == false)			newwin.close();				if((myBrowser == "NN")||(myBrowser == "DOM")) {		newwincontrol = window.open(winurl,'nike_golf2','toolbar=no,height=' + winheight + ',width=' + winwidth + ',screenY=' + winY + ',screenX=' + winX + ',directories=no,status=no,scrollbars=no,resize=yes,menubar=no');	} else if(myBrowser == "IE") {		newwincontrol = window.open(winurl,'nike_golf2','toolbar=no,height=' + winheight + ',width=' + winwidth + ',top=' + winY + ',left=' + winX + ',directories=no,status=no,scrollbars=no,resize=yes,menubar=no');	}}// convert all characters to lowercase to simplify testing var agt=navigator.userAgent.toLowerCase(); var is_mac    = (agt.indexOf("mac")!=-1);//non pop up controlvar newwincontrol;function launchwinnoncontrol(winurl,winheight,winwidth,winY,winX){if((myBrowser == "NN")||(myBrowser == "DOM")) {		newwincontrol = window.open(winurl,'nike_golf2','toolbar=no,height=' + winheight + ',width=' + winwidth + ',screenY=' + winY + ',screenX=' + winX + ',directories=no,status=no,scrollbars=no,resize=yes,menubar=no');} else if(myBrowser == "IE") {		newwincontrol = window.open(winurl,'nike_golf2','toolbar=no,height=' + winheight + ',width=' + winwidth + ',top=' + winY + ',left=' + winX + ',directories=no,status=no,scrollbars=no,resize=yes,menubar=no');	}}//non pop up controlvar nonnewwincontrol;function launchwinonecontrol(winurl,winheight,winwidth,winY,winX){if((myBrowser == "NN")||(myBrowser == "DOM")) {	nonnewwincontrol = window.open(winurl,'nike_golf2','toolbar=no,height=' + winheight + ',width=' + winwidth + ',screenY=' + winY + ',screenX=' + winX + ',directories=no,status=no,scrollbars=no,resize=yes,menubar=no');	} else if(myBrowser == "IE") {		nonnewwincontrol = window.open(winurl,'nike_golf2','toolbar=no,height=' + winheight + ',width=' + winwidth + ',top=' + winY + ',left=' + winX + ',directories=no,status=no,scrollbars=no,resize=yes,menubar=no');}}