<!--



flag = false;
function runPopupOut(){
	if (flag==false){
		strParam = "s=13"; //SiteID
		if (location.href.indexOf("s=")>0) strParam = location.href.substring(location.href.indexOf("s=")); //Grabs the SiteID if it is the location
		window.open('http://www.before-you-go.com/byGroups/frames.php?'+strParam,'BYG_PopUp','scrollbars=yes,location=yes,dependent=no,directories=no,status=yes,menubar=yes,toolbar=yes,resizable=yes');
		self.focus();
	}
}

function runPopupIn(){
	if (!(self.location.href.indexOf("byg_frame")>0)){
		self.focus();
		window.open('http://www.jackpotking.com/popups/10k/index.html','Win10kWindow','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=no,width=240,height=320,left=100,top=100,screenx=100,screeny=100');
//		window.open('wc2k2_popup.htm','wc2k2_popup','toolbar=no,menubar=no,location=no,scrollbars=no,resize=no,width=300,height=300');
	}
}

// first we check for the "popup=0" in the url. if it's there,
// then we don't use a frameset or popups...
if (location.search.substring(1).indexOf('popup=0') == -1){
	if ((self.location == top.location)||(self.location.href.indexOf("byg_frame")>0)){
		if (self.location.href.indexOf("byg_frame")>0) flag = true;
		document.open();
			document.write('<frameset name="index" rows="100%,*" frameborder="NO" border="0" framespacing="0" onUnload="runPopupOut()"><frame name="main" src="'+location.pathname+'?" noresize scrolling="AUTO" marginwidth="0" marginheight="0" frameborder="NO"><frame name="hidden" src="hidden.html" noresize scrolling="NO" marginwidth="0" marginheight="0" frameborder="NO"></frameset>');
		document.close();
		main.location = top.location;	
	}
}
//-->
