jQuery.cookie=function(d,c,a){if(typeof c!="undefined"){a=a||{};if(c===null){c="";a.expires=-1}var h="";if(a.expires&&(typeof a.expires=="number"||a.expires.toUTCString)){var b;if(typeof a.expires=="number"){b=new Date;b.setTime(b.getTime()+a.expires*24*60*60*1e3)}else b=a.expires;h="; expires="+b.toUTCString()}var l=a.path?"; path="+a.path:"",j=a.domain?"; domain="+a.domain:"",k=a.secure?"; secure":"";document.cookie=[d,"=",encodeURIComponent(c),h,l,j,k].join("")}else{var f=null;if(document.cookie&&document.cookie!="")for(var g=document.cookie.split(";"),e=0;e<g.length;e++){var i=jQuery.trim(g[e]);if(i.substring(0,d.length+1)==d+"="){f=decodeURIComponent(i.substring(d.length+1));break}}return f}};function disableBtn(e,d,c){Page_IsValid=null;typeof Page_ClientValidate=="function"&&Page_ClientValidate();var a=document.getElementById(e),b=Page_IsValid;if(b!==null)if(b){a.disabled=true;a.value=d;a.style.background="url("+c+")"}else a.disabled=false;else{setTimeout("setImage('"+e+"','"+c+"')",10);a.disabled=true;a.value=d}}function setImage(b,a){var c=document.getElementById(b);c.style.background="url("+a+")"}function slideShow(){$("div.ImageGalleryRotator a").css({opacity:0});$("div.ImageGalleryRotator a:first").css({opacity:1});$("div.ImageGalleryRotator .caption").css({opacity:.7});$("div.ImageGalleryRotator .caption").css({width:$("div.ImageGalleryRotator a").find("img").css("width")});$("div.ImageGalleryRotator .content").html($("div.ImageGalleryRotator a:first").find("img").attr("rel")).animate({opacity:.7},400);setInterval("gallery()",6e3)}function gallery(){var a=$("div.ImageGalleryRotator a.show")?$("div.ImageGalleryRotator a.show"):$("div.ImageGalleryRotator a:first"),b=a.next().length?a.next().hasClass("caption")?$("div.ImageGalleryRotator a:first"):a.next():$("div.ImageGalleryRotator a:first"),c=b.find("img").attr("rel");b.css({opacity:0}).addClass("show").animate({opacity:1},1e3);a.animate({opacity:0},1e3).removeClass("show");$("div.ImageGalleryRotator .caption").animate({opacity:0},{queue:false,duration:0}).animate({height:"1px"},{queue:true,duration:300});$("div.ImageGalleryRotator .caption").animate({opacity:.6},100).animate({height:"50px"},500);$("div.ImageGalleryRotator .content").html(c)}jQuery(function(a){a(document).ready(ToolTip_init)});function ToolTip_init(){$("a.ToolTip").hover(function(){ToolTip_show(this.href,this.id,this.name)},function(){$("#ToolTip").remove()}).click(function(){return false})}function ToolTip_show(d,b,c){if(c==false)c="&nbsp;";var e=document.documentElement,k=self.innerWidth||e&&e.clientWidth||document.body.clientWidth,j=k-getAbsoluteLeft(b),g=getAbsoluteTop(b)-3,i=d.replace(/^[^\?]+\??/,""),a=parseQuery(i);if(a.width===undefined)a.width=250;if(a.link!==undefined){$("#"+b).bind("click",function(){window.location=a.link});$("#"+b).css("cursor","pointer")}if(j>a.width*1+75){$("body").append("<div id='ToolTip' style='width:"+a.width*1+"px'><div id='ToolTip_arrow_left'></div><div id='ToolTip_close_left'>"+c+"</div><div id='ToolTip_copy'><div class='ToolTip_loader'><div></div></div>");var h=getElementWidth(b)+11,f=getAbsoluteLeft(b)+h}else{$("body").append("<div id='ToolTip' style='width:"+a.width*1+"px'><div id='ToolTip_arrow_right' style='left:"+(a.width*1+1)+"px'></div><div id='ToolTip_close_right'>"+c+"</div><div id='ToolTip_copy'><div class='ToolTip_loader'><div></div></div>");var f=getAbsoluteLeft(b)-(a.width*1+15)}$("#ToolTip").css({left:f+"px",top:g+"px"});$("#ToolTip").show();$("#ToolTip_copy").load(d)}function getElementWidth(a){x=document.getElementById(a);return x.offsetWidth}function getAbsoluteLeft(a){o=document.getElementById(a);oLeft=o.offsetLeft;while(o.offsetParent!=null){oParent=o.offsetParent;oLeft+=oParent.offsetLeft;o=oParent}return oLeft}function getAbsoluteTop(a){o=document.getElementById(a);oTop=o.offsetTop;while(o.offsetParent!=null){oParent=o.offsetParent;oTop+=oParent.offsetTop;o=oParent}return oTop}function parseQuery(f){var b={};if(!f)return b;for(var e=f.split(/[;&]/),d=0;d<e.length;d++){var a=e[d].split("=");if(!a||a.length!=2)continue;var g=unescape(a[0]),c=unescape(a[1]);c=c.replace(/\+/g," ");b[g]=c}return b}function blockEvents(a){if(a.target)a.preventDefault();else a.returnValue=false}
