var expDate = new Date(); expDate.setTime(expDate.getTime() + (1000 * 60 * 60 * 24 *14 ));       
function setCookie(name, value, expires){document.cookie = name + "=" + escape(value) + "; path=/" + ((expires == null) ? "" : "; expires=" + expires.toGMTString());}
function getCookie (name){name = name + "="; var carray = document.cookie.split(';'); for(var i=0;i < carray.length;i++){var c = carray[i];	while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(name) == 0) return c.substring(name.length,c.length);}	return null;}	
function popupShow(){var $welcome=getCookie("welcome");	var days14=getCookie("after_popup");var like=getCookie("like");	if((like==null) || (like=="null")){if(days14==null)	{if($welcome==null){setCookie("welcome","show_pop",expDate);}else{showPopWin('/popup_window.html',475,325,null,false);setCookie("after_popup","user active for 14 days",expDate);}}}}
window.onload=function(){initPopUp();popupShow();}
