<!-- Begin	// popup here
var progNM = "/popRear.asp";
var WDWSET = "location=no,directories=no,status=no,menubar=no,toolbar=no,scrollbars=no,resizable=yes,width=635,height=445";

var EXPIR = new Date();
EXPIR.setUTCHours(23);
EXPIR.setUTCMinutes(59);
EXPIR.setUTCSeconds(0);

function CookieLOOKUP(cookie) {
	document.cookie = cookie;
}
function CookieDELETE (argName){
	var argValue = CookieGET(argName);  
	document.cookie = argName + "=" + argValue + "; expires=" + EXPIR.toGMTString();
}
function CookieVALUE(offset) {
	var iStr = document.cookie.indexOf (";", offset);
	if (iStr == -1)  iStr = document.cookie.length;
return unescape(document.cookie.substring(offset, iStr));
}
function CookieGET (argName){
	var argv = argName + "=";  
	var ilen = argv.length;  
	var vlen = document.cookie.length;  
	var n = 0;  
	while (n < vlen){
		var j = n + ilen;
		if (document.cookie.substring(n, j) == argv)
			return CookieVALUE(j);
			
		n = document.cookie.indexOf(" ", n) + 1;    
		if (n == 0) break;   
	}
return null;
}
function CookieSET (argName, argValue) {  
	var argv = CookieSET.arguments;  
	var argc = CookieSET.arguments.length;  
	var aexpire = (argc > 2) ? argv[2] : null;  
	var path = (argc > 3) ? argv[3] : null;  
	var domain = (argc > 4) ? argv[4] : null;  
	var secure = (argc > 5) ? argv[5] : false;  

	document.cookie = argName + "=" + escape (argValue) + 
	((aexpire == null) ? "" : ("; expires=" + aexpire.toGMTString())) + 
	((path == null) ? "" : ("; path=" + path)) +  
	((domain == null) ? "" : ("; domain=" + domain)) +    
	((secure == true) ? "; secure" : "");
}
function winRear (argName, argValue) {
	//.... increament RearPops 

	var NBR = CookieGET(argName);
	if (NBR == null)	  NBR=1;
	else{
		if (argValue==null)	NBR++;
			else			NBR= argValue;
	}	
	CookieSET(argName, NBR, EXPIR);
}
function popRear() {
	var NBR = CookieGET('RearCounter');
	var iPop = CookieGET('RearPops');		//increamented on popup-clicked
	
	//if the page not wrapped in a frame
	 if (self == top && self.name == 'new_popRear') return;
	 else{
	 if (self == top && self.name != 'new_popRear') {	 
		//... dont popup, just increament 
		if (NBR == null)	NBR=1;
		 else				NBR++;
		CookieSET('RearCounter', NBR, EXPIR);

		// RearSess Cookie found then popup already opened, so exit
		NBR = CookieGET('RearSess');
		if  (NBR != null)  return;
		CookieSET('RearSess','1');			//RearSess expire when browser closes

		var NBR1 = CookieGET('RearCounter');
		if (NBR1 != null) {	
			if (iPop == null || iPop < 3) {		
				//...if 3 pops-leads clicked-on by user then stop, no more iPop for today
				myWin = window.open(progNM,'popRear', WDWSET);	
				if (myWin  != null)	myWin.blur();
			}
		}	
	}else{
	top.location = self.location
	}
  }	   
}

var win=null;
var mypage= "/pop800.asp";
var myname= "bfopop";
var w= "312";
var h= "400";
var pos= "center";
var infocus= "back";
function pop800() {
if (self == top && self.name == 'new_pop800') return;
	 else{
	 if (self == top && self.name != 'new_pop800') {	 
	
		if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
		if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
		else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20}
		settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";
		my_window=window.open(mypage,myname,settings);
		if (my_window != null)	my_window.blur(); 
		}else{
	top.location = self.location
	}
	}
} 

// End -->