function PopUp(url) {
	remote=window.open(url,'PopUpWindow','height=400,width=640,alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=1,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=1,resizable=0,scrollbars=yes,status=0,titlebar=0,toolbar=0,z-lock=33');
	if (!remote.opener) remote.opener = self;
	if (window.focus) remote.focus();  
}

function PicPopUp(url) {
	remote=window.open(url,'PopUpWindow','height=370,width=390,alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=1,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=1,resizable=0,scrollbars=yes,status=0,titlebar=0,toolbar=0,z-lock=33');
	if (!remote.opener) remote.opener = self;
	if (window.focus) remote.focus();  
}

function CouponSheet(url) {
	remote=window.open(url,'PopUpWindow','height=500,width=700,alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=1,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=1,resizable=0,scrollbars=yes,status=0,titlebar=0,toolbar=0,z-lock=33');
	if (!remote.opener) remote.opener = self;
	if (window.focus) remote.focus();  
}

function printWindow() {
	bV = parseInt(navigator.appVersion)
	if (bV >= 4) window.print()
}


function hideDiv(divID_as_a_string) {
	var myReference = getRefToDiv(divID_as_a_string);
	if (!myReference) { 
		return; 
	}
	if (myReference.style) { 
		myReference.style.display = 'none'; 
	} else {
		if (myReference.display) { 
			myReference.display = 'none'; 
		} else {
			return; 
		} 
	}
}

function showDiv(divID_as_a_string) {
	myReference = getRefToDiv(divID_as_a_string);
	if (!myReference) {
		return; //don't go any further
	}
	//now we have a reference to it
	if (myReference.style) {
		//DOM & proprietary DOM
		myReference.style.display = 'inline';
	} else {
		//layers syntax
		myReference.display = 'inline';
	}
}

function getRefToDiv(divID, oDoc) {
	if (document.getElementById) { 
		return document.getElementById(divID); 
	}
	if (document.all) { 
		return document.all[divID]; 
	}
	if (!oDoc) { 
		oDoc = document; 
	}
	if (document.layers) {
		if (oDoc.layers[divID]) {
			return oDoc.layers[divID];
		} else {
			for (var x=0, y; !y && x < oDoc.layers.length; x++) {
				y = getRefToDiv(divID, oDoc.layers[x].document);
			}
			return y;
		}
	}
	return false;
}


var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

try {
var pageTracker = _gat._getTracker("UA-11417744-1");
pageTracker._trackPageview();
} catch(err) {}
/*
//APE include code for Discover Colorado
//(c) analyticspros.com
var apeJsHost = (("https:" == document.location.protocol) ? "https://amikay-ape.appspot.com/" : "http://ape.amikay.com/");
//attach script to <head>
j=document.createElement("SCRIPT");
j.src=apeJsHost+"?code=discovercolorado";
document.getElementsByTagName("HEAD")[0].appendChild(j);
*/
