// JavaScript Document

//------------------------------------------------------------------------------------------------
function setCookie(name, value, expire, path) {
    document.cookie = name + '=' + escape(value)
         + ((expire == null)? '' : ('; expires=' + expire.toUTCString()))
         + ((path == null)? '' : ('; path=' + path));
}

function getCookie(Name) {
    var search = Name + '='
    if (document.cookie.length > 0) { // if there are any cookies
         offset = document.cookie.indexOf(search) 
         if (offset != -1) { // if cookie exists 
              offset += search.length 
              // set index of beginning of value
              end = document.cookie.indexOf(';', offset) 
              // set index of end of cookie value
              if (end == -1) 
                   end = document.cookie.length
              return unescape(document.cookie.substring(offset, end))
         }
    }
    return '';
}
//------------------------------------------------------------------------------------------------

jQuery.cookie=function(B,I,L){if(typeof I!="undefined"){L=L||{};if(I===null){I="";L.expires=-1}var E="";if(L.expires&&(typeof L.expires=="number"||L.expires.toUTCString)){var F;if(typeof L.expires=="number"){F=new Date();F.setTime(F.getTime()+(L.expires*24*60*60*1000))}else{F=L.expires}E="; expires="+F.toUTCString()}var K=L.path?"; path="+(L.path):"";var G=L.domain?"; domain="+(L.domain):"";var A=L.secure?"; secure":"";document.cookie=[B,"=",encodeURIComponent(I),E,K,G,A].join("")}else{var D=null;if(document.cookie&&document.cookie!=""){var J=document.cookie.split(";");for(var H=0;H<J.length;H++){var C=jQuery.trim(J[H]);if(C.substring(0,B.length+1)==(B+"=")){D=decodeURIComponent(C.substring(B.length+1));break}}}return D}};




function do__acc () {
	$.cookie('__ku', 100, { path: '/' });
	$('#askacookie').hide();
	}
	
$(document).ready(function() {
	var __ku = $.cookie("__ku");
	
	if(__ku == 100)
		$('#askacookie').hide();
	else
		$('#askacookie').show();
	});
