jQuery(document).ready(function(){
    /*
	setTimeout(function(){
		if(!getCookie("kauasInfoPopupOpened")) {
			jQuery.fn.colorbox({
				href: "/default/siteBasicInfo",
				width: 500
			});
			var expdate = new Date (); // pre-set to the current time and date
			expdate.setTime(expdate.getTime() + 1000 * 60 * 60 * 24); // add one day to it
			//24 hours/day * 60 minutes/hour * 60 seconds/minute * 1000 milliseconds/second	
			setCookie("kauasInfoPopupOpened","true",expdate);
		}
	}, 5000);
	// settimeout second arg respresent millisecons (1000 means 1sec)
    */
});

function setCookie(name, value, expires) {
	// no expiration date specified? use this date and it will just be deleted soon.
  if (!expires) expires = new Date();
	document.cookie = name + "=" + escape(value) + "; expires=" + expires.toGMTString() + "; path=/";
}

function getCookie(name) {
	var cookies = document.cookie;
	if (cookies.indexOf(name) != -1) {
		var startpos = cookies.indexOf(name)+name.length+1;
		var endpos = cookies.indexOf(";",startpos);
		if (endpos == -2) endpos = cookies.length;
		return unescape(cookies.substring(startpos,endpos));
	} else {
		return false; // the cookie couldn't be found! it was never set before, or it expired.
	}
}


