window.addEvent('domready',function(){$$('.rgaccord1-nest').each(function(item){var thisSlider=new Fx.Slide(item.getElement('.rgaccord1-content'),{duration:500});thisSlider.hide();item.getElement('.rgaccord1-toggle').addEvent('click',function(){thisSlider.toggle();if(item.getElement('.rgaccord1-toggle').hasClass('act')){item.getElement('.rgaccord1-toggle').removeClass('act')}else item.getElement('.rgaccord1-toggle').addClass('act')})})});
var browserName=navigator.appName,browserVer=parseInt(navigator.appVersion),version="",msie4=(browserName=="Microsoft Internet Explorer"&&browserVer>=4);if((browserName=="Netscape"&&browserVer>=3)||msie4||browserName=="Konqueror"||browserName=="Opera"){version="n3"}else version="n2"
function blurLink(theObject){if(msie4)theObject.blur()}
function decryptCharcode(n,start,end,offset){n=n+offset;if(offset>0&&n>end){n=start+(n-end-1)}else if(offset<0&&n<start)n=end-(start-n-1);return String.fromCharCode(n)}
function decryptString(enc,offset){var dec="",len=enc.length;for(var i=0;i<len;i++){var n=enc.charCodeAt(i);if(n>=0x2B&&n<=0x3A){dec+=decryptCharcode(n,0x2B,0x3A,offset)}else if(n>=0x40&&n<=0x5A){dec+=decryptCharcode(n,0x40,0x5A,offset)}else if(n>=0x61&&n<=0x7A){dec+=decryptCharcode(n,0x61,0x7A,offset)}else dec+=enc.charAt(i)};return dec}
function linkTo_UnCryptMailto(s){location.href=decryptString(s,-1)};
jQuery(document).ready(function(){jQuery('#jfmulticontent_c1059').accordion({active:false,collapsible:true,animated:'slide'})});
jQuery(document).ready(function(){jQuery('noscript').hide();jQuery('.tx-imagecycle-pi1-images span').animate({opacity:0.5})});
(function(){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:true,animateFade:true,autoplayMovies:true,continuous:false,ease:function(x){return 1+Math.pow(x-1,3)},enableKeys:true,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:true},flashVars:{},flashVersion:"9.0.115",handleOversize:"resize",handleUnsupported:"link",language:"en",onChange:null,onClose:null,onFinish:null,onOpen:null,players:["img"],showMovieControls:true,skipSetup:false,slideshowDelay:0,useSizzle:true,viewportPadding:20},path:"",plugins:null,ready:false,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(opts){if(opts){default_options=apply({},S.options);apply(S.options,opts)}},revertOptions:function(){apply(S.options,default_options)},change:function(index){if(!S.gallery)return;if(!S.gallery[index])if(!S.options.continuous){return}else index=index<0?S.gallery.length-1:0;S.current=index;if(typeof slide_timer=="number"){clearTimeout(slide_timer);slide_timer=null;slide_delay=slide_start=0};if(S.options.onChange)S.options.onChange();loadContent()},close:function(){if(!active)return;active=false;listenKeys(false);if(S.content){S.content.remove();S.content=null};if(typeof slide_timer=="number")clearTimeout(slide_timer);slide_timer=null;slide_delay=0;if(S.options.onClose)S.options.onClose();S.skin.onClose();S.revertOptions()},contentId:function(){return content_id},error:function(msg){if(!S.debug)return;if(typeof window.console!="undefined"&&typeof console.log=="function"){console.log(msg)}else alert(msg)},getCurrent:function(){return S.current>-1?S.gallery[S.current]:null},getIframeScrollingOption:function(){return S.options.iframeScrolling},hasNext:function(){return S.gallery.length>1&&(S.current!=S.gallery.length-1||S.options.continuous)},init:function(opts){if(initialized)return;initialized=true;opts=opts||{};init_options=opts;if(opts)apply(S.options,opts);for(var e in S.options.ext)S.regex[e]=new RegExp(".("+S.options.ext[e].join("|")+")s*$","i");if(!S.path){var pathre=/(.+\/)shadowbox\.js/i,path;each(document.getElementsByTagName("script"),function(s){path=pathre.exec(s.src);if(path){S.path=path[1];return false}})};if(S.options.adapter){S.adapter=S.options.adapter.toLowerCase()}else{for(var lib in S.libraries)if(typeof window[lib]!="undefined"){S.adapter=S.libraries[lib];break};if(!S.adapter)S.adapter="base"};if(S.options.useSizzle&&!window.Sizzle)if(window.jQuery){window.Sizzle=jQuery.find}else U.include(S.path+"libraries/sizzle/sizzle.js");if(!S.lang)U.include(S.path+"languages/shadowbox-"+S.options.language+".js");each(S.options.players,function(p){if((p=="swf"||p=="flv")&&!window.swfobject)U.include(S.path+"libraries/swfobject/swfobject.js");if(!S[p])U.include(S.path+"players/shadowbox-"+p+".js")});if(!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=true;if(S.skin.options){apply(S.options,S.skin.options);apply(S.options,init_options)};S.skin.init();if(!S.options.skipSetup)S.setup()},next:function(){S.change(S.current+1)},open:function(obj){if(U.isLink(obj))if(S.inCache(obj)){obj=S.cache[obj[S.expando]]}else obj=S.buildCacheObj(obj);if(obj.constructor==Array){S.gallery=obj;S.current=0}else if(!obj.gallery){S.gallery=[obj];S.current=0}else{S.current=null;S.gallery=[];each(S.cache,function(c){if(c.gallery&&c.gallery==obj.gallery){if(S.current==null&&c.content==obj.content&&c.title==obj.title)S.current=S.gallery.length;S.gallery.push(c)}});if(S.current==null){S.gallery.unshift(obj);S.current=0}};obj=S.getCurrent();if(obj.options){S.revertOptions();S.applyOptions(obj.options)};var item,remove,m,format,replace,oe=S.options.errors,msg,el;for(var i=0;i<S.gallery.length;++i){item=S.gallery[i]=apply({},S.gallery[i]);remove=false;if(m=S.regex.unsupported.exec(item.player)){if(S.options.handleUnsupported=="link"){item.player="html";switch(m[1]){case"qtwmp":format="either";replace=[oe.qt.url,oe.qt.name,oe.wmp.url,oe.wmp.name];break;case"qtf4m":format="shared";replace=[oe.qt.url,oe.qt.name,oe.f4m.url,oe.f4m.name];break;default:format="single";if(m[1]=="swf"||m[1]=="flv")m[1]="fla";replace=[oe[m[1]].url,oe[m[1]].name]};msg=S.lang.errors[format].replace(/\{(\d+)\}/g,function(m,n){return replace[n]});item.content='<div class="sb-message">'+msg+"</div>"}else remove=true}else if(item.player=="inline"){m=S.regex.inline.exec(item.content);if(m){var el=U.get(m[1]);if(el){item.content=el.innerHTML}else S.error("Cannot find element with id "+m[1])}else S.error("Cannot find element id for inline content")}else if(item.player=="swf"||item.player=="flv"){var version=(item.options&&item.options.flashVersion)||S.options.flashVersion;if(!swfobject.hasFlashPlayerVersion(version)){item.width=310;item.height=177}};if(remove){S.gallery.splice(i,1);if(i<S.current){--S.current}else if(i==S.current)S.current=i>0?i-1:i;--i}};if(S.gallery.length){if(!active){if(typeof S.options.onOpen=="function"&&S.options.onOpen(obj)===false)return;S.skin.onOpen(obj,loadContent)}else loadContent();active=true}},pause:function(){if(typeof slide_timer!="number")return;var time=new Date().getTime();slide_delay=Math.max(0,slide_delay-(time-slide_start));if(slide_delay){clearTimeout(slide_timer);slide_timer="paused";if(S.skin.onPause)S.skin.onPause()}},play:function(){if(!S.hasNext())return;if(!slide_delay)slide_delay=S.options.slideshowDelay*1000;if(slide_delay){slide_start=new Date().getTime();slide_timer=setTimeout(function(){slide_delay=slide_start=0;S.next()},slide_delay);if(S.skin.onPlay)S.skin.onPlay()}},previous:function(){S.change(S.current-1)},setDimensions:function(height,width,max_h,max_w,tb,lr,resizable){var h=height=parseInt(height),w=width=parseInt(width),pad=parseInt(S.options.viewportPadding)||0,extra_h=2*pad+tb;if(h+extra_h>=max_h)h=max_h-extra_h;var extra_w=2*pad+lr;if(w+extra_w>=max_w)w=max_w-extra_w;var resize_h=height,resize_w=width,change_h=(height-h)/height,change_w=(width-w)/width,oversized=(change_h>0||change_w>0);if(resizable&&oversized&&S.options.handleOversize=="resize"){if(change_h>change_w){w=Math.round((width/height)*h)}else if(change_w>change_h)h=Math.round((height/width)*w);resize_w=w;resize_h=h};S.dimensions={height:h+tb,width:w+lr,inner_h:h,inner_w:w,top:(max_h-(h+extra_h))/2+pad,left:(max_w-(w+extra_w))/2+pad,oversized:oversized,resize_h:resize_h,resize_w:resize_w}},setup:function(links,opts){each(S.findLinks(links),function(link){S.addCache(link,opts)})},teardown:function(links){each(S.findLinks(links),S.removeCache)},findLinks:function(links){if(!links){var links=[],rel;each(document.getElementsByTagName("a"),function(a){rel=a.getAttribute("rel");if(rel&&S.regex.rel.test(rel))links.push(a)})}else{var len=links.length;if(len){if(window.Sizzle)if(typeof links=="string"){links=Sizzle(links)}else if(len==2&&links.push&&typeof links[0]=="string"&&links[1].nodeType)links=Sizzle(links[0],links[1])}else links=[links]};return links},inCache:function(link){return typeof link[S.expando]=="number"&&S.cache[link[S.expando]]},addCache:function(link,opts){if(!S.inCache(link)){link[S.expando]=S.cache.length;S.lib.addEvent(link,"click",handleClick)};S.cache[link[S.expando]]=S.buildCacheObj(link,opts)},removeCache:function(link){S.lib.removeEvent(link,"click",handleClick);S.cache[link[S.expando]]=null;delete link[S.expando]},clearCache:function(){each(S.cache,function(obj){S.removeCache(obj.link)});S.cache=[]},buildCacheObj:function(link,opts){var obj={link:link,title:link.getAttribute("title"),options:apply({},opts||{}),content:link.href};if(opts)each(["player","title","height","width","gallery"],function(option){if(typeof obj.options[option]!="undefined"){obj[option]=obj.options[option];delete obj.options[option]}});if(!obj.player)obj.player=S.getPlayer(obj.content);var rel=link.getAttribute("rel");if(rel){var match=rel.match(S.regex.gallery);if(match)obj.gallery=escape(match[2]);each(rel.split(";"),function(parameter){match=parameter.match(S.regex.param);if(match)if(match[1]=="options"){eval("apply(obj.options,"+match[2]+")")}else obj[match[1]]=match[2]})};return obj},getPlayer:function(content){var r=S.regex,p=S.plugins,m=content.match(r.domain),same_domain=m&&document.domain==m[1];if(content.indexOf("#")>-1&&same_domain)return"inline";var q=content.indexOf("?");if(q>-1)content=content.substring(0,q);if(r.img.test(content))return"img";if(r.swf.test(content))return p.fla?"swf":"unsupported-swf";if(r.flv.test(content))return p.fla?"flv":"unsupported-flv";if(r.qt.test(content))return p.qt?"qt":"unsupported-qt";if(r.wmp.test(content)){if(p.wmp)return"wmp";if(p.f4m)return"qt";if(S.client.isMac)return p.qt?"unsupported-f4m":"unsupported-qtf4m";return"unsupported-wmp"};if(r.qtwmp.test(content)){if(p.qt)return"qt";if(p.wmp)return"wmp";return S.client.isMac?"unsupported-qt":"unsupported-qtwmp"};return"iframe"}},U=S.util={animate:function(el,p,to,d,cb){var from=parseFloat(S.lib.getStyle(el,p));if(isNaN(from))from=0;var delta=to-from;if(delta==0){if(cb)cb();return};var op=p=="opacity"
function fn(ease){var to=from+ease*delta;if(op){U.setOpacity(el,to)}else el.style[p]=to+"px"};if(!d||(!op&&!S.options.animate)||(op&&!S.options.animateFade)){fn(1);if(cb)cb();return};d*=1000;var begin=new Date().getTime(),ease=S.options.ease,end=begin+d,time,timer=setInterval(function(){time=new Date().getTime();if(time>=end){clearInterval(timer);fn(1);if(cb)cb()}else fn(ease((time-begin)/d))},10)},apply:function(o,e){for(var p in e)o[p]=e[p];return o},clearOpacity:function(el){var s=el.style;if(window.ActiveXObject){if(typeof s.filter=="string"&&(/alpha/i).test(s.filter))s.filter=s.filter.replace(/[\w\.]*alpha\(.*?\);?/i,"")}else s.opacity=""},each:function(obj,fn,scope){for(var i=0,len=obj.length;i<len;++i)if(fn.call(scope||obj[i],obj[i],i,obj)===false)return},get:function(id){return document.getElementById(id)},include:function(){var includes={};return function(file){if(includes[file])return;includes[file]=true;var head=document.getElementsByTagName("head")[0],script=document.createElement("script");script.src=file;head.appendChild(script)}}(),isLink:function(obj){if(!obj||!obj.tagName)return false;var up=obj.tagName.toUpperCase();return up=="A"||up=="AREA"},removeChildren:function(el){while(el.firstChild)el.removeChild(el.firstChild)},setOpacity:function(el,o){var s=el.style;if(window.ActiveXObject){s.zoom=1;s.filter=(s.filter||"").replace(/\s*alpha\([^\)]*\)/gi,"")+(o==1?"":" alpha(opacity="+(o*100)+")")}else s.opacity=o}},apply=U.apply,each=U.each,init_options,initialized=false,default_options={},content_id="sb-content",active=false,slide_timer,slide_start,slide_delay=0;if(navigator.plugins&&navigator.plugins.length){var names=[];each(navigator.plugins,function(p){names.push(p.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(n){try{var axo=new ActiveXObject(n)}catch(e){};return !!axo};S.plugins={fla:detectPlugin("ShockwaveFlash.ShockwaveFlash"),qt:detectPlugin("QuickTime.QuickTime"),wmp:detectPlugin("wmplayer.ocx"),f4m:false}}
function waitDom(cb){if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);cb()},false)}else if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);cb()}});if(document.documentElement.doScroll&&window==window.top)(function(){if(S.ready)return;try{document.documentElement.doScroll("left")}catch(error){setTimeout(arguments.callee,0);return};cb()})()};if(typeof window.onload=="function"){var oldonload=window.onload;window.onload=function(){oldonload();cb()}}else window.onload=cb}
function waitLibs(){if(S.lib&&S.lang){S.load()}else setTimeout(waitLibs,0)}
function handleClick(e){var link;if(U.isLink(this)){link=this}else{link=S.lib.getTarget(e);while(!U.isLink(link)&&link.parentNode)link=link.parentNode};S.lib.preventDefault(e);if(link){S.open(link);if(S.gallery.length)S.lib.preventDefault(e)}}
function listenKeys(on){if(!S.options.enableKeys)return;S.lib[(on?"add":"remove")+"Event"](document,"keydown",handleKey)}
function handleKey(e){var code=S.lib.keyCode(e),handler;switch(code){case 81:case 88:case 27:handler=S.close;break;case 37:handler=S.previous;break;case 39:handler=S.next;break;case 32:handler=typeof slide_timer=="number"?S.pause:S.play};if(handler){S.lib.preventDefault(e);handler()}}
function loadContent(){var obj=S.getCurrent();if(!obj)return;var p=obj.player=="inline"?"html":obj.player;if(typeof S[p]!="function")S.error("Unknown player: "+p);var change=false;if(S.content){S.content.remove();change=true;S.revertOptions();if(obj.options)S.applyOptions(obj.options)};U.removeChildren(S.skin.bodyEl());S.content=new S[p](obj);listenKeys(false);S.skin.onLoad(S.content,change,function(){if(!S.content)return;if(typeof S.content.ready!="undefined"){var id=setInterval(function(){if(S.content){if(S.content.ready){clearInterval(id);id=null;S.skin.onReady(contentReady)}}else{clearInterval(id);id=null}},100)}else S.skin.onReady(contentReady)});if(S.gallery.length>1){var next=S.gallery[S.current+1]||S.gallery[0];if(next.player=="img"){var a=new Image();a.src=next.content};var prev=S.gallery[S.current-1]||S.gallery[S.gallery.length-1];if(prev.player=="img"){var b=new Image();b.src=prev.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;if(S.content.onLoad)S.content.onLoad();if(S.options.onFinish)S.options.onFinish();if(!S.isPaused())S.play();listenKeys(true)};window.Shadowbox=S})();(function(){var g=Shadowbox,f=g.util,q=false,b=[],m=["sb-nav-close","sb-nav-next","sb-nav-play","sb-nav-pause","sb-nav-previous"],o={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()">{cancel}</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:false,counterLimit:10,counterType:"default",displayCounter:true,displayNav:true,iframeScrolling:'no',fadeDuration:0.35,initialHeight:160,initialWidth:320,modal:false,overlayColor:"#000",overlayOpacity:0.8,resizeDuration:0.35,showOverlay:true,troubleElements:["select","object","embed","canvas"]},init:function(){var s=o.markup.replace(/\{(\w+)\}/g,function(w,x){return g.lang[x]});g.lib.append(document.body,s);if(g.client.isIE6){f.get("sb-body").style.zoom=1;var u,r,t=/url\("(.*\.png)"\)/;f.each(m,function(w){u=f.get(w);if(u){r=g.lib.getStyle(u,"backgroundImage").match(t);if(r){u.style.backgroundImage="none";u.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,src="+r[1]+",sizingMethod=scale);"}}})};var v;g.lib.addEvent(window,"resize",function(){if(v){clearTimeout(v);v=null};if(g.isActive())v=setTimeout(function(){o.onWindowResize();var w=g.content;if(w&&w.onWindowResize)w.onWindowResize()},50)})},bodyEl:function(){return f.get("sb-body-inner")},onOpen:function(u,r){e(false);var t=g.options.autoDimensions&&"height" in u?u.height:g.options.initialHeight,s=g.options.autoDimensions&&"width" in u?u.width:g.options.initialWidth;f.get("sb-container").style.display="block";var v=p(t,s);d(v.inner_h,v.top,false);h(v.width,v.left,false);i(r)},onLoad:function(s,t,r){k(true);j(t,function(){if(!s)return;if(!t)f.get("sb-wrapper").style.display="";r()})},onReady:function(r){var t=g.content;if(!t)return;var s=p(t.height,t.width,t.resizable);o.resizeContent(s.inner_h,s.width,s.top,s.left,true,function(){l(r)})},onFinish:function(r){k(false,r)},onClose:function(){i();e(true)},onPlay:function(){c("play",false);c("pause",true)},onPause:function(){c("pause",false);c("play",true)},onWindowResize:function(){var t=g.content;if(!t)return;var s=p(t.height,t.width,t.resizable);h(s.width,s.left,false);d(s.inner_h,s.top,false);var r=f.get(g.contentId());if(r)if(t.resizable&&g.options.handleOversize=="resize"){r.height=s.resize_h;r.width=s.resize_w}},resizeContent:function(s,t,w,v,u,r){var y=g.content;if(!y)return;var x=p(y.height,y.width,y.resizable);switch(g.options.animSequence){case"hw":d(x.inner_h,x.top,u,function(){h(x.width,x.left,u,r)});break;case"wh":h(x.width,x.left,u,function(){d(x.inner_h,x.top,u,r)});break;default:h(x.width,x.left,u);d(x.inner_h,x.top,u,r)}}}
function n(){f.get("sb-container").style.top=document.documentElement.scrollTop+"px"}
function e(r){if(r){f.each(b,function(s){s[0].style.visibility=s[1]||""})}else{b=[];f.each(g.options.troubleElements,function(s){f.each(document.getElementsByTagName(s),function(t){b.push([t,t.style.visibility]);t.style.visibility="hidden"})})}}
function i(r){var s=f.get("sb-overlay"),t=f.get("sb-container"),v=f.get("sb-wrapper");if(r){if(g.client.isIE6){n();g.lib.addEvent(window,"scroll",n)};if(g.options.showOverlay){q=true;s.style.backgroundColor=g.options.overlayColor;f.setOpacity(s,0);if(!g.options.modal)g.lib.addEvent(s,"click",g.close);v.style.display="none"};t.style.visibility="visible";if(q){var u=parseFloat(g.options.overlayOpacity);f.animate(s,"opacity",u,g.options.fadeDuration,r)}else r()}else{if(g.client.isIE6)g.lib.removeEvent(window,"scroll",n);g.lib.removeEvent(s,"click",g.close);if(q){v.style.display="none";f.animate(s,"opacity",0,g.options.fadeDuration,function(){t.style.display="";v.style.display="";f.clearOpacity(s)})}else t.style.visibility="hidden"}}
function c(t,r){var s=f.get("sb-nav-"+t);if(s)s.style.display=r?"":"none"}
function k(s,r){var u=f.get("sb-loading"),w=g.getCurrent().player,v=(w=="img"||w=="html");if(s){function t(){f.clearOpacity(u);if(r)r()};f.setOpacity(u,0);u.style.display="";if(v){f.animate(u,"opacity",1,g.options.fadeDuration,t)}else t()}else{function t(){u.style.display="none";f.clearOpacity(u);if(r)r()};if(v){f.animate(u,"opacity",0,g.options.fadeDuration,t)}else t()}}
function a(u){var z=g.getCurrent();f.get("sb-title-inner").innerHTML=z.title||"";var C,t,x,D,s;if(g.options.displayNav){C=true;var B=g.gallery.length;if(B>1)if(g.options.continuous){t=s=true}else{t=(B-1)>g.current;s=g.current>0};if(g.options.slideshowDelay>0&&g.hasNext()){D=!g.isPaused();x=!D}}else C=t=x=D=s=false;c("close",C);c("next",t);c("play",x);c("pause",D);c("previous",s);var r="";if(g.options.displayCounter&&g.gallery.length>1){var B=g.gallery.length;if(g.options.counterType=="skip"){var y=0,w=B,v=parseInt(g.options.counterLimit)||0;if(v<B&&v>2){var A=Math.floor(v/2);y=g.current-A;if(y<0)y+=B;w=g.current+(v-A);if(w>B)w-=B};while(y!=w){if(y==B)y=0;r+='<a onclick="Shadowbox.change('+y+');"';if(y==g.current)r+=' class="sb-counter-current"';r+=">"+(y++)+"</a>"}}else var r=(g.current+1)+" "+g.lang.of+" "+B};f.get("sb-counter").innerHTML=r;u()}
function j(u,s){var y=f.get("sb-wrapper"),B=f.get("sb-title"),v=f.get("sb-info"),r=f.get("sb-title-inner"),z=f.get("sb-info-inner"),A=parseInt(g.lib.getStyle(r,"height"))||0,x=parseInt(g.lib.getStyle(z,"height"))||0,w=function(){r.style.visibility=z.style.visibility="hidden";a(s)};if(u){f.animate(B,"height",0,0.35);f.animate(v,"height",0,0.35);f.animate(y,"paddingTop",A,0.35);f.animate(y,"paddingBottom",x,0.35,w)}else{B.style.height=v.style.height="0px";y.style.paddingTop=A+"px";y.style.paddingBottom=x+"px";w()}}
function l(u){var s=f.get("sb-wrapper"),w=f.get("sb-title"),v=f.get("sb-info"),z=f.get("sb-title-inner"),y=f.get("sb-info-inner"),x=parseInt(g.lib.getStyle(z,"height"))||0,r=parseInt(g.lib.getStyle(y,"height"))||0;z.style.visibility=y.style.visibility="";if(z.innerHTML!=""){f.animate(w,"height",x,0.35);f.animate(s,"paddingTop",0,0.35)};f.animate(v,"height",r,0.35);f.animate(s,"paddingBottom",0,0.35,u)}
function d(u,z,y,r){var A=f.get("sb-body"),x=f.get("sb-wrapper"),w=parseInt(u),v=parseInt(z);if(y){f.animate(A,"height",w,g.options.resizeDuration);f.animate(x,"top",v,g.options.resizeDuration,r)}else{A.style.height=w+"px";x.style.top=v+"px";if(r)r()}}
function h(x,z,y,r){var v=f.get("sb-wrapper"),u=parseInt(x),t=parseInt(z);if(y){f.animate(v,"width",u,g.options.resizeDuration);f.animate(v,"left",t,g.options.resizeDuration,r)}else{v.style.width=u+"px";v.style.left=t+"px";if(r)r()}}
function p(r,u,t){var s=f.get("sb-body-inner");sw=f.get("sb-wrapper"),so=f.get("sb-overlay"),tb=sw.offsetHeight-s.offsetHeight,lr=sw.offsetWidth-s.offsetWidth,max_h=so.offsetHeight,max_w=so.offsetWidth;g.setDimensions(r,u,max_h,max_w,tb,lr,t);return g.dimensions};g.skin=o})();if(typeof Shadowbox=="undefined")throw "Unable to load Shadowbox adapter, Shadowbox not found";(function(d){var a=document.defaultView,c;if(d.client.isIE6){c=[];function b(){var h;for(var g=0,f=c.length;g<f;++g){h=c[g];h[0].detachEvent("on"+h[1],h[2])};window.detachEvent("onunload",b)};window.attachEvent("onunload",b)};d.lib={getStyle:a&&a.getComputedStyle?function(h,g){var e,f;if(g=="float")g="cssFloat";if(e=h.style[g])return e;if(f=a.getComputedStyle(h,""))return f[g];return null}:function(i,h){var f,g;if(h=="opacity"){if(typeof i.style.filter=="string"){var e=i.style.filter.match(/alpha\(opacity=(.+)\)/i);if(e){var j=parseFloat(e[1]);if(!isNaN(j))return(j?j/100:0)}};return 1};if(h=="float")h="styleFloat";if(f=i.style[h])return f;if(g=i.currentStyle)return g[h];return null},remove:function(e){e.parentNode.removeChild(e)},getTarget:function(g){var f=g.target?g.target:g.srcElement;return f.nodeType==3?f.parentNode:f},getPageXY:function(g){var f=g.pageX||(g.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft)),h=g.pageY||(g.clientY+(document.documentElement.scrollTop||document.body.scrollTop));return[f,h]},preventDefault:function(f){if(f.preventDefault){f.preventDefault()}else f.returnValue=false},keyCode:function(f){return f.which?f.which:f.keyCode},addEvent:function(g,e,f){if(c)c[c.length]=arguments;if(g.addEventListener){g.addEventListener(e,f,false)}else if(g.attachEvent)g.attachEvent("on"+e,f)},removeEvent:function(g,e,f){if(g.removeEventListener){g.removeEventListener(e,f,false)}else if(g.detachEvent)g.detachEvent("on"+e,f)},append:function(g,f){if(g.insertAdjacentHTML){g.insertAdjacentHTML("BeforeEnd",f)}else if(g.lastChild){var e=g.ownerDocument.createRange();e.setStartAfter(g.lastChild);var h=e.createContextualFragment(f);g.appendChild(h)}else g.innerHTML=f}}})(Shadowbox);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(){var S=Shadowbox,U=S.util,overlay_on=false,visibility_cache=[],png=['sb-nav-close','sb-nav-next','sb-nav-play','sb-nav-pause','sb-nav-previous'],K={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()">{cancel}</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:false,counterLimit:10,counterType:'default',displayCounter:true,displayNav:true,fadeDuration:0.35,initialHeight:160,initialWidth:320,modal:false,overlayColor:'#000',overlayOpacity:0.8,resizeDuration:0.35,showOverlay:true,troubleElements:['select','object','embed','canvas']},init:function(){var markup=K.markup.replace(/\{(\w+)\}/g,function(m,p){return S.lang[p]});S.lib.append(document.body,markup);if(S.client.isIE6){U.get('sb-body').style.zoom=1;var el,m,re=/url\("(.*\.png)"\)/;U.each(png,function(id){el=U.get(id);if(el){m=S.lib.getStyle(el,'backgroundImage').match(re);if(m){el.style.backgroundImage='none';el.style.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,src='+m[1]+',sizingMethod=scale);'}}})};var id;S.lib.addEvent(window,'resize',function(){if(id){clearTimeout(id);id=null};if(S.isActive())id=setTimeout(function(){K.onWindowResize();var c=S.content;if(c&&c.onWindowResize)c.onWindowResize()},50)})},bodyEl:function(){return U.get('sb-body-inner')},onOpen:function(obj,cb){toggleTroubleElements(false);var h=S.options.autoDimensions&&'height' in obj?obj.height:S.options.initialHeight,w=S.options.autoDimensions&&'width' in obj?obj.width:S.options.initialWidth;U.get('sb-container').style.display='block';var d=setDimensions(h,w);adjustHeight(d.inner_h,d.top,false);adjustWidth(d.width,d.left,false);toggleVisible(cb)},onLoad:function(content,change,cb){toggleLoading(true);hideBars(change,function(){if(!content)return;if(!change)U.get('sb-wrapper').style.display='';cb()})},onReady:function(cb){var c=S.content;if(!c)return;var d=setDimensions(c.height,c.width,c.resizable);K.resizeContent(d.inner_h,d.width,d.top,d.left,true,function(){showBars(cb)})},onFinish:function(cb){toggleLoading(false,cb)},onClose:function(){toggleVisible();toggleTroubleElements(true)},onPlay:function(){toggleNav('play',false);toggleNav('pause',true)},onPause:function(){toggleNav('pause',false);toggleNav('play',true)},onWindowResize:function(){var c=S.content;if(!c)return;var d=setDimensions(c.height,c.width,c.resizable);adjustWidth(d.width,d.left,false);adjustHeight(d.inner_h,d.top,false);var el=U.get(S.contentId());if(el)if(c.resizable&&S.options.handleOversize=='resize'){el.height=d.resize_h;el.width=d.resize_w}},resizeContent:function(height,width,top,left,anim,cb){var c=S.content;if(!c)return;var d=setDimensions(c.height,c.width,c.resizable);switch(S.options.animSequence){case'hw':adjustHeight(d.inner_h,d.top,anim,function(){adjustWidth(d.width,d.left,anim,cb)});break;case'wh':adjustWidth(d.width,d.left,anim,function(){adjustHeight(d.inner_h,d.top,anim,cb)});break;default:adjustWidth(d.width,d.left,anim);adjustHeight(d.inner_h,d.top,anim,cb)}}}
function fixTop(){U.get('sb-container').style.top=document.documentElement.scrollTop+'px'}
function toggleTroubleElements(on){if(on){U.each(visibility_cache,function(c){c[0].style.visibility=c[1]||''})}else{visibility_cache=[];U.each(S.options.troubleElements,function(tag){U.each(document.getElementsByTagName(tag),function(el){visibility_cache.push([el,el.style.visibility]);el.style.visibility='hidden'})})}}
function toggleVisible(cb){var so=U.get('sb-overlay'),sc=U.get('sb-container'),sb=U.get('sb-wrapper');if(cb){if(S.client.isIE6){fixTop();S.lib.addEvent(window,'scroll',fixTop)};if(S.options.showOverlay){overlay_on=true;so.style.backgroundColor=S.options.overlayColor;U.setOpacity(so,0);if(!S.options.modal)S.lib.addEvent(so,'click',S.close);sb.style.display='none'};sc.style.visibility='visible';if(overlay_on){var op=parseFloat(S.options.overlayOpacity);U.animate(so,'opacity',op,S.options.fadeDuration,cb)}else cb()}else{if(S.client.isIE6)S.lib.removeEvent(window,'scroll',fixTop);S.lib.removeEvent(so,'click',S.close);if(overlay_on){sb.style.display='none';U.animate(so,'opacity',0,S.options.fadeDuration,function(){sc.style.display='';sb.style.display='';U.clearOpacity(so)})}else sc.style.visibility='hidden'}}
function toggleNav(id,on){var el=U.get('sb-nav-'+id);if(el)el.style.display=on?'':'none'}
function toggleLoading(on,cb){var ld=U.get('sb-loading'),p=S.getCurrent().player,anim=(p=='img'||p=='html');if(on){function fn(){U.clearOpacity(ld);if(cb)cb()};U.setOpacity(ld,0);ld.style.display='';if(anim){U.animate(ld,'opacity',1,S.options.fadeDuration,fn)}else fn()}else{function fn(){ld.style.display='none';U.clearOpacity(ld);if(cb)cb()};if(anim){U.animate(ld,'opacity',0,S.options.fadeDuration,fn)}else fn()}}
function buildBars(cb){var obj=S.getCurrent();U.get('sb-title-inner').innerHTML=obj.title||'';var c,n,pl,pa,p;if(S.options.displayNav){c=true;var len=S.gallery.length;if(len>1)if(S.options.continuous){n=p=true}else{n=(len-1)>S.current;p=S.current>0};if(S.options.slideshowDelay>0&&S.hasNext()){pa=!S.isPaused();pl=!pa}}else c=n=pl=pa=p=false;toggleNav('close',c);toggleNav('next',n);toggleNav('play',pl);toggleNav('pause',pa);toggleNav('previous',p);var counter='';if(S.options.displayCounter&&S.gallery.length>1){var len=S.gallery.length;if(S.options.counterType=='skip'){var i=0,end=len,limit=parseInt(S.options.counterLimit)||0;if(limit<len&&limit>2){var h=Math.floor(limit/2);i=S.current-h;if(i<0)i+=len;end=S.current+(limit-h);if(end>len)end-=len};while(i!=end){if(i==len)i=0;counter+='<a onclick="Shadowbox.change('+i+');"';if(i==S.current)counter+=' class="sb-counter-current"';counter+='>'+(i++)+'</a>'}}else var counter=(S.current+1)+' '+S.lang.of+' '+len};U.get('sb-counter').innerHTML=counter;cb()}
function hideBars(anim,cb){var sw=U.get('sb-wrapper'),st=U.get('sb-title'),si=U.get('sb-info'),ti=U.get('sb-title-inner'),ii=U.get('sb-info-inner'),t=parseInt(S.lib.getStyle(ti,'height'))||0,b=parseInt(S.lib.getStyle(ii,'height'))||0,fn=function(){ti.style.visibility=ii.style.visibility='hidden';buildBars(cb)};if(anim){U.animate(st,'height',0,0.35);U.animate(si,'height',0,0.35);U.animate(sw,'paddingTop',t,0.35);U.animate(sw,'paddingBottom',b,0.35,fn)}else{st.style.height=si.style.height='0px';sw.style.paddingTop=t+'px';sw.style.paddingBottom=b+'px';fn()}}
function showBars(cb){var sw=U.get('sb-wrapper'),st=U.get('sb-title'),si=U.get('sb-info'),ti=U.get('sb-title-inner'),ii=U.get('sb-info-inner'),t=parseInt(S.lib.getStyle(ti,'height'))||0,b=parseInt(S.lib.getStyle(ii,'height'))||0;ti.style.visibility=ii.style.visibility='';if(ti.innerHTML!=''){U.animate(st,'height',t,0.35);U.animate(sw,'paddingTop',0,0.35)};U.animate(si,'height',b,0.35);U.animate(sw,'paddingBottom',0,0.35,cb)}
function adjustHeight(height,top,anim,cb){var sb=U.get('sb-body'),s=U.get('sb-wrapper'),h=parseInt(height),t=parseInt(top);if(anim){U.animate(sb,'height',h,S.options.resizeDuration);U.animate(s,'top',t,S.options.resizeDuration,cb)}else{sb.style.height=h+'px';s.style.top=t+'px';if(cb)cb()}}
function adjustWidth(width,left,anim,cb){var s=U.get('sb-wrapper'),w=parseInt(width),l=parseInt(left);if(anim){U.animate(s,'width',w,S.options.resizeDuration);U.animate(s,'left',l,S.options.resizeDuration,cb)}else{s.style.width=w+'px';s.style.left=l+'px';if(cb)cb()}}
function setDimensions(height,width,resizable){var sbi=U.get('sb-body-inner');sw=U.get('sb-wrapper'),so=U.get('sb-overlay'),tb=sw.offsetHeight-sbi.offsetHeight,lr=sw.offsetWidth-sbi.offsetWidth,max_h=so.offsetHeight,max_w=so.offsetWidth;S.setDimensions(height,width,max_h,max_w,tb,lr,resizable);return S.dimensions};S.skin=K})();(function(b){var a=b.util,c=20;b.flv=function(d){this.obj=d;this.resizable=true;this.height=d.height?parseInt(d.height,10):300;if(b.options.showMovieControls==true)this.height+=c;this.width=d.width?parseInt(d.width,10):300};b.flv.prototype={append:function(l,e,n){this.id=e;var j=document.createElement("div");j.id=e;l.appendChild(j);var k=n.resize_h,o=n.resize_w,f=b.path+"libraries/mediaplayer/player.swf",m=b.options.flashVersion,d=b.path+"libraries/swfobject/expressInstall.swf",g=a.apply({file:this.obj.content,height:k,width:o,autostart:(b.options.autoplayMovies?"true":"false"),controlbar:(b.options.showMovieControls?"bottom":"none"),backcolor:"0x000000",frontcolor:"0xCCCCCC",lightcolor:"0x557722"},b.options.flashVars),i=b.options.flashParams;swfobject.embedSWF(f,e,o,k,m,d,g,i)},remove:function(){swfobject.expressInstallCallback();swfobject.removeSWF(this.id)}}})(Shadowbox);(function(a){a.html=function(b){this.obj=b;this.height=b.height?parseInt(b.height,10):300;this.width=b.width?parseInt(b.width,10):500};a.html.prototype={append:function(b,e,c){this.id=e;var d=document.createElement("div");d.id=e;d.className="html";d.innerHTML=this.obj.content;b.appendChild(d)},remove:function(){var b=document.getElementById(this.id);if(b)a.lib.remove(b)}}})(Shadowbox);(function(a){a.iframe=function(c){this.obj=c;var b=document.getElementById("sb-overlay");this.height=c.height?parseInt(c.height,10):b.offsetHeight;this.width=c.width?parseInt(c.width,10):b.offsetWidth};a.iframe.prototype={append:function(b,e,d){this.id=e;var c='<iframe id="'+e+'" name="'+e+'" height="100%" width="100%" frameborder="0" marginwidth="0" marginheight="0" style="visibility: hidden;" onload="this.style.visibility = \'visible\';" scrolling="no"';if(a.client.isIE){c+=' allowtransparency="true"';if(a.client.isIE6)c+=" src=\"javascript:false;document.write('');\""};c+="></iframe>";b.innerHTML=c},remove:function(){var b=document.getElementById(this.id);if(b){a.lib.remove(b);if(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(h){var e=h.util,i,k,j="sb-drag-layer",d
function b(){i={x:0,y:0,start_x:null,start_y:null}}
function c(m,o,l){if(m){b();var n=["position:absolute","height:"+o+"px","width:"+l+"px","cursor:"+(h.client.isGecko?"-moz-grab":"move"),"background-color:"+(h.client.isIE?"#fff;filter:alpha(opacity=0)":"transparent")].join(";");h.lib.append(h.skin.bodyEl(),'<div id="'+j+'" style="'+n+'"></div>');h.lib.addEvent(e.get(j),"mousedown",g)}else{var p=e.get(j);if(p){h.lib.removeEvent(p,"mousedown",g);h.lib.remove(p)};k=null}}
function g(m){h.lib.preventDefault(m);var l=h.lib.getPageXY(m);i.start_x=l[0];i.start_y=l[1];k=e.get(h.contentId());h.lib.addEvent(document,"mousemove",f);h.lib.addEvent(document,"mouseup",a);if(h.client.isGecko)e.get(j).style.cursor="-moz-grabbing"}
function a(){h.lib.removeEvent(document,"mousemove",f);h.lib.removeEvent(document,"mouseup",a);if(h.client.isGecko)e.get(j).style.cursor="-moz-grab"}
function f(o){var q=h.content,p=h.dimensions,n=h.lib.getPageXY(o),m=n[0]-i.start_x;i.start_x+=m;i.x=Math.max(Math.min(0,i.x+m),p.inner_w-q.width);k.style.left=i.x+"px";var l=n[1]-i.start_y;i.start_y+=l;i.y=Math.max(Math.min(0,i.y+l),p.inner_h-q.height);k.style.top=i.y+"px"};h.img=function(m){this.obj=m;this.resizable=true;this.ready=false;var l=this;d=new Image();d.onload=function(){l.height=m.height?parseInt(m.height,10):d.height;l.width=m.width?parseInt(m.width,10):d.width;l.ready=true;d.onload="";d=null};d.src=m.content};h.img.prototype={append:function(l,o,n){this.id=o;var m=document.createElement("img");m.id=o;m.src=this.obj.content;m.style.position="absolute";m.setAttribute("height",n.resize_h);m.setAttribute("width",n.resize_w);l.appendChild(m)},remove:function(){var l=e.get(this.id);if(l)h.lib.remove(l);c(false);if(d){d.onload="";d=null}},onLoad:function(){var l=h.dimensions;if(l.oversized&&h.options.handleOversize=="drag")c(true,l.resize_h,l.resize_w)},onWindowResize:function(){if(k){var p=h.content,o=h.dimensions,n=parseInt(h.lib.getStyle(k,"top")),m=parseInt(h.lib.getStyle(k,"left"));if(n+p.height<o.inner_h)k.style.top=o.inner_h-p.height+"px";if(m+p.width<o.inner_w)k.style.left=o.inner_w-p.width+"px"}}}})(Shadowbox);(function(a){var b=16;a.qt=function(c){this.obj=c;this.height=c.height?parseInt(c.height,10):300;if(a.options.showMovieControls==true)this.height+=b;this.width=c.width?parseInt(c.width,10):300};a.qt.prototype={append:function(l,e,n){this.id=e;var f=a.options,g=String(f.autoplayMovies),o=String(f.showMovieControls),k="<object",i={id:e,name:e,height:this.height,width:this.width,kioskmode:"true"};if(a.client.isIE){i.classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B";i.codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0"}else{i.type="video/quicktime";i.data=this.obj.content};for(var h in i)k+=" "+h+'="'+i[h]+'"';k+=">";var j={src:this.obj.content,scale:"aspect",controller:o,autoplay:g};for(var c in j)k+='<param name="'+c+'" value="'+j[c]+'">';k+="</object>";l.innerHTML=k},remove:function(){var f=this.id;try{document[f].Stop()}catch(d){};var c=document.getElementById(f);if(c)a.lib.remove(c)}}})(Shadowbox);(function(b){var a=b.util;b.swf=function(c){this.obj=c;this.resizable=true;this.height=c.height?parseInt(c.height,10):300;this.width=c.width?parseInt(c.width,10):300};b.swf.prototype={append:function(k,d,m){this.id=d;var i=document.createElement("div");i.id=d;k.appendChild(i);var j=m.resize_h,n=m.resize_w,e=this.obj.content,l=b.options.flashVersion,c=b.path+"libraries/swfobject/expressInstall.swf",f=b.options.flashVars,g=b.options.flashParams;swfobject.embedSWF(e,d,n,j,l,c,f,g)},remove:function(){swfobject.expressInstallCallback();swfobject.removeSWF(this.id)}}})(Shadowbox);(function(a){var b=(a.client.isIE?70:45);a.wmp=function(c){this.obj=c;this.height=c.height?parseInt(c.height,10):300;if(a.options.showMovieControls)this.height+=b;this.width=c.width?parseInt(c.width,10):300};a.wmp.prototype={append:function(c,j,i){this.id=j;var e=a.options,f=e.autoplayMovies?1:0,d='<object id="'+j+'" name="'+j+'" height="'+this.height+'" width="'+this.width+'"',h={autostart:e.autoplayMovies?1:0};if(a.client.isIE){d+=' classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6"';h.url=this.obj.content;h.uimode=e.showMovieControls?"full":"none"}else{d+=' type="video/x-ms-wmv"';d+=' data="'+this.obj.content+'"';h.showcontrols=e.showMovieControls?1:0};d+=">";for(var g in h)d+='<param name="'+g+'" value="'+h[g]+'">';d+="</object>";c.innerHTML=d},remove:function(){var f=this.id;if(a.client.isIE)try{window[f].controls.stop();window[f].URL="non-existent.wmv";window[f]=function(){}}catch(d){};var c=document.getElementById(f);if(c)setTimeout(function(){a.lib.remove(c)},10)}}})(Shadowbox);(function(S){if(!S.options.ext.gdoc)S.options.ext.gdoc=['pdf','ppt'];if(!S.regex.gdoc)S.regex.gdoc=new RegExp('\.('+S.options.ext.gdoc.join('|')+')\s*$','i');S.gdoc_buildCacheObj=S.buildCacheObj;S.buildCacheObj=function(link,opts){var rtn=S.gdoc_buildCacheObj(link,opts);if({unsupported:1,iframe:1}[rtn.player]){var q=rtn.content.indexOf('?');if(S.regex.gdoc.test(q>0?rtn.content.substring(0,q):rtn.content))rtn.player='gdoc'};return rtn};S.gdoc=function(obj){this.obj=obj;if(S.options.cacheBuster){this.floc=encodeURIComponent(this.obj.content+(this.obj.content.indexOf('?')>0?'&__c_b=':'?__c_b=')+(new Date()).getTime())}else this.floc=encodeURIComponent(this.obj.content);this.floc='http://docs.google.com/gview?embedded=true&url='+this.floc;var so=document.getElementById('sb-overlay');this.height=obj.height?parseInt(obj.height,10):so.offsetHeight;this.width=obj.width?parseInt(obj.width,10):so.offsetWidth};S.gdoc.prototype={append:function(body,id,dims){this.id=id;body.innerHTML='<iframe id="'+id+'" name="'+id+'" height="100%" width="100%" marginwidth="0" marginheight="0" scrolling="auto" '+(S.client.isIE6?'frameBorder="0" ':'frameborder="0" ')+(S.client.isIE?'allowtransparency="true" ':'')+'src="javascript:document.write(unescape(\'%3Cbody%20style%3D%22background%3A%23000000%3B%22%3E%3C/body%3E\'));"</iframe>'},remove:function(){var el=document.getElementById(this.id);if(el){S.lib.remove(el);if(S.client.isGecko)delete window.frames[this.id]}},onLoad:function(){var win=S.client.isIE?document.getElementById(this.id).contentWindow:window.frames[this.id];win.location.href=this.floc}}})(Shadowbox);
function setActiveStyleSheet(title){if(document.getElementsByTagName('body')[0])document.getElementsByTagName('body')[0].className=title}
function getActiveStyleSheet(){if(document.getElementsByTagName('body')[0])return document.getElementsByTagName('body')[0].className;return null}
function getPreferredStyleSheet(){return'white'}
function createCookie(name,value,days){if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires="; expires="+date.toGMTString()}else expires="";document.cookie=name+"="+value+expires+"; path=/"}
function readCookie(name){var nameEQ=name+"=",ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return c.substring(nameEQ.length,c.length)};return null};window.onload=function(e){var cookie=readCookie("style"),title=cookie?cookie:getPreferredStyleSheet();setActiveStyleSheet(title)};window.onunload=function(e){var title=getActiveStyleSheet();createCookie("style",title,365)};var cookie=readCookie("style");if(cookie)setActiveStyleSheet(cookie);
window.onload=function(e){document.getElementById('bh_styleswitcher').style.display='inline-block'};
function JSmenuItem(owner,id,nextItem,parent,openID,title,url,target){this.owner=owner;this.id=id;this.nextItem=nextItem;this.child=0;this.openID=openID;this.parent=parent;this.title=title;this.url=url;this.target=target}
function JSmenu(levels,formname){this.name=name,this.levels=levels;this.formname=formname;this.openID=0;this.entry=new JSmenuItem(this);this.count=0;this.defTopTitle=new Array();this.add=JSmenuAddItem;this.writeOut=JSmenuWrite;this.act=JSactivate}
function JSmenuAddItem(parent,prevItem,openID,title,url,target){this.count++;var entryID=this.count;this.entry[entryID]=new JSmenuItem(this,entryID,0,parent,openID,title,url,target);if(prevItem){this.entry[prevItem].nextItem=entryID}else if(parent)this.entry[parent].child=entryID;return entryID}
function JSmenuWrite(theEntryID,openID,theLevel){var level=theLevel;if(level<=this.levels){var entryID=theEntryID,firstEntryID=theEntryID,selectorBox=document[this.formname]["selector"+level],index=0;selectorBox.length=0;selectorBox.length++;selectorBox.options[index].text=this.defTopTitle[theLevel]?this.defTopTitle[theLevel]:"                   ";selectorBox.options[index].value=0;index++;var indexSet=0;if(entryID&&this.entry[entryID]){var ids="";while(entryID){ids+="-"+entryID;selectorBox.length++;selectorBox.options[index].text=this.entry[entryID].title;selectorBox.options[index].value=entryID;if(openID==entryID){var indexSet=1;selectorBox.selectedIndex=index;if(level<this.levels)this.writeOut(this.entry[entryID].child,this.entry[entryID].openID,level+1)};index++;entryID=this.entry[entryID].nextItem};if(!indexSet){selectorBox.selectedIndex=0;this.writeOut(this.entry[firstEntryID].child,this.entry[firstEntryID].openID,level+1)}}else if(level<this.levels)this.writeOut(0,0,level+1)}}
function JSactivate(level){var selectorBox=document[this.formname]["selector"+level],entryID=selectorBox.options[selectorBox.selectedIndex].value;if(this.entry[entryID]){this.writeOut(this.entry[entryID].child,this.entry[entryID].openID,level+1);if(this.entry[this.entry[entryID].parent])this.entry[this.entry[entryID].parent].openID=entryID;if(this.entry[entryID].url){var baseURLs=document.getElementsByTagName('base');if(baseURLs.length&&baseURLs[0].href.length>0)if(this.entry[entryID].url.search(/^http[s]?:\/\//))this.entry[entryID].url=baseURLs[0].href+this.entry[entryID].url;if(!this.entry[entryID].target||this.entry[entryID].target=="_self"){window.location.href=this.entry[entryID].url}else if(this.entry[entryID].target=="_top"){top.location.href=this.entry[entryID].url}else{var test=eval("parent."+this.entry[entryID].target);if(!test)test=eval("top."+this.entry[entryID].target);if(test&&test.document){test.location.href=this.entry[entryID].url}else window.open(this.entry[entryID].url,this.entry[entryID].target,"status=yes,menubar=yes,resizable=yes,location=yes,directories=yes,scrollbars=yes,toolbar=yes")}}}};
var JSmenu9aa86=new JSmenu(1,'JSmenu9aa86Form'),eid9aa861=0;eid9aa861=JSmenu9aa86.add(0,0,0,'Favorites/ Best Of','http://www.thorstenindra.com/photos/favorites/','');eid9aa861=JSmenu9aa86.add(0,eid9aa861,0,'Fashion Photos','http://www.thorstenindra.com/photos/fashion/','');eid9aa861=JSmenu9aa86.add(0,eid9aa861,0,'Portrait Photos','http://www.thorstenindra.com/photos/portraits/','');eid9aa861=JSmenu9aa86.add(0,eid9aa861,0,'Lifestyle Photos','http://www.thorstenindra.com/photos/lifestyle/','');eid9aa861=JSmenu9aa86.add(0,eid9aa861,0,'Mountainbiking Photos','http://www.thorstenindra.com/photos/mountainbiking/','');eid9aa861=JSmenu9aa86.add(0,eid9aa861,0,'Surfing Photos','http://www.thorstenindra.com/photos/surfing/','');eid9aa861=JSmenu9aa86.add(0,eid9aa861,0,'SUP Photos','http://www.thorstenindra.com/photos/sup/','');eid9aa861=JSmenu9aa86.add(0,eid9aa861,0,'Snowboarding Photos','http://www.thorstenindra.com/photos/snowboarding/','');eid9aa861=JSmenu9aa86.add(0,eid9aa861,0,'Skiing & Wintersports','http://www.thorstenindra.com/photos/wintersports/','');eid9aa861=JSmenu9aa86.add(0,eid9aa861,0,'Outdoor Lifestyle Photos','http://www.thorstenindra.com/outdoor-lifestyle-photographer/','');eid9aa861=JSmenu9aa86.add(0,eid9aa861,0,'Windsurfing Photos','http://www.thorstenindra.com/photos/windsurfing/','');eid9aa861=JSmenu9aa86.add(0,eid9aa861,0,'More Windsurfing Photos','http://www.thorstenindra.com/photos/windsurfing02/','');eid9aa861=JSmenu9aa86.add(0,eid9aa861,0,'Kiteboarding Photos','http://www.thorstenindra.com/photos/kiteboarding/','');eid9aa861=JSmenu9aa86.add(0,eid9aa861,0,'Event Photos','http://www.thorstenindra.com/event-photographer/','');eid9aa861=JSmenu9aa86.add(0,eid9aa861,0,'More Event Photos','http://www.thorstenindra.com/photos/events02/','');eid9aa861=JSmenu9aa86.add(0,eid9aa861,0,'Sports Photography','http://www.thorstenindra.com/sports-photographer/','');eid9aa861=JSmenu9aa86.add(0,eid9aa861,0,'Seascapes','http://www.thorstenindra.com/photos/seascapes/','');eid9aa861=JSmenu9aa86.add(0,eid9aa861,0,'Horse riding Photos','http://www.thorstenindra.com/photos/horse-riding/','');JSmenu9aa86.defTopTitle[1]='Choose a gallery';
/*
 * jQuery Cycle Plugin (with Transition Definitions)
 * Examples and documentation at: http://jquery.malsup.com/cycle/
 * Copyright (c) 2007-2010 M. Alsup
 * Version: 2.88 (08-JUN-2010)
 * Dual licensed under the MIT and GPL licenses.
 * http://jquery.malsup.com/license.html
 * Requires: jQuery v1.2.6 or later
 */
(function($){var ver="2.88";if($.support==undefined){$.support={opacity:!($.browser.msie)};}function debug(s){if($.fn.cycle.debug){log(s);}}function log(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments," "));}}$.fn.cycle=function(options,arg2){var o={s:this.selector,c:this.context};if(this.length===0&&options!="stop"){if(!$.isReady&&o.s){log("DOM not ready, queuing slideshow");$(function(){$(o.s,o.c).cycle(options,arg2);});return this;}log("terminating; zero elements found by selector"+($.isReady?"":" (DOM not ready)"));return this;}return this.each(function(){var opts=handleArguments(this,options,arg2);if(opts===false){return;}opts.updateActivePagerLink=opts.updateActivePagerLink||$.fn.cycle.updateActivePagerLink;if(this.cycleTimeout){clearTimeout(this.cycleTimeout);}this.cycleTimeout=this.cyclePause=0;var $cont=$(this);var $slides=opts.slideExpr?$(opts.slideExpr,this):$cont.children();var els=$slides.get();if(els.length<2){log("terminating; too few slides: "+els.length);return;}var opts2=buildOptions($cont,$slides,els,opts,o);if(opts2===false){return;}var startTime=opts2.continuous?10:getTimeout(els[opts2.currSlide],els[opts2.nextSlide],opts2,!opts2.rev);if(startTime){startTime+=(opts2.delay||0);if(startTime<10){startTime=10;}debug("first timeout: "+startTime);this.cycleTimeout=setTimeout(function(){go(els,opts2,0,(!opts2.rev&&!opts.backwards));},startTime);}});};function handleArguments(cont,options,arg2){if(cont.cycleStop==undefined){cont.cycleStop=0;}if(options===undefined||options===null){options={};}if(options.constructor==String){switch(options){case"destroy":case"stop":var opts=$(cont).data("cycle.opts");if(!opts){return false;}cont.cycleStop++;if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);}cont.cycleTimeout=0;$(cont).removeData("cycle.opts");if(options=="destroy"){destroy(opts);}return false;case"toggle":cont.cyclePause=(cont.cyclePause===1)?0:1;checkInstantResume(cont.cyclePause,arg2,cont);return false;case"pause":cont.cyclePause=1;return false;case"resume":cont.cyclePause=0;checkInstantResume(false,arg2,cont);return false;case"prev":case"next":var opts=$(cont).data("cycle.opts");if(!opts){log('options not found, "prev/next" ignored');return false;}$.fn.cycle[options](opts);return false;default:options={fx:options};}return options;}else{if(options.constructor==Number){var num=options;options=$(cont).data("cycle.opts");if(!options){log("options not found, can not advance slide");return false;}if(num<0||num>=options.elements.length){log("invalid slide index: "+num);return false;}options.nextSlide=num;if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;}if(typeof arg2=="string"){options.oneTimeFx=arg2;}go(options.elements,options,1,num>=options.currSlide);return false;}}return options;function checkInstantResume(isPaused,arg2,cont){if(!isPaused&&arg2===true){var options=$(cont).data("cycle.opts");if(!options){log("options not found, can not resume");return false;}if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;}go(options.elements,options,1,(!opts.rev&&!opts.backwards));}}}function removeFilter(el,opts){if(!$.support.opacity&&opts.cleartype&&el.style.filter){try{el.style.removeAttribute("filter");}catch(smother){}}}function destroy(opts){if(opts.next){$(opts.next).unbind(opts.prevNextEvent);}if(opts.prev){$(opts.prev).unbind(opts.prevNextEvent);}if(opts.pager||opts.pagerAnchorBuilder){$.each(opts.pagerAnchors||[],function(){this.unbind().remove();});}opts.pagerAnchors=null;if(opts.destroy){opts.destroy(opts);}}function buildOptions($cont,$slides,els,options,o){var opts=$.extend({},$.fn.cycle.defaults,options||{},$.metadata?$cont.metadata():$.meta?$cont.data():{});if(opts.autostop){opts.countdown=opts.autostopCount||els.length;}var cont=$cont[0];$cont.data("cycle.opts",opts);opts.$cont=$cont;opts.stopCount=cont.cycleStop;opts.elements=els;opts.before=opts.before?[opts.before]:[];opts.after=opts.after?[opts.after]:[];opts.after.unshift(function(){opts.busy=0;});if(!$.support.opacity&&opts.cleartype){opts.after.push(function(){removeFilter(this,opts);});}if(opts.continuous){opts.after.push(function(){go(els,opts,0,(!opts.rev&&!opts.backwards));});}saveOriginalOpts(opts);if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg){clearTypeFix($slides);}if($cont.css("position")=="static"){$cont.css("position","relative");}if(opts.width){$cont.width(opts.width);}if(opts.height&&opts.height!="auto"){$cont.height(opts.height);}if(opts.startingSlide){opts.startingSlide=parseInt(opts.startingSlide);}else{if(opts.backwards){opts.startingSlide=els.length-1;}}if(opts.random){opts.randomMap=[];for(var i=0;i<els.length;i++){opts.randomMap.push(i);}opts.randomMap.sort(function(a,b){return Math.random()-0.5;});opts.randomIndex=1;opts.startingSlide=opts.randomMap[1];}else{if(opts.startingSlide>=els.length){opts.startingSlide=0;}}opts.currSlide=opts.startingSlide||0;var first=opts.startingSlide;$slides.css({position:"absolute",top:0,left:0}).hide().each(function(i){var z;if(opts.backwards){z=first?i<=first?els.length+(i-first):first-i:els.length-i;}else{z=first?i>=first?els.length-(i-first):first-i:els.length-i;}$(this).css("z-index",z);});$(els[first]).css("opacity",1).show();removeFilter(els[first],opts);if(opts.fit&&opts.width){$slides.width(opts.width);}if(opts.fit&&opts.height&&opts.height!="auto"){$slides.height(opts.height);}var reshape=opts.containerResize&&!$cont.innerHeight();if(reshape){var maxw=0,maxh=0;for(var j=0;j<els.length;j++){var $e=$(els[j]),e=$e[0],w=$e.outerWidth(),h=$e.outerHeight();if(!w){w=e.offsetWidth||e.width||$e.attr("width");}if(!h){h=e.offsetHeight||e.height||$e.attr("height");}maxw=w>maxw?w:maxw;maxh=h>maxh?h:maxh;}if(maxw>0&&maxh>0){$cont.css({width:maxw+"px",height:maxh+"px"});}}if(opts.pause){$cont.hover(function(){this.cyclePause++;},function(){this.cyclePause--;});}if(supportMultiTransitions(opts)===false){return false;}var requeue=false;options.requeueAttempts=options.requeueAttempts||0;$slides.each(function(){var $el=$(this);this.cycleH=(opts.fit&&opts.height)?opts.height:($el.height()||this.offsetHeight||this.height||$el.attr("height")||0);this.cycleW=(opts.fit&&opts.width)?opts.width:($el.width()||this.offsetWidth||this.width||$el.attr("width")||0);if($el.is("img")){var loadingIE=($.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var loadingFF=($.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var loadingOp=($.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var loadingOther=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(loadingIE||loadingFF||loadingOp||loadingOther){if(o.s&&opts.requeueOnImageNotLoaded&&++options.requeueAttempts<100){log(options.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){$(o.s,o.c).cycle(options);},opts.requeueTimeout);requeue=true;return false;}else{log("could not determine size of image: "+this.src,this.cycleW,this.cycleH);}}}return true;});if(requeue){return false;}opts.cssBefore=opts.cssBefore||{};opts.animIn=opts.animIn||{};opts.animOut=opts.animOut||{};$slides.not(":eq("+first+")").css(opts.cssBefore);if(opts.cssFirst){$($slides[first]).css(opts.cssFirst);}if(opts.timeout){opts.timeout=parseInt(opts.timeout);if(opts.speed.constructor==String){opts.speed=$.fx.speeds[opts.speed]||parseInt(opts.speed);}if(!opts.sync){opts.speed=opts.speed/2;}var buffer=opts.fx=="shuffle"?500:250;while((opts.timeout-opts.speed)<buffer){opts.timeout+=opts.speed;}}if(opts.easing){opts.easeIn=opts.easeOut=opts.easing;}if(!opts.speedIn){opts.speedIn=opts.speed;}if(!opts.speedOut){opts.speedOut=opts.speed;}opts.slideCount=els.length;opts.currSlide=opts.lastSlide=first;if(opts.random){if(++opts.randomIndex==els.length){opts.randomIndex=0;}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{if(opts.backwards){opts.nextSlide=opts.startingSlide==0?(els.length-1):opts.startingSlide-1;}else{opts.nextSlide=opts.startingSlide>=(els.length-1)?0:opts.startingSlide+1;}}if(!opts.multiFx){var init=$.fn.cycle.transitions[opts.fx];if($.isFunction(init)){init($cont,$slides,opts);}else{if(opts.fx!="custom"&&!opts.multiFx){log("unknown transition: "+opts.fx,"; slideshow terminating");return false;}}}var e0=$slides[first];if(opts.before.length){opts.before[0].apply(e0,[e0,e0,opts,true]);}if(opts.after.length>1){opts.after[1].apply(e0,[e0,e0,opts,true]);}if(opts.next){$(opts.next).bind(opts.prevNextEvent,function(){return advance(opts,opts.rev?-1:1);});}if(opts.prev){$(opts.prev).bind(opts.prevNextEvent,function(){return advance(opts,opts.rev?1:-1);});}if(opts.pager||opts.pagerAnchorBuilder){buildPager(els,opts);}exposeAddSlide(opts,els);return opts;}function saveOriginalOpts(opts){opts.original={before:[],after:[]};opts.original.cssBefore=$.extend({},opts.cssBefore);opts.original.cssAfter=$.extend({},opts.cssAfter);opts.original.animIn=$.extend({},opts.animIn);opts.original.animOut=$.extend({},opts.animOut);$.each(opts.before,function(){opts.original.before.push(this);});$.each(opts.after,function(){opts.original.after.push(this);});}function supportMultiTransitions(opts){var i,tx,txs=$.fn.cycle.transitions;if(opts.fx.indexOf(",")>0){opts.multiFx=true;opts.fxs=opts.fx.replace(/\s*/g,"").split(",");for(i=0;i<opts.fxs.length;i++){var fx=opts.fxs[i];tx=txs[fx];if(!tx||!txs.hasOwnProperty(fx)||!$.isFunction(tx)){log("discarding unknown transition: ",fx);opts.fxs.splice(i,1);i--;}}if(!opts.fxs.length){log("No valid transitions named; slideshow terminating.");return false;}}else{if(opts.fx=="all"){opts.multiFx=true;opts.fxs=[];for(p in txs){tx=txs[p];if(txs.hasOwnProperty(p)&&$.isFunction(tx)){opts.fxs.push(p);}}}}if(opts.multiFx&&opts.randomizeEffects){var r1=Math.floor(Math.random()*20)+30;for(i=0;i<r1;i++){var r2=Math.floor(Math.random()*opts.fxs.length);opts.fxs.push(opts.fxs.splice(r2,1)[0]);}debug("randomized fx sequence: ",opts.fxs);}return true;}function exposeAddSlide(opts,els){opts.addSlide=function(newSlide,prepend){var $s=$(newSlide),s=$s[0];if(!opts.autostopCount){opts.countdown++;}els[prepend?"unshift":"push"](s);if(opts.els){opts.els[prepend?"unshift":"push"](s);}opts.slideCount=els.length;$s.css("position","absolute");$s[prepend?"prependTo":"appendTo"](opts.$cont);if(prepend){opts.currSlide++;opts.nextSlide++;}if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg){clearTypeFix($s);}if(opts.fit&&opts.width){$s.width(opts.width);}if(opts.fit&&opts.height&&opts.height!="auto"){$slides.height(opts.height);}s.cycleH=(opts.fit&&opts.height)?opts.height:$s.height();s.cycleW=(opts.fit&&opts.width)?opts.width:$s.width();$s.css(opts.cssBefore);if(opts.pager||opts.pagerAnchorBuilder){$.fn.cycle.createPagerAnchor(els.length-1,s,$(opts.pager),els,opts);}if($.isFunction(opts.onAddSlide)){opts.onAddSlide($s);}else{$s.hide();}};}$.fn.cycle.resetState=function(opts,fx){fx=fx||opts.fx;opts.before=[];opts.after=[];opts.cssBefore=$.extend({},opts.original.cssBefore);opts.cssAfter=$.extend({},opts.original.cssAfter);opts.animIn=$.extend({},opts.original.animIn);opts.animOut=$.extend({},opts.original.animOut);opts.fxFn=null;$.each(opts.original.before,function(){opts.before.push(this);});$.each(opts.original.after,function(){opts.after.push(this);});var init=$.fn.cycle.transitions[fx];if($.isFunction(init)){init(opts.$cont,$(opts.elements),opts);}};function go(els,opts,manual,fwd){if(manual&&opts.busy&&opts.manualTrump){debug("manualTrump in go(), stopping active transition");$(els).stop(true,true);opts.busy=false;}if(opts.busy){debug("transition active, ignoring new tx request");return;}var p=opts.$cont[0],curr=els[opts.currSlide],next=els[opts.nextSlide];if(p.cycleStop!=opts.stopCount||p.cycleTimeout===0&&!manual){return;}if(!manual&&!p.cyclePause&&!opts.bounce&&((opts.autostop&&(--opts.countdown<=0))||(opts.nowrap&&!opts.random&&opts.nextSlide<opts.currSlide))){if(opts.end){opts.end(opts);}return;}var changed=false;if((manual||!p.cyclePause)&&(opts.nextSlide!=opts.currSlide)){changed=true;var fx=opts.fx;curr.cycleH=curr.cycleH||$(curr).height();curr.cycleW=curr.cycleW||$(curr).width();next.cycleH=next.cycleH||$(next).height();next.cycleW=next.cycleW||$(next).width();if(opts.multiFx){if(opts.lastFx==undefined||++opts.lastFx>=opts.fxs.length){opts.lastFx=0;}fx=opts.fxs[opts.lastFx];opts.currFx=fx;}if(opts.oneTimeFx){fx=opts.oneTimeFx;opts.oneTimeFx=null;}$.fn.cycle.resetState(opts,fx);if(opts.before.length){$.each(opts.before,function(i,o){if(p.cycleStop!=opts.stopCount){return;}o.apply(next,[curr,next,opts,fwd]);});}var after=function(){$.each(opts.after,function(i,o){if(p.cycleStop!=opts.stopCount){return;}o.apply(next,[curr,next,opts,fwd]);});};debug("tx firing; currSlide: "+opts.currSlide+"; nextSlide: "+opts.nextSlide);opts.busy=1;if(opts.fxFn){opts.fxFn(curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}else{if($.isFunction($.fn.cycle[opts.fx])){$.fn.cycle[opts.fx](curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}else{$.fn.cycle.custom(curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}}}if(changed||opts.nextSlide==opts.currSlide){opts.lastSlide=opts.currSlide;if(opts.random){opts.currSlide=opts.nextSlide;if(++opts.randomIndex==els.length){opts.randomIndex=0;}opts.nextSlide=opts.randomMap[opts.randomIndex];if(opts.nextSlide==opts.currSlide){opts.nextSlide=(opts.currSlide==opts.slideCount-1)?0:opts.currSlide+1;}}else{if(opts.backwards){var roll=(opts.nextSlide-1)<0;if(roll&&opts.bounce){opts.backwards=!opts.backwards;opts.nextSlide=1;opts.currSlide=0;}else{opts.nextSlide=roll?(els.length-1):opts.nextSlide-1;opts.currSlide=roll?0:opts.nextSlide+1;}}else{var roll=(opts.nextSlide+1)==els.length;if(roll&&opts.bounce){opts.backwards=!opts.backwards;opts.nextSlide=els.length-2;opts.currSlide=els.length-1;}else{opts.nextSlide=roll?0:opts.nextSlide+1;opts.currSlide=roll?els.length-1:opts.nextSlide-1;}}}}if(changed&&opts.pager){opts.updateActivePagerLink(opts.pager,opts.currSlide,opts.activePagerClass);}var ms=0;if(opts.timeout&&!opts.continuous){ms=getTimeout(els[opts.currSlide],els[opts.nextSlide],opts,fwd);}else{if(opts.continuous&&p.cyclePause){ms=10;}}if(ms>0){p.cycleTimeout=setTimeout(function(){go(els,opts,0,(!opts.rev&&!opts.backwards));},ms);}}$.fn.cycle.updateActivePagerLink=function(pager,currSlide,clsName){$(pager).each(function(){$(this).children().removeClass(clsName).eq(currSlide).addClass(clsName);});};function getTimeout(curr,next,opts,fwd){if(opts.timeoutFn){var t=opts.timeoutFn.call(curr,curr,next,opts,fwd);while((t-opts.speed)<250){t+=opts.speed;}debug("calculated timeout: "+t+"; speed: "+opts.speed);if(t!==false){return t;}}return opts.timeout;}$.fn.cycle.next=function(opts){advance(opts,opts.rev?-1:1);};$.fn.cycle.prev=function(opts){advance(opts,opts.rev?1:-1);};function advance(opts,val){var els=opts.elements;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}if(opts.random&&val<0){opts.randomIndex--;if(--opts.randomIndex==-2){opts.randomIndex=els.length-2;}else{if(opts.randomIndex==-1){opts.randomIndex=els.length-1;}}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{if(opts.random){opts.nextSlide=opts.randomMap[opts.randomIndex];}else{opts.nextSlide=opts.currSlide+val;if(opts.nextSlide<0){if(opts.nowrap){return false;}opts.nextSlide=els.length-1;}else{if(opts.nextSlide>=els.length){if(opts.nowrap){return false;}opts.nextSlide=0;}}}}var cb=opts.onPrevNextEvent||opts.prevNextClick;if($.isFunction(cb)){cb(val>0,opts.nextSlide,els[opts.nextSlide]);}go(els,opts,1,val>=0);return false;}function buildPager(els,opts){var $p=$(opts.pager);$.each(els,function(i,o){$.fn.cycle.createPagerAnchor(i,o,$p,els,opts);});opts.updateActivePagerLink(opts.pager,opts.startingSlide,opts.activePagerClass);}$.fn.cycle.createPagerAnchor=function(i,el,$p,els,opts){var a;if($.isFunction(opts.pagerAnchorBuilder)){a=opts.pagerAnchorBuilder(i,el);debug("pagerAnchorBuilder("+i+", el) returned: "+a);}else{a='<a href="#">'+(i+1)+"</a>";}if(!a){return;}var $a=$(a);if($a.parents("body").length===0){var arr=[];if($p.length>1){$p.each(function(){var $clone=$a.clone(true);$(this).append($clone);arr.push($clone[0]);});$a=$(arr);}else{$a.appendTo($p);}}opts.pagerAnchors=opts.pagerAnchors||[];opts.pagerAnchors.push($a);$a.bind(opts.pagerEvent,function(e){e.preventDefault();opts.nextSlide=i;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}var cb=opts.onPagerEvent||opts.pagerClick;if($.isFunction(cb)){cb(opts.nextSlide,els[opts.nextSlide]);}go(els,opts,1,opts.currSlide<i);});if(!/^click/.test(opts.pagerEvent)&&!opts.allowPagerClickBubble){$a.bind("click.cycle",function(){return false;});}if(opts.pauseOnPagerHover){$a.hover(function(){opts.$cont[0].cyclePause++;},function(){opts.$cont[0].cyclePause--;});}};$.fn.cycle.hopsFromLast=function(opts,fwd){var hops,l=opts.lastSlide,c=opts.currSlide;if(fwd){hops=c>l?c-l:opts.slideCount-l;}else{hops=c<l?l-c:l+opts.slideCount-c;}return hops;};function clearTypeFix($slides){debug("applying clearType background-color hack");function hex(s){s=parseInt(s).toString(16);return s.length<2?"0"+s:s;}function getBg(e){for(;e&&e.nodeName.toLowerCase()!="html";e=e.parentNode){var v=$.css(e,"background-color");if(v.indexOf("rgb")>=0){var rgb=v.match(/\d+/g);return"#"+hex(rgb[0])+hex(rgb[1])+hex(rgb[2]);}if(v&&v!="transparent"){return v;}}return"#ffffff";}$slides.each(function(){$(this).css("background-color",getBg(this));});}$.fn.cycle.commonReset=function(curr,next,opts,w,h,rev){$(opts.elements).not(curr).hide();opts.cssBefore.opacity=1;opts.cssBefore.display="block";if(w!==false&&next.cycleW>0){opts.cssBefore.width=next.cycleW;}if(h!==false&&next.cycleH>0){opts.cssBefore.height=next.cycleH;}opts.cssAfter=opts.cssAfter||{};opts.cssAfter.display="none";$(curr).css("zIndex",opts.slideCount+(rev===true?1:0));$(next).css("zIndex",opts.slideCount+(rev===true?0:1));};$.fn.cycle.custom=function(curr,next,opts,cb,fwd,speedOverride){var $l=$(curr),$n=$(next);var speedIn=opts.speedIn,speedOut=opts.speedOut,easeIn=opts.easeIn,easeOut=opts.easeOut;$n.css(opts.cssBefore);if(speedOverride){if(typeof speedOverride=="number"){speedIn=speedOut=speedOverride;}else{speedIn=speedOut=1;}easeIn=easeOut=null;}var fn=function(){$n.animate(opts.animIn,speedIn,easeIn,cb);};$l.animate(opts.animOut,speedOut,easeOut,function(){if(opts.cssAfter){$l.css(opts.cssAfter);}if(!opts.sync){fn();}});if(opts.sync){fn();}};$.fn.cycle.transitions={fade:function($cont,$slides,opts){$slides.not(":eq("+opts.currSlide+")").css("opacity",0);opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.opacity=0;});opts.animIn={opacity:1};opts.animOut={opacity:0};opts.cssBefore={top:0,left:0};}};$.fn.cycle.ver=function(){return ver;};$.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,onPrevNextEvent:null,prevNextEvent:"click.cycle",pager:null,onPagerEvent:null,pagerEvent:"click.cycle",allowPagerClickBubble:false,pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!$.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250,activePagerClass:"activeSlide",updateActivePagerLink:null,backwards:false};})(jQuery);
/*
 * jQuery Cycle Plugin Transition Definitions
 * This script is a plugin for the jQuery Cycle Plugin
 * Examples and documentation at: http://malsup.com/jquery/cycle/
 * Copyright (c) 2007-2010 M. Alsup
 * Version:	 2.72
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */
(function($){$.fn.cycle.transitions.none=function($cont,$slides,opts){opts.fxFn=function(curr,next,opts,after){$(next).show();$(curr).hide();after();};};$.fn.cycle.transitions.scrollUp=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var h=$cont.height();opts.cssBefore={top:h,left:0};opts.cssFirst={top:0};opts.animIn={top:0};opts.animOut={top:-h};};$.fn.cycle.transitions.scrollDown=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var h=$cont.height();opts.cssFirst={top:0};opts.cssBefore={top:-h,left:0};opts.animIn={top:0};opts.animOut={top:h};};$.fn.cycle.transitions.scrollLeft=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var w=$cont.width();opts.cssFirst={left:0};opts.cssBefore={left:w,top:0};opts.animIn={left:0};opts.animOut={left:0-w};};$.fn.cycle.transitions.scrollRight=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var w=$cont.width();opts.cssFirst={left:0};opts.cssBefore={left:-w,top:0};opts.animIn={left:0};opts.animOut={left:w};};$.fn.cycle.transitions.scrollHorz=function($cont,$slides,opts){$cont.css("overflow","hidden").width();opts.before.push(function(curr,next,opts,fwd){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.left=fwd?(next.cycleW-1):(1-next.cycleW);opts.animOut.left=fwd?-curr.cycleW:curr.cycleW;});opts.cssFirst={left:0};opts.cssBefore={top:0};opts.animIn={left:0};opts.animOut={top:0};};$.fn.cycle.transitions.scrollVert=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push(function(curr,next,opts,fwd){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.top=fwd?(1-next.cycleH):(next.cycleH-1);opts.animOut.top=fwd?curr.cycleH:-curr.cycleH;});opts.cssFirst={top:0};opts.cssBefore={left:0};opts.animIn={top:0};opts.animOut={left:0};};$.fn.cycle.transitions.slideX=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$(opts.elements).not(curr).hide();$.fn.cycle.commonReset(curr,next,opts,false,true);opts.animIn.width=next.cycleW;});opts.cssBefore={left:0,top:0,width:0};opts.animIn={width:"show"};opts.animOut={width:0};};$.fn.cycle.transitions.slideY=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$(opts.elements).not(curr).hide();$.fn.cycle.commonReset(curr,next,opts,true,false);opts.animIn.height=next.cycleH;});opts.cssBefore={left:0,top:0,height:0};opts.animIn={height:"show"};opts.animOut={height:0};};$.fn.cycle.transitions.shuffle=function($cont,$slides,opts){var i,w=$cont.css("overflow","visible").width();$slides.css({left:0,top:0});opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true);});if(!opts.speedAdjusted){opts.speed=opts.speed/2;opts.speedAdjusted=true;}opts.random=0;opts.shuffle=opts.shuffle||{left:-w,top:15};opts.els=[];for(i=0;i<$slides.length;i++){opts.els.push($slides[i]);}for(i=0;i<opts.currSlide;i++){opts.els.push(opts.els.shift());}opts.fxFn=function(curr,next,opts,cb,fwd){var $el=fwd?$(curr):$(next);$(next).css(opts.cssBefore);var count=opts.slideCount;$el.animate(opts.shuffle,opts.speedIn,opts.easeIn,function(){var hops=$.fn.cycle.hopsFromLast(opts,fwd);for(var k=0;k<hops;k++){fwd?opts.els.push(opts.els.shift()):opts.els.unshift(opts.els.pop());}if(fwd){for(var i=0,len=opts.els.length;i<len;i++){$(opts.els[i]).css("z-index",len-i+count);}}else{var z=$(curr).css("z-index");$el.css("z-index",parseInt(z)+1+count);}$el.animate({left:0,top:0},opts.speedOut,opts.easeOut,function(){$(fwd?this:curr).hide();if(cb){cb();}});});};opts.cssBefore={display:"block",opacity:1,top:0,left:0};};$.fn.cycle.transitions.turnUp=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false);opts.cssBefore.top=next.cycleH;opts.animIn.height=next.cycleH;});opts.cssFirst={top:0};opts.cssBefore={left:0,height:0};opts.animIn={top:0};opts.animOut={height:0};};$.fn.cycle.transitions.turnDown=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false);opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH;});opts.cssFirst={top:0};opts.cssBefore={left:0,top:0,height:0};opts.animOut={height:0};};$.fn.cycle.transitions.turnLeft=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true);opts.cssBefore.left=next.cycleW;opts.animIn.width=next.cycleW;});opts.cssBefore={top:0,width:0};opts.animIn={left:0};opts.animOut={width:0};};$.fn.cycle.transitions.turnRight=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true);opts.animIn.width=next.cycleW;opts.animOut.left=curr.cycleW;});opts.cssBefore={top:0,left:0,width:0};opts.animIn={left:0};opts.animOut={width:0};};$.fn.cycle.transitions.zoom=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,false,true);opts.cssBefore.top=next.cycleH/2;opts.cssBefore.left=next.cycleW/2;opts.animIn={top:0,left:0,width:next.cycleW,height:next.cycleH};opts.animOut={width:0,height:0,top:curr.cycleH/2,left:curr.cycleW/2};});opts.cssFirst={top:0,left:0};opts.cssBefore={width:0,height:0};};$.fn.cycle.transitions.fadeZoom=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,false);opts.cssBefore.left=next.cycleW/2;opts.cssBefore.top=next.cycleH/2;opts.animIn={top:0,left:0,width:next.cycleW,height:next.cycleH};});opts.cssBefore={width:0,height:0};opts.animOut={opacity:0};};$.fn.cycle.transitions.blindX=function($cont,$slides,opts){var w=$cont.css("overflow","hidden").width();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.animIn.width=next.cycleW;opts.animOut.left=curr.cycleW;});opts.cssBefore={left:w,top:0};opts.animIn={left:0};opts.animOut={left:w};};$.fn.cycle.transitions.blindY=function($cont,$slides,opts){var h=$cont.css("overflow","hidden").height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH;});opts.cssBefore={top:h,left:0};opts.animIn={top:0};opts.animOut={top:h};};$.fn.cycle.transitions.blindZ=function($cont,$slides,opts){var h=$cont.css("overflow","hidden").height();var w=$cont.width();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH;});opts.cssBefore={top:h,left:w};opts.animIn={top:0,left:0};opts.animOut={top:h,left:w};};$.fn.cycle.transitions.growX=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true);opts.cssBefore.left=this.cycleW/2;opts.animIn={left:0,width:this.cycleW};opts.animOut={left:0};});opts.cssBefore={width:0,top:0};};$.fn.cycle.transitions.growY=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false);opts.cssBefore.top=this.cycleH/2;opts.animIn={top:0,height:this.cycleH};opts.animOut={top:0};});opts.cssBefore={height:0,left:0};};$.fn.cycle.transitions.curtainX=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true,true);opts.cssBefore.left=next.cycleW/2;opts.animIn={left:0,width:this.cycleW};opts.animOut={left:curr.cycleW/2,width:0};});opts.cssBefore={top:0,width:0};};$.fn.cycle.transitions.curtainY=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false,true);opts.cssBefore.top=next.cycleH/2;opts.animIn={top:0,height:next.cycleH};opts.animOut={top:curr.cycleH/2,height:0};});opts.cssBefore={left:0,height:0};};$.fn.cycle.transitions.cover=function($cont,$slides,opts){var d=opts.direction||"left";var w=$cont.css("overflow","hidden").width();var h=$cont.height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);if(d=="right"){opts.cssBefore.left=-w;}else{if(d=="up"){opts.cssBefore.top=h;}else{if(d=="down"){opts.cssBefore.top=-h;}else{opts.cssBefore.left=w;}}}});opts.animIn={left:0,top:0};opts.animOut={opacity:1};opts.cssBefore={top:0,left:0};};$.fn.cycle.transitions.uncover=function($cont,$slides,opts){var d=opts.direction||"left";var w=$cont.css("overflow","hidden").width();var h=$cont.height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true);if(d=="right"){opts.animOut.left=w;}else{if(d=="up"){opts.animOut.top=-h;}else{if(d=="down"){opts.animOut.top=h;}else{opts.animOut.left=-w;}}}});opts.animIn={left:0,top:0};opts.animOut={opacity:1};opts.cssBefore={top:0,left:0};};$.fn.cycle.transitions.toss=function($cont,$slides,opts){var w=$cont.css("overflow","visible").width();var h=$cont.height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true);if(!opts.animOut.left&&!opts.animOut.top){opts.animOut={left:w*2,top:-h/2,opacity:0};}else{opts.animOut.opacity=0;}});opts.cssBefore={left:0,top:0};opts.animIn={left:0};};$.fn.cycle.transitions.wipe=function($cont,$slides,opts){var w=$cont.css("overflow","hidden").width();var h=$cont.height();opts.cssBefore=opts.cssBefore||{};var clip;if(opts.clip){if(/l2r/.test(opts.clip)){clip="rect(0px 0px "+h+"px 0px)";}else{if(/r2l/.test(opts.clip)){clip="rect(0px "+w+"px "+h+"px "+w+"px)";}else{if(/t2b/.test(opts.clip)){clip="rect(0px "+w+"px 0px 0px)";}else{if(/b2t/.test(opts.clip)){clip="rect("+h+"px "+w+"px "+h+"px 0px)";}else{if(/zoom/.test(opts.clip)){var top=parseInt(h/2);var left=parseInt(w/2);clip="rect("+top+"px "+left+"px "+top+"px "+left+"px)";}}}}}}opts.cssBefore.clip=opts.cssBefore.clip||clip||"rect(0px 0px 0px 0px)";var d=opts.cssBefore.clip.match(/(\d+)/g);var t=parseInt(d[0]),r=parseInt(d[1]),b=parseInt(d[2]),l=parseInt(d[3]);opts.before.push(function(curr,next,opts){if(curr==next){return;}var $curr=$(curr),$next=$(next);$.fn.cycle.commonReset(curr,next,opts,true,true,false);opts.cssAfter.display="block";var step=1,count=parseInt((opts.speedIn/13))-1;(function f(){var tt=t?t-parseInt(step*(t/count)):0;var ll=l?l-parseInt(step*(l/count)):0;var bb=b<h?b+parseInt(step*((h-b)/count||1)):h;var rr=r<w?r+parseInt(step*((w-r)/count||1)):w;$next.css({clip:"rect("+tt+"px "+rr+"px "+bb+"px "+ll+"px)"});(step++<=count)?setTimeout(f,13):$curr.css("display","none");})();});opts.cssBefore={display:"block",opacity:1,top:0,left:0};opts.animIn={left:0};opts.animOut={left:0};};})(jQuery);
jQuery(document).ready(function(){play_class='play';jQuery('#imagecycle_c978').after('<div class="imagecycle-controller" id="imagecycle_c978_controller"><ul><li class="first"><a id="imagecycle_c978_first"></a></li><li class="prev"><a id="imagecycle_c978_prev"></a></li><li class="pause"><a id="imagecycle_c978_pause"></a></li><li class="next"><a id="imagecycle_c978_next"></a></li><li class="last"><a id="imagecycle_c978_last"></a></li></ul></div>');jQuery('#imagecycle_c978_pause').click(function(){_parent=jQuery(this).parent();if(_parent.hasClass(play_class)){_parent.removeClass(play_class);jQuery('#imagecycle_c978').cycle('resume')}else{_parent.addClass(play_class);jQuery('#imagecycle_c978').cycle('pause')}});jQuery('#imagecycle_c978_first').click(function(){jQuery('#imagecycle_c978').cycle(0)});jQuery('#imagecycle_c978_last').click(function(){options=jQuery('#imagecycle_c978').data('cycle.opts');jQuery('#imagecycle_c978').cycle(options.elements.length-1)});jQuery('#imagecycle_c978').show().cycle({fx:'fade',easing:'easeOutQuad',speed:'1620',timeout:'5500',delay:2000,pause:true,sync:true,random:true,before:function(){jQuery('span',this).css('display','none');jQuery('span',this).animate({opacity:'show'},200)},next:'#imagecycle_c978_next',prev:'#imagecycle_c978_prev'});jQuery('#imagecycle_c978').parent().css('width',jQuery('#imagecycle_c978').css('width'));jQuery('#imagecycle_c978').parent().hover(function(){jQuery('#imagecycle_c978_controller').stop(true,true).fadeIn('fast')},function(){jQuery('#imagecycle_c978_controller').stop(true,true).fadeOut('fast')})});

