<!--
flag = false;
function runPopupOut(){
	if (flag==false){
		strParam = "s=46"; //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)){
		//
	}
}

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();" onLoad="runPopupIn();"><frame name="index_fs" src="'+location.pathname+'?" noresize scrolling="AUTO" marginwidth="0" marginheight="0" frameborder="NO"></frameset>');
	document.close();
	if (document.all) index_fs.location=self.location.pathname;
}
//-->
