//enable or disable general survey. show sites to apply to are in surveycookie.js
//document.write('<script type="text/javascript" src="/js/cookies.js"><\/script>');
//document.write('<script type="text/javascript" src="/js/surveycookie.js"><\/script>');

// popup windows
function openWin(theURL, theName, theWidth, theHeight, theBars)
{
   var width=theWidth;
   var height=theHeight;
   var theName=theName;
   var bars=theBars;
   var winl = (screen.width - width) / 3;
   var wint = (screen.height - height) / 2;
   var theFeatures = "width=" + width + ",height=" + height +",top="+wint+",left="+winl+",scrollbars="+bars;
                                
   var theWin = window.open(theURL,theName,theFeatures);
         theWin.focus();
}

function openVid(url){
	openWin(url,'foxVideoPlayer','656','680');
}

function openMus(url){
	openWin(url,'foxMusicPlayer','653','310');
}

// query variable from url string
function getVar(variable) {
	var query = window.location.search.substring(1);
	var vars = query.split("&");
	for (var i=0;i<vars.length;i++) {
		var pair = vars[i].split("=");
		if (pair[0] == variable) {
			return pair[1];
		}
	}
	return "";
}

function loadXML(show){}
function loadXML1(){}