// JavaScript Document
var d = document;
var winIE = (navigator.userAgent.indexOf("Opera")==-1 && (d.getElementById && d.documentElement.behaviorUrns)) ? true : false;
function bodySize()
{
	if(winIE && d.documentElement.clientWidth) 
	{
		sObj = d.getElementsByTagName("body")[0].style;
		sObj.width = (d.documentElement.clientWidth<1000) ? "1000px" : "auto";
		
	}
 }

 function init()
 {
	if(winIE) { bodySize(); }
 }
 onload = init;
 if(winIE) { onresize = bodySize; }
 
 
 
function ShowHide(divId) {
var id = document.getElementById(divId);
if (id.style.display == "none") {
eval("id.style.display = 'block'");
} else {
eval("id.style.display = 'none'");
}
}

function subscribe( email ) {
	$.post( '/subscribe.php', { email:email }, function( data ) {
		if( data.status ) {
			document.location.href = "/subscribe/";
		} else {
			alert( data.msg );
		}
	}, "json" );
	return false;
}