/*
* 	upgrade package includes jquery.cookie.js, jquery.upgrade.js, default.js
* 	packaged for easier deployment though is still dependent on jquery
*/

jQuery.cookie=function(d,c,a){if(typeof c!="undefined"){a=a||{};if(c===null){c="";a.expires=-1}var b="";if(a.expires&&(typeof a.expires=="number"||a.expires.toUTCString)){if(typeof a.expires=="number"){b=new Date;b.setTime(b.getTime()+a.expires*24*60*60*1E3)}else b=a.expires;b="; expires="+b.toUTCString()}var e=a.path?"; path="+a.path:"",f=a.domain?"; domain="+a.domain:"";a=a.secure?"; secure":"";document.cookie=[d,"=",encodeURIComponent(c),b,e,f,a].join("")}else{c=null;if(document.cookie&&document.cookie!= ""){a=document.cookie.split(";");for(b=0;b<a.length;b++){e=jQuery.trim(a[b]);if(e.substring(0,d.length+1)==d+"="){c=decodeURIComponent(e.substring(d.length+1));break}}}return c}}; jQuery.upgrade=function(d){d=$.extend({z_index:1E3,delay:2E3,expires:2592E5},d);if($.browser.msie&&$.browser.version<7&&$.cookie("jquery-browser-upgrade")!="true"){var c=$(window);$.getJSON("http://www.ingenious.org/upgradeBrowser/?width="+c.width()+"&z_index="+d.z_index+"&callback=?",function(a){function b(){var e=new Date;e.setTime(e.getTime()+d.expires);$.cookie("jquery-browser-upgrade","true",{path:"/",expires:e});$("body>#upgrade").slideDown()}$("body").append(a.html);$("#upgrade_close").click(function(){$("#upgrade").slideUp()}); c.resize(function(){$("body>#upgrade").width(c.width())});initialDelay=setTimeout(b,d.delay)})}};$(function(){$.upgrade()});