/* (c) 2007 johnmartinmd.com [2007-04-08T00:44:02-04:00]  */
jQuery.cookie = function(name, value, options) {
if (typeof value != 'undefined') { // name and value given, set cookie
options = options || {};
var expires = '';
if (typeof options.expires == 'number' || (options.expires  && options.expires.getTime)) {
var maxAge;
if (typeof options.expires == 'number') {
maxAge = options.expires * 24 * 60 * 60; // seconds
} else {
var now = new Date();
maxAge = parseInt((options.expires.getTime() - now.getTime()) / 1000); // seconds
if (maxAge > 0 && maxAge < 1) {
maxAge = 1;
}
}
if (maxAge <= 0) {
expires = '; expires=' + new Date(0).toGMTString(); // max-age=0 will not immediatly delete cookie in some browsers
} else {
expires = '; max-age=' + maxAge;
}
}
var path = options.path ? '; path=' + options.path : '';
var domain = options.domain ? '; domain=' + options.domain : '';
var secure = options.secure ? '; secure' : '';
document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
} else { // only name given, get cookie
var cookieValue = null;
if (document.cookie && document.cookie != '') {
var cookies = document.cookie.split(';');
for (var i = 0; i < cookies.length; i++) {
var cookie = cookies[i];
if (cookie.substring(0, name.length + 1) == (name + '=')) {
cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
break;
}
}
}
return cookieValue;
}
};
$(document).ready(function() {
setTimeout("unblurInit()", 1);
});
function unblurInit() {
$('a').each(function() {
this.onfocus = unblur;
});
}
function unblur() {
this.blur();
}
/*
* No More IE6 Background Flicker
* Use Object Detection to detect IE6
* already fixed in latest versions
*/
var  m = document.uniqueID /*IE*/
&& document.execCommand;
try{
if(!!m){
m("BackgroundImageCache", false, true) /* = IE6 only */
}
} catch(e) {};
