var BeginShow = '';

function pqr2() {
	ShowSubscribeBox();
	pqr();
}

function setCookie(name, value, expires, path, domain, secure) {
	document.cookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : "");
}

function getCookie(name) {
	var cookie = " " + document.cookie;
	var search = " " + name + "=";
	var setStr = null;
	var offset = 0;
	var end = 0;
	if (cookie.length > 0) {
		offset = cookie.indexOf(search);
		if (offset != -1) {
			offset += search.length;
			end = cookie.indexOf(";", offset)
			if (end == -1) { end = cookie.length; }
			setStr = unescape(cookie.substring(offset, end));
		}
	}
	return(setStr);
}


function HideSubscribeBox() {
	var aBox = document.getElementById('interContainer');
	aBox.style.display = 'none';
}

function FreeZeTimer() {
	if(BeginShow == 'null0') {
		var aBox = document.getElementById('interContainer');
		aBox.style.display = 'block';
		aBox.style.position = 'fixed';
		aBox.style.margin = '-200px 0 0 -200px';
		aBox.style.top =  '50%';
		aBox.style.left =  '50%';
	}
	//write coocies
	setCookie('ShowSubscribeBox', 'none');
}

function ShowSubscribeBox() {
	BeginShow = getCookie('ShowSubscribeBox');
	BeginShow = BeginShow + '0';
	setTimeout('FreeZeTimer()', 2000);
}