var timer;var ghwcontent;var ghalpha=0;var viewportwidth;var viewportheight;function winsize() { if (typeof window.innerWidth != 'undefined') {      viewportwidth = window.innerWidth,      viewportheight = window.innerHeight } else if (typeof document.documentElement != 'undefined' && typeof document.documentElement.clientWidth != 'undefined' && document.documentElement.clientWidth != 0) { // IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)       viewportwidth = document.documentElement.clientWidth,       viewportheight = document.documentElement.clientHeight } else { // older versions of IE       viewportwidth = document.getElementsByTagName('body')[0].clientWidth,       viewportheight = document.getElementsByTagName('body')[0].clientHeight }}function ghwgrow(sector){	ghwid=document.getElementById(sector);	theheight=parseInt(ghwid.offsetHeight);     if (ghalpha < 100) {     	ghwid.style.height = (ghalpha*2.5)+'px';//     	ghwid.style.top = parseInt(midY-(theheight/2))+'px';		setOpacity(ghwid,ghalpha/100);		ghalpha = ghalpha+5;	 	}	 else {     	ghwid.style.height = '250px';		setOpacity(ghwid,1);        clearInterval(timer);      }}function setOpacity(element,level) {  element.style.opacity = level;  element.style.MozOpacity = level;  element.style.KhtmlOpacity = level;}function setOpacityIE7(element,level) {  element.style.opacity = level;  element.style.MozOpacity = level;  element.style.KhtmlOpacity = level;  element.style.filter = "alpha(opacity=" + (level * 100) + ");";}function ghwshrink(sector){	ghwid=document.getElementById(sector);	theheight=parseInt(ghwid.offsetHeight);     if (ghalpha >= 5) {		setOpacity(ghwid,ghalpha/100);		ghalpha = ghalpha-5;	 	}	 else {		ghwid.style.visibility="hidden";        clearInterval(timer);      }}function clearPopups() {	popid=document.getElementById('paycat_popup');	setOpacity(popid,0);	popid.style.visibility="hidden";	popid=document.getElementById('make_popup');	setOpacity(popid,0);	popid.style.visibility="hidden";	popid=document.getElementById('model_popup');	setOpacity(popid,0);	popid.style.visibility="hidden";	popid=document.getElementById('network_popup');	setOpacity(popid,0);	popid.style.visibility="hidden";	popid=document.getElementById('gift_popup');	setOpacity(popid,0);	popid.style.visibility="hidden";	popid=document.getElementById('price_popup');	setOpacity(popid,0);	popid.style.visibility="hidden";	popid=document.getElementById('accmake_popup');	setOpacity(popid,0);	popid.style.visibility="hidden";	popid=document.getElementById('accmodel_popup');	setOpacity(popid,0);	popid.style.visibility="hidden";	popid=document.getElementById('acccat_popup');	setOpacity(popid,0);	popid.style.visibility="hidden";}function ghw(id) {	ghwid=document.getElementById(id);	setOpacity(ghwid,0);	ghwid.style.visibility="visible";        winsize();        newx=((viewportwidth-1000)/2 + 200);        ghwid.style.left = newx+'px';    timer = setInterval("ghwgrow('"+id+"')", 20);}function ghwclose(id){      timer = setInterval("ghwshrink('"+id+"')",3);}function SelectPaycat() {    clearPopups();    ghw('paycat_popup');}function SelectMake() {    clearPopups();    ghw('make_popup');}function SelectModel() {    clearPopups();    ghw('model_popup');}function SelectNetwork() {    clearPopups();    ghw("network_popup");}function SelectGift() {    clearPopups();    ghw('gift_popup');}function SelectFeature() {    clearPopups();    ghw('features_popup');}function SelectPrice() {    clearPopups();    ghw('price_popup');}function SelectAccMake() {    clearPopups();    ghw('accmake_popup');}function SelectAccModel() {    clearPopups();    ghw('accmodel_popup');}function SelectAccCat() {    clearPopups();    ghw('acccat_popup');}function fonesure() {    ghw('fonesure');}