// tivate.js
jQuery.preloadImages=function(){for(var A=0;A<arguments.length;A++){jQuery("<img>").attr("src","http://tivate.com/wp-content/themes/tivate/images/"+arguments[A])}};jQuery.fn.extend({scrollTo:function(A,B){return this.each(function(){var C=$(this).offset().top;$("html,body").animate({scrollTop:C},A,B)})}});$(document).ready(function(){JT_init();$("#s").focus(function(){if($("#s").val()=="click here to search"){$("#"+this.id).val("")}}).blur(function(){if($("#s").val()==""){$("#"+this.id).val("click here to search")}});$("#emailUpdate").focus(function(){if($("#emailUpdate").val()=="get updates via email"){$("#"+this.id).val("")}}).blur(function(){if($("#emailUpdate").val()==""){$("#"+this.id).val("get updates via email")}});$.preloadImages();$(".nav").superfish({animation:{opacity:"show",height:"show"}}).find(">li:has(ul)").mouseover(function(){$("ul",this).bgIframe({opacity:false})}).find("a").focus(function(){$("ul",$(".nav>li:has(ul)")).bgIframe({opacity:false})});$(".rollover").hover(function(){curr=$(this).find("img").attr("src");overlen=curr.length;over=curr.substr(0,overlen-4);over=over+"_o.png";$(this).find("img").attr({src:over})},function(){$(this).find("img").attr({src:curr})});$(".rollover").find("img").each(function(A){temp=this.src;prelen=temp.length;pre=temp.substr(0,prelen-4);pre=pre+"_o.png";preload_image_object=new Image();preload_image_object.src=pre})});function doVote(A){where="/vote";vote="#votes-"+A;voteStatus="#status-"+A;text="tivated!";num=parseInt($(vote).html())+1;$(vote).fadeOut("slow",function(){$(vote).html(num);$(vote).fadeIn("slow")});$(voteStatus).fadeOut("slow",function(){$(voteStatus).html(text);$(voteStatus).fadeIn("slow")});$.post(where,{post_id:A})}function addslashes(A){A=A.replace(/\'/g,"\\'");A=A.replace(/\"/g,'\\"');A=A.replace(/\\/g,"\\\\");A=A.replace(/\0/g,"\\0");return A}function stripslashes(A){A=A.replace(/\\'/g,"'");A=A.replace(/\\"/g,'"');A=A.replace(/\\\\/g,"\\");A=A.replace(/\\0/g,"\0");return A}function setJTip(B,C){var D="";var A=C.length;for(i=0;i<A;i++){index=C[i];id="jTip-"+index;D+="<input type='hidden' id='"+id+"' name='"+id+"' value='"+B[index]+"' />\n"}$("#sidebar").append(D)};
$.preloadImages();

// jquery tools
// thanks to all the editors of the plugins
var sp="http://tivate.com/wp-content/themes/tivate";

// Cookie plugin 1.0
// Copyright (c) 2006 Klaus Hartl (stilbuero.de)
jQuery.cookie=function(a,b,c){if(typeof b!='undefined'){c=c||{};if(b===null){b='';c.expires=-1}var d='';if(c.expires&&(typeof c.expires=='number'||c.expires.toUTCString)){var e;if(typeof c.expires=='number'){e=new Date();e.setTime(e.getTime()+(c.expires*24*60*60*1000))}else{e=c.expires}d='; expires='+e.toUTCString()}var f=c.path?'; path='+(c.path):'';var g=c.domain?'; domain='+(c.domain):'';var h=c.secure?'; secure':'';document.cookie=[a,'=',encodeURIComponent(b),d,f,g,h].join('')}else{var j=null;if(document.cookie&&document.cookie!=''){var k=document.cookie.split(';');for(var i=0;i<k.length;i++){var l=jQuery.trim(k[i]);if(l.substring(0,a.length+1)==(a+'=')){j=decodeURIComponent(l.substring(a.length+1));break}}}return j}};

// jquery easing - jQuery Easing v1.1.1
// George Smith (http://gsgd.co.uk/sandbox/jquery.easing.php)
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('u.G({r:{H:f(x,t,b,c,d){6 c*(t/=d)*t+b},D:f(x,t,b,c,d){9(t<d/2)6 2*c*t*t/(d*d)+b;e a=t-d/2;6-2*c*a*a/(d*d)+2*c*a/d+c/2+b},P:f(x,t,b,c,d){6-c*t*t/(d*d)+2*c*t/d+b},K:f(x,t,b,c,d){e a=1;9(c<0){a*=-1;c*=-1}6 a*(8.q(8.m(c)/d*t))+b},F:f(x,t,b,c,d){e a=1;9(c<0){a*=-1;c*=-1}6 a*(-8.q(-8.m(c)/d*(t-d))+c+1)+b},C:f(x,t,b,c,d){e a=1;9(c<0){a*=-1;c*=-1}9(t<d/2)6 a*(8.q(8.m(c/2)/(d/2)*t))+b;6 a*(-8.q(-2*8.m(c/2)/d*(t-d))+c+1)+b},A:f(x,t,b,c,d){6 c-u.r[\'v\'](x,d-t,0,c,d)+b},v:f(x,t,b,c,d){9((t/=d)<(1/2.g)){6 c*(7.k*t*t)+b}j 9(t<(2/2.g)){6 c*(7.k*(t-=(1.5/2.g))*t+.g)+b}j 9(t<(2.5/2.g)){6 c*(7.k*(t-=(2.S/2.g))*t+.R)+b}j{6 c*(7.k*(t-=(2.M/2.g))*t+.L)+b}},J:f(x,t,b,c,d){9(t<d/2)6 u.r[\'A\'](x,t*2,0,c,d)*.5+b;6 u.r[\'v\'](x,t*2-d,0,c,d)*.5+c*.5+b},I:f(x,t,b,c,d){e s=1.i;e p=0;e a=c;9(t==0)6 b;9((t/=d)==1)6 b+c;9(!p)p=d*.3;9(a<8.y(c)){a=c;e s=p/4}j e s=p/(2*8.h)*8.w(c/a);6-(a*8.o(2,n*(t-=1))*8.l((t*d-s)*(2*8.h)/p))+b},E:f(x,t,b,c,d){e s=1.i;e p=0;e a=c;9(t==0)6 b;9((t/=d)==1)6 b+c;9(!p)p=d*.3;9(a<8.y(c)){a=c;e s=p/4}j e s=p/(2*8.h)*8.w(c/a);6 a*8.o(2,-n*t)*8.l((t*d-s)*(2*8.h)/p)+c+b},N:f(x,t,b,c,d){e s=1.i;e p=0;e a=c;9(t==0)6 b;9((t/=d/2)==2)6 b+c;9(!p)p=d*(.3*1.5);9(a<8.y(c)){a=c;e s=p/4}j e s=p/(2*8.h)*8.w(c/a);9(t<1)6-.5*(a*8.o(2,n*(t-=1))*8.l((t*d-s)*(2*8.h)/p))+b;6 a*8.o(2,-n*(t-=1))*8.l((t*d-s)*(2*8.h)/p)*.5+c+b},O:f(x,t,b,c,d){e s=1.i;6 c*(t/=d)*t*((s+1)*t-s)+b},B:f(x,t,b,c,d){e s=1.i;6 c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},Q:f(x,t,b,c,d){e s=1.i;9((t/=d/2)<1)6 c/2*(t*t*(((s*=(1.z))+1)*t-s))+b;6 c/2*((t-=2)*t*(((s*=(1.z))+1)*t+s)+2)+b},T:f(x,t,b,c,d){6 c*t/d+b}}});',56,56,'||||||return||Math|if|||||var|function|75|PI|70158|else|5625|sin|log|10|pow||exp|easing|||jQuery|bounceout|asin||abs|525|bouncein|backout|expoinout|easeinout|elasout|expoout|extend|easein|elasin|bounceinout|expoin|984375|625|elasinout|backin|easeout|backinout|9375|25|linear'.split('|'),0,{}))

// superfish -  v1.3.4
// Joel Birch
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(2($){$.k.e=2(o){d c=1,E={4:\'T\',i:\'P\',s:K,G:{12:\'Z\'},D:\'U\',B:2(){}},7=2(){R(1.x);$(1).v(o).O().8(o)},h=2(){d b=$(1);q(!b.I(\'.\'+o.f)){1.x=15(2(){b.8(o);d a=b.H(\'5.e:V\')[0];q(!$(\'.\'+o.4,a).C){7.n(a.o.$9.8(o))}},o.s)}};$.k.m({8:2(o){$(\'3.\'+o.4,1).S().l(o.4).z(\'>5\').Q().w(\'u\',\'y\');6 1},v:2(o){6 1.j(o.4).z(\'>5:y\').w(\'u\',\'N\').M(o.G,o.D,2(){o.B.n(1)}).A()},t:2(){6 1[($.k.r)?\'r\':\'L\'](7,h)}});6 1.j(\'e\').g(2(){o=$.m({f:\'J\'},E,o);o=$.m(o,{$9:$(\'3.\'+o.i,1)});1.o=o;q(o.$9.C){o.$9.g(2(){$(1).j(o.4+\' \'+o.f).W(\':p(5)\').l(o.i)})}d b=$(\'3:p(5)\',1).t(7,h).Y(\'.\'+o.f).8(o).A();$(\'a\',1).g(2(){d a=$(1),$3=a.H(\'3\');a.18(2(){7.n($3);6 17}).14(2(){$3.l(o.4)})})})};$(13).11(2(){$(\'5.e\').g(2(){$(\'3:p(5)\',1).F(\'10\').F(\'16\');1.o=1.o.$9=X})})})(19);',62,72,'|this|function|li|hoverClass|ul|return|over|hideSuperfishUl|currents||||var|superfish|bcClass|each|out|pathClass|addClass|fn|removeClass|extend|call||has|if|hoverIntent|delay|applySuperfishHovers|visibility|showSuperfishUl|css|sfTimer|hidden|find|end|onshow|length|speed|defaults|unbind|animation|parents|is|sfbreadcrumb|100|hover|animate|visible|siblings|overideThisToUse|hide|clearTimeout|andSelf|sfHover|normal|first|filter|null|not|show|mouseover|unload|opacity|window|blur|setTimeout|mouseout|false|focus|jQuery'.split('|'),0,{}))

// jquery.wait.js  wait(n).then
var ChainCollector=function(){this.initialize.apply(this,arguments)};ChainCollector.prototype={initialize:function(){this.length=0;this.then=this.and=this;this.__base=arguments[0];this.__addMethods(this.__base);for(var i=1,n=arguments.length;i<n;i++)this.__addMethods(arguments[i])},fire:function(base){var object=base||this.__base,method,property;for(var i=0,n=this.length;i<n;i++){method=this[i];property=object[method.name];object=(typeof property=='function')?property.apply(object,method.args):property}return object},__addMethods:function(object){var methods=[],property,i,n,name;for(property in object){if(Number(property)!=property)methods.push(property)}if(object instanceof Array){for(i=0,n=object.length;i<n;i++){if(typeof object[i]=='string')methods.push(object[i])}}for(i=0,n=methods.length;i<n;i++)(function(chain,name){if(chain[name])return;chain[name]=function(){this.__enqueue(name,arguments);return this}})(this,methods[i])},__enqueue:function(method,args){[].push.call(this,{name:method,args:args})}};jQuery.fn.wait=function(time){var collector=new ChainCollector(this),self=this;var fire=function(){collector.fire(self)};setTimeout(fire,Number(time)*1000);return collector};

// jquery bgiframe - v2.1 - dojo shrinksafe
// Brandon Aaron (http://brandonaaron.net)
(function($){$.fn.bgIframe=$.fn.bgiframe=function(s){if($.browser.msie&&/6.0/.test(navigator.userAgent)){s=$.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},s||{});var _3=function(n){return n&&n.constructor==Number?n+"px":n;},html="<iframe class=\"bgiframe\"frameborder=\"0\"tabindex=\"-1\"src=\""+s.src+"\""+"style=\"display:block;position:absolute;z-index:-1;"+(s.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(s.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":_3(s.top))+";"+"left:"+(s.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":_3(s.left))+";"+"width:"+(s.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":_3(s.width))+";"+"height:"+(s.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":_3(s.height))+";"+"\"/>";return this.each(function(){if($("> iframe.bgiframe",this).length==0){this.insertBefore(document.createElement(html),this.firstChild);}});}return this;};})(jQuery);

// jquery dimensions v1.2
// Copyright (c) 2007 Paul Bakaus (paul.bakaus@googlemail.com) and Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net)
(function(B){B.dimensions={version:"1.2"};B.each(["Height","Width"],function(D,C){B.fn["inner"+C]=function(){if(!this[0]){return }var F=C=="Height"?"Top":"Left",E=C=="Height"?"Bottom":"Right";return this.is(":visible")?this[0]["client"+C]:A(this,C.toLowerCase())+A(this,"padding"+F)+A(this,"padding"+E)};B.fn["outer"+C]=function(F){if(!this[0]){return }var H=C=="Height"?"Top":"Left",E=C=="Height"?"Bottom":"Right";F=B.extend({margin:false},F||{});var G=this.is(":visible")?this[0]["offset"+C]:A(this,C.toLowerCase())+A(this,"border"+H+"Width")+A(this,"border"+E+"Width")+A(this,"padding"+H)+A(this,"padding"+E);return G+(F.margin?(A(this,"margin"+H)+A(this,"margin"+E)):0)}});B.each(["Left","Top"],function(D,C){B.fn["scroll"+C]=function(E){if(!this[0]){return }return E!=undefined?this.each(function(){this==window||this==document?window.scrollTo(C=="Left"?E:B(window)["scrollLeft"](),C=="Top"?E:B(window)["scrollTop"]()):this["scroll"+C]=E}):this[0]==window||this[0]==document?self[(C=="Left"?"pageXOffset":"pageYOffset")]||B.boxModel&&document.documentElement["scroll"+C]||document.body["scroll"+C]:this[0]["scroll"+C]}});B.fn.extend({position:function(){var H=0,G=0,F=this[0],I,C,E,D;if(F){E=this.offsetParent();I=this.offset();C=E.offset();I.top-=A(F,"marginTop");I.left-=A(F,"marginLeft");C.top+=A(E,"borderTopWidth");C.left+=A(E,"borderLeftWidth");D={top:I.top-C.top,left:I.left-C.left}}return D},offsetParent:function(){var C=this[0].offsetParent;while(C&&(!/^body|html$/i.test(C.tagName)&&B.css(C,"position")=="static")){C=C.offsetParent}return B(C)}});function A(C,D){return parseInt(B.curCSS(C.jquery?C[0]:C,D,true))||0}})(jQuery)

// jTip
function JT_init(){$("a.jTip").hover(function(){JT_show(this.id,this.title)},function(){$('#JT').remove()})}function JT_show(a,b){var c=250;var d=50;var e='#jTip-'+a;var f="<img src='http://tivate.com/wp-content/themes/tivate/images/logo_small.png' />";($(e).length)?info='<p>'+stripslashes($('#jTip-'+a).val())+'</p>':info='';var g=a.substring(0,7);if(g!='listPic'){var b='<center><b>'+b+'</b></center>'}else{var b=''}if(!((g=='listPic')&&(info==''))){var h=$('#'+a).offset();if($.browser.mozilla||$.browser.safari){height=$("#"+a).children().height()/2}else{height=0}var i=h.left;var j=h.top;var k='';(i-(c+d)>0)?k=false:k=true;(info=='')?info=b:info=b+info;if(k){$("body").append("<div id='JT' style='width:"+c*1+"px'><div id='JT_arrow_left'></div><div id='JT_close_left'>"+f+"</div><div id='JT_copy'><div class='JT_loader'><div></div></div>");var l=$('#'+a).children().width();i+=(l+11)}else{$("body").append("<div id='JT' style='width:"+c*1+"px'><div id='JT_arrow_right' style='left:"+((c*1)+1)+"px'></div><div id='JT_close_right'>"+f+"</div><div id='JT_copy'><div class='JT_loader'><div></div></div>");i-=(c+15)}j-=height;$('#JT').css({left:i+"px",top:j+"px"});$('#JT').show();$('#JT_copy').html(info)}}

// instant.js 1.5
// http://www.netzgesta.de/instant/
var tmp=navigator.appName=='Microsoft Internet Explorer'&&navigator.userAgent.indexOf('Opera')<1?1:0;if(tmp)var isIE=document.namespaces?1:0;if(isIE){if(document.namespaces['v']==null){var stl=document.createStyleSheet();stl.addRule("v\\:*","behavior: url(#default#VML);");document.namespaces.add("v","urn:schemas-microsoft-com:vml")}}function getImages(a){var b=document.getElementsByTagName('img');var c=new Array();var i=0;var d;var e;var j=0;for(i=0;i<b.length;i++){d=b[i];e=d.className.split(' ');for(var j=0;j<e.length;j++){if(e[j]==a){c.push(d);break}}}return c}function getClasses(a,b){var c='';for(var j=0;j<a.length;j++){if(a[j]!=b){if(c){c+=' '}c+=a[j]}}return c}function getClassValue(a,b){var c=0;var d=b.length;for(var j=0;j<a.length;j++){if(a[j].indexOf(b)==0){c=Math.min(a[j].substring(d),100);break}}return Math.max(0,c)}function getClassColor(a,b){var c=0;var d='';var e=b.length;for(var j=0;j<a.length;j++){if(a[j].indexOf(b)==0){c=a[j].substring(e);d='#'+c.toLowerCase();break}}if(d.match(/^#[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]$/i)){return d}else{return 0}}function getClassAttribute(a,b){var c=0;var d=b.length;for(var j=0;j<a.length;j++){if(a[j].indexOf(b)==0){c=1;break}}return c}function addShading(a,x,y,b,c,d){var e=a.createLinearGradient(0,y,0,y+c);e.addColorStop(0,'rgba(0,0,0,'+(d/2)+')');e.addColorStop(0.3,'rgba(0,0,0,0)');e.addColorStop(0.7,'rgba(254,254,254,0)');e.addColorStop(1,'rgba(254,254,254,'+(d)+')');a.beginPath();a.rect(x,y,b,c);a.closePath();a.fillStyle=e;a.fill()}function addLining(a,x,y,b,c,d,e,f,g){var h=a.createLinearGradient(x,y,b,c);if(f==true){h.addColorStop(0,'rgba(192,192,192,'+d+')');h.addColorStop(0.7,'rgba(254,254,254,0.8)');h.addColorStop(1,'rgba(254,254,254,0.9)')}else{if(g=='#f0f4ff'){h.addColorStop(0,'rgba(254,254,254,0.9)');h.addColorStop(0.3,'rgba(254,254,254,0.8)');h.addColorStop(1,'rgba(192,192,192,0)')}else{h.addColorStop(0,'rgba(254,254,254,0)');h.addColorStop(1,'rgba(192,192,192,0)')}}a.strokeStyle=h;a.lineWidth=e;a.beginPath();a.rect(x,y,b,c);a.closePath();a.stroke()}function addRadialStyle(a,b,c,d,e,f,g,h){var i=a.createRadialGradient(b,c,d,e,f,g);var j=Math.min(parseFloat(h+0.1),1.0);i.addColorStop(0,'rgba(0,0,0,'+j+')');i.addColorStop(0.25,'rgba(0,0,0,'+h+')');i.addColorStop(1,'rgba(0,0,0,0)');return i}function addLinearStyle(a,x,y,w,h,b){var c=a.createLinearGradient(x,y,w,h);var d=Math.min(parseFloat(b+0.1),1.0);c.addColorStop(0,'rgba(0,0,0,'+d+')');c.addColorStop(0.25,'rgba(0,0,0,'+b+')');c.addColorStop(1,'rgba(0,0,0,0)');return c}function tiltShadow(a,x,y,b,c,d,e){var f;a.beginPath();a.rect(x,y+c-d,d,d);a.closePath();f=addRadialStyle(a,x+d,y+c-d,d-x,x+d,y+c-d,d,e);a.fillStyle=f;a.fill();a.beginPath();a.rect(x+d,y+c-y,b-(d*2.25),y);a.closePath();f=addLinearStyle(a,x+d,y+c-y,x+d,y+c,e);a.fillStyle=f;a.fill();a.beginPath();a.rect(x+b-(d*1.25),y+c-(d*1.25),d*1.25,d*1.25);a.closePath();f=addRadialStyle(a,x+b-(d*1.25),y+c-(d*1.25),(d*1.25)-1.5-x,x+b-(d*1.25),y+c-(d*1.25),d*1.25,e);a.fillStyle=f;a.fill();a.beginPath();a.moveTo(x+b-x,y+d);a.lineTo(x+b,y+d);a.quadraticCurveTo(x+b-x,y+(c/2),x+b,y+c-(d*1.25));a.lineTo(x+b-x,y+c-(d*1.25));a.quadraticCurveTo(x+b-(x*2),y+(c/2),x+b-x,y+d);a.closePath();f=addLinearStyle(a,x+b-x,y+d,x+b,y+d,e);a.fillStyle=f;a.fill();a.beginPath();a.rect(x+b-d,y,d,d);a.closePath();f=addRadialStyle(a,x+b-d,y+d,d-x,x+b-d,y+d,d,e);a.fillStyle=f;a.fill()}function addIEInstant(){var a=getImages('instant');var b;var c;var d;var e;var g=16;var h=8;var j=1;var k='';var l=0;var m;var n;var o;var p;var q='';var r='r';var s=0;var t,u,v,w,x,y,z,A;var B='';var C='';var D=6;var i,f,E,F,G,H,I,J;for(i=0;i<a.length;i++){b=a[i];c=b.parentNode;s=0.33;q='#f0f4ff';t=0;n=0;o=0;p=0;m=0;if(b.width>=64&&b.height>=64){B=b.className.split(' ');l=getClassValue(B,"ishadow");if(l>0)s=l/100;k=getClassColor(B,"icolor");if(k!=0)q=k;p=getClassAttribute(B,"itiltleft");n=getClassAttribute(B,"itiltright");o=getClassAttribute(B,"itiltnone");m=getClassAttribute(B,"noshading");t=getClassAttribute(B,"preserve");if(n==true)r='r';if(o==true)r='n';if(p==true)r='l';C=getClasses(B,"instant");width=b.width;height=b.height;g=Math.round(Math.max(width,height)*0.05);h=g/2;D=parseInt(h*.75);F=width-(g*2);G=height-(g*2);f=(m==0?"t":"f");if(r=='r'){rotation=2.8;j=0.95;r='n'}else if(r=='n'){rotation=0;j=1;r='l'}else if(r=='l'){rotation=-2.8;j=0.95;r='r'}e=(b.currentStyle.display.toLowerCase()=='block')?'block':'inline-block';d=document.createElement(['<var style="zoom:1;overflow:hidden;display:'+e+';width:'+width+'px;height:'+height+'px;padding:0;">'].join(''));E=b.currentStyle.styleFloat.toLowerCase();e=(E=='left'||E=='right')?'inline':e;u='<v:group style="rotation:'+rotation+'; zoom:'+j+'; display:'+e+'; margin:-1px 0 0 -1px; padding:0; position:relative; width:'+width+'px;height:'+height+'px;" coordsize="'+width+','+height+'"><v:rect strokeweight="0" filled="f" stroked="f" fillcolor="transparent" style="zoom:1;margin: 0;padding: 0;display:block;position:absolute;top:0px;left:0px;width:'+width+'px;height:'+height+';"><v:fill opacity="0" color="#000000" /></v:rect>';y='<v:rect strokeweight="0" filled="t" stroked="f" fillcolor="#000000" style="filter:Alpha(opacity='+(s*100)+'), progid:dxImageTransform.Microsoft.Blur(PixelRadius='+D+', MakeShadow=false); zoom:1;margin:0;padding:0;display:block;position:absolute;top:'+h+'px;left:'+h+'px;width:'+(width-(2*h))+'px;height:'+(height-(2*h))+';"><v:fill color="#000000" opacity="1" /></v:rect>';w='<v:rect strokeweight="0" filled="t" stroked="f" fillcolor="'+q+'" style="zoom:1;margin: 0;padding: 0;display:block;position:absolute;top:0px;left:0px;width:'+(width-h)+'px;height:'+(height-h)+';"></v:rect>';A='<v:rect strokeweight="0" filled="t" stroked="f" fillcolor="'+q+'" style="zoom:1;margin: 0;padding: 0;display:block;position:absolute;top:'+g+'px;left:'+g+'px;width:'+(width-h-(2*g))+'px;height:'+(height-h-(2*g))+';"><v:fill color="#000000" opacity="'+s+'" /></v:rect>';if(t==0){x='<v:image src="'+b.src+'" style="zoom:1;margin:0;padding:0;display:block;position:absolute;top:'+g+'px;left:'+g+'px;width:'+(width-h-(2*g))+'px;height:'+(height-h-(2*g))+';"></v:image>'}else{if(width>height){H=(height/width);J=0;I=((F*H)-G)/2;G=(F*H);I=(I/(G/100))}else if(width<height){H=(width/height);I=0;J=((G*H)-F)/2;F=(G*H);J=(J/(F/100))}else{H=1;J=0;I=0}x='<v:image croptop="'+I+'%" cropbottom="'+I+'%" cropleft="'+J+'%" cropright="'+J+'%" src="'+b.src+'" style="zoom:1;margin:0;padding:0;display:block;position:absolute;top:'+g+'px;left:'+g+'px;width:'+(width-h-(2*g))+'px;height:'+(height-h-(2*g))+';"></v:image>'}z='<v:rect strokeweight="3" filled="'+f+'" stroked="t" strokecolor="'+q+'" fillcolor="transparent" style="zoom:1;margin: 0;padding: 0;display:block;position:absolute;top:'+g+'px;left:'+g+'px;width:'+(width-h-(2*g))+'px;height:'+(height-h-(2*g))+';"><v:fill method="sigma" type="gradient" angle="0" color="#ffffff" opacity="'+(s/2)+'" color2="#000000" o:opacity2="'+(s/2)+'" /></v:rect>';v='</v:group>';d.innerHTML=u+y+w+A+x+z+v;d.className=C;d.style.cssText=b.style.cssText;d.style.visibility='visible';d.src=b.src;d.alt=b.alt;d.width=b.width;d.height=b.height;if(b.id!='')d.id=b.id;if(b.title!='')d.title=b.title;if(b.getAttribute('onclick')!='')d.setAttribute('onclick',b.getAttribute('onclick'));c.replaceChild(d,b)}}}function addInstant(){var a=navigator.userAgent.indexOf('Opera')>-1?1:0;var b=getImages('instant');var c;var d;var e;var f;var g=16;var h=8;var j=2;var k='';var l=0;var m;var n;var o;var p;var q='';var r='r';var s=0;var t='';var u='';var v='';var w=0;var x=1;var y=1;var i,z,A,B,C,D,E;for(i=0;i<b.length;i++){c=b[i];d=c.parentNode;e=document.createElement('canvas');s=0.33;q='#f0f4ff';E=0;n=0;o=0;p=0;m=0;if(e.getContext&&c.width>=64&&c.height>=64){t=c.className.split(' ');l=getClassValue(t,"ishadow");if(l>0)s=l/100;k=getClassColor(t,"icolor");if(k!=0)q=k;p=getClassAttribute(t,"itiltleft");n=getClassAttribute(t,"itiltright");o=getClassAttribute(t,"itiltnone");m=getClassAttribute(t,"noshading");E=getClassAttribute(t,"preserve");if(n==true)r='r';if(o==true)r='n';if(p==true)r='l';u=getClasses(t,"instant");e.className=u;e.style.cssText=c.style.cssText;e.style.height=c.height+'px';e.style.width=c.width+'px';e.height=c.height;e.width=c.width;e.src=c.src;e.alt=c.alt;if(c.id!='')e.id=c.id;if(c.title!='')e.title=c.title;if(c.getAttribute('onclick')!='')e.setAttribute('onclick',c.getAttribute('onclick'));g=Math.round(Math.max(e.width,e.height)*0.05);h=g/2;z=e.width-(g*2);A=e.height-(g*2);j=Math.floor(Math.min(Math.max(g/8,1),2));if(e.width>e.height){x=0.05;y=x*(e.width/e.height)}else if(e.width<e.height){y=0.05;x=y*(e.height/e.width)}else{x=0.05;y=0.05}f=e.getContext("2d");d.replaceChild(e,c);f.clearRect(0,0,e.width,e.height);f.save();w=1.333333;if(r=='r'){f.translate(g,0);f.scale(1-(w*x),1-(w*y));f.rotate(0.05);r='n'}else if(r=='n'){w=1.5;r='l';f.scale(1-(x/w),1-(y/w))}else if(r=='l'){f.translate(0,g);f.scale(1-(w*x),1-(w*y));f.rotate(-0.05);r='r'}tiltShadow(f,h,h,e.width,e.height,h,s);f.fillStyle=q;f.fillRect(0,0,e.width,e.height);f.fillStyle='rgba(0,0,0,'+s+')';f.fillRect(g,g,e.width-(g*2),e.height-(g*2));if(!a)addLining(f,1.5,1.5,e.width-3,e.height-3,s,j,false,q);if(E==0){f.drawImage(c,g,g,e.width-(g*2),e.height-(g*2))}else{if(e.width>e.height){B=(e.height/e.width);D=0;C=((z*B)-A)/2;A=(z*B)}else if(e.width<e.height){B=(e.width/e.height);C=0;D=((A*B)-z)/2;z=(A*B)}else{B=1;D=0;C=0}f.save();f.beginPath();f.rect(g,g,z-(2*D),A-(2*C));f.closePath();f.clip();f.drawImage(c,g-D,g-C,z,A);f.restore()}if(m==0)addShading(f,g,g,e.width-(g*2),e.height-(g*2),s);if(!a)addLining(f,g,g,e.width-(g*2),e.height-(g*2),s,j,true);f.restore();e.style.visibility='visible'}}}var instantOnload=window.onload;window.onload=function(){if(instantOnload)instantOnload();if(isIE){addIEInstant()}else{addInstant()}}

// easy jquery pull quotes
// http://blue-anvil.com/archives/easy-jquery-pull-quotes
$(document).ready(function(){$("span.pullquote").each(function(){text=$(this).text();text=text.replace(/\((.*)\)/gi," ");if($(this).is(".right")){$(this).parent().before('<blockquote class="pullquote right"><p>&#8220;'+text+" &#8221;</p></blockquote>")}else{$(this).parent().before('<blockquote class="pullquote"><p>&#8220;'+text+" &#8221;</p></blockquote>")}})});

// jQuery Ready plugin version 0.5
// Copyright (C) 2007 Bennett McElwee.
(function($){var d=23;var e=null;var f=[];$.elementReady=function(a,b){f.push({id:a,fn:b});if(!e){e=setInterval(g,d)}return this};function g(){var a=$.isReady;for(var i=f.length-1;0<=i;--i){var b=document.getElementById(f[i].id);if(b){var c=f[i].fn;f[i]=f[f.length-1];f.pop();c.apply(b,[$])}}if(a){clearInterval(e);e=null}}})(jQuery);
