// Ad Handler
var foo;

function popUpAd( sUrl, sName, sWidth, sHeight, sMenubar, sLocation, sResizable, sScrollbars, sStatus, sToolbar ){
	foo = window.open( sUrl, sName,  "width="+  sWidth  +",height="+ sHeight +",menubar="+  sMenubar  +",location="+  sLocation  +",resizable="+  sResizable  +",scrollbars="+  sScrollbars  +",status="+  sStatus +",toolbar="+  sToolbar );
	foo.focus();
}

function popUnderAd( sUrl, sName, sWidth, sHeight, sMenubar, sLocation, sResizable, sScrollbars, sStatus, sToolbar ){
	foo = window.open( sUrl, sName, "width="+  sWidth  +",height="+  sHeight  +",menubar="+  sMenubar  +",location="+  sLocation  +",resizable="+  sResizable  +",scrollbars="+  sScrollbars  +",status="+  sStatus +",toolbar="+  sToolbar );
	foo.blur();
	window.focus();
}

function clickthrough( sUrl ){
	foo.close();
	location.href = sUrl;
}
/** function runpromo(){
  // Like Mom pop-up
 	if(! checkCookie('likemom')){
		// display the popup ad
 		popUpAd( 'popups/likemom.htm', 'evtwin', '285', '175', 'no', 'no', 'no', 'no', 'no', 'no' );
		// and set a cookie named 'firstimpress' to true (1) for 1 day timeout
 		setCookie('likemom', 1, 1);
	}
}
		// Popunder
 	if(! checkCookie('zedopop')){
		// display the popup ad
 		popUnderAd( 'popups/popwin.html', 'evtwin', '725', '305', 'no', 'no', 'no', 'no', 'no', 'no' );
		// and set a cookie named 'zedopop' to true (1) for 1 day timeout
 		setCookie('zedopop', 1, 1);
	}
}

function runpromo(){

	// Education Expo
 	if(! checkCookie('zedopop')){
		// display the popup ad
 		popUnderAd( 'popups/popwin.html', 'evtwin', '500', '315', 'no', 'no', 'no', 'no', 'no', 'no' );
		// and set a cookie named 'zedopop' to true (1) for 1 day timeout
 		setCookie('zedopop', 1, 1);
	}
}

function runpromo(){
	// Only if there is no xmas cookie
 	if(! checkCookie('xmas')){
		// display the popup ad
 		popUpAd( 'xmasad.htm', 'evtwin', '432', '399', 'no', 'no', 'no', 'no', 'no', 'no' );
		// and set a cookie named 'xmas' to true (1) for 1 day timeout
 		setCookie('xmas', 1, 1);
	}
)

Promotion Pop-UP for Super Jobs Sunday
function runpromo(){
	// Only if there is no jobs cookie
	if(! checkCookie('jobs')){
		// display the popup ad
		popUpAd( 'jobsad.htm', 'evtwin', '245', '400', 'no', 'no', 'no', 'no', 'no', 'no' );
		// and set a cookie named 'jobs' to true (1) for 1 day timeout
		setCookie('jobs', 1, 1);
	}
}

function runpromo(){
  // Only if there is no borntobuy cookie
  if(! checkCookie('borntobuy')){
    // display the popup ad
    popUpAd( 'popups/borntobuy.html', 'evtwin', '190', '260', 'no', 'no', 'no', 'no', 'no', 'no' );
    // and set a cookie named 'borntobuy' to true (1) for 1 day timeout
    setCookie('borntobuy', 1, 1);
  }
}

function runpromo(){
  // Only if there is no collegebound cookie
  if(! checkCookie('collegebound')){
    // display the popup ad
    popUpAd( 'popups/collegebound.html', 'evtwin', '190', '260', 'no', 'no', 'no', 'no', 'no', 'no' );
    // and set a cookie named 'collegebound' to true (1) for 1 day timeout
    setCookie('collegebound', 1, 1);
  }
}

function runpromo(){
  // Only if there is no roommates cookie
  if(! checkCookie('roommates')){
    // display the popup ad
    popUpAd( 'popups/roommates.html', 'evtwin', '190', '260', 'no', 'no', 'no', 'no', 'no', 'no' );
    // and set a cookie named 'roommates' to true (1) for 1 day timeout
    setCookie('roommates', 1, 1);
  }
}
*/
function runpromo(){
  // Only if there is no guyfriends cookie
  if(! checkCookie('guyfriends')){
    // display the popup ad
    popUpAd( 'popups/guyfriends.html', 'evtwin', '180', '210', 'no', 'no', 'no', 'no', 'no', 'no' );
    // and set a cookie named 'guyfriends' to true (1) for 1 day timeout
    setCookie('guyfriends', 1, 1);
  }
}