$(document).ready(function() {
	$("#closethis").click(function () {
		$("#bottompopup").slideUp();		
		$.cookie('dontshowbottomlayer', '1');
	});	
		
	var cookieVal = $.cookie('dontshowbottomlayer');	
	var firstTimeCookieVal = $.cookie('bottomlayerfirsttime');	
		
	if (cookieVal != '1') {
		if (firstTimeCookieVal != '1') {	
			//setTimeout(function () {$("#bottompopup").slideDown();},5000);
			$("#bottompopup").show();
		} else {
			$("#bottompopup").show();
		}
	}
	
	if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) { 
		scrollheight = document.body.parentNode.scrollTop;
		
		document.body.className = 'zipped';
		document.body.parentNode.className = 'zipped';
		$(".zip").css('scrollTop',scrollheight);		
		document.body.parentNode.scrollTop = 0;
		
	}
	
	$.cookie('bottomlayerfirsttime', '1');
});