function OpenWindow(Link, h, w){	window.open(Link,'','toolbar=no,width=' + w + ',height=' + h + ',status=no,menubar=no,scrollbars=yes,resizable=yes');}//*************// Stuff for pop-up remindervar expDays = 5; // number of days the cookie should lastvar page = "http://www.journaltimes.com/samplesub/";var windowprops = "width=310,height=310,location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes";var exp = new Date(); exp.setTime(exp.getTime() + (expDays*24*60*60*1000));function GetCookie (name) {	var arg = name + "=";  	var alen = arg.length;  	var clen = document.cookie.length;  	var i = 0;  	while (i < clen) {		var j = i + alen;    		if (document.cookie.substring(i, j) == arg)      		return getCookieVal (j);    		i = document.cookie.indexOf(" ", i) + 1;    		if (i == 0) break;   	}  	return null;}function SetCookie (name, value) {	var argv = SetCookie.arguments;  	var argc = SetCookie.arguments.length;  	var expires = (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 = name + "=" + escape (value) + 	((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 	((path == null) ? "" : ("; path=" + path)) +  	((domain == null) ? "" : ("; domain=" + domain)) +    	((secure == true) ? "; secure" : "");}function DeleteCookie (name) {	var exp = new Date();  	exp.setTime (exp.getTime() - 1);  	var cval = GetCookie (name);  	document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();}function amt(){	var count = GetCookie('39offer')	if(count == null) {		SetCookie('39offer','1')		return 1	}else {		var newcount = parseInt(count) + 1;		DeleteCookie('39offer')		SetCookie('39offer',newcount,exp)		return count   }}function getCookieVal(offset) {	var endstr = document.cookie.indexOf (";", offset);	if (endstr == -1)	endstr = document.cookie.length;	return unescape(document.cookie.substring(offset, endstr));}function checkCount() {	var count = GetCookie('39offer');	if (count == null) {		count=1;		SetCookie('39offer', count, exp);				window.open(page, "", windowprops);			}else {		count++;		SetCookie('39offer', count, exp);	}}checkCount();// end stuff for pop-up reminder//************************//************************// Menu Code//************************var winoffset = 204;	//this is the distance in pixels from the top of the window to the top of the sidebarfunction loadMenus() {	if(!old){			window.sports = new Menu('sports');		sports.addMenuItem("Sports", "/sports/");		sports.addMenuItem("Outdoors", "/outdoors/");		sports.addMenuItem("Sports Wire", "/ap/Sports");		sports.positionLeft = 109;		sports.positionTop = 20+winoffset;			window.business = new Menu('business');		business.addMenuItem("Business", "/business");		business.addMenuItem("Stock Quotes", "/INN_stocks/");		business.addMenuItem("Business Wire", "/ap/Business");		business.positionLeft = 109;		business.positionTop = 59+winoffset;			window.features = new Menu('features');		features.addMenuItem("Family/Life", "/family_-_life/");		features.addMenuItem("Food", "/good_food/");		features.addMenuItem("A+", "/a_plus/");	features.addMenuItem("Health/Fitness", "http://www.xpresssites.com/lee/racine/XpSpecialSections/HEALTHANDWELLNESS/HW_Local.asp");	features.addMenuItem("Out & About", "http://www.xpresssites.com/lee/racine/XpSpecialSections/DININGANDENTERTAINMENT/DE_Local.asp");	features.addMenuItem("Home & Garden", "http://www.xpresssites.com/lee/racine/XpSpecialSections/HOMEANDGARDEN/HG_Local.asp");		features.addMenuItem("Community", "/community/");		features.positionLeft = 109;		features.positionTop = 78+winoffset;			window.records = new Menu('records');		records.addMenuItem("Weddings & Engagements", "/weddings/");		records.addMenuItem("Births & Deaths", "/records/");		records.addMenuItem("Police/Rescue Calls", "/records/");		records.addMenuItem("Legal Notices", "http://findit.abracat.com/search.cw1?t=3&lc=news&cat=ann&Q=SCG_LEGAL&ACAT=legal&spm=ro&cp=tfa2_&news=news_tti&APATH=tfa2/");		records.positionLeft = 109;		records.positionTop = 97+winoffset;			window.national = new Menu('national');		national.addMenuItem("Headlines", "http://wire.ap.org/");		national.addMenuItem("Sports", "http://wire.ap.org/?FRONTID=SPORTS");		national.addMenuItem("Business", "http://wire.ap.org/?FRONTID=BUSINESS");		national.addMenuItem("Health & Science", "http://wire.ap.org/?FRONTID=SCIENCE");		national.addMenuItem("The Arts", "http://wire.ap.org/?FRONTID=ARTS");		national.positionLeft = 109;		national.positionTop = 153+winoffset;			window.weblogs = new Menu('weblogs');		weblogs.addMenuItem("Index", "/weblogs/");		weblogs.addMenuItem("Tundra Talk", "/nucleus/index.php?blogid=5");		weblogs.addMenuItem("Woelfel on the Web", "/nucleus/index.php?blogid=4");		weblogs.positionLeft = 109;		weblogs.positionTop = 173+winoffset;		window.classifieds = new Menu('classifieds');	classifieds.addMenuItem("Submit an Ad", "http://www.racinecounty.com/classified/classform2.htm");	classifieds.addMenuItem("Real Estate", "http://localnet.abracat.com/cwstatic/hubs/hub_re.html?lc=news&cp=tfa2_&news=news_tti&APATH=tfa2/");	classifieds.addMenuItem("Employment", "http://localnet.abracat.com/cwstatic/hubs/hub_emp.html?lc=news&cp=tfa2_&news=news_tti&APATH=tfa2/");	classifieds.addMenuItem("Transportation", "http://localnet.abracat.com/cwstatic/hubs/hub_tra.html?lc=news&cp=tfa2_&news=news_tti&APATH=tfa2/");	classifieds.addMenuItem("Bizopps", "http://findit.abracat.com/search.cw1?t=2&lc=news&cat=bop&spm=ro&cp=tfa2_&news=news_tti&APATH=tfa2/");	classifieds.addMenuItem("Announcements", "http://findit.abracat.com/search.cw1?t=2&lc=news&cat=ann&spm=ro&cp=tfa2_&news=news_tti&APATH=tfa2/");	classifieds.addMenuItem("Services", "http://findit.abracat.com/search.cw1?t=2&lc=news&cat=ser&spm=ro&cp=tfa2_&news=news_tti&APATH=tfa2/");	classifieds.addMenuItem("Recreational", "http://findit.abracat.com/search.cw1?t=2&lc=news&cat=vac&spm=ro&cp=tfa2_&news=news_tti&APATH=tfa2/");	classifieds.addMenuItem("Merchandise", "http://findit.abracat.com/search.cw1?t=2&lc=news&cat=bst&spm=ro&cp=tfa2_&news=news_tti&APATH=tfa2/");	classifieds.addMenuItem("Legal Notices", "http://journaltimes.abracat.com/c2/legal/results/index.xml");	classifieds.addMenuItem("Obituaries", "http://journaltimes.abracat.com/c2/obituaries/results/index.xml");		classifieds.positionLeft = 109;		classifieds.positionTop = 210+winoffset;			window.contactus = new Menu('contactus');		contactus.addMenuItem("About Us", "http://www.journaltimes.com/about/");		contactus.addMenuItem("Privacy Policy", "/about/privacy.html");		contactus.addMenuItem("Job Openings", "/hr/jobs.html");		contactus.addMenuItem("Advertising Rates", "http://www.racinecounty.com/advertising/");		contactus.positionLeft = 109;		contactus.positionTop = 318+winoffset;			window.extras = new Menu('extras');		extras.addMenuItem("Subscriber Services", "https://secure.lee.net/racinecounty.com/subscriber/");		extras.addMenuItem("Feedback", "mailto:comments@journaltimes.com");		extras.addMenuItem("Send Us Info", "/pressrelease/");		extras.addMenuItem("Staff Directory", "/about/directory.html");		//extras.addMenuItem("TV Listings", "http://www.clicktv.com/index.asp?cid=58X");		extras.addMenuItem("FAQ", "/about/faq.html");		extras.positionLeft = 109;		extras.positionTop = 337+winoffset;			for(var k=0; k < menus.length; k++){			drawSubMenu(k, menus[k].positionTop, menus[k].positionLeft);		}	}}//draw the menufunction doStuff(){}	// end of menu code//******************function doLoad() {	if (document.picform){		rotate();	}}window.onload = doLoad;function pollSubPop (earl, name, widgets, specialsURL) {	host = location.hostname;	var url = earl;	popupWin = window.open(url, name, widgets);	popupWin.opener.top.name = "opener";	popupWin.focus();}
