//Home popup start

//Overylay start



$(document).ready(function(){



	$('#overview').fadeTo("slow", 1);



	$("#overview").slideToggle("slow");	



	$('.black_overlay').slideToggle("slow");



	$('.black_overlay').fadeTo("slow", 1);



	i = getCookie('home_pop');	



	if(i!=1)



	setTimeout(closewindow, 5000);



	else



	closewindow();



});



function closewindow(){



	$('.black_overlay').fadeTo("slow", 0);



	$('#overview').fadeTo("slow", 0);



	document.getElementById("index_pop").style.display = 'none';	



	document.getElementById("index_home").style.display = 'block';



	checkCookie();



}



//Overylay end



//Cookies function Start



function getCookie(c_name)



{



	if (document.cookie.length>0)



	{



		c_start=document.cookie.indexOf(c_name + "=");



		if (c_start!=-1){



			c_start=c_start + c_name.length+1;



			c_end=document.cookie.indexOf(";",c_start);



			if (c_end==-1) c_end=document.cookie.length;



			return unescape(document.cookie.substring(c_start,c_end));



		}



	}



	return "";



}



function setCookie(c_name,value,expireseconds) {



	var exdate = new Date();



	exdate.setTime(exdate.getTime()+expireseconds);



	document.cookie=c_name+ "=" +escape(value)+((expireseconds==null) ? "" : ";expires="+exdate.toUTCString());



}



function checkCookie() {



	setCookie("home_pop",1, 1000*60*60);



}



//Cookies function End


//Home popup start

