$(document).ready(function(){
	var hcookie = $.cookie(hid);
	if (hcookie != iid) {
		$("select").hide();
		$("#container object").hide(); /* rlb */
		$("#i-overlay").show();
		$("#i-interstitial").show();
		$("#i-interstitial").css({
			'margin-left' : - $("#interstitial-img").width() / 2,
			'margin-top' : - $("#interstitial-img").height() / 2
		});
		$("div.close").css({
			'width' : $("#interstitial-img").width()
		});
	}
	$("#icloser, #i-overlay").click(function(){
		$("#i-overlay").hide();
		$("#i-interstitial").hide();
		$("select").show();
		$("#container object").show();/* rlb */
		if ($('#permhide:checked').val() !== undefined) {
			$.cookie(hid, iid, {expires: 1000 });
		}	
	});
});
