/*
	panelgallery
*/(function(a){a.fn.extend({panelGallery:function(b){var c={sections:3,imageTransitionDelay:3e3,sectionTransitionDelay:700,startDelay:2e3,repeat:!0,direction:"lr"},b=a.extend(c,b);return this.each(function(){function e(){return Math.round(Math.random()*1e8)}function f(b){return a("img:eq("+b+")",d).attr("name")==""?c.direction:a("img:eq("+b+")",d).attr("name")}function g(b){if(b=="lr"||b=="rl"){if(v&&b=="lr"){r.reverse();v=!1}if(!v&&b=="rl"){r.reverse();v=!0}setTimeout(function(){a("#p"+r[0]).fadeIn(c.sectionTransitionDelay,x)},c.imageTransitionDelay)}else if(b=="tb"||b=="bt"){if(w&&b=="tb"){q.reverse();w=!1}if(!w&&b=="bt"){q.reverse();w=!0}setTimeout(function(){a("#p"+q[0]).fadeIn(c.sectionTransitionDelay,x)},c.imageTransitionDelay)}}function x(){t++;var b=f(u);if((b=="lr"||b=="rl")&&t<j)a("#p"+r[t]).fadeIn(c.sectionTransitionDelay,x);else if((b=="tb"||b=="bt")&&t<i)a("#p"+q[t]).fadeIn(c.sectionTransitionDelay,x);else{u==0&&c.repeat&&a("img:last",d).hide();a("img:eq("+u+")",d).show();a("div.sectionVert",d).hide();a("div.sectionHoriz",d).hide();t=0;u++;a("div.sectionHoriz",d).css({"background-image":"url("+a("img:eq("+u+")",d).attr("src")+")"});a("div.sectionVert",d).css({"background-image":"url("+a("img:eq("+u+")",d).attr("src")+")"});if(u<h.length){nextDirection=f(u);g(nextDirection)}else if(c.repeat){u=0;a("img:not(:last)",d).hide();a("div.sectionVert",d).hide();a("div.sectionHoriz",d).hide();a("div.sectionHoriz",d).css({"background-image":"url("+a("img:eq(0)",d).attr("src")+")"});a("div.sectionVert",d).css({"background-image":"url("+a("img:eq(0)",d).attr("src")+")"});firstImageDirection=f(0);g(firstImageDirection)}}}var c=b,d=a(this);a("img",d).each(function(b){preload=new Image(a(this).attr("width"),a(this).attr("height"));preload.src=a(this).attr("src")});var h=a("img",d);a("img:not(:first)",d).hide();a("img",d).css({position:"absolute",top:"0px",left:"0px"});var i=c.sections,j=c.sections,k=a("img:first",d).attr("width"),l=a("img:first",d).attr("height"),m=Math.floor(k/c.sections),n=Math.floor(l/c.sections);k%c.sections!=0&&j++;l%c.sections!=0&&i++;a(this).css({width:k,height:l});var o=0,p=0,q=new Array,r=new Array;for(var s=0;s<j;s++){panelID=e();a(this).append('<div class="sectionHoriz" id="p'+panelID+'">');a("#p"+panelID).css({left:o+"px","background-position":-o+"px 50%",display:"none"});o+=m;r[s]=panelID}(c.direction=="lr"||c.direction=="rl")&&a("div.sectionHoriz",d).css({top:"0px","background-repeat":"no-repeat",position:"absolute","z-index":"10",width:m+"px",height:l+"px","float":"left","background-image":"url("+a("img:eq(1)",d).attr("src")+")"});for(var s=0;s<i;s++){panelID=e();a(this).append('<div class="sectionVert" id="p'+panelID+'">');a("#p"+panelID).css({top:p+"px","background-position":"50% "+ -p+"px",display:"none"});p+=n;q[s]=panelID}a("div.sectionVert",d).css({left:"0px","background-repeat":"no-repeat",position:"absolute","z-index":"10",width:k+"px",height:n+"px","background-image":"url("+a("img:eq(1)",d).attr("src")+")"});var t=0,u=1,v=!1,w=!1,y=a("img:eq(1)",d).attr("name")==""?c.direction:a("img:eq(1)",d).attr("name");if(y=="rl"){r.reverse();v=!0}if(y=="bt"){q.reverse();w=!0}var z=y=="lr"||y=="rl"?r[0]:q[0];setTimeout(function(){a("#p"+z).fadeIn(c.sectionTransitionDelay,x)},c.startDelay)})}})})(jQuery);(function(){function waitDom(a){if(document.addEventListener)document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,!1);a()},!1);else if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);a()}});document.documentElement.doScroll&&window==window.top&&function(){if(S.ready)return;try{document.documentElement.doScroll("left")}catch(b){setTimeout(arguments.callee,0);return}a()}()}if(typeof window.onload=="function"){var b=window.onload;window.onload=function(){b();a()}}else window.onload=a}function waitLibs(){S.lib&&S.lang?S.load():setTimeout(waitLibs,0)}function handleClick(a){var b;if(U.isLink(this))b=this;else{b=S.lib.getTarget(a);while(!U.isLink(b)&&b.parentNode)b=b.parentNode}S.lib.preventDefault(a);if(b){S.open(b);S.gallery.length&&S.lib.preventDefault(a)}}function listenKeys(a){if(!S.options.enableKeys)return;S.lib[(a?"add":"remove")+"Event"](document,"keydown",handleKey)}function handleKey(a){var b=S.lib.keyCode(a),c;switch(b){case 81:case 88:case 27:c=S.close;break;case 37:c=S.previous;break;case 39:c=S.next;break;case 32:c=typeof slide_timer=="number"?S.pause:S.play}if(c){S.lib.preventDefault(a);c()}}function loadContent(){var a=S.getCurrent();if(!a)return;var b=a.player=="inline"?"html":a.player;typeof S[b]!="function"&&S.error("Unknown player: "+b);var c=!1;if(S.content){S.content.remove();c=!0;S.revertOptions();a.options&&S.applyOptions(a.options)}U.removeChildren(S.skin.bodyEl());S.content=new S[b](a);listenKeys(!1);S.skin.onLoad(S.content,c,function(){if(!S.content)return;if(typeof S.content.ready!="undefined")var a=setInterval(function(){if(S.content){if(S.content.ready){clearInterval(a);a=null;S.skin.onReady(contentReady)}}else{clearInterval(a);a=null}},100);else S.skin.onReady(contentReady)});if(S.gallery.length>1){var d=S.gallery[S.current+1]||S.gallery[0];if(d.player=="img"){var e=new Image;e.src=d.content}var f=S.gallery[S.current-1]||S.gallery[S.gallery.length-1];if(f.player=="img"){var g=new Image;g.src=f.content}}}function contentReady(){if(!S.content)return;S.content.append(S.skin.bodyEl(),content_id,S.dimensions);S.skin.onFinish(finishContent)}function finishContent(){if(!S.content)return;S.content.onLoad&&S.content.onLoad();S.options.onFinish&&S.options.onFinish();S.isPaused()||S.play();listenKeys(!0)}var ua=navigator.userAgent.toLowerCase(),S={version:"3.0rc1",adapter:null,cache:[],client:{isIE:ua.indexOf("msie")>-1,isIE6:ua.indexOf("msie 6")>-1,isIE7:ua.indexOf("msie 7")>-1,isGecko:ua.indexOf("gecko")>-1&&ua.indexOf("safari")==-1,isWebkit:ua.indexOf("applewebkit/")>-1,isWindows:ua.indexOf("windows")>-1||ua.indexOf("win32")>-1,isMac:ua.indexOf("macintosh")>-1||ua.indexOf("mac os x")>-1,isLinux:ua.indexOf("linux")>-1},content:null,current:-1,dimensions:null,gallery:[],expando:"shadowboxCacheKey",libraries:{Prototype:"prototype",jQuery:"jquery",MooTools:"mootools",YAHOO:"yui",dojo:"dojo",Ext:"ext"},options:{adapter:null,animate:!0,animateFade:!0,autoplayMovies:!0,continuous:!1,ease:function(a){return 1+Math.pow(a-1,3)},enableKeys:!0,errors:{fla:{name:"Flash",url:"http://www.adobe.com/products/flashplayer/"},qt:{name:"QuickTime",url:"http://www.apple.com/quicktime/download/"},wmp:{name:"Windows Media Player",url:"http://www.microsoft.com/windows/windowsmedia/"},f4m:{name:"Flip4Mac",url:"http://www.flip4mac.com/wmv_download.htm"}},ext:{img:["png","jpg","jpeg","gif","bmp"],swf:["swf"],flv:["flv","m4v"],qt:["dv","mov","moov","movie","mp4"],wmp:["asf","wm","wmv"],qtwmp:["avi","mpg","mpeg"]},flashParams:{bgcolor:"#000000",allowfullscreen:!0},flashVars:{},flashVersion:"9.0.115",handleOversize:"resize",handleUnsupported:"link",language:"en",onChange:null,onClose:null,onFinish:null,onOpen:null,players:["img"],showMovieControls:!0,skipSetup:!1,slideshowDelay:0,useSizzle:!0,viewportPadding:20},path:"",plugins:null,ready:!1,regex:{domain:/:\/\/(.*?)[:\/]/,inline:/#(.+)$/,rel:/^(light|shadow)box/i,gallery:/^(light|shadow)box\[(.*?)\]/i,unsupported:/^unsupported-(\w+)/,param:/\s*([a-z_]*?)\s*=\s*(.+)\s*/},applyOptions:function(a){if(a){default_options=apply({},S.options);apply(S.options,a)}},revertOptions:function(){apply(S.options,default_options)},change:function(a){if(!S.gallery)return;if(!S.gallery[a]){if(!S.options.continuous)return;a=a<0?S.gallery.length-1:0}S.current=a;if(typeof slide_timer=="number"){clearTimeout(slide_timer);slide_timer=null;slide_delay=slide_start=0}S.options.onChange&&S.options.onChange();loadContent()},close:function(){if(!active)return;active=!1;listenKeys(!1);if(S.content){S.content.remove();S.content=null}typeof slide_timer=="number"&&clearTimeout(slide_timer);slide_timer=null;slide_delay=0;S.options.onClose&&S.options.onClose();S.skin.onClose();S.revertOptions()},contentId:function(){return content_id},error:function(a){if(!S.debug)return;typeof window.console!="undefined"&&typeof console.log=="function"?console.log(a):alert(a)},getCurrent:function(){return S.current>-1?S.gallery[S.current]:null},hasNext:function(){return S.gallery.length>1&&(S.current!=S.gallery.length-1||S.options.continuous)},init:function(a){if(initialized)return;initialized=!0;a=a||{};init_options=a;a&&apply(S.options,a);for(var b in S.options.ext)S.regex[b]=new RegExp(".("+S.options.ext[b].join("|")+")s*$","i");if(!S.path){var c=/(.+\/)shadowbox\.js/i,d;each(document.getElementsByTagName("script"),function(a){d=c.exec(a.src);if(d){S.path=d[1];return!1}})}if(S.options.adapter)S.adapter=S.options.adapter.toLowerCase();else{for(var e in S.libraries)if(typeof window[e]!="undefined"){S.adapter=S.libraries[e];break}S.adapter||(S.adapter="base")}S.options.useSizzle&&!window.Sizzle&&(window.jQuery?window.Sizzle=jQuery.find:U.include(S.path+"libraries/sizzle/sizzle.js"));S.lang||U.include(S.path+"languages/shadowbox-"+S.options.language+".js");each(S.options.players,function(a){(a=="swf"||a=="flv")&&!window.swfobject&&U.include(S.path+"libraries/swfobject/swfobject.js");S[a]||U.include(S.path+"players/shadowbox-"+a+".js")});S.lib||U.include(S.path+"adapters/shadowbox-"+S.adapter+".js");waitDom(waitLibs)},isActive:function(){return active},isPaused:function(){return slide_timer=="paused"},load:function(){if(S.ready)return;S.ready=!0;if(S.skin.options){apply(S.options,S.skin.options);apply(S.options,init_options)}S.skin.init();S.options.skipSetup||S.setup()},next:function(){S.change(S.current+1)},open:function(a){U.isLink(a)&&(S.inCache(a)?a=S.cache[a[S.expando]]:a=S.buildCacheObj(a));if(a.constructor==Array){S.gallery=a;S.current=0}else if(!a.gallery){S.gallery=[a];S.current=0}else{S.current=null;S.gallery=[];each(S.cache,function(b){if(b.gallery&&b.gallery==a.gallery){S.current==null&&b.content==a.content&&b.title==a.title&&(S.current=S.gallery.length);S.gallery.push(b)}});if(S.current==null){S.gallery.unshift(a);S.current=0}}a=S.getCurrent();if(a.options){S.revertOptions();S.applyOptions(a.options)}var b,c,d,e,f,g=S.options.errors,h,i;for(var j=0;j<S.gallery.length;++j){b=S.gallery[j]=apply({},S.gallery[j]);c=!1;if(d=S.regex.unsupported.exec(b.player))if(S.options.handleUnsupported=="link"){b.player="html";switch(d[1]){case"qtwmp":e="either";f=[g.qt.url,g.qt.name,g.wmp.url,g.wmp.name];break;case"qtf4m":e="shared";f=[g.qt.url,g.qt.name,g.f4m.url,g.f4m.name];break;default:e="single";if(d[1]=="swf"||d[1]=="flv")d[1]="fla";f=[g[d[1]].url,g[d[1]].name]}h=S.lang.errors[e].replace(/\{(\d+)\}/g,function(a,b){return f[b]});b.content='<div class="sb-message">'+h+"</div>"}else c=!0;else if(b.player=="inline"){d=S.regex.inline.exec(b.content);if(d){var i=U.get(d[1]);i?b.content=i.innerHTML:S.error("Cannot find element with id "+d[1])}else S.error("Cannot find element id for inline content")}else if(b.player=="swf"||b.player=="flv"){var k=b.options&&b.options.flashVersion||S.options.flashVersion;if(!swfobject.hasFlashPlayerVersion(k)){b.width=310;b.height=177}}if(c){S.gallery.splice(j,1);j<S.current?--S.current:j==S.current&&(S.current=j>0?j-1:j);--j}}if(S.gallery.length){if(!active){if(typeof S.options.onOpen=="function"&&S.options.onOpen(a)===!1)return;S.skin.onOpen(a,loadContent)}else loadContent();active=!0}},pause:function(){if(typeof slide_timer!="number")return;var a=(new Date).getTime();slide_delay=Math.max(0,slide_delay-(a-slide_start));if(slide_delay){clearTimeout(slide_timer);slide_timer="paused";S.skin.onPause&&S.skin.onPause()}},play:function(){if(!S.hasNext())return;slide_delay||(slide_delay=S.options.slideshowDelay*1e3);if(slide_delay){slide_start=(new Date).getTime();slide_timer=setTimeout(function(){slide_delay=slide_start=0;S.next()},slide_delay);S.skin.onPlay&&S.skin.onPlay()}},previous:function(){S.change(S.current-1)},setDimensions:function(a,b,c,d,e,f,g){var h=a=parseInt(a),i=b=parseInt(b),j=parseInt(S.options.viewportPadding)||0,k=2*j+e;h+k>=c&&(h=c-k);var l=2*j+f;i+l>=d&&(i=d-l);var m=a,n=b,o=(a-h)/a,p=(b-i)/b,q=o>0||p>0;if(g&&q&&S.options.handleOversize=="resize"){o>p?i=Math.round(b/a*h):p>o&&(h=Math.round(a/b*i));n=i;m=h}S.dimensions={height:h+e,width:i+f,inner_h:h,inner_w:i,top:(c-(h+k))/2+j,left:(d-(i+l))/2+j,oversized:q,resize_h:m,resize_w:n}},setup:function(a,b){each(S.findLinks(a),function(a){S.addCache(a,b)})},teardown:function(a){each(S.findLinks(a),S.removeCache)},findLinks:function(a){if(!a){var a=[],b;each(document.getElementsByTagName("a"),function(c){b=c.getAttribute("rel");b&&S.regex.rel.test(b)&&a.push(c)})}else{var c=a.length;c?window.Sizzle&&(typeof a=="string"?a=Sizzle(a):c==2&&a.push&&typeof a[0]=="string"&&a[1].nodeType&&(a=Sizzle(a[0],a[1]))):a=[a]}return a},inCache:function(a){return typeof a[S.expando]=="number"&&S.cache[a[S.expando]]},addCache:function(a,b){if(!S.inCache(a)){a[S.expando]=S.cache.length;S.lib.addEvent(a,"click",handleClick)}S.cache[a[S.expando]]=S.buildCacheObj(a,b)},removeCache:function(a){S.lib.removeEvent(a,"click",handleClick);S.cache[a[S.expando]]=null;delete a[S.expando]},clearCache:function(){each(S.cache,function(a){S.removeCache(a.link)});S.cache=[]},buildCacheObj:function(link,opts){var obj={link:link,title:link.getAttribute("title"),options:apply({},opts||{}),content:link.href};opts&&each(["player","title","height","width","gallery"],function(a){if(typeof obj.options[a]!="undefined"){obj[a]=obj.options[a];delete obj.options[a]}});obj.player||(obj.player=S.getPlayer(obj.content));var rel=link.getAttribute("rel");if(rel){var match=rel.match(S.regex.gallery);match&&(obj.gallery=escape(match[2]));each(rel.split(";"),function(parameter){match=parameter.match(S.regex.param);match&&(match[1]=="options"?eval("apply(obj.options,"+match[2]+")"):obj[match[1]]=match[2])})}return obj},getPlayer:function(a){var b=S.regex,c=S.plugins,d=a.match(b.domain),e=d&&document.domain==d[1];if(a.indexOf("#")>-1&&e)return"inline";var f=a.indexOf("?");f>-1&&(a=a.substring(0,f));return b.img.test(a)?"img":b.swf.test(a)?c.fla?"swf":"unsupported-swf":b.flv.test(a)?c.fla?"flv":"unsupported-flv":b.qt.test(a)?c.qt?"qt":"unsupported-qt":b.wmp.test(a)?c.wmp?"wmp":c.f4m?"qt":S.client.isMac?c.qt?"unsupported-f4m":"unsupported-qtf4m":"unsupported-wmp":b.qtwmp.test(a)?c.qt?"qt":c.wmp?"wmp":S.client.isMac?"unsupported-qt":"unsupported-qtwmp":"iframe"}},U=S.util={animate:function(a,b,c,d,e){function i(c){var d=f+c*g;h?U.setOpacity(a,d):a.style[b]=d+"px"}var f=parseFloat(S.lib.getStyle(a,b));isNaN(f)&&(f=0);var g=c-f;if(g==0){e&&e();return}var h=b=="opacity";if(!d||!h&&!S.options.animate||h&&!S.options.animateFade){i(1);e&&e();return}d*=1e3;var j=(new Date).getTime(),k=S.options.ease,l=j+d,m,n=setInterval(function(){m=(new Date).getTime();if(m>=l){clearInterval(n);i(1);e&&e()}else i(k((m-j)/d))},10)},apply:function(a,b){for(var c in b)a[c]=b[c];return a},clearOpacity:function(a){var b=a.style;window.ActiveXObject?typeof b.filter=="string"&&/alpha/i.test(b.filter)&&(b.filter=b.filter.replace(/[\w\.]*alpha\(.*?\);?/i,"")):b.opacity=""},each:function(a,b,c){for(var d=0,e=a.length;d<e;++d)if(b.call(c||a[d],a[d],d,a)===!1)return},get:function(a){return document.getElementById(a)},include:function(){var a={};return function(b){if(a[b])return;a[b]=!0;var c=document.getElementsByTagName("head")[0],d=document.createElement("script");d.src=b;c.appendChild(d)}}(),isLink:function(a){if(!a||!a.tagName)return!1;var b=a.tagName.toUpperCase();return b=="A"||b=="AREA"},removeChildren:function(a){while(a.firstChild)a.removeChild(a.firstChild)},setOpacity:function(a,b){var c=a.style;if(window.ActiveXObject){c.zoom=1;c.filter=(c.filter||"").replace(/\s*alpha\([^\)]*\)/gi,"")+(b==1?"":" alpha(opacity="+b*100+")")}else c.opacity=b}},apply=U.apply,each=U.each,init_options,initialized=!1,default_options={},content_id="sb-content",active=!1,slide_timer,slide_start,slide_delay=0;if(navigator.plugins&&navigator.plugins.length){var names=[];each(navigator.plugins,function(a){names.push(a.name)});names=names.join();var f4m=names.indexOf("Flip4Mac")>-1;S.plugins={fla:names.indexOf("Shockwave Flash")>-1,qt:names.indexOf("QuickTime")>-1,wmp:!f4m&&names.indexOf("Windows Media")>-1,f4m:f4m}}else{function detectPlugin(a){try{var b=new ActiveXObject(a)}catch(c){}return!!b}S.plugins={fla:detectPlugin("ShockwaveFlash.ShockwaveFlash"),qt:detectPlugin("QuickTime.QuickTime"),wmp:detectPlugin("wmplayer.ocx"),f4m:!1}}window.Shadowbox=S})();(function(){function g(){b.get("sb-container").style.top=document.documentElement.scrollTop+"px"}function h(c){if(c)b.each(d,function(a){a[0].style.visibility=a[1]||""});else{d=[];b.each(a.options.troubleElements,function(a){b.each(document.getElementsByTagName(a),function(a){d.push([a,a.style.visibility]);a.style.visibility="hidden"})})}}function i(d){var e=b.get("sb-overlay"),f=b.get("sb-container"),h=b.get("sb-wrapper");if(d){if(a.client.isIE6){g();a.lib.addEvent(window,"scroll",g)}if(a.options.showOverlay){c=!0;e.style.backgroundColor=a.options.overlayColor;b.setOpacity(e,0);a.options.modal||a.lib.addEvent(e,"click",a.close);h.style.display="none"}f.style.visibility="visible";if(c){var i=parseFloat(a.options.overlayOpacity);b.animate(e,"opacity",i,a.options.fadeDuration,d)}else d()}else{a.client.isIE6&&a.lib.removeEvent(window,"scroll",g);a.lib.removeEvent(e,"click",a.close);if(c){h.style.display="none";b.animate(e,"opacity",0,a.options.fadeDuration,function(){f.style.display="";h.style.display="";b.clearOpacity(e)})}else f.style.visibility="hidden"}}function j(a,c){var d=b.get("sb-nav-"+a);d&&(d.style.display=c?"":"none")}function k(c,d){var e=b.get("sb-loading"),f=a.getCurrent().player,g=f=="img"||f=="html";if(c){function h(){b.clearOpacity(e);d&&d()}b.setOpacity(e,0);e.style.display="";g?b.animate(e,"opacity",1,a.options.fadeDuration,h):h()}else{function h(){e.style.display="none";b.clearOpacity(e);d&&d()}g?b.animate(e,"opacity",0,a.options.fadeDuration,h):h()}}function l(c){var d=a.getCurrent();b.get("sb-title-inner").innerHTML=d.title||"";var e,f,g,h,i;if(a.options.displayNav){e=!0;var k=a.gallery.length;if(k>1)if(a.options.continuous)f=i=!0;else{f=k-1>a.current;i=a.current>0}if(a.options.slideshowDelay>0&&a.hasNext()){h=!a.isPaused();g=!h}}else e=f=g=h=i=!1;j("close",e);j("next",f);j("play",g);j("pause",h);j("previous",i);var l="";if(a.options.displayCounter&&a.gallery.length>1){var k=a.gallery.length;if(a.options.counterType=="skip"){var m=0,n=k,o=parseInt(a.options.counterLimit)||0;if(o<k&&o>2){var p=Math.floor(o/2);m=a.current-p;m<0&&(m+=k);n=a.current+(o-p);n>k&&(n-=k)}while(m!=n){m==k&&(m=0);l+='<a onclick="Shadowbox.change('+m+');"';m==a.current&&(l+=' class="sb-counter-current"');l+=">"+m++ +"</a>"}}else var l=a.current+1+" "+a.lang.of+" "+k}b.get("sb-counter").innerHTML=l;c()}function m(c,d){var e=b.get("sb-wrapper"),f=b.get("sb-title"),g=b.get("sb-info"),h=b.get("sb-title-inner"),i=b.get("sb-info-inner"),j=parseInt(a.lib.getStyle(h,"height"))||0,k=parseInt(a.lib.getStyle(i,"height"))||0,m=function(){h.style.visibility=i.style.visibility="hidden";l(d)};if(c){b.animate(f,"height",0,.35);b.animate(g,"height",0,.35);b.animate(e,"paddingTop",j,.35);b.animate(e,"paddingBottom",k,.35,m)}else{f.style.height=g.style.height="0px";e.style.paddingTop=j+"px";e.style.paddingBottom=k+"px";m()}}function n(c){var d=b.get("sb-wrapper"),e=b.get("sb-title"),f=b.get("sb-info"),g=b.get("sb-title-inner"),h=b.get("sb-info-inner"),i=parseInt(a.lib.getStyle(g,"height"))||0,j=parseInt(a.lib.getStyle(h,"height"))||0;g.style.visibility=h.style.visibility="";if(g.innerHTML!=""){b.animate(e,"height",i,.35);b.animate(d,"paddingTop",0,.35)}b.animate(f,"height",j,.35);b.animate(d,"paddingBottom",0,.35,c)}function o(c,d,e,f){var g=b.get("sb-body"),h=b.get("sb-wrapper"),i=parseInt(c),j=parseInt(d);if(e){b.animate(g,"height",i,a.options.resizeDuration);b.animate(h,"top",j,a.options.resizeDuration,f)}else{g.style.height=i+"px";h.style.top=j+"px";f&&f()}}function p(c,d,e,f){var g=b.get("sb-wrapper"),h=parseInt(c),i=parseInt(d);if(e){b.animate(g,"width",h,a.options.resizeDuration);b.animate(g,"left",i,a.options.resizeDuration,f)}else{g.style.width=h+"px";g.style.left=i+"px";f&&f()}}function q(c,d,e){var f=b.get("sb-body-inner");sw=b.get("sb-wrapper"),so=b.get("sb-overlay"),tb=sw.offsetHeight-f.offsetHeight,lr=sw.offsetWidth-f.offsetWidth,max_h=so.offsetHeight,max_w=so.offsetWidth;a.setDimensions(c,d,max_h,max_w,tb,lr,e);return a.dimensions}var a=Shadowbox,b=a.util,c=!1,d=[],e=["sb-nav-close","sb-nav-next","sb-nav-play","sb-nav-pause","sb-nav-previous"],f={markup:'<div id="sb-container"><div id="sb-overlay"></div><div id="sb-wrapper"><div id="sb-title"><div id="sb-title-inner"></div></div><div id="sb-body"><div id="sb-body-inner"></div><div id="sb-loading"><a onclick="Shadowbox.close()"></a></div></div><div id="sb-info"><div id="sb-info-inner"><div id="sb-counter"></div><div id="sb-nav"><a id="sb-nav-close" title="{close}" onclick="Shadowbox.close()"></a><a id="sb-nav-next" title="{next}" onclick="Shadowbox.next()"></a><a id="sb-nav-play" title="{play}" onclick="Shadowbox.play()"></a><a id="sb-nav-pause" title="{pause}" onclick="Shadowbox.pause()"></a><a id="sb-nav-previous" title="{previous}" onclick="Shadowbox.previous()"></a></div><div style="clear:both"></div></div></div></div></div>',options:{animSequence:"sync",autoDimensions:!1,counterLimit:10,counterType:"default",displayCounter:!0,displayNav:!0,fadeDuration:.35,initialHeight:160,initialWidth:320,modal:!1,overlayColor:"#000",overlayOpacity:.8,resizeDuration:.35,showOverlay:!0,troubleElements:["select","object","embed","canvas"]},init:function(){var c=f.markup.replace(/\{(\w+)\}/g,function(b,c){return a.lang[c]});a.lib.append(document.body,c);if(a.client.isIE6){b.get("sb-body").style.zoom=1;var d,g,h=/url\("(.*\.png)"\)/;b.each(e,function(c){d=b.get(c);if(d){g=a.lib.getStyle(d,"backgroundImage").match(h);if(g){d.style.backgroundImage="none";d.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,src="+g[1]+",sizingMethod=scale);"}}})}var i;a.lib.addEvent(window,"resize",function(){if(i){clearTimeout(i);i=null}a.isActive()&&(i=setTimeout(function(){f.onWindowResize();var b=a.content;b&&b.onWindowResize&&b.onWindowResize()},50))})},bodyEl:function(){return b.get("sb-body-inner")},onOpen:function(c,d){h(!1);var e=a.options.autoDimensions&&"height"in c?c.height:a.options.initialHeight,f=a.options.autoDimensions&&"width"in c?c.width:a.options.initialWidth;b.get("sb-container").style.display="block";var g=q(e,f);o(g.inner_h,g.top,!1);p(g.width,g.left,!1);i(d)},onLoad:function(a,c,d){k(!0);m(c,function(){if(!a)return;c||(b.get("sb-wrapper").style.display="");d()})},onReady:function(b){var c=a.content;if(!c)return;var d=q(c.height,c.width,c.resizable);f.resizeContent(d.inner_h,d.width,d.top,d.left,!0,function(){n(b)})},onFinish:function(a){k(!1,a)},onClose:function(){i();h(!0)},onPlay:function(){j("play",!1);j("pause",!0)},onPause:function(){j("pause",!1);j("play",!0)},onWindowResize:function(){var c=a.content;if(!c)return;var d=q(c.height,c.width,c.resizable);p(d.width,d.left,!1);o(d.inner_h,d.top,!1);var e=b.get(a.contentId());if(e&&c.resizable&&a.options.handleOversize=="resize"){e.height=d.resize_h;e.width=d.resize_w}},resizeContent:function(b,c,d,e,f,g){var h=a.content;if(!h)return;var i=q(h.height,h.width,h.resizable);switch(a.options.animSequence){case"hw":o(i.inner_h,i.top,f,function(){p(i.width,i.left,f,g)});break;case"wh":p(i.width,i.left,f,function(){o(i.inner_h,i.top,f,g)});break;default:p(i.width,i.left,f);o(i.inner_h,i.top,f,g)}}};a.skin=f})();if(typeof jQuery=="undefined")throw"Unable to load Shadowbox adapter, jQuery not found";if(typeof Shadowbox=="undefined")throw"Unable to load Shadowbox adapter, Shadowbox not found";(function(a,b){b.lib={getStyle:function(b,c){return a(b).css(c)},remove:function(b){a(b).remove()},getTarget:function(a){return a.target},getPageXY:function(a){return[a.pageX,a.pageY]},preventDefault:function(a){a.preventDefault()},keyCode:function(a){return a.keyCode},addEvent:function(b,c,d){a(b).bind(c,d)},removeEvent:function(b,c,d){a(b).unbind(c,d)},append:function(b,c){a(b).append(c)}}})(jQuery,Shadowbox);(function(a){a.fn.shadowbox=function(b){return this.each(function(){var c=a(this),d=a.extend({},b||{},a.metadata?c.metadata():a.meta?c.data():{}),e=this.className||"";d.width=parseInt((e.match(/w:(\d+)/)||[])[1])||d.width;d.height=parseInt((e.match(/h:(\d+)/)||[])[1])||d.height;Shadowbox.setup(c,d)})}})(jQuery);if(typeof Shadowbox=="undefined")throw"Unable to load Shadowbox language file, Shadowbox not found.";Shadowbox.lang={code:"en",of:"of",loading:"loading",cancel:"Cancel",next:"Next",previous:"Previous",play:"Play",pause:"Pause",close:"Close",errors:{single:'You must install the <a href="{0}">{1}</a> browser plugin to view this content.',shared:'You must install both the <a href="{0}">{1}</a> and <a href="{2}">{3}</a> browser plugins to view this content.',either:'You must install either the <a href="{0}">{1}</a> or the <a href="{2}">{3}</a> browser plugin to view this content.'}};(function(a){a.html=function(a){this.obj=a;this.height=a.height?parseInt(a.height,10):300;this.width=a.width?parseInt(a.width,10):500};a.html.prototype={append:function(a,b,c){this.id=b;var d=document.createElement("div");d.id=b;d.className="html";d.innerHTML=this.obj.content;a.appendChild(d)},remove:function(){var b=document.getElementById(this.id);b&&a.lib.remove(b)}}})(Shadowbox);(function(a){a.iframe=function(a){this.obj=a;var b=document.getElementById("sb-overlay");this.height=a.height?parseInt(a.height,10):b.offsetHeight;this.width=a.width?parseInt(a.width,10):b.offsetWidth};a.iframe.prototype={append:function(b,c,d){this.id=c;var e='<iframe id="'+c+'" name="'+c+'" height="100%" width="100%" frameborder="0" marginwidth="0" marginheight="0" scrolling="auto"';if(a.client.isIE){e+=' allowtransparency="true"';a.client.isIE6&&(e+=" src=\"javascript:false;document.write('');\"")}e+="></iframe>";b.innerHTML=e},remove:function(){var b=document.getElementById(this.id);if(b){a.lib.remove(b);a.client.isGecko&&delete window.frames[this.id]}},onLoad:function(){var b=a.client.isIE?document.getElementById(this.id).contentWindow:window.frames[this.id];b.location.href=this.obj.content}}})(Shadowbox);(function(a){function g(){c={x:0,y:0,start_x:null,start_y:null}}function h(c,f,h){if(c){g();var j=["position:absolute","height:"+f+"px","width:"+h+"px","cursor:"+(a.client.isGecko?"-moz-grab":"move"),"background-color:"+(a.client.isIE?"#fff;filter:alpha(opacity=0)":"transparent")].join(";");a.lib.append(a.skin.bodyEl(),'<div id="'+e+'" style="'+j+'"></div>');a.lib.addEvent(b.get(e),"mousedown",i)}else{var k=b.get(e);if(k){a.lib.removeEvent(k,"mousedown",i);a.lib.remove(k)}d=null}}function i(f){a.lib.preventDefault(f);var g=a.lib.getPageXY(f);c.start_x=g[0];c.start_y=g[1];d=b.get(a.contentId());a.lib.addEvent(document,"mousemove",k);a.lib.addEvent(document,"mouseup",j);a.client.isGecko&&(b.get(e).style.cursor="-moz-grabbing")}function j(){a.lib.removeEvent(document,"mousemove",k);a.lib.removeEvent(document,"mouseup",j);a.client.isGecko&&(b.get(e).style.cursor="-moz-grab")}function k(b){var e=a.content,f=a.dimensions,g=a.lib.getPageXY(b),h=g[0]-c.start_x;c.start_x+=h;c.x=Math.max(Math.min(0,c.x+h),f.inner_w-e.width);d.style.left=c.x+"px";var i=g[1]-c.start_y;c.start_y+=i;c.y=Math.max(Math.min(0,c.y+i),f.inner_h-e.height);d.style.top=c.y+"px"}var b=a.util,c,d,e="sb-drag-layer",f;a.img=function(a){this.obj=a;this.resizable=!0;this.ready=!1;var b=this;f=new Image;f.onload=function(){b.height=a.height?parseInt(a.height,10):f.height;b.width=a.width?parseInt(a.width,10):f.width;b.ready=!0;f.onload="";f=null};f.src=a.content};a.img.prototype={append:function(a,b,c){this.id=b;var d=document.createElement("img");d.id=b;d.src=this.obj.content;d.style.position="absolute";d.setAttribute("height",c.resize_h);d.setAttribute("width",c.resize_w);a.appendChild(d)},remove:function(){var c=b.get(this.id);c&&a.lib.remove(c);h(!1);if(f){f.onload="";f=null}},onLoad:function(){var b=a.dimensions;b.oversized&&a.options.handleOversize=="drag"&&h(!0,b.resize_h,b.resize_w)},onWindowResize:function(){if(d){var b=a.content,c=a.dimensions,e=parseInt(a.lib.getStyle(d,"top")),f=parseInt(a.lib.getStyle(d,"left"));e+b.height<c.inner_h&&(d.style.top=c.inner_h-b.height+"px");f+b.width<c.inner_w&&(d.style.left=c.inner_w-b.width+"px")}}}})(Shadowbox);(function(a){var b=a.util;a.swf=function(a){this.obj=a;this.resizable=!0;this.height=a.height?parseInt(a.height,10):300;this.width=a.width?parseInt(a.width,10):300};a.swf.prototype={append:function(b,c,d){this.id=c;var e=document.createElement("div");e.id=c;b.appendChild(e);var f=d.resize_h,g=d.resize_w,h=this.obj.content,i=a.options.flashVersion,j=a.path+"libraries/swfobject/expressInstall.swf",k=a.options.flashVars,l=a.options.flashParams;swfobject.embedSWF(h,c,g,f,i,j,k,l)},remove:function(){swfobject.expressInstallCallback();swfobject.removeSWF(this.id)}}})(Shadowbox);var swfobject=function(){function v(){if(n.readyState=="complete"){n.parentNode.removeChild(n);w()}}function w(){if(r)return;if(t.ie&&t.win){var a=J("span");try{var b=h.getElementsByTagName("body")[0].appendChild(a);b.parentNode.removeChild(b)}catch(c){return}}r=!0;if(o){clearInterval(o);o=null}var d=j.length;for(var e=0;e<d;e++)j[e]()}function x(a){r?a():j[j.length]=a}function y(b){if(typeof g.addEventListener!=a)g.addEventListener("load",b,!1);else if(typeof h.addEventListener!=a)h.addEventListener("load",b,!1);else if(typeof g.attachEvent!=a)K(g,"onload",b);else if(typeof g.onload=="function"){var c=g.onload;g.onload=function(){c();b()}}else g.onload=b}function z(){var a=k.length;for(var b=0;b<a;b++){var c=k[b].id;if(t.pv[0]>0){var d=I(c);if(d){k[b].width=d.getAttribute("width")?d.getAttribute("width"):"0";k[b].height=d.getAttribute("height")?d.getAttribute("height"):"0";if(L(k[b].swfVersion)){t.webkit&&t.webkit<312&&A(d);N(c,!0)}else k[b].expressInstall&&!s&&L("6.0.65")&&(t.win||t.mac)?B(k[b]):C(d)}}else N(c,!0)}}function A(a){var c=a.getElementsByTagName(b)[0];if(c){var d=J("embed"),e=c.attributes;if(e){var f=e.length;for(var g=0;g<f;g++)e[g].nodeName=="DATA"?d.setAttribute("src",e[g].nodeValue):d.setAttribute(e[g].nodeName,e[g].nodeValue)}var h=c.childNodes;if(h){var i=h.length;for(var j=0;j<i;j++)h[j].nodeType==1&&h[j].nodeName=="PARAM"&&d.setAttribute(h[j].getAttribute("name"),h[j].getAttribute("value"))}a.parentNode.replaceChild(d,a)}}function B(a){s=!0;var b=I(a.id);if(b){if(a.altContentId){var c=I(a.altContentId);if(c){p=c;q=a.altContentId}}else p=D(b);!/%$/.test(a.width)&&parseInt(a.width,10)<310&&(a.width="310");!/%$/.test(a.height)&&parseInt(a.height,10)<137&&(a.height="137");h.title=h.title.slice(0,47)+" - Flash Player Installation";var d=t.ie&&t.win?"ActiveX":"PlugIn",e=h.title,i="MMredirectURL="+g.location+"&MMplayerType="+d+"&MMdoctitle="+e,j=a.id;if(t.ie&&t.win&&b.readyState!=4){var k=J("div");j+="SWFObjectNew";k.setAttribute("id",j);b.parentNode.insertBefore(k,b);b.style.display="none";var l=function(){b.parentNode.removeChild(b)};K(g,"onload",l)}E({data:a.expressInstall,id:f,width:a.width,height:a.height},{flashvars:i},j)}}function C(a){if(t.ie&&t.win&&a.readyState!=4){var b=J("div");a.parentNode.insertBefore(b,a);b.parentNode.replaceChild(D(a),b);a.style.display="none";var c=function(){a.parentNode.removeChild(a)};K(g,"onload",c)}else a.parentNode.replaceChild(D(a),a)}function D(a){var c=J("div");if(t.win&&t.ie)c.innerHTML=a.innerHTML;else{var d=a.getElementsByTagName(b)[0];if(d){var e=d.childNodes;if(e){var f=e.length;for(var g=0;g<f;g++)(e[g].nodeType!=1||e[g].nodeName!="PARAM")&&e[g].nodeType!=8&&c.appendChild(e[g].cloneNode(!0))}}}return c}function E(c,d,f){var g,h=I(f);if(h){typeof c.id==a&&(c.id=f);if(t.ie&&t.win){var i="";for(var j in c)c[j]!=Object.prototype[j]&&(j.toLowerCase()=="data"?d.movie=c[j]:j.toLowerCase()=="styleclass"?i+=' class="'+c[j]+'"':j.toLowerCase()!="classid"&&(i+=" "+j+'="'+c[j]+'"'));var k="";for(var m in d)d[m]!=Object.prototype[m]&&(k+='<param name="'+m+'" value="'+d[m]+'" />');h.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+i+">"+k+"</object>";l[l.length]=c.id;g=I(c.id)}else if(t.webkit&&t.webkit<312){var n=J("embed");n.setAttribute("type",e);for(var o in c)c[o]!=Object.prototype[o]&&(o.toLowerCase()=="data"?n.setAttribute("src",c[o]):o.toLowerCase()=="styleclass"?n.setAttribute("class",c[o]):o.toLowerCase()!="classid"&&n.setAttribute(o,c[o]));for(var p in d)d[p]!=Object.prototype[
p]&&p.toLowerCase()!="movie"&&n.setAttribute(p,d[p]);h.parentNode.replaceChild(n,h);g=n}else{var q=J(b);q.setAttribute("type",e);for(var r in c)c[r]!=Object.prototype[r]&&(r.toLowerCase()=="styleclass"?q.setAttribute("class",c[r]):r.toLowerCase()!="classid"&&q.setAttribute(r,c[r]));for(var s in d)d[s]!=Object.prototype[s]&&s.toLowerCase()!="movie"&&F(q,s,d[s]);h.parentNode.replaceChild(q,h);g=q}}return g}function F(a,b,c){var d=J("param");d.setAttribute("name",b);d.setAttribute("value",c);a.appendChild(d)}function G(a){var b=I(a);b&&(b.nodeName=="OBJECT"||b.nodeName=="EMBED")&&(t.ie&&t.win?b.readyState==4?H(a):g.attachEvent("onload",function(){H(a)}):b.parentNode.removeChild(b))}function H(a){var b=I(a);if(b){for(var c in b)typeof b[c]=="function"&&(b[c]=null);b.parentNode.removeChild(b)}}function I(a){var b=null;try{b=h.getElementById(a)}catch(c){}return b}function J(a){return h.createElement(a)}function K(a,b,c){a.attachEvent(b,c);m[m.length]=[a,b,c]}function L(a){var b=t.pv,c=a.split(".");c[0]=parseInt(c[0],10);c[1]=parseInt(c[1],10)||0;c[2]=parseInt(c[2],10)||0;return b[0]>c[0]||b[0]==c[0]&&b[1]>c[1]||b[0]==c[0]&&b[1]==c[1]&&b[2]>=c[2]?!0:!1}function M(c,d){if(t.ie&&t.mac)return;var e=h.getElementsByTagName("head")[0],f=J("style");f.setAttribute("type","text/css");f.setAttribute("media","screen");(!t.ie||!t.win)&&typeof h.createTextNode!=a&&f.appendChild(h.createTextNode(c+" {"+d+"}"));e.appendChild(f);if(t.ie&&t.win&&typeof h.styleSheets!=a&&h.styleSheets.length>0){var g=h.styleSheets[h.styleSheets.length-1];typeof g.addRule==b&&g.addRule(c,d)}}function N(a,b){var c=b?"visible":"hidden";r&&I(a)?I(a).style.visibility=c:M("#"+a,"visibility:"+c)}function O(a){var b=/[\\\"<>\.;]/,c=b.exec(a)!=null;return c?encodeURIComponent(a):a}var a="undefined",b="object",c="Shockwave Flash",d="ShockwaveFlash.ShockwaveFlash",e="application/x-shockwave-flash",f="SWFObjectExprInst",g=window,h=document,i=navigator,j=[],k=[],l=[],m=[],n,o=null,p=null,q=null,r=!1,s=!1,t=function(){var f=typeof h.getElementById!=a&&typeof h.getElementsByTagName!=a&&typeof h.createElement!=a,j=[0,0,0],k=null;if(typeof i.plugins!=a&&typeof i.plugins[c]==b){k=i.plugins[c].description;if(k&&(typeof i.mimeTypes==a||!i.mimeTypes[e]||!!i.mimeTypes[e].enabledPlugin)){k=k.replace(/^.*\s+(\S+\s+\S+$)/,"$1");j[0]=parseInt(k.replace(/^(.*)\..*$/,"$1"),10);j[1]=parseInt(k.replace(/^.*\.(.*)\s.*$/,"$1"),10);j[2]=/r/.test(k)?parseInt(k.replace(/^.*r(.*)$/,"$1"),10):0}}else if(typeof g.ActiveXObject!=a){var l=null,m=!1;try{l=new ActiveXObject(d+".7")}catch(n){try{l=new ActiveXObject(d+".6");j=[6,0,21];l.AllowScriptAccess="always"}catch(n){j[0]==6&&(m=!0)}if(!m)try{l=new ActiveXObject(d)}catch(n){}}if(!m&&l)try{k=l.GetVariable("$version");if(k){k=k.split(" ")[1].split(",");j=[parseInt(k[0],10),parseInt(k[1],10),parseInt(k[2],10)]}}catch(n){}}var o=i.userAgent.toLowerCase(),p=i.platform.toLowerCase(),q=/webkit/.test(o)?parseFloat(o.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,r=!1,s=p?/win/.test(p):/win/.test(o),t=p?/mac/.test(p):/mac/.test(o);return{w3cdom:f,pv:j,webkit:q,ie:r,win:s,mac:t}}(),u=function(){if(!t.w3cdom)return;x(z);if(t.ie&&t.win)try{h.write("<script id=__ie_ondomload defer=true src=//:></script>");n=I("__ie_ondomload");n&&K(n,"onreadystatechange",v)}catch(b){}t.webkit&&typeof h.readyState!=a&&(o=setInterval(function(){/loaded|complete/.test(h.readyState)&&w()},10));typeof h.addEventListener!=a&&h.addEventListener("DOMContentLoaded",w,null);y(w)}(),P=function(){t.ie&&t.win&&window.attachEvent("onunload",function(){var a=m.length;for(var b=0;b<a;b++)m[b][0].detachEvent(m[b][1],m[b][2]);var c=l.length;for(var d=0;d<c;d++)G(l[d]);for(var e in t)t[e]=null;t=null;for(var f in swfobject)swfobject[f]=null;swfobject=null})}();return{registerObject:function(a,b,c){if(!t.w3cdom||!a||!b)return;var d={};d.id=a;d.swfVersion=b;d.expressInstall=c?c:!1;k[k.length]=d;N(a,!1)},getObjectById:function(c){var d=null;if(t.w3cdom){var e=I(c);if(e){var f=e.getElementsByTagName(b)[0];!f||f&&typeof e.SetVariable!=a?d=e:typeof f.SetVariable!=a&&(d=f)}}return d},embedSWF:function(c,d,e,f,g,h,i,j,k){if(!t.w3cdom||!c||!d||!e||!f||!g)return;e+="";f+="";if(L(g)){N(d,!1);var l={};if(k&&typeof k===b)for(var m in k)k[m]!=Object.prototype[m]&&(l[m]=k[m]);l.data=c;l.width=e;l.height=f;var n={};if(j&&typeof j===b)for(var o in j)j[o]!=Object.prototype[o]&&(n[o]=j[o]);if(i&&typeof i===b)for(var p in i)i[p]!=Object.prototype[p]&&(typeof n.flashvars!=a?n.flashvars+="&"+p+"="+i[p]:n.flashvars=p+"="+i[p]);x(function(){E(l,n,d);l.id==d&&N(d,!0)})}else if(h&&!s&&L("6.0.65")&&(t.win||t.mac)){s=!0;N(d,!1);x(function(){var a={};a.id=a.altContentId=d;a.width=e;a.height=f;a.expressInstall=h;B(a)})}},getFlashPlayerVersion:function(){return{major:t.pv[0],minor:t.pv[1],release:t.pv[2]}},hasFlashPlayerVersion:L,createSWF:function(a,b,c){return t.w3cdom?E(a,b,c):undefined},removeSWF:function(a){t.w3cdom&&G(a)},createCSS:function(a,b){t.w3cdom&&M(a,b)},addDomLoadEvent:x,addLoadEvent:y,getQueryParamValue:function(a){var b=h.location.search||h.location.hash;if(a==null)return O(b);if(b){var c=b.substring(1).split("&");for(var d=0;d<c.length;d++)if(c[d].substring(0,c[d].indexOf("="))==a)return O(c[d].substring(c[d].indexOf("=")+1))}return""},expressInstallCallback:function(){if(s&&p){var a=I(f);if(a){a.parentNode.replaceChild(p,a);if(q){N(q,!0);t.ie&&t.win&&(p.style.display="block")}p=null;q=null;s=!1}}}}}();Shadowbox.options.players=["html","iframe","img","swf"];Shadowbox.options.useSizzle=!1;(function(a){a.fn.equalHeights=function(b,c){tallest=b?b:0;this.each(function(){a(this).height()>tallest&&(tallest=a(this).height())});c&&tallest>c&&(tallest=c);return this.each(function(){a(this).height(tallest).css("overflow","auto")})}})(jQuery);$(document).ready(function(){$("#slider").panelGallery({sections:1,sectionTransitionDelay:450});$.getJSON("http://twitter.com/statuses/user_timeline/premiumplanet.json?callback=?",function(a){$(".tweet").html(a[0].text)});Shadowbox.init({adapter:"jquery",players:["img","swf","html"],overlayColor:"#000",overlayOpacity:"0.7"});$(".column").equalHeights(1);$(".ccolumn").equalHeights(1).css("margin-bottom","30px");$(".cccolumn").equalHeights(1).css("margin-bottom","30px");$("a[rel=external]").click(function(){window.open($(this).attr("href"));return!1});$("a[title=video]").attr("rel","shadowbox;height=480;width=640");$("a[title=goals]").attr({rel:"shadowbox;height=532;width=637",href:"http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=keynote-100124164026-phpapp02&stripped_title=premium-planet"});$("a[title=gallery]").attr("rel","shadowbox[G]");$("a[title=feedback]").attr("rel","feedback");$("a[rel=feedback]").click(function(){Shadowbox.open({content:"contact.php",player:"iframe",width:310,height:390});return!1});$("a[title=Tiago dOrey]").attr("rel","shadowbox");$("a[title=Edouard Sigwalt]").attr("rel","shadowbox")});
