// JavaScript Document
function setCookie(cookieName,cookieValue,nDays) {
 var today = new Date();
 var expire = new Date();
 if (nDays==null || nDays==0) nDays=1;
 expire.setTime(today.getTime() + 3600000*24*nDays);
 document.cookie = cookieName+"="+escape(cookieValue)
                 + ";expires="+expire.toGMTString();
}


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 goWide() {
	jQuery("#globalwidth").animate({
		width:"100%"
	});
	setCookie('snbscreen','wide',366);
}

function goFixed() {
	jQuery("#globalwidth").animate({
		width:"990px"
	});
	setCookie('snbscreen','', -1);
}

function change_appear(){
		if($("div_feedback").style.display == 'none'){
			$("div_feedback").show();
		} else {
			$("div_feedback").hide();
		}
}

function hide_feedbackform(){
	$("div_feedback").hide();
}

function showfooter_exploremore(){
	$('exploremore_holder').style.display = '';
	$('directory_holder').style.display = 'none';
}

function showfooter_directory(){
	$('directory_holder').style.display = '';
	$('exploremore_holder').style.display = 'none';
}