var Drupal=Drupal||{settings:{},behaviors:{},themes:{},locale:{}};Drupal.jsEnabled=document.getElementsByTagName&&document.createElement&&document.createTextNode&&document.documentElement&&document.getElementById;Drupal.attachBehaviors=function(context){context=context||document;if(Drupal.jsEnabled)jQuery.each(Drupal.behaviors,function(){this(context)})};Drupal.checkPlain=function(str){str=String(str);var replace={'&':'&amp;','"':'&quot;','<':'&lt;','>':'&gt;'};for(var character in replace){var regex=new RegExp(character,'g');str=str.replace(regex,replace[character])};return str};Drupal.t=function(str,args){if(Drupal.locale.strings&&Drupal.locale.strings[str])str=Drupal.locale.strings[str];if(args)for(var key in args){switch(key.charAt(0)){case'@':args[key]=Drupal.checkPlain(args[key]);break;case'!':break;case'%':default:args[key]=Drupal.theme('placeholder',args[key]);break};str=str.replace(key,args[key])};return str};Drupal.formatPlural=function(count,singular,plural,args){var args=args||{};args['@count']=count;var index=Drupal.locale.pluralFormula?Drupal.locale.pluralFormula(args['@count']):((args['@count']==1)?0:1);if(index==0){return Drupal.t(singular,args)}else if(index==1){return Drupal.t(plural,args)}else{args['@count['+index+']']=args['@count'];delete args['@count'];return Drupal.t(plural.replace('@count','@count['+index+']'))}};Drupal.theme=function(func){for(var i=1,args=[];i<arguments.length;i++)args.push(arguments[i]);return(Drupal.theme[func]||Drupal.theme.prototype[func]).apply(this,args)};Drupal.parseJson=function(data){if((data.substring(0,1)!='{')&&(data.substring(0,1)!='['))return{status:0,data:data.length?data:Drupal.t('Unspecified error')};return eval('('+data+');')};Drupal.freezeHeight=function(){Drupal.unfreezeHeight();var div=document.createElement('div');$(div).css({position:'absolute',top:'0px',left:'0px',width:'1px',height:$('body').css('height')}).attr('id','freeze-height');$('body').append(div)};Drupal.unfreezeHeight=function(){$('#freeze-height').remove()};Drupal.encodeURIComponent=function(item,uri){uri=uri||location.href;item=encodeURIComponent(item).replace(/%2F/g,'/');return(uri.indexOf('?q=')!=-1)?item:item.replace(/%26/g,'%2526').replace(/%23/g,'%2523').replace(/\/\//g,'/%252F')};Drupal.getSelection=function(element){if(typeof(element.selectionStart)!='number'&&document.selection){var range1=document.selection.createRange(),range2=range1.duplicate();range2.moveToElementText(element);range2.setEndPoint('EndToEnd',range1);var start=range2.text.length-range1.text.length,end=start+range1.text.length;return{start:start,end:end}};return{start:element.selectionStart,end:element.selectionEnd}};Drupal.ahahError=function(xmlhttp,uri){if(xmlhttp.status==200){if(jQuery.trim($(xmlhttp.responseText).text())){var message=Drupal.t("An error occurred. \n@uri\n@text",{'@uri':uri,'@text':xmlhttp.responseText})}else var message=Drupal.t("An error occurred. \n@uri\n(no information available).",{'@uri':uri,'@text':xmlhttp.responseText})}else var message=Drupal.t("An HTTP error @status occurred. \n@uri",{'@uri':uri,'@status':xmlhttp.status});return message};if(Drupal.jsEnabled){$(document.documentElement).addClass('js');document.cookie='has_js=1; path=/';$(document).ready(function(){Drupal.attachBehaviors(this)})};Drupal.theme.prototype={placeholder:function(str){return'<em>'+Drupal.checkPlain(str)+'</em>'}};
Drupal.progressBar=function(id,updateCallback,method,errorCallback){var pb=this;this.id=id;this.method=method||"GET";this.updateCallback=updateCallback;this.errorCallback=errorCallback;this.element=document.createElement('div');this.element.id=id;this.element.className='progress';$(this.element).html('<div class="bar"><div class="filled"></div></div><div class="percentage"></div><div class="message">&nbsp;</div>')};Drupal.progressBar.prototype.setProgress=function(percentage,message){if(percentage>=0&&percentage<=100){$('div.filled',this.element).css('width',percentage+'%');$('div.percentage',this.element).html(percentage+'%')};$('div.message',this.element).html(message);if(this.updateCallback)this.updateCallback(percentage,message,this)};Drupal.progressBar.prototype.startMonitoring=function(uri,delay){this.delay=delay;this.uri=uri;this.sendPing()};Drupal.progressBar.prototype.stopMonitoring=function(){clearTimeout(this.timer);this.uri=null};Drupal.progressBar.prototype.sendPing=function(){if(this.timer)clearTimeout(this.timer);if(this.uri){var pb=this;$.ajax({type:this.method,url:this.uri,data:'',dataType:'json',success:function(progress){if(progress.status==0){pb.displayError(progress.data);return};pb.setProgress(progress.percentage,progress.message);pb.timer=setTimeout(function(){pb.sendPing()},pb.delay)},error:function(xmlhttp){pb.displayError(Drupal.ahahError(xmlhttp,pb.uri))}})}};Drupal.progressBar.prototype.displayError=function(string){var error=document.createElement('div');error.className='error';error.innerHTML=string;$(this.element).before(error).hide();if(this.errorCallback)this.errorCallback(this)};
Drupal.locale={strings:{"Unspecified error":"Tanımlanamayan hata",Published:"Yayında","Not published":"Yayınlanmadı","An error occurred. \n@uri\n@text":"Bir hata oluştu. \n@uri\n@text","An error occurred. \n@uri\n(no information available).":"Bir hata oluştu. \n@uri\n(bilgi yok).","An HTTP error @status occurred. \n@uri":"HTTP @status hatası oluştu. \n@uri","Drag to re-order":"Yeniden sıralamak için sürükleyiniz","Changes made in this table will not be saved until the form is submitted.":"Bu tabloda yapılan değişiklikler form gönderilenceye dek kaydedilmeyecektir.","Select all rows in this table":"Bu tablodaki tüm satırları seç","Deselect all rows in this table":"Tablodaki satır seçimini iptal et","Split summary at cursor":"Özeti buradan itibaren kes","Your server has been successfully tested to support this feature.":"Test başarıyla tamamlandı; sunucunuz bu özelliği desteklemektedir.","Testing clean URLs...":"Temiz URL desteği test ediliyor...","Your system configuration does not currently support this feature. The \x3ca href=\"http://drupal.org/node/15365\"\x3ehandbook page on Clean URLs\x3c/a\x3e has additional troubleshooting information.":"Sistem ayarlarınız şu anda bu özelliği desteklemiyor.  Daha fazla bilgi için, \x3ca href=\"http://drupal.org/node/15365\"\x3eelkitabının Temiz URL sayfasına\x3c/a\x3e bakabilirsiniz.","The changes to these blocks will not be saved until the \x3cem\x3eSave blocks\x3c/em\x3e button is clicked.":"Bloklarda yapılan değişiklikler, \x3cem\x3eBlokları kaydet\x3c/em\x3e düğmesi tıklanıncaya dek kaydedilmez.","Create new revision":"Yeni sürüm oluştur","1 attachment":["1 eklenti","@count eklenti"],"Automatic alias":"Otomatik isimlendirme"}};
Drupal.dhtmlMenu={};Drupal.behaviors.dhtmlMenu=function(){if(Drupal.dhtmlMenu.init){return}else Drupal.dhtmlMenu.init=true;var effects=Drupal.settings.dhtmlMenu;$('.collapsed').removeClass('expanded');if(!effects.siblings){var cookie=Drupal.dhtmlMenu.cookieGet();for(var i in cookie){var li=$('#dhtml_menu-'+cookie[i]).parents('li:first');if($(li).hasClass('collapsed'))Drupal.dhtmlMenu.toggleMenu(li)}};$('ul.menu li.dhtml-menu:not(.leaf,.no-dhtml)').each(function(){var li=this;if(effects.clone){var ul=$(li).find('ul:first');if(ul.length)$(li).find('a:first').clone().prependTo(ul).wrap('<li class="leaf fake-leaf"></li>')};if(effects.doubleclick)$(li).find('a:first').dblclick(function(e){window.location=this.href});$(li).find('a:first').click(function(e){Drupal.dhtmlMenu.toggleMenu($(li));return false})})};Drupal.dhtmlMenu.toggleMenu=function(li){var effects=Drupal.settings.dhtmlMenu;if($(li).hasClass('expanded')){if(effects.slide){$(li).find('ul:first').animate({height:'hide',opacity:'hide'},'1000')}else $(li).find('ul:first').css('display','none');if(effects.children){if(effects.slide){$(li).find('li.expanded').find('ul:first').animate({height:'hide',opacity:'hide'},'1000')}else $(li).find('li.expanded').find('ul:first').css('display','none');$(li).find('li.expanded').removeClass('expanded').addClass('collapsed')};$(li).removeClass('expanded').addClass('collapsed')}else{if(effects.slide){$(li).find('ul:first').animate({height:'show',opacity:'show'},'1000')}else $(li).find('ul:first').css('display','block');$(li).removeClass('collapsed').addClass('expanded');if(effects.siblings){var id=$(li).find('a:first').attr('id');$(li).find('li').addClass('own-children-temp');if(effects.relativity){var siblings=$(li).parent().find('li.expanded').not('.own-children-temp').not(':has(#'+id+')')}else var siblings=$('ul.menu li.expanded').not('.own-children-temp').not(':has(#'+id+')');if(!effects.children){$('li.collapsed li.expanded').addClass('sibling-children-temp');$(siblings).find('li.expanded').addClass('sibling-children-temp');siblings=$(siblings).not('.sibling-children-temp')};$('.own-children-temp, .sibling-children-temp').removeClass('own-children-temp').removeClass('sibling-children-temp');if(effects.slide){$(siblings).find('ul:first').animate({height:'hide',opacity:'hide'},'1000')}else $(siblings).find('ul:first').css('display','none');$(siblings).removeClass('expanded').addClass('collapsed')}};Drupal.dhtmlMenu.cookieSet()};Drupal.dhtmlMenu.cookieGet=function(){var c=/dhtml_menu=(.*?)(;|$)/.exec(document.cookie);if(c){return c[1]}else return''};Drupal.dhtmlMenu.cookieSet=function(){var expanded=new Array();$('li.expanded').each(function(){expanded.push($(this).find('a:first').attr('id').substr(5))});document.cookie='dhtml_menu='+expanded.join(',')+';path=/'};
function parse_url(url,param){param=param.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");url=url.replace(/&amp;/,"&");var regexS="[\\?&]"+param+"=([^&#]*)",regex=new RegExp(regexS),results=regex.exec(url);if(results===null){return""}else return results[1]}
function lightbox2_init_triggers(classes,rel_type,custom_class){if(classes==''||rel_type==0)return;var settings=Drupal.settings.lightbox2,link_target="";if(settings.node_link_target!==0)link_target='target="'+settings.node_link_target+'"';$("a:has("+classes+")").each(function(i){if((!settings.disable_for_gallery_lists&&!settings.disable_for_acidfree_gallery_lists)||(!$(this).parents("td.giAlbumCell").attr("class")&&!$(this).parents(".galleries").length&&!$(this).parents(".acidfree-folder").length&&!$(this).parents(".acidfree-list").length)||($(this).parents(".galleries").length&&!settings.disable_for_gallery_lists)||(($(this).parents(".acidfree-folder").length||$(this).parents(".acidfree-list").length)&&!settings.disable_for_acidfree_gallery_lists)){var child=$(this).find(classes);if($(child).attr("class")&&!$(this).parents("div.acidfree-video").length){var alt=$(child).attr("alt");if(!alt)alt="";var link_text=settings.node_link_text,download_link_text=settings.download_link_text,rewrite=1,rel="lightbox",lightframe=false;if(rel_type=="lightframe_ungrouped"){rel="lightframe[]";lightframe=true}else if(rel_type=="lightframe"){lightframe=true}else if(rel_type=="lightbox_ungrouped")rel="lightbox[]";if(rel_type!="lightbox_ungrouped"&&rel_type!="lightframe_ungrouped")rel=rel_type+"["+$(child).attr("class")+"]";var id=null,href=$(child).attr("src"),download=null,orig_href=$(this).attr("href"),pattern=new RegExp(settings.file_path);if(orig_href.match(pattern)){var lang_pattern=new RegExp(Drupal.settings.basePath+"\\w\\w\\/");orig_href=orig_href.replace(lang_pattern,Drupal.settings.basePath)};var frame_href=orig_href;if($(child).attr("class").match("flickr-photo-img")||$(child).attr("class").match("flickr-photoset-img")){href=$(child).attr("src").replace("_s.",".").replace("_t.",".").replace("_m.",".").replace("_b.",".");if(rel_type!="lightbox_ungrouped"&&rel_type!="lightframe_ungrouped"){rel=rel_type+"[flickr]";if($(child).parents("div.block-flickr").attr("class")){id=$(child).parents("div.block-flickr").attr("id");rel=rel_type+"["+id+"]"}};download=href}else if($(child).filter("img[class*=img_assist_custom]").size()){if(settings.display_image_size!="original"){orig_href=orig_href.replace(/\+/," ");href=$(child).attr("src").replace(new RegExp("\\.img_assist_custom-[0-9]+x[0-9]+"),((settings.display_image_size==="")?settings.display_image_size:"."+settings.display_image_size));if(rel_type!="lightbox_ungrouped"&&rel_type!="lightframe_ungrouped")rel=rel_type+"[node_images]";if(lightframe)frame_href=orig_href+"/lightbox2"}else rewrite=0}else if($(child).attr("class").match("inline")){href=orig_href}else if($(child).attr("class").match("ImageFrame_image")||$(child).attr("class").match("ImageFrame_none")){var thumb_id=parse_url(href,"g2_itemId"),new_id=parse_url(orig_href,"g2_itemId");if(new_id&&thumb_id){var g2pattern=new RegExp("g2_itemId="+thumb_id),replacement="g2_itemId="+new_id;href=href.replace(g2pattern,replacement)};rel=rel_type+"[gallery2]";if($(child).parents("div.block-gallery").attr("class")){id=$(child).parents("div.block-gallery").attr("id");rel=rel_type+"["+id+"]"};download=href}else if(settings.image_node_sizes!='()'&&!custom_class)if(settings.display_image_size!="original"){href=$(child).attr("src").replace(new RegExp(settings.image_node_sizes),((settings.display_image_size==="")?settings.display_image_size:"."+settings.display_image_size)).replace(/(image\/view\/\d+)(\/[\w\-]*)/,((settings.display_image_size==="")?"$1/_original":"$1/"+settings.display_image_size));if(rel_type!="lightbox_ungrouped"&&rel_type!="lightframe_ungrouped"){rel=rel_type+"[node_images]";if($(child).parents("div.block-multiblock,div.block-image").attr("class")){id=$(child).parents("div.block-multiblock,div.block-image").attr("id");rel=rel_type+"["+id+"]"}};download=$(child).attr("src").replace(new RegExp(settings.image_node_sizes),"").replace(/(image\/view\/\d+)(\/[\w\-]*)/,"$1/_original");if(lightframe)frame_href=orig_href+"/lightbox2"}else rewrite=0;var img_title=$(child).attr("title");if(!img_title){img_title=$(this).attr("title");if(!img_title)img_title=$(child).attr("alt");$(child).attr({title:img_title})};if(lightframe)href=frame_href;if(rewrite)if(!custom_class){var title_link="";if(link_text.length)title_link="<br /><br /><a href=\""+orig_href+"\" id=\"lightbox2-node-link-text\" "+link_target+" >"+link_text+"</a>";if(download_link_text.length&&download)title_link=title_link+" - <a href=\""+download+"\" id=\"lightbox2-download-link-text\" target=\"_blank\">"+download_link_text+"</a>";rel=rel+"["+img_title+title_link+"]";$(this).attr({rel:rel,href:href})}else{if(rel_type!="lightbox_ungrouped"&&rel_type!="lightframe_ungrouped"){rel=rel_type+"["+$(child).attr("class")+"]";if($(child).parents("div.block-image").attr("class")){id=$(child).parents("div.block-image").attr("id");rel=rel_type+"["+id+"]"}};rel=rel+"["+img_title+"]";$(this).attr({rel:rel,href:orig_href})}}}})}
function lightbox2_init_acidfree_video(){var settings=Drupal.settings.lightbox2,link_target="";if(settings.node_link_target!==0)link_target='target="'+settings.node_link_target+'"';var link_text=settings.node_link_text,rel="lightframe";$("div.acidfree-video a").each(function(i){if(!settings.disable_for_acidfree_gallery_lists||(!$(this).parents(".acidfree-folder").length&&!$(this).parents(".acidfree-list").length)||(($(this).parents(".acidfree-folder").length||$(this).parents(".acidfree-list").length)&&!settings.disable_for_acidfree_gallery_lists)){var orig_href=$(this).attr("href"),href=orig_href+"/lightframevideo",title=$(this).attr("title"),title_link="";if(link_text.length)title_link="<br /><a href=\""+orig_href+"\" id=\"lightbox2-node-link-text\" "+link_target+" >"+link_text+"</a>";$(this).attr({rel:rel,title:title+title_link,href:href})}})}
function lightbox2_image_nodes(){var settings=Drupal.settings.lightbox2,img_assist=document.getElementById("img_assist_thumbs");if(!img_assist){lightbox2_init_triggers(settings.trigger_lightbox_classes,"lightbox_ungrouped");lightbox2_init_triggers(settings.custom_trigger_classes,settings.custom_class_handler,true);lightbox2_init_triggers(settings.trigger_lightbox_group_classes,"lightbox");lightbox2_init_triggers(settings.trigger_slideshow_classes,"lightshow");lightbox2_init_triggers(settings.trigger_lightframe_classes,"lightframe_ungrouped");lightbox2_init_triggers(settings.trigger_lightframe_group_classes,"lightframe");if(settings.enable_acidfree_videos)lightbox2_init_acidfree_video()}};Drupal.behaviors.initAutoLightbox=function(context){lightbox2_image_nodes()};
var Lightbox={auto_modal:false,overlayOpacity:0.8,overlayColor:'000',disableCloseClick:true,resizeSequence:0,resizeSpeed:'normal',fadeInSpeed:'normal',slideDownSpeed:'slow',minWidth:240,borderSize:10,boxColor:'fff',fontColor:'000',topPosition:'',infoHeight:20,alternative_layout:false,imageArray:[],imageNum:null,total:0,activeImage:null,inprogress:false,disableResize:false,disableZoom:false,isZoomedIn:false,rtl:false,loopItems:false,keysClose:['c','x',27],keysPrevious:['p',37],keysNext:['n',39],keysZoom:['z'],keysPlayPause:[32],slideInterval:5e3,showPlayPause:true,autoStart:true,autoExit:true,pauseOnNextClick:false,pauseOnPrevClick:true,slideIdArray:[],slideIdCount:0,isSlideshow:false,isPaused:false,loopSlides:false,isLightframe:false,iframe_width:600,iframe_height:400,iframe_border:1,enableVideo:false,flvPlayer:'/flvplayer.swf',flvFlashvars:'',isModal:false,isVideo:false,videoId:false,modalWidth:400,modalHeight:400,modalHTML:null,initialize:function(){var s=Drupal.settings.lightbox2;Lightbox.overlayOpacity=s.overlay_opacity;Lightbox.overlayColor=s.overlay_color;Lightbox.disableCloseClick=s.disable_close_click;Lightbox.resizeSequence=s.resize_sequence;Lightbox.resizeSpeed=s.resize_speed;Lightbox.fadeInSpeed=s.fade_in_speed;Lightbox.slideDownSpeed=s.slide_down_speed;Lightbox.borderSize=s.border_size;Lightbox.boxColor=s.box_color;Lightbox.fontColor=s.font_color;Lightbox.topPosition=s.top_position;Lightbox.rtl=s.rtl;Lightbox.loopItems=s.loop_items;Lightbox.keysClose=s.keys_close.split(" ");Lightbox.keysPrevious=s.keys_previous.split(" ");Lightbox.keysNext=s.keys_next.split(" ");Lightbox.keysZoom=s.keys_zoom.split(" ");Lightbox.keysPlayPause=s.keys_play_pause.split(" ");Lightbox.disableResize=s.disable_resize;Lightbox.disableZoom=s.disable_zoom;Lightbox.slideInterval=s.slideshow_interval;Lightbox.showPlayPause=s.show_play_pause;Lightbox.showCaption=s.show_caption;Lightbox.autoStart=s.slideshow_automatic_start;Lightbox.autoExit=s.slideshow_automatic_exit;Lightbox.pauseOnNextClick=s.pause_on_next_click;Lightbox.pauseOnPrevClick=s.pause_on_previous_click;Lightbox.loopSlides=s.loop_slides;Lightbox.alternative_layout=s.use_alt_layout;Lightbox.iframe_width=s.iframe_width;Lightbox.iframe_height=s.iframe_height;Lightbox.iframe_border=s.iframe_border;Lightbox.enableVideo=s.enable_video;if(s.enable_video){Lightbox.flvPlayer=s.flvPlayer;Lightbox.flvFlashvars=s.flvFlashvars};var layout_class=(s.use_alt_layout?'lightbox2-alt-layout':'lightbox2-orig-layout'),output='<div id="lightbox2-overlay" style="display: none;"></div>\
      <div id="lightbox" style="display: none;" class="'+layout_class+'">\
        <div id="outerImageContainer"></div>\
        <div id="imageDataContainer" class="clearfix">\
          <div id="imageData"></div>\
        </div>\
      </div>',loading='<div id="loading"><a href="#" id="loadingLink"></a></div>',modal='<div id="modalContainer" style="display: none;"></div>',frame='<div id="frameContainer" style="display: none;"></div>',imageContainer='<div id="imageContainer" style="display: none;"></div>',details='<div id="imageDetails"></div>',bottomNav='<div id="bottomNav"></div>',image='<img id="lightboxImage" alt="" />',hoverNav='<div id="hoverNav"><a id="prevLink" href="#"></a><a id="nextLink" href="#"></a></div>',frameNav='<div id="frameHoverNav"><a id="framePrevLink" href="#"></a><a id="frameNextLink" href="#"></a></div>',hoverNav='<div id="hoverNav"><a id="prevLink" title="'+Drupal.t('Previous')+'" href="#"></a><a id="nextLink" title="'+Drupal.t('Next')+'" href="#"></a></div>',frameNav='<div id="frameHoverNav"><a id="framePrevLink" title="'+Drupal.t('Previous')+'" href="#"></a><a id="frameNextLink" title="'+Drupal.t('Next')+'" href="#"></a></div>',caption='<span id="caption"></span>',numberDisplay='<span id="numberDisplay"></span>',close='<a id="bottomNavClose" title="'+Drupal.t('Close')+'" href="#"></a>',zoom='<a id="bottomNavZoom" href="#"></a>',zoomOut='<a id="bottomNavZoomOut" href="#"></a>',pause='<a id="lightshowPause" title="'+Drupal.t('Pause Slideshow')+'" href="#" style="display: none;"></a>',play='<a id="lightshowPlay" title="'+Drupal.t('Play Slideshow')+'" href="#" style="display: none;"></a>';$("body").append(output);$('#outerImageContainer').append(modal+frame+imageContainer+loading);if(!s.use_alt_layout){$('#imageContainer').append(image+hoverNav);$('#imageData').append(details+bottomNav);$('#imageDetails').append(caption+numberDisplay);$('#bottomNav').append(frameNav+close+zoom+zoomOut+pause+play)}else{$('#outerImageContainer').append(bottomNav);$('#imageContainer').append(image);$('#bottomNav').append(close+zoom+zoomOut);$('#imageData').append(hoverNav+details);$('#imageDetails').append(caption+numberDisplay+pause+play)};if(Lightbox.disableCloseClick)$('#lightbox2-overlay').click(function(){Lightbox.end();return false}).hide();$('#loadingLink, #bottomNavClose').click(function(){Lightbox.end('forceClose');return false});$('#prevLink, #framePrevLink').click(function(){Lightbox.changeData(Lightbox.activeImage-1);return false});$('#nextLink, #frameNextLink').click(function(){Lightbox.changeData(Lightbox.activeImage+1);return false});$('#bottomNavZoom').click(function(){Lightbox.changeData(Lightbox.activeImage,true);return false});$('#bottomNavZoomOut').click(function(){Lightbox.changeData(Lightbox.activeImage,false);return false});$('#lightshowPause').click(function(){Lightbox.togglePlayPause("lightshowPause","lightshowPlay");return false});$('#lightshowPlay').click(function(){Lightbox.togglePlayPause("lightshowPlay","lightshowPause");return false});$('#prevLink, #nextLink, #framePrevLink, #frameNextLink').css({paddingTop:Lightbox.borderSize+'px'});$('#imageContainer, #frameContainer, #modalContainer').css({padding:Lightbox.borderSize+'px'});$('#outerImageContainer, #imageDataContainer, #bottomNavClose').css({backgroundColor:'#'+Lightbox.boxColor,color:'#'+Lightbox.fontColor});if(Lightbox.alternative_layout){$('#bottomNavZoom, #bottomNavZoomOut').css({bottom:Lightbox.borderSize+'px',right:Lightbox.borderSize+'px'})}else if(Lightbox.rtl==1&&$.browser.msie)$('#bottomNavZoom, #bottomNavZoomOut').css({left:'0px'});if(s.force_show_nav)$('#prevLink, #nextLink').addClass("force_show_nav")},initList:function(context){if(context==undefined||context==null)context=document;$("a[rel^='lightbox']:not(.lightbox-processed), area[rel^='lightbox']:not(.lightbox-processed)",context).addClass('lightbox-processed').click(function(e){if(Lightbox.disableCloseClick){$('#lightbox').unbind('click');$('#lightbox').click(function(){Lightbox.end('forceClose')})};Lightbox.start(this,false,false,false,false);if(e.preventDefault)e.preventDefault();return false});$("a[rel^='lightshow']:not(.lightbox-processed), area[rel^='lightshow']:not(.lightbox-processed)",context).addClass('lightbox-processed').click(function(e){if(Lightbox.disableCloseClick){$('#lightbox').unbind('click');$('#lightbox').click(function(){Lightbox.end('forceClose')})};Lightbox.start(this,true,false,false,false);if(e.preventDefault)e.preventDefault();return false});$("a[rel^='lightframe']:not(.lightbox-processed), area[rel^='lightframe']:not(.lightbox-processed)",context).addClass('lightbox-processed').click(function(e){if(Lightbox.disableCloseClick){$('#lightbox').unbind('click');$('#lightbox').click(function(){Lightbox.end('forceClose')})};Lightbox.start(this,false,true,false,false);if(e.preventDefault)e.preventDefault();return false});if(Lightbox.enableVideo)$("a[rel^='lightvideo']:not(.lightbox-processed), area[rel^='lightvideo']:not(.lightbox-processed)",context).addClass('lightbox-processed').click(function(e){if(Lightbox.disableCloseClick){$('#lightbox').unbind('click');$('#lightbox').click(function(){Lightbox.end('forceClose')})};Lightbox.start(this,false,false,true,false);if(e.preventDefault)e.preventDefault();return false});$("a[rel^='lightmodal']:not(.lightbox-processed), area[rel^='lightmodal']:not(.lightbox-processed)",context).addClass('lightbox-processed').click(function(e){$('#lightbox').unbind('click');$('#lightbox').addClass($(this).attr('class'));$('#lightbox').removeClass('lightbox-processed');Lightbox.start(this,false,false,false,true);if(e.preventDefault)e.preventDefault();return false});$("#lightboxAutoModal:not(.lightbox-processed)",context).addClass('lightbox-processed').click(function(e){Lightbox.auto_modal=true;$('#lightbox').unbind('click');Lightbox.start(this,false,false,false,true);if(e.preventDefault)e.preventDefault();return false})},start:function(imageLink,slideshow,lightframe,lightvideo,lightmodal){Lightbox.isPaused=!Lightbox.autoStart;Lightbox.toggleSelectsFlash('hide');var arrayPageSize=Lightbox.getPageSize();$("#lightbox2-overlay").hide().css({width:'100%',zIndex:'10090',height:arrayPageSize[1]+'px',backgroundColor:'#'+Lightbox.overlayColor});if(lightvideo&&this.detectMacFF2()){$("#lightbox2-overlay").removeClass("overlay_default");$("#lightbox2-overlay").addClass("overlay_macff2");$("#lightbox2-overlay").css({opacity:null})}else{$("#lightbox2-overlay").removeClass("overlay_macff2");$("#lightbox2-overlay").addClass("overlay_default");$("#lightbox2-overlay").css({opacity:Lightbox.overlayOpacity})};$("#lightbox2-overlay").fadeIn(Lightbox.fadeInSpeed);Lightbox.isSlideshow=slideshow;Lightbox.isLightframe=lightframe;Lightbox.isVideo=lightvideo;Lightbox.isModal=lightmodal;Lightbox.imageArray=[];Lightbox.imageNum=0;var anchors=$(imageLink.tagName),anchor=null,rel_parts=Lightbox.parseRel(imageLink),rel=rel_parts.rel,rel_group=rel_parts.group,title=(rel_parts.title?rel_parts.title:imageLink.title),rel_style=null,i=0;if(rel_parts.flashvars)Lightbox.flvFlashvars=Lightbox.flvFlashvars+'&'+rel_parts.flashvars;var alt=imageLink.title;if(!alt){var img=$(imageLink).find("img");if(img&&$(img).attr("alt")){alt=$(img).attr("alt")}else alt=title};if($(imageLink).attr('id')=='lightboxAutoModal'){rel_style=rel_parts.style;Lightbox.imageArray.push(['#lightboxAutoModal > *',title,alt,rel_style,1])}else if((rel=='lightbox'||rel=='lightshow')&&!rel_group){Lightbox.imageArray.push([imageLink.href,title,alt])}else if(!rel_group){rel_style=rel_parts.style;Lightbox.imageArray.push([imageLink.href,title,alt,rel_style])}else{for(i=0;i<anchors.length;i++){anchor=anchors[i];if(anchor.href&&typeof(anchor.href)=="string"&&$(anchor).attr('rel')){var rel_data=Lightbox.parseRel(anchor),anchor_title=(rel_data.title?rel_data.title:anchor.title);img_alt=anchor.title;if(!img_alt){var anchor_img=$(anchor).find("img");if(anchor_img&&$(anchor_img).attr("alt")){img_alt=$(anchor_img).attr("alt")}else img_alt=title};if(rel_data.rel==rel)if(rel_data.group==rel_group){if(Lightbox.isLightframe||Lightbox.isModal||Lightbox.isVideo)rel_style=rel_data.style;Lightbox.imageArray.push([anchor.href,anchor_title,img_alt,rel_style])}}};for(i=0;i<Lightbox.imageArray.length;i++)for(j=Lightbox.imageArray.length-1;j>i;j--)if(Lightbox.imageArray[i][0]==Lightbox.imageArray[j][0])Lightbox.imageArray.splice(j,1);while(Lightbox.imageArray[Lightbox.imageNum][0]!=imageLink.href)Lightbox.imageNum++};if(Lightbox.isSlideshow&&Lightbox.showPlayPause&&Lightbox.isPaused){$('#lightshowPlay').show();$('#lightshowPause').hide()};var arrayPageScroll=Lightbox.getPageScroll(),lightboxTop=arrayPageScroll[1]+(Lightbox.topPosition==''?(arrayPageSize[3]/10):Lightbox.topPosition)*1,lightboxLeft=arrayPageScroll[0];$('#frameContainer, #modalContainer, #lightboxImage').hide();$('#hoverNav, #prevLink, #nextLink, #frameHoverNav, #framePrevLink, #frameNextLink').hide();$('#imageDataContainer, #numberDisplay, #bottomNavZoom, #bottomNavZoomOut').hide();$('#outerImageContainer').css({width:'250px',height:'250px'});$('#lightbox').css({zIndex:'10500',top:lightboxTop+'px',left:lightboxLeft+'px'}).show();Lightbox.total=Lightbox.imageArray.length;Lightbox.changeData(Lightbox.imageNum)},changeData:function(imageNum,zoomIn){if(Lightbox.inprogress===false){if(Lightbox.total>1&&((Lightbox.isSlideshow&&Lightbox.loopSlides)||(!Lightbox.isSlideshow&&Lightbox.loopItems))){if(imageNum>=Lightbox.total)imageNum=0;if(imageNum<0)imageNum=Lightbox.total-1};if(Lightbox.isSlideshow)for(var i=0;i<Lightbox.slideIdCount;i++)window.clearTimeout(Lightbox.slideIdArray[i]);Lightbox.inprogress=true;Lightbox.activeImage=imageNum;if(Lightbox.disableResize&&!Lightbox.isSlideshow)zoomIn=true;Lightbox.isZoomedIn=zoomIn;$('#loading').css({zIndex:'10500'}).show();if(!Lightbox.alternative_layout)$('#imageContainer').hide();$('#frameContainer, #modalContainer, #lightboxImage').hide();$('#hoverNav, #prevLink, #nextLink, #frameHoverNav, #framePrevLink, #frameNextLink').hide();$('#imageDataContainer, #numberDisplay, #bottomNavZoom, #bottomNavZoomOut').hide();if(!Lightbox.isLightframe&&!Lightbox.isVideo&&!Lightbox.isModal){$("#lightbox #imageDataContainer").removeClass('lightbox2-alt-layout-data');imgPreloader=new Image();imgPreloader.onerror=function(){Lightbox.imgNodeLoadingError(this)};imgPreloader.onload=function(){var photo=document.getElementById('lightboxImage');photo.src=Lightbox.imageArray[Lightbox.activeImage][0];photo.alt=Lightbox.imageArray[Lightbox.activeImage][2];var imageWidth=imgPreloader.width,imageHeight=imgPreloader.height,arrayPageSize=Lightbox.getPageSize(),targ={w:arrayPageSize[2]-(Lightbox.borderSize*2),h:arrayPageSize[3]-(Lightbox.borderSize*6)-(Lightbox.infoHeight*4)-(arrayPageSize[3]/10)},orig={w:imgPreloader.width,h:imgPreloader.height};if(zoomIn!==true){var ratio=1.0;$('#bottomNavZoomOut, #bottomNavZoom').hide();if((orig.w>=targ.w||orig.h>=targ.h)&&orig.h&&orig.w){ratio=((targ.w/orig.w)<(targ.h/orig.h))?targ.w/orig.w:targ.h/orig.h;if(!Lightbox.disableZoom&&!Lightbox.isSlideshow)$('#bottomNavZoom').css({zIndex:'10500'}).show()};imageWidth=Math.floor(orig.w*ratio);imageHeight=Math.floor(orig.h*ratio)}else{$('#bottomNavZoom').hide();if((orig.w>=targ.w||orig.h>=targ.h)&&orig.h&&orig.w)if(!Lightbox.disableResize&&Lightbox.isSlideshow===false&&!Lightbox.disableZoom)$('#bottomNavZoomOut').css({zIndex:'10500'}).show()};photo.style.width=imageWidth+'px';photo.style.height=imageHeight+'px';Lightbox.resizeContainer(imageWidth,imageHeight);imgPreloader.onload=function(){}};imgPreloader.src=Lightbox.imageArray[Lightbox.activeImage][0];imgPreloader.alt=Lightbox.imageArray[Lightbox.activeImage][2]}else if(Lightbox.isLightframe){$("#lightbox #imageDataContainer").addClass('lightbox2-alt-layout-data');var src=Lightbox.imageArray[Lightbox.activeImage][0];$('#frameContainer').html('<iframe id="lightboxFrame" style="display: none;" src="'+src+'"></iframe>');if($.browser.mozilla&&src.indexOf('.swf')!=-1)setTimeout(function(){document.getElementById("lightboxFrame").src=Lightbox.imageArray[Lightbox.activeImage][0]},1e3);if(!Lightbox.iframe_border){$('#lightboxFrame').css({border:'none'});$('#lightboxFrame').attr('frameborder','0')};var iframe=document.getElementById('lightboxFrame'),iframeStyles=Lightbox.imageArray[Lightbox.activeImage][3];iframe=Lightbox.setStyles(iframe,iframeStyles);Lightbox.resizeContainer(parseInt(iframe.width,10),parseInt(iframe.height,10))}else if(Lightbox.isVideo||Lightbox.isModal){$("#lightbox #imageDataContainer").addClass('lightbox2-alt-layout-data');var container=document.getElementById('modalContainer'),modalStyles=Lightbox.imageArray[Lightbox.activeImage][3];container=Lightbox.setStyles(container,modalStyles);if(Lightbox.isVideo){Lightbox.modalHeight=parseInt(container.height,10)-10;Lightbox.modalWidth=parseInt(container.width,10)-10;Lightvideo.startVideo(Lightbox.imageArray[Lightbox.activeImage][0])};Lightbox.resizeContainer(parseInt(container.width,10),parseInt(container.height,10))}}},imgNodeLoadingError:function(image){var s=Drupal.settings.lightbox2,original_image=Lightbox.imageArray[Lightbox.activeImage][0];if(s.display_image_size!=="")original_image=original_image.replace(new RegExp("."+s.display_image_size),"");Lightbox.imageArray[Lightbox.activeImage][0]=original_image;image.onerror=function(){Lightbox.imgLoadingError(image)};image.src=original_image},imgLoadingError:function(image){var s=Drupal.settings.lightbox2;Lightbox.imageArray[Lightbox.activeImage][0]=s.default_image;image.src=s.default_image},resizeContainer:function(imgWidth,imgHeight){imgWidth=(imgWidth<Lightbox.minWidth?Lightbox.minWidth:imgWidth);this.widthCurrent=$('#outerImageContainer').width();this.heightCurrent=$('#outerImageContainer').height();var widthNew=(imgWidth+(Lightbox.borderSize*2)),heightNew=(imgHeight+(Lightbox.borderSize*2));this.xScale=(widthNew/this.widthCurrent)*100;this.yScale=(heightNew/this.heightCurrent)*100;wDiff=this.widthCurrent-widthNew;hDiff=this.heightCurrent-heightNew;$('#modalContainer').css({width:imgWidth,height:imgHeight});if(Lightbox.resizeSequence){var animate1={width:widthNew},animate2={height:heightNew};if(Lightbox.resizeSequence==2){animate1={height:heightNew};animate2={width:widthNew}};$('#outerImageContainer').animate(animate1,Lightbox.resizeSpeed).animate(animate2,Lightbox.resizeSpeed,'linear',function(){Lightbox.showData()})}else $('#outerImageContainer').animate({width:widthNew,height:heightNew},Lightbox.resizeSpeed,'linear',function(){Lightbox.showData()});if((hDiff===0)&&(wDiff===0))if($.browser.msie){Lightbox.pause(250)}else Lightbox.pause(100);var s=Drupal.settings.lightbox2;if(!s.use_alt_layout)$('#prevLink, #nextLink').css({height:imgHeight+'px'});$('#imageDataContainer').css({width:widthNew+'px'})},showData:function(){$('#loading').hide();if(Lightbox.isLightframe||Lightbox.isVideo||Lightbox.isModal){Lightbox.updateDetails();if(Lightbox.isLightframe){$('#frameContainer').show();if($.browser.safari||Lightbox.fadeInSpeed===0){$('#lightboxFrame').css({zIndex:'10500'}).show()}else $('#lightboxFrame').css({zIndex:'10500'}).fadeIn(Lightbox.fadeInSpeed)}else if(Lightbox.isVideo){$("#modalContainer").html(Lightbox.modalHTML).click(function(){return false}).css('zIndex','10500').show()}else{var src=unescape(Lightbox.imageArray[Lightbox.activeImage][0]);if(Lightbox.imageArray[Lightbox.activeImage][4]){$(src).appendTo("#modalContainer");$('#modalContainer').css({zIndex:'10500'}).show()}else $("#modalContainer").hide().load(src,function(){$('#modalContainer').css({zIndex:'10500'}).show()});$('#modalContainer').unbind('click')}}else{$('#imageContainer').show();if($.browser.safari||Lightbox.fadeInSpeed===0){$('#lightboxImage').css({zIndex:'10500'}).show()}else $('#lightboxImage').css({zIndex:'10500'}).fadeIn(Lightbox.fadeInSpeed);Lightbox.updateDetails();this.preloadNeighborImages()};Lightbox.inprogress=false;if(Lightbox.isSlideshow){if(!Lightbox.loopSlides&&Lightbox.activeImage==(Lightbox.total-1)){if(Lightbox.autoExit)Lightbox.slideIdArray[Lightbox.slideIdCount++]=setTimeout(function(){Lightbox.end('slideshow')},Lightbox.slideInterval)}else if(!Lightbox.isPaused&&Lightbox.total>1)Lightbox.slideIdArray[Lightbox.slideIdCount++]=setTimeout(function(){Lightbox.changeData(Lightbox.activeImage+1)},Lightbox.slideInterval);if(Lightbox.showPlayPause&&Lightbox.total>1&&!Lightbox.isPaused){$('#lightshowPause').show();$('#lightshowPlay').hide()}else if(Lightbox.showPlayPause&&Lightbox.total>1){$('#lightshowPause').hide();$('#lightshowPlay').show()}};var arrayPageSize=Lightbox.getPageSize(),arrayPageScroll=Lightbox.getPageScroll(),pageHeight=arrayPageSize[1];if(Lightbox.isZoomedIn&&arrayPageSize[1]>arrayPageSize[3]){var lightboxTop=(Lightbox.topPosition==''?(arrayPageSize[3]/10):Lightbox.topPosition)*1;pageHeight=pageHeight+arrayPageScroll[1]+lightboxTop};$('#lightbox2-overlay').css({height:pageHeight+'px',width:arrayPageSize[0]+'px'});if($.browser.mozilla)if(Lightbox.imageArray[Lightbox.activeImage][0].indexOf(".pdf")!=-1)setTimeout(function(){document.getElementById("lightboxFrame").src=Lightbox.imageArray[Lightbox.activeImage][0]},1e3)},updateDetails:function(){$("#imageDataContainer").hide();var s=Drupal.settings.lightbox2;if(s.show_caption){var caption=Lightbox.filterXSS(Lightbox.imageArray[Lightbox.activeImage][1]);if(!caption)caption='';$('#caption').html(caption).css({zIndex:'10500'}).show()};var numberDisplay=null;if(s.image_count&&Lightbox.total>1){var currentImage=Lightbox.activeImage+1;if(!Lightbox.isLightframe&&!Lightbox.isModal&&!Lightbox.isVideo){numberDisplay=s.image_count.replace(/\!current/,currentImage).replace(/\!total/,Lightbox.total)}else if(Lightbox.isVideo){numberDisplay=s.video_count.replace(/\!current/,currentImage).replace(/\!total/,Lightbox.total)}else numberDisplay=s.page_count.replace(/\!current/,currentImage).replace(/\!total/,Lightbox.total);$('#numberDisplay').html(numberDisplay).css({zIndex:'10500'}).show()}else $('#numberDisplay').hide();$("#imageDataContainer").hide().slideDown(Lightbox.slideDownSpeed,function(){$("#bottomNav").show()});if(Lightbox.rtl==1)$("#bottomNav").css({'float':'left'});Lightbox.updateNav()},updateNav:function(){$('#hoverNav').css({zIndex:'10500'}).show();var prevLink='#prevLink',nextLink='#nextLink';if(Lightbox.isSlideshow){if((Lightbox.total>1&&Lightbox.loopSlides)||Lightbox.activeImage!==0){$(prevLink).css({zIndex:'10500'}).show().click(function(){if(Lightbox.pauseOnPrevClick)Lightbox.togglePlayPause("lightshowPause","lightshowPlay");Lightbox.changeData(Lightbox.activeImage-1);return false})}else $(prevLink).hide();if((Lightbox.total>1&&Lightbox.loopSlides)||Lightbox.activeImage!=(Lightbox.total-1)){$(nextLink).css({zIndex:'10500'}).show().click(function(){if(Lightbox.pauseOnNextClick)Lightbox.togglePlayPause("lightshowPause","lightshowPlay");Lightbox.changeData(Lightbox.activeImage+1);return false})}else $(nextLink).hide()}else{if((Lightbox.isLightframe||Lightbox.isModal||Lightbox.isVideo)&&!Lightbox.alternative_layout){$('#frameHoverNav').css({zIndex:'10500'}).show();$('#hoverNav').css({zIndex:'10500'}).hide();prevLink='#framePrevLink';nextLink='#frameNextLink'};if((Lightbox.total>1&&Lightbox.loopItems)||Lightbox.activeImage!==0){$(prevLink).css({zIndex:'10500'}).show().unbind().click(function(){Lightbox.changeData(Lightbox.activeImage-1);return false})}else $(prevLink).hide();if((Lightbox.total>1&&Lightbox.loopItems)||Lightbox.activeImage!=(Lightbox.total-1)){$(nextLink).css({zIndex:'10500'}).show().unbind().click(function(){Lightbox.changeData(Lightbox.activeImage+1);return false})}else $(nextLink).hide()};if(!Lightbox.isModal)this.enableKeyboardNav()},enableKeyboardNav:function(){$(document).bind("keydown",this.keyboardAction)},disableKeyboardNav:function(){$(document).unbind("keydown",this.keyboardAction)},keyboardAction:function(e){if(e===null){keycode=event.keyCode;escapeKey=27}else{keycode=e.keyCode;escapeKey=e.DOM_VK_ESCAPE};key=String.fromCharCode(keycode).toLowerCase();if(Lightbox.checkKey(Lightbox.keysClose,key,keycode)){Lightbox.end('forceClose')}else if(Lightbox.checkKey(Lightbox.keysPrevious,key,keycode)){if((Lightbox.total>1&&((Lightbox.isSlideshow&&Lightbox.loopSlides)||(!Lightbox.isSlideshow&&Lightbox.loopItems)))||Lightbox.activeImage!==0)Lightbox.changeData(Lightbox.activeImage-1)}else if(Lightbox.checkKey(Lightbox.keysNext,key,keycode)){if((Lightbox.total>1&&((Lightbox.isSlideshow&&Lightbox.loopSlides)||(!Lightbox.isSlideshow&&Lightbox.loopItems)))||Lightbox.activeImage!=(Lightbox.total-1))Lightbox.changeData(Lightbox.activeImage+1)}else if(Lightbox.checkKey(Lightbox.keysZoom,key,keycode)&&!Lightbox.disableResize&&!Lightbox.disableZoom&&!Lightbox.isSlideshow&&!Lightbox.isLightframe){if(Lightbox.isZoomedIn){Lightbox.changeData(Lightbox.activeImage,false)}else if(!Lightbox.isZoomedIn)Lightbox.changeData(Lightbox.activeImage,true);return false}else if(Lightbox.checkKey(Lightbox.keysPlayPause,key,keycode)&&Lightbox.isSlideshow){if(Lightbox.isPaused){Lightbox.togglePlayPause("lightshowPlay","lightshowPause")}else Lightbox.togglePlayPause("lightshowPause","lightshowPlay");return false}},preloadNeighborImages:function(){if((Lightbox.total-1)>Lightbox.activeImage){preloadNextImage=new Image();preloadNextImage.src=Lightbox.imageArray[Lightbox.activeImage+1][0]};if(Lightbox.activeImage>0){preloadPrevImage=new Image();preloadPrevImage.src=Lightbox.imageArray[Lightbox.activeImage-1][0]}},end:function(caller){var closeClick=(caller=='slideshow'?false:true);if(Lightbox.isSlideshow&&Lightbox.isPaused&&!closeClick)return;if(Lightbox.inprogress===true&&caller!='forceClose')return;Lightbox.disableKeyboardNav();$('#lightbox').hide();$("#lightbox2-overlay").fadeOut();Lightbox.isPaused=true;Lightbox.inprogress=false;Lightbox.toggleSelectsFlash('visible');if(Lightbox.isSlideshow){for(var i=0;i<Lightbox.slideIdCount;i++)window.clearTimeout(Lightbox.slideIdArray[i]);$('#lightshowPause, #lightshowPlay').hide()}else if(Lightbox.isLightframe){$('#frameContainer').empty().hide()}else if(Lightbox.isVideo||Lightbox.isModal){if(!Lightbox.auto_modal)$('#modalContainer').hide().html("");Lightbox.auto_modal=false}},getPageScroll:function(){var xScroll,yScroll;if(self.pageYOffset||self.pageXOffset){yScroll=self.pageYOffset;xScroll=self.pageXOffset}else if(document.documentElement&&(document.documentElement.scrollTop||document.documentElement.scrollLeft)){yScroll=document.documentElement.scrollTop;xScroll=document.documentElement.scrollLeft}else if(document.body){yScroll=document.body.scrollTop;xScroll=document.body.scrollLeft};arrayPageScroll=[xScroll,yScroll];return arrayPageScroll},getPageSize:function(){var xScroll,yScroll;if(window.innerHeight&&window.scrollMaxY){xScroll=window.innerWidth+window.scrollMaxX;yScroll=window.innerHeight+window.scrollMaxY}else if(document.body.scrollHeight>document.body.offsetHeight){xScroll=document.body.scrollWidth;yScroll=document.body.scrollHeight}else{xScroll=document.body.offsetWidth;yScroll=document.body.offsetHeight};var windowWidth,windowHeight;if(self.innerHeight){if(document.documentElement.clientWidth){windowWidth=document.documentElement.clientWidth}else windowWidth=self.innerWidth;windowHeight=self.innerHeight}else if(document.documentElement&&document.documentElement.clientHeight){windowWidth=document.documentElement.clientWidth;windowHeight=document.documentElement.clientHeight}else if(document.body){windowWidth=document.body.clientWidth;windowHeight=document.body.clientHeight};if(yScroll<windowHeight){pageHeight=windowHeight}else pageHeight=yScroll;if(xScroll<windowWidth){pageWidth=xScroll}else pageWidth=windowWidth;arrayPageSize=new Array(pageWidth,pageHeight,windowWidth,windowHeight);return arrayPageSize},pause:function(ms){var date=new Date(),curDate=null;do{curDate=new Date()}while(curDate-date<ms)},toggleSelectsFlash:function(state){if(state=='visible'){$("select.lightbox_hidden, embed.lightbox_hidden, object.lightbox_hidden").show()}else if(state=='hide'){$("select:visible, embed:visible, object:visible").not('#lightboxAutoModal select, #lightboxAutoModal embed, #lightboxAutoModal object').addClass("lightbox_hidden");$("select.lightbox_hidden, embed.lightbox_hidden, object.lightbox_hidden").hide()}},parseRel:function(link){var parts=[];parts.rel=parts.title=parts.group=parts.style=parts.flashvars=null;if(!$(link).attr('rel'))return parts;parts.rel=$(link).attr('rel').match(/\w+/)[0];if($(link).attr('rel').match(/\[(.*)\]/)){var info=$(link).attr('rel').match(/\[(.*?)\]/)[1].split('|');parts.group=info[0];parts.style=info[1];if(parts.style!=undefined&&parts.style.match(/flashvars:\s?(.*?);/))parts.flashvars=parts.style.match(/flashvars:\s?(.*?);/)[1]};if($(link).attr('rel').match(/\[.*\]\[(.*)\]/))parts.title=$(link).attr('rel').match(/\[.*\]\[(.*)\]/)[1];return parts},setStyles:function(item,styles){item.width=Lightbox.iframe_width;item.height=Lightbox.iframe_height;item.scrolling="auto";if(!styles)return item;var stylesArray=styles.split(';');for(var i=0;i<stylesArray.length;i++)if(stylesArray[i].indexOf('width:')>=0){var w=stylesArray[i].replace('width:','');item.width=jQuery.trim(w)}else if(stylesArray[i].indexOf('height:')>=0){var h=stylesArray[i].replace('height:','');item.height=jQuery.trim(h)}else if(stylesArray[i].indexOf('scrolling:')>=0){var scrolling=stylesArray[i].replace('scrolling:','');item.scrolling=jQuery.trim(scrolling)}else if(stylesArray[i].indexOf('overflow:')>=0){var overflow=stylesArray[i].replace('overflow:','');item.overflow=jQuery.trim(overflow)};return item},togglePlayPause:function(hideId,showId){if(Lightbox.isSlideshow&&hideId=="lightshowPause")for(var i=0;i<Lightbox.slideIdCount;i++)window.clearTimeout(Lightbox.slideIdArray[i]);$('#'+hideId).hide();$('#'+showId).show();if(hideId=="lightshowPlay"){Lightbox.isPaused=false;if(!Lightbox.loopSlides&&Lightbox.activeImage==(Lightbox.total-1)){Lightbox.end()}else if(Lightbox.total>1)Lightbox.changeData(Lightbox.activeImage+1)}else Lightbox.isPaused=true},triggerLightbox:function(rel_type,rel_group){if(rel_type.length)if(rel_group&&rel_group.length){$("a[rel^='"+rel_type+"\["+rel_group+"\]'], area[rel^='"+rel_type+"\["+rel_group+"\]']").eq(0).trigger("click")}else $("a[rel^='"+rel_type+"'], area[rel^='"+rel_type+"']").eq(0).trigger("click")},detectMacFF2:function(){var ua=navigator.userAgent.toLowerCase();if(/firefox[\/\s](\d+\.\d+)/.test(ua)){var ffversion=new Number(RegExp.$1);if(ffversion<3&&ua.indexOf('mac')!=-1)return true};return false},checkKey:function(keys,key,code){return(jQuery.inArray(key,keys)!=-1||jQuery.inArray(String(code),keys)!=-1)},filterXSS:function(str,allowed_tags){var output="";$.ajax({url:Drupal.settings.basePath+'system/lightbox2/filter-xss',data:{string:str,allowed_tags:allowed_tags},type:"POST",async:false,dataType:"json",success:function(data){output=data}});return output}};Drupal.behaviors.initLightbox=function(context){$('body:not(.lightbox-processed)',context).addClass('lightbox-processed').each(function(){Lightbox.initialize();return false});Lightbox.initList(context);$('#lightboxAutoModal',context).triggerHandler('click')};
(function($){Drupal.Panels={};Drupal.Panels.autoAttach=function(){if($.browser.msie){$("div.panel-pane").hover(function(){$('div.panel-hide',this).addClass("panel-hide-hover");return true},function(){$('div.panel-hide',this).removeClass("panel-hide-hover");return true});$("div.admin-links").hover(function(){$(this).addClass("admin-links-hover");return true},function(){$(this).removeClass("admin-links-hover");return true})}};$(Drupal.Panels.autoAttach)})(jQuery);
(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),$slides=opts.slideExpr?$(opts.slideExpr,this):$cont.children(),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),loadingFF=($.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete),loadingOp=($.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete),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,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),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:4e3,timeoutFn:null,continuous:0,speed:1e3,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);(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(),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",w=$cont.css("overflow","hidden").width(),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",w=$cont.css("overflow","hidden").width(),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(),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(),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),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),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,ll=l?l-parseInt(step*(l/count)):0,bb=b<h?b+parseInt(step*((h-b)/count||1)):h,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);
Drupal.behaviors.viewsSlideshowSingleFrame=function(context){$('.views_slideshow_singleframe_main:not(.viewsSlideshowSingleFrame-processed)',context).addClass('viewsSlideshowSingleFrame-processed').each(function(){var fullId='#'+$(this).attr('id'),settings=Drupal.settings.viewsSlideshowSingleFrame[fullId];settings.targetId='#'+$(fullId+" :first").attr('id');settings.paused=false;settings.opts={speed:settings.speed,timeout:parseInt(settings.timeout),delay:parseInt(settings.delay),sync:settings.sync==1,random:settings.random==1,pause:false,allowPagerClickBubble:(settings.pager_hover==1||settings.pager_click_to_page),prev:(settings.controls>0)?'#views_slideshow_singleframe_prev_'+settings.vss_id:null,next:(settings.controls>0)?'#views_slideshow_singleframe_next_'+settings.vss_id:null,pager:(settings.pager>0)?'#views_slideshow_singleframe_pager_'+settings.vss_id:null,nowrap:parseInt(settings.nowrap),pagerAnchorBuilder:function(idx,slide){var classes='pager-item pager-num-'+(idx+1);if(idx==0)classes+=' first';if($(slide).siblings().length==idx)classes+=' last';if(idx%2){classes+=' odd'}else classes+=' even';var theme='viewsSlideshowPager'+settings.pager_type;return Drupal.theme.prototype[theme]?Drupal.theme(theme,classes,idx,slide,settings):''},after:function(curr,next,opts){if(settings.image_count){$('#views_slideshow_singleframe_image_count_'+settings.vss_id+' span.num').html(opts.currSlide+1);$('#views_slideshow_singleframe_image_count_'+settings.vss_id+' span.total').html(opts.slideCount)}},before:function(curr,next,opts){if(settings.remember_slide)createCookie(settings.vss_id,opts.currSlide+1,settings.remember_slide_days);if(settings.fixed_height==0){var $ht=$(this).height();$(this).parent().animate({height:$ht})}},cleartype:(settings.ie.cleartype=='true')?true:false,cleartypeNoBg:(settings.ie.cleartypenobg=='true')?true:false};if(settings.remember_slide){var startSlide=readCookie(settings.vss_id);if(startSlide==null)startSlide=0;settings.opts.startingSlide=startSlide};if(settings.pager_hover==1){settings.opts.pagerEvent='mouseover';settings.opts.pauseOnPagerHover=true};if(settings.effect=='none'){settings.opts.speed=1}else settings.opts.fx=settings.effect;if(settings.pause==1)$('#views_slideshow_singleframe_teaser_section_'+settings.vss_id).hover(function(){$(settings.targetId).cycle('pause')},function(){if(settings.paused==false)$(settings.targetId).cycle('resume')});if(settings.pause_on_click==1)$('#views_slideshow_singleframe_teaser_section_'+settings.vss_id).click(function(){viewsSlideshowSingleFramePause(settings)});if(settings.advanced!="\n"){var advanced=settings.advanced.split("\n");for(i=0;i<advanced.length;i++){var prop='',value='',property=advanced[i].split(":");for(j=0;j<property.length;j++)if(j==0){prop=property[j]}else if(j==1){value=property[j]}else value+=":"+property[j];if(value=='true'||value=='false'||IsNumeric(value)){value=eval(value)}else{var func=value.match(/function\s*\((.*?)\)\s*\{(.*)\}/i);if(func)value=new Function(func[1].match(/(\w+)/g),func[2])};if(typeof value=="function"&&prop in settings.opts){var callboth=function(before_func,new_func){return function(){before_func.apply(null,arguments);new_func.apply(null,arguments)}};settings.opts[prop]=callboth(settings.opts[prop],value)}else settings.opts[prop]=value}};$(settings.targetId).cycle(settings.opts);if(settings.start_paused)viewsSlideshowSingleFramePause(settings);if(settings.pause_when_hidden){var checkPause=function(settings){var visible=viewsSlideshowSingleFrameIsVisible(settings.targetId,settings.pause_when_hidden_type,settings.amount_allowed_visible);if(visible&&settings.paused){viewsSlideshowSingleFrameResume(settings)}else if(!visible&&!settings.paused)viewsSlideshowSingleFramePause(settings)};$(window).scroll(function(){checkPause(settings)});$(window).resize(function(){checkPause(settings)})};$('#views_slideshow_singleframe_image_count_'+settings.vss_id).show();if(settings.controls>0){$('#views_slideshow_singleframe_controls_'+settings.vss_id).show();$('#views_slideshow_singleframe_playpause_'+settings.vss_id).click(function(e){if(settings.paused){viewsSlideshowSingleFrameResume(settings)}else viewsSlideshowSingleFramePause(settings);e.preventDefault()})}})};viewsSlideshowSingleFramePause=function(settings){var resume=Drupal.t('Resume');$(settings.targetId).cycle('pause');if(settings.controls>0)$('#views_slideshow_singleframe_playpause_'+settings.vss_id).addClass('views_slideshow_singleframe_play').addClass('views_slideshow_play').removeClass('views_slideshow_singleframe_pause').removeClass('views_slideshow_pause').text(resume);settings.paused=true};viewsSlideshowSingleFrameResume=function(settings){$(settings.targetId).cycle('resume');if(settings.controls>0)$('#views_slideshow_singleframe_playpause_'+settings.vss_id).addClass('views_slideshow_singleframe_pause').addClass('views_slideshow_pause').removeClass('views_slideshow_singleframe_play').removeClass('views_slideshow_play').text('Durdur');settings.paused=false};Drupal.theme.prototype.viewsSlideshowPagerThumbnails=function(classes,idx,slide,settings){var href='#';if(settings.pager_click_to_page)href=$(slide).find('a').attr('href');return'<div class="'+classes+'"><a href="'+href+'"><img src="'+$(slide).find('img').attr('src')+'" /></a></div>'};Drupal.theme.prototype.viewsSlideshowPagerNumbered=function(classes,idx,slide,settings){var href='#';if(settings.pager_click_to_page)href=$(slide).find('a').attr('href');return'<div class="'+classes+'"><a href="'+href+'">'+(idx+1)+'</a></div>'}
function IsNumeric(sText){var ValidChars="0123456789",IsNumber=true,Char;for(var i=0;i<sText.length&&IsNumber==true;i++){Char=sText.charAt(i);if(ValidChars.indexOf(Char)==-1)IsNumber=false};return IsNumber}
function createCookie(name,value,days){if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1e3));var expires="; expires="+date.toGMTString()}else var 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}
function eraseCookie(name){createCookie(name,"",-1)}
function viewsSlideshowSingleFrameIsVisible(elem,type,amountVisible){var docViewTop=$(window).scrollTop(),docViewBottom=docViewTop+$(window).height(),docViewLeft=$(window).scrollLeft(),docViewRight=docViewLeft+$(window).width(),elemTop=$(elem).offset().top,elemHeight=$(elem).height(),elemBottom=elemTop+elemHeight,elemLeft=$(elem).offset().left,elemWidth=$(elem).width(),elemRight=elemLeft+elemWidth,elemArea=elemHeight*elemWidth,missingLeft=0,missingRight=0,missingTop=0,missingBottom=0;if(elemLeft<docViewLeft)missingLeft=docViewLeft-elemLeft;if(elemRight>docViewRight)missingRight=elemRight-docViewRight;if(elemTop<docViewTop)missingTop=docViewTop-elemTop;if(elemBottom>docViewBottom)missingBottom=elemBottom-docViewBottom;if(type=='full'){return((elemBottom>=docViewTop)&&(elemTop<=docViewBottom)&&(elemBottom<=docViewBottom)&&(elemTop>=docViewTop)&&(elemLeft>=docViewLeft)&&(elemRight<=docViewRight)&&(elemLeft<=docViewRight)&&(elemRight>=docViewLeft))}else if(type=='vertical'){var verticalShowing=elemHeight-missingTop-missingBottom;if(amountVisible.indexOf('%')){return(((verticalShowing/elemHeight)*100)>=parseInt(amountVisible))}else return(verticalShowing>=parseInt(amountVisible))}else if(type=='horizontal'){var horizontalShowing=elemWidth-missingLeft-missingRight;if(amountVisible.indexOf('%')){return(((horizontalShowing/elemWidth)*100)>=parseInt(amountVisible))}else return(horizontalShowing>=parseInt(amountVisible))}else if(type=='area'){var areaShowing=(elemWidth-missingLeft-missingRight)*(elemHeight-missingTop-missingBottom);if(amountVisible.indexOf('%')){return(((areaShowing/elemArea)*100)>=parseInt(amountVisible))}else return(areaShowing>=parseInt(amountVisible))}};
Drupal.behaviors.viewsSlideshowThumbnailHover=function(context){$('.views_slideshow_thumbnailhover_main:not(.viewsSlideshowThumbnailHover-processed)',context).addClass('viewsSlideshowThumbnailHover-processed').each(function(){var fullId='#'+$(this).attr('id'),settings=Drupal.settings.viewsSlideshowThumbnailHover[fullId];settings.targetId='#'+$(fullId+" :first").attr('id');settings.paused=false;settings.opts={speed:settings.speed,timeout:parseInt(settings.timeout),delay:parseInt(settings.delay),sync:settings.sync==1,random:settings.random==1,pause:false,allowPagerClickBubble:(settings.pager_event=='click')?false:true,pager:(settings.pager_event=='hoverIntent')?null:'#views_slideshow_breakout_teasers_'+settings.vss_id,nowrap:parseInt(settings.nowrap),pagerAnchorBuilder:(settings.pager_event=='hoverIntent')?null:function(idx,slide){return'#views_slideshow_thumbnailhover_div_breakout_teaser_'+settings.vss_id+'_'+idx},after:function(curr,next,opts){if(settings.image_count){$('#views_slideshow_thumbnailhover_image_count_'+settings.vss_id+' span.num').html(opts.currSlide+1);$('#views_slideshow_thumbnailhover_image_count_'+settings.vss_id+' span.total').html(opts.slideCount)}},before:function(current,next,opts){if(settings.remember_slide)createCookie(settings.view_id,opts.currSlide+1,settings.remember_slide_days);if(settings.fixed_height==0){var $ht=$(this).height();$(this).parent().animate({height:$ht})};var currId=(currId=$(current).attr('id')).substring(currId.lastIndexOf('_')+1),nextId=(nextId=$(next).attr('id')).substring(nextId.lastIndexOf('_')+1);$('#views_slideshow_thumbnailhover_div_breakout_teaser_'+settings.vss_id+'_'+currId).removeClass('activeSlide');$('#views_slideshow_thumbnailhover_div_breakout_teaser_'+settings.vss_id+'_'+nextId).addClass('activeSlide')},pagerEvent:(settings.pager_event=='hoverIntent')?null:settings.pager_event,prev:(settings.controls>0)?'#views_slideshow_thumbnailhover_prev_'+settings.vss_id:null,next:(settings.controls>0)?'#views_slideshow_thumbnailhover_next_'+settings.vss_id:null,cleartype:(settings.ie.cleartype=='true')?true:false,cleartypeNoBg:(settings.ie.cleartypenobg=='true')?true:false};if(settings.remember_slide){var startSlide=readCookie(settings.view_id);if(startSlide==null)startSlide=0;settings.opts.startingSlide=startSlide};if(settings.effect=='none'){settings.opts.speed=1}else settings.opts.fx=settings.effect;if(settings.pause==1)$('#views_slideshow_thumbnailhover_teaser_section_'+settings.vss_id).hover(function(){$(settings.targetId).cycle('pause')},function(){if(settings.paused==false)$(settings.targetId).cycle('resume')});if(settings.pause_on_click==1)$('#views_slideshow_thumbnailhover_teaser_section_'+settings.vss_id).click(function(){viewsSlideshowThumbnailHoverPause(settings)});if(settings.advanced!="\n"){var advanced=settings.advanced.split("\n");for(i=0;i<advanced.length;i++){var prop='',value='',property=advanced[i].split(":");for(j=0;j<property.length;j++)if(j==0){prop=property[j]}else if(j==1){value=property[j]}else value+=":"+property[j];if(value=='true'||value=='false'||IsNumeric(value)){value=eval(value)}else{var func=value.match(/function\s*\((.*?)\)\s*\{(.*)\}/i);if(func)value=new Function(func[1].match(/(\w+)/g),func[2])};if(typeof value=="function"&&prop in settings.opts){var callboth=function(before_func,new_func){return function(){before_func.apply(null,arguments);new_func.apply(null,arguments)}};settings.opts[prop]=callboth(settings.opts[prop],value)}else settings.opts[prop]=value}};$(settings.targetId).cycle(settings.opts);if(settings.start_paused)viewsSlideshowThumbnailHoverPause(settings);if(settings.pause_when_hidden){var checkPause=function(settings){var visible=viewsSlideshowThumbnailHoverIsVisible(settings.targetId,settings.pause_when_hidden_type,settings.amount_allowed_visible);if(visible&&settings.paused){viewsSlideshowThumbnailHoverResume(settings)}else if(!visible&&!settings.paused)viewsSlideshowThumbnailHoverPause(settings)};$(window).scroll(function(){checkPause(settings)});$(window).resize(function(){checkPause(settings)})};$('#views_slideshow_thumbnailhover_image_count_'+settings.vss_id).show();if(settings.pager_event=='hoverIntent')$('#views_slideshow_thumbnailhover_breakout_teasers_'+settings.vss_id+' .views_slideshow_thumbnailhover_div_breakout_teaser').each(function(i,obj){$(obj).hoverIntent(function(){$('.views_slideshow_thumbnailhover_div_breakout_teaser').removeClass('activeSlide');var id=$(this).attr('id');id=parseInt(id.substring(id.lastIndexOf('_')+1));$(settings.targetId).cycle(id);$('#views_slideshow_thumbnailhover_div_breakout_teaser_'+settings.vss_id+'_'+id).addClass('activeSlide');$(settings.targetId).cycle('stop')},function(){var id=$(this).attr('id');settings.opts.startingSlide=parseInt(id.substring(id.lastIndexOf('_')+1));$(settings.targetId).cycle(settings.opts)})});if(settings.controls>0){$('#views_slideshow_thumbnailhover_controls_'+settings.vss_id).show();$('#views_slideshow_thumbnailhover_playpause_'+settings.vss_id).click(function(e){if(settings.paused){viewsSlideshowThumbnailHoverResume(settings)}else viewsSlideshowThumbnailHoverPause(settings);e.preventDefault()})}})};viewsSlideshowThumbnailHoverPause=function(settings){var resume=Drupal.t('Resume');$(settings.targetId).cycle('pause');if(settings.controls>0)$('#views_slideshow_thumbnailhover_playpause_'+settings.vss_id).addClass('views_slideshow_thumbnailhover_play').addClass('views_slideshow_play').removeClass('views_slideshow_thumbnailhover_pause').removeClass('views_slideshow_pause').text(resume);settings.paused=true};viewsSlideshowThumbnailHoverResume=function(settings){$(settings.targetId).cycle('resume');if(settings.controls>0)$('#views_slideshow_thumbnailhover_playpause_'+settings.vss_id).addClass('views_slideshow_thumbnailhover_pause').addClass('views_slideshow_pause').removeClass('views_slideshow_thumbnailhover_play').removeClass('views_slideshow_play').text('Durdur');settings.paused=false}
function IsNumeric(sText){var ValidChars="0123456789",IsNumber=true,Char;for(var i=0;i<sText.length&&IsNumber==true;i++){Char=sText.charAt(i);if(ValidChars.indexOf(Char)==-1)IsNumber=false};return IsNumber}
function createCookie(name,value,days){if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1e3));var expires="; expires="+date.toGMTString()}else var 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}
function eraseCookie(name){createCookie(name,"",-1)}
function viewsSlideshowThumbnailHoverIsVisible(elem,type,amountVisible){var docViewTop=$(window).scrollTop(),docViewBottom=docViewTop+$(window).height(),docViewLeft=$(window).scrollLeft(),docViewRight=docViewLeft+$(window).width(),elemTop=$(elem).offset().top,elemHeight=$(elem).height(),elemBottom=elemTop+elemHeight,elemLeft=$(elem).offset().left,elemWidth=$(elem).width(),elemRight=elemLeft+elemWidth,elemArea=elemHeight*elemWidth,missingLeft=0,missingRight=0,missingTop=0,missingBottom=0;if(elemLeft<docViewLeft)missingLeft=docViewLeft-elemLeft;if(elemRight>docViewRight)missingRight=elemRight-docViewRight;if(elemTop<docViewTop)missingTop=docViewTop-elemTop;if(elemBottom>docViewBottom)missingBottom=elemBottom-docViewBottom;if(type=='full'){return((elemBottom>=docViewTop)&&(elemTop<=docViewBottom)&&(elemBottom<=docViewBottom)&&(elemTop>=docViewTop)&&(elemLeft>=docViewLeft)&&(elemRight<=docViewRight)&&(elemLeft<=docViewRight)&&(elemRight>=docViewLeft))}else if(type=='vertical'){var verticalShowing=elemHeight-missingTop-missingBottom;if(amountVisible.indexOf('%')){return(((verticalShowing/elemHeight)*100)>=parseInt(amountVisible))}else return(verticalShowing>=parseInt(amountVisible))}else if(type=='horizontal'){var horizontalShowing=elemWidth-missingLeft-missingRight;if(amountVisible.indexOf('%')){return(((horizontalShowing/elemWidth)*100)>=parseInt(amountVisible))}else return(horizontalShowing>=parseInt(amountVisible))}else if(type=='area'){var areaShowing=(elemWidth-missingLeft-missingRight)*(elemHeight-missingTop-missingBottom);if(amountVisible.indexOf('%')){return(((areaShowing/elemArea)*100)>=parseInt(amountVisible))}else return(areaShowing>=parseInt(amountVisible))}};
(function(i){var q={vertical:false,rtl:false,start:1,offset:1,size:null,scroll:3,visible:null,animation:"normal",easing:"swing",auto:0,wrap:null,initCallback:null,reloadCallback:null,itemLoadCallback:null,itemFirstInCallback:null,itemFirstOutCallback:null,itemLastInCallback:null,itemLastOutCallback:null,itemVisibleInCallback:null,itemVisibleOutCallback:null,buttonNextHTML:"<div></div>",buttonPrevHTML:"<div></div>",buttonNextEvent:"click",buttonPrevEvent:"click",buttonNextCallback:null,buttonPrevCallback:null,itemFallbackDimension:null},r=false;i(window).bind("load.jcarousel",function(){r=true});i.jcarousel=function(a,c){this.options=i.extend({},q,c||{});this.autoStopped=this.locked=false;this.buttonPrevState=this.buttonNextState=this.buttonPrev=this.buttonNext=this.list=this.clip=this.container=null;if(!c||c.rtl===undefined)this.options.rtl=(i(a).attr("dir")||i("html").attr("dir")||"").toLowerCase()=="rtl";this.wh=!this.options.vertical?"width":"height";this.lt=!this.options.vertical?this.options.rtl?"right":"left":"top";for(var b="",d=a.className.split(" "),f=0;f<d.length;f++)if(d[f].indexOf("jcarousel-skin")!=-1){i(a).removeClass(d[f]);b=d[f];break};if(a.nodeName.toUpperCase()=="UL"||a.nodeName.toUpperCase()=="OL"){this.list=i(a);this.container=this.list.parent();if(this.container.hasClass("jcarousel-clip")){if(!this.container.parent().hasClass("jcarousel-container"))this.container=this.container.wrap("<div></div>");this.container=this.container.parent()}else if(!this.container.hasClass("jcarousel-container"))this.container=this.list.wrap("<div></div>").parent()}else{this.container=i(a);this.list=this.container.find("ul,ol").eq(0)};b!==""&&this.container.parent()[0].className.indexOf("jcarousel-skin")==-1&&this.container.wrap('<div class=" '+b+'"></div>');this.clip=this.list.parent();if(!this.clip.length||!this.clip.hasClass("jcarousel-clip"))this.clip=this.list.wrap("<div></div>").parent();this.buttonNext=i(".jcarousel-next",this.container);if(this.buttonNext.size()===0&&this.options.buttonNextHTML!==null)this.buttonNext=this.clip.after(this.options.buttonNextHTML).next();this.buttonNext.addClass(this.className("jcarousel-next"));this.buttonPrev=i(".jcarousel-prev",this.container);if(this.buttonPrev.size()===0&&this.options.buttonPrevHTML!==null)this.buttonPrev=this.clip.after(this.options.buttonPrevHTML).next();this.buttonPrev.addClass(this.className("jcarousel-prev"));this.clip.addClass(this.className("jcarousel-clip")).css({overflow:"hidden",position:"relative"});this.list.addClass(this.className("jcarousel-list")).css({overflow:"hidden",position:"relative",top:0,margin:0,padding:0}).css(this.options.rtl?"right":"left",0);this.container.addClass(this.className("jcarousel-container")).css({position:"relative"});!this.options.vertical&&this.options.rtl&&this.container.addClass("jcarousel-direction-rtl").attr("dir","rtl");var j=this.options.visible!==null?Math.ceil(this.clipping()/this.options.visible):null;b=this.list.children("li");var e=this;if(b.size()>0){var g=0,k=this.options.offset;b.each(function(){e.format(this,k++);g+=e.dimension(this,j)});this.list.css(this.wh,g+100+"px");if(!c||c.size===undefined)this.options.size=b.size()};this.container.css("display","block");this.buttonNext.css("display","block");this.buttonPrev.css("display","block");this.funcNext=function(){e.next()};this.funcPrev=function(){e.prev()};this.funcResize=function(){e.reload()};this.options.initCallback!==null&&this.options.initCallback(this,"init");if(!r&&i.browser.safari){this.buttons(false,false);i(window).bind("load.jcarousel",function(){e.setup()})}else this.setup()};var h=i.jcarousel;h.fn=h.prototype={jcarousel:"0.2.7"};h.fn.extend=h.extend=i.extend;h.fn.extend({setup:function(){this.prevLast=this.prevFirst=this.last=this.first=null;this.animating=false;this.tail=this.timer=null;this.inTail=false;if(!this.locked){this.list.css(this.lt,this.pos(this.options.offset)+"px");var a=this.pos(this.options.start,true);this.prevFirst=this.prevLast=null;this.animate(a,false);i(window).unbind("resize.jcarousel",this.funcResize).bind("resize.jcarousel",this.funcResize)}},reset:function(){this.list.empty();this.list.css(this.lt,"0px");this.list.css(this.wh,"10px");this.options.initCallback!==null&&this.options.initCallback(this,"reset");this.setup()},reload:function(){this.tail!==null&&this.inTail&&this.list.css(this.lt,h.intval(this.list.css(this.lt))+this.tail);this.tail=null;this.inTail=false;this.options.reloadCallback!==null&&this.options.reloadCallback(this);if(this.options.visible!==null){var a=this,c=Math.ceil(this.clipping()/this.options.visible),b=0,d=0;this.list.children("li").each(function(f){b+=a.dimension(this,c);if(f+1<a.first)d=b});this.list.css(this.wh,b+"px");this.list.css(this.lt,-d+"px")};this.scroll(this.first,false)},lock:function(){this.locked=true;this.buttons()},unlock:function(){this.locked=false;this.buttons()},size:function(a){if(a!==undefined){this.options.size=a;this.locked||this.buttons()};return this.options.size},has:function(a,c){if(c===undefined||!c)c=a;if(this.options.size!==null&&c>this.options.size)c=this.options.size;for(var b=a;b<=c;b++){var d=this.get(b);if(!d.length||d.hasClass("jcarousel-item-placeholder"))return false};return true},get:function(a){return i(".jcarousel-item-"+a,this.list)},add:function(a,c){var b=this.get(a),d=0,f=i(c);if(b.length===0){var j,e=h.intval(a);for(b=this.create(a);;){j=this.get(--e);if(e<=0||j.length){e<=0?this.list.prepend(b):j.after(b);break}}}else d=this.dimension(b);if(f.get(0).nodeName.toUpperCase()=="LI"){b.replaceWith(f);b=f}else b.empty().append(c);this.format(b.removeClass(this.className("jcarousel-item-placeholder")),a);f=this.options.visible!==null?Math.ceil(this.clipping()/this.options.visible):null;d=this.dimension(b,f)-d;a>0&&a<this.first&&this.list.css(this.lt,h.intval(this.list.css(this.lt))-d+"px");this.list.css(this.wh,h.intval(this.list.css(this.wh))+d+"px");return b},remove:function(a){var c=this.get(a);if(!(!c.length||a>=this.first&&a<=this.last)){var b=this.dimension(c);a<this.first&&this.list.css(this.lt,h.intval(this.list.css(this.lt))+b+"px");c.remove();this.list.css(this.wh,h.intval(this.list.css(this.wh))-b+"px")}},next:function(){this.tail!==null&&!this.inTail?this.scrollTail(false):this.scroll((this.options.wrap=="both"||this.options.wrap=="last")&&this.options.size!==null&&this.last==this.options.size?1:this.first+this.options.scroll)},prev:function(){this.tail!==null&&this.inTail?this.scrollTail(true):this.scroll((this.options.wrap=="both"||this.options.wrap=="first")&&this.options.size!==null&&this.first==1?this.options.size:this.first-this.options.scroll)},scrollTail:function(a){if(!(this.locked||this.animating||!this.tail)){this.pauseAuto();var c=h.intval(this.list.css(this.lt));c=!a?c-this.tail:c+this.tail;this.inTail=!a;this.prevFirst=this.first;this.prevLast=this.last;this.animate(c)}},scroll:function(a,c){if(!(this.locked||this.animating)){this.pauseAuto();this.animate(this.pos(a),c)}},pos:function(a,c){var b=h.intval(this.list.css(this.lt));if(this.locked||this.animating)return b;if(this.options.wrap!="circular")a=a<1?1:this.options.size&&a>this.options.size?this.options.size:a;for(var d=this.first>a,f=this.options.wrap!="circular"&&this.first<=1?1:this.first,j=d?this.get(f):this.get(this.last),e=d?f:f-1,g=null,k=0,l=false,m=0;d?--e>=a:++e<a;){g=this.get(e);l=!g.length;if(g.length===0){g=this.create(e).addClass(this.className("jcarousel-item-placeholder"));j[d?"before":"after"](g);if(this.first!==null&&this.options.wrap=="circular"&&this.options.size!==null&&(e<=0||e>this.options.size)){j=this.get(this.index(e));if(j.length)g=this.add(e,j.clone(true))}};j=g;m=this.dimension(g);if(l)k+=m;if(this.first!==null&&(this.options.wrap=="circular"||e>=1&&(this.options.size===null||e<=this.options.size)))b=d?b+m:b-m};f=this.clipping();var p=[],o=0,n=0;j=this.get(a-1);for(e=a;++o;){g=this.get(e);l=!g.length;if(g.length===0){g=this.create(e).addClass(this.className("jcarousel-item-placeholder"));j.length===0?this.list.prepend(g):j[d?"before":"after"](g);if(this.first!==null&&this.options.wrap=="circular"&&this.options.size!==null&&(e<=0||e>this.options.size)){j=this.get(this.index(e));if(j.length)g=this.add(e,j.clone(true))}};j=g;m=this.dimension(g);if(m===0)throw Error("jCarousel: No width/height set for items. This will cause an infinite loop. Aborting...");if(this.options.wrap!="circular"&&this.options.size!==null&&e>this.options.size){p.push(g)}else if(l)k+=m;n+=m;if(n>=f)break;e++};for(g=0;g<p.length;g++)p[g].remove();if(k>0){this.list.css(this.wh,this.dimension(this.list)+k+"px");if(d){b-=k;this.list.css(this.lt,h.intval(this.list.css(this.lt))-k+"px")}};k=a+o-1;if(this.options.wrap!="circular"&&this.options.size&&k>this.options.size)k=this.options.size;if(e>k){o=0;e=k;for(n=0;++o;){g=this.get(e--);if(!g.length)break;n+=this.dimension(g);if(n>=f)break}};e=k-o+1;if(this.options.wrap!="circular"&&e<1)e=1;if(this.inTail&&d){b+=this.tail;this.inTail=false};this.tail=null;if(this.options.wrap!="circular"&&k==this.options.size&&k-o+1>=1){d=h.margin(this.get(k),!this.options.vertical?"marginRight":"marginBottom");if(n-d>f)this.tail=n-f-d};if(c&&a===this.options.size&&this.tail){b-=this.tail;this.inTail=true};for(;a-->e;)b+=this.dimension(this.get(a));this.prevFirst=this.first;this.prevLast=this.last;this.first=e;this.last=k;return b},animate:function(a,c){if(!(this.locked||this.animating)){this.animating=true;var b=this,d=function(){b.animating=false;a===0&&b.list.css(b.lt,0);if(!b.autoStopped&&(b.options.wrap=="circular"||b.options.wrap=="both"||b.options.wrap=="last"||b.options.size===null||b.last<b.options.size||b.last==b.options.size&&b.tail!==null&&!b.inTail))b.startAuto();b.buttons();b.notify("onAfterAnimation");if(b.options.wrap=="circular"&&b.options.size!==null)for(var f=b.prevFirst;f<=b.prevLast;f++)if(f!==null&&!(f>=b.first&&f<=b.last)&&(f<1||f>b.options.size))b.remove(f)};this.notify("onBeforeAnimation");if(!this.options.animation||c===false){this.list.css(this.lt,a+"px");d()}else this.list.animate(!this.options.vertical?this.options.rtl?{right:a}:{left:a}:{top:a},this.options.animation,this.options.easing,d)}},startAuto:function(a){if(a!==undefined)this.options.auto=a;if(this.options.auto===0)return this.stopAuto();if(this.timer===null){this.autoStopped=false;var c=this;this.timer=window.setTimeout(function(){c.next()},this.options.auto*1E3)}},stopAuto:function(){this.pauseAuto();this.autoStopped=true},pauseAuto:function(){if(this.timer!==null){window.clearTimeout(this.timer);this.timer=null}},buttons:function(a,c){if(a==null){a=!this.locked&&this.options.size!==0&&(this.options.wrap&&this.options.wrap!="first"||this.options.size===null||this.last<this.options.size);if(!this.locked&&(!this.options.wrap||this.options.wrap=="first")&&this.options.size!==null&&this.last>=this.options.size)a=this.tail!==null&&!this.inTail};if(c==null){c=!this.locked&&this.options.size!==0&&(this.options.wrap&&this.options.wrap!="last"||this.first>1);if(!this.locked&&(!this.options.wrap||this.options.wrap=="last")&&this.options.size!==null&&this.first==1)c=this.tail!==null&&this.inTail};var b=this;if(this.buttonNext.size()>0){this.buttonNext.unbind(this.options.buttonNextEvent+".jcarousel",this.funcNext);a&&this.buttonNext.bind(this.options.buttonNextEvent+".jcarousel",this.funcNext);this.buttonNext[a?"removeClass":"addClass"](this.className("jcarousel-next-disabled")).attr("disabled",a?false:true);this.options.buttonNextCallback!==null&&this.buttonNext.data("jcarouselstate")!=a&&this.buttonNext.each(function(){b.options.buttonNextCallback(b,this,a)}).data("jcarouselstate",a)}else this.options.buttonNextCallback!==null&&this.buttonNextState!=a&&this.options.buttonNextCallback(b,null,a);if(this.buttonPrev.size()>0){this.buttonPrev.unbind(this.options.buttonPrevEvent+".jcarousel",this.funcPrev);c&&this.buttonPrev.bind(this.options.buttonPrevEvent+".jcarousel",this.funcPrev);this.buttonPrev[c?"removeClass":"addClass"](this.className("jcarousel-prev-disabled")).attr("disabled",c?false:true);this.options.buttonPrevCallback!==null&&this.buttonPrev.data("jcarouselstate")!=c&&this.buttonPrev.each(function(){b.options.buttonPrevCallback(b,this,c)}).data("jcarouselstate",c)}else this.options.buttonPrevCallback!==null&&this.buttonPrevState!=c&&this.options.buttonPrevCallback(b,null,c);this.buttonNextState=a;this.buttonPrevState=c},notify:function(a){var c=this.prevFirst===null?"init":this.prevFirst<this.first?"next":"prev";this.callback("itemLoadCallback",a,c);if(this.prevFirst!==this.first){this.callback("itemFirstInCallback",a,c,this.first);this.callback("itemFirstOutCallback",a,c,this.prevFirst)};if(this.prevLast!==this.last){this.callback("itemLastInCallback",a,c,this.last);this.callback("itemLastOutCallback",a,c,this.prevLast)};this.callback("itemVisibleInCallback",a,c,this.first,this.last,this.prevFirst,this.prevLast);this.callback("itemVisibleOutCallback",a,c,this.prevFirst,this.prevLast,this.first,this.last)},callback:function(a,c,b,d,f,j,e){if(!(this.options[a]==null||typeof this.options[a]!="object"&&c!="onAfterAnimation")){var g=typeof this.options[a]=="object"?this.options[a][c]:this.options[a];if(i.isFunction(g)){var k=this;if(d===undefined){g(k,b,c)}else if(f===undefined){this.get(d).each(function(){g(k,this,d,b,c)})}else{a=function(m){k.get(m).each(function(){g(k,this,m,b,c)})};for(var l=d;l<=f;l++)l!==null&&!(l>=j&&l<=e)&&a(l)}}}},create:function(a){return this.format("<li></li>",a)},format:function(a,c){a=i(a);for(var b=a.get(0).className.split(" "),d=0;d<b.length;d++)b[d].indexOf("jcarousel-")!=-1&&a.removeClass(b[d]);a.addClass(this.className("jcarousel-item")).addClass(this.className("jcarousel-item-"+c)).css({"float":this.options.rtl?"right":"left","list-style":"none"}).attr("jcarouselindex",c);return a},className:function(a){return a+" "+a+(!this.options.vertical?"-horizontal":"-vertical")},dimension:function(a,c){var b=a.jquery!==undefined?a[0]:a,d=!this.options.vertical?(b.offsetWidth||h.intval(this.options.itemFallbackDimension))+h.margin(b,"marginLeft")+h.margin(b,"marginRight"):(b.offsetHeight||h.intval(this.options.itemFallbackDimension))+h.margin(b,"marginTop")+h.margin(b,"marginBottom");if(c==null||d==c)return d;d=!this.options.vertical?c-h.margin(b,"marginLeft")-h.margin(b,"marginRight"):c-h.margin(b,"marginTop")-h.margin(b,"marginBottom");i(b).css(this.wh,d+"px");return this.dimension(b)},clipping:function(){return!this.options.vertical?this.clip[0].offsetWidth-h.intval(this.clip.css("borderLeftWidth"))-h.intval(this.clip.css("borderRightWidth")):this.clip[0].offsetHeight-h.intval(this.clip.css("borderTopWidth"))-h.intval(this.clip.css("borderBottomWidth"))},index:function(a,c){if(c==null)c=this.options.size;return Math.round(((a-1)/c-Math.floor((a-1)/c))*c)+1}});h.extend({defaults:function(a){return i.extend(q,a||{})},margin:function(a,c){if(!a)return 0;var b=a.jquery!==undefined?a[0]:a;if(c=="marginRight"&&i.browser.safari){var d={display:"block","float":"none",width:"auto"},f,j;i.swap(b,d,function(){f=b.offsetWidth});d.marginRight=0;i.swap(b,d,function(){j=b.offsetWidth});return j-f};return h.intval(i.css(b,c))},intval:function(a){a=parseInt(a,10);return isNaN(a)?0:a}});i.fn.jcarousel=function(a){if(typeof a=="string"){var c=i(this).data("jcarousel"),b=Array.prototype.slice.call(arguments,1);return c[a].apply(c,b)}else return this.each(function(){i(this).data("jcarousel",new h(this,a))})}})(jQuery);
(function($){Drupal.behaviors.jcarousel=function(context,settings){var settings=settings||Drupal.settings;for(var key in settings.jcarousel.carousels){var options=settings.jcarousel.carousels[key],$carousel=$(options.selector+':not(.jcarousel-processed)',context);if(!$carousel.length)continue;for(var optionKey in options)if(optionKey.match(/Callback$/)&&typeof options[optionKey]=='string'){var callbackFunction=window,callbackParents=options[optionKey].split('.');for(var objectParent in callbackParents)callbackFunction=callbackFunction[callbackParents[objectParent]];options[optionKey]=callbackFunction};if(options.ajax&&!options.itemLoadCallback)options.itemLoadCallback=Drupal.jcarousel.ajaxLoadCallback;if(options.auto&&options.autoPause&&!options.initCallback)options.initCallback=function(carousel,state){Drupal.jcarousel.autoPauseCallback(carousel,state)};if(!options.hasOwnProperty('buttonNextHTML')&&!options.hasOwnProperty('buttonPrevHTML')){options.buttonNextHTML='<a href="javascript:void(0)"></a>';options.buttonPrevHTML='<a href="javascript:void(0)"></a>'};$carousel.addClass('jcarousel-processed').jcarousel(options)}};Drupal.jcarousel={};Drupal.jcarousel.ajaxLoadCallback=function(jcarousel,state){if(state=='init'||jcarousel.has(jcarousel.first,jcarousel.last))return;var $list=jcarousel.list,$view=$list.parents('.view:first'),ajaxPath=Drupal.settings.jcarousel.ajaxPath,target=$view.get(0),settings;$.each(Drupal.settings.views.ajaxViews,function(i,viewSettings){if($view.is('.view-dom-id-'+viewSettings.view_dom_id))settings=viewSettings});var viewData={js:1,first:jcarousel.first-1,last:jcarousel.last};$.extend(viewData,settings);$.ajax({url:ajaxPath,type:'GET',data:viewData,success:function(response){Drupal.jcarousel.ajaxResponseCallback(jcarousel,target,response)},error:function(xhr){Drupal.jcarousel.ajaxErrorCallback(xhr,ajaxPath)},dataType:'json'})};Drupal.jcarousel.autoPauseCallback=function(carousel,state){function pauseAuto(){carousel.stopAuto()}
function resumeAuto(){carousel.startAuto()};carousel.clip.hover(pauseAuto,resumeAuto);carousel.buttonNext.hover(pauseAuto,resumeAuto);carousel.buttonPrev.hover(pauseAuto,resumeAuto)};Drupal.jcarousel.ajaxResponseCallback=function(jcarousel,target,response){if(response.debug)alert(response.debug);var $view=$(target),jcarousel=$view.find('ul.jcarousel').data('jcarousel');$('ul.jcarousel li',response.display).each(function(i){var itemNumber=this.className.replace(/.*?jcarousel-item-(\d+).*?/,'$1');jcarousel.add(itemNumber,this.innerHTML)});if(response.messages)$view.find('.views-messages').remove().end().prepend(response.messages)};Drupal.jcarousel.ajaxErrorCallback=function(xhr,path){var error_text='';if((xhr.status==500&&xhr.responseText)||xhr.status==200){error_text=xhr.responseText;error_text=error_text.replace("/&(lt|gt);/g",function(m,p){return(p=="lt")?"<":">"});error_text=error_text.replace(/<("[^"]*"|'[^']*'|[^'">])*>/gi,"");error_text=error_text.replace(/[\n]+\s+/g,"\n")}else if(xhr.status==500){error_text=xhr.status+': '+Drupal.t("Internal server error. Please see server or PHP logs for error information.")}else error_text=xhr.status+': '+xhr.statusText;alert(Drupal.t("An error occurred at @path.\n\nError Description: @error",{'@path':path,'@error':error_text}))}})(jQuery);
Drupal.settings.views=Drupal.settings.views||{ajax_path:'views/ajax'};Drupal.behaviors.quicktabs=function(context){$('.quicktabs_wrapper:not(.quicktabs-processed)',context).addClass('quicktabs-processed').each(function(){Drupal.quicktabs.prepare(this)})};Drupal.quicktabs=Drupal.quicktabs||{};Drupal.quicktabs.ajax={};Drupal.quicktabs.scripts={};Drupal.quicktabs.css={};Drupal.quicktabs.prepare=function(el){var i=0,qtid=el.id.substring(el.id.indexOf('-')+1);$(el).find('ul.quicktabs_tabs li a').each(function(){this.myTabIndex=i++;this.qtid=qtid;$(this).unbind('click').bind('click',quicktabsClick)});var $active_tab=$(el).children('.quicktabs_tabs').find('li.active a');if($active_tab.hasClass('qt_tab')||$active_tab.hasClass('qt_ajax_tab')){$active_tab.trigger('click')}else $(el).children('.quicktabs_tabs').find('li.first a').trigger('click');return false};Drupal.quicktabs.tab=function(el){this.element=el;this.tabIndex=el.myTabIndex;this.qtid=el.qtid;var qtKey='qt_'+this.qtid,i=0;for(var key in Drupal.settings.quicktabs[qtKey].tabs){if(i==this.tabIndex){this.tabObj=Drupal.settings.quicktabs[qtKey].tabs[key];this.tabKey=key};i++};this.tabpage_id='quicktabs_tabpage_'+this.qtid+'_'+this.tabKey;this.container=$('#quicktabs_container_'+this.qtid);this.tabpage=this.container.find('#'+this.tabpage_id);var tab=this;this.options={success:function(response){return tab.success(response)},complete:function(response){return tab.complete()}}};Drupal.quicktabs.tab.prototype.success=function(response){this.container.append(Drupal.theme('quicktabsResponse',this,response.data.content));$.extend(true,Drupal.settings,response.data.js_css.js_settings);Drupal.quicktabs.ajax.scripts(response.data.js_css.js_files);Drupal.quicktabs.ajax.css_files(response.data.js_css.css_files);Drupal.attachBehaviors(this.container)};Drupal.quicktabs.tab.prototype.complete=function(){this.stopProgress()};Drupal.quicktabs.tab.prototype.stopProgress=function(){if(this.progress.element)$(this.progress.element).remove();$(this.element).removeClass('progress-disabled').attr('disabled',false)};Drupal.quicktabs.tab.prototype.startProgress=function(){var progressBar=new Drupal.progressBar('qt-progress-'+this.element.id,null,null,null);progressBar.setProgress(-1,Drupal.t('Loading'));this.progress={};this.progress.element=$(progressBar.element).addClass('qt-progress qt-progress-bar');this.container.prepend(this.progress.element)};Drupal.quicktabs.tab.prototype.quicktabsAjaxView=function(){var tab=this;tab.container.append(Drupal.theme('quicktabsResponse',this,null));var target;target=$('#'+tab.tabpage_id+' > div');var ajax_path=Drupal.settings.views.ajax_path;if(ajax_path.constructor.toString().indexOf("Array")!=-1)ajax_path=ajax_path[0];var args;if(tab.tabObj.args!=''){args=tab.tabObj.args.join('/')}else args='';var viewData={view_name:tab.tabObj.vid,view_display_id:tab.tabObj.display,view_args:args};$.ajax({url:ajax_path,type:'GET',data:viewData,success:function(response){if(response.__callbacks)$.each(response.__callbacks,function(i,callback){eval(callback)(target,response)})},complete:function(){tab.stopProgress()},error:function(){alert(Drupal.t("An error occurred at @path.",{'@path':ajax_path}))},dataType:'json'})};var quicktabsClick=function(){var tab=new Drupal.quicktabs.tab(this);$(this).parents('li').siblings().removeClass('active');$(this).parents('li').addClass('active');tab.container.children().addClass('quicktabs-hide');if(tab.tabpage.hasClass('quicktabs_tabpage')){tab.tabpage.removeClass('quicktabs-hide')}else if($(this).hasClass('qt_ajax_tab')){tab.startProgress();if(tab.tabObj.type!='view'){var qtAjaxPath=Drupal.settings.basePath+'quicktabs/ajax/'+tab.tabObj.type+'/';switch(tab.tabObj.type){case'node':qtAjaxPath+=tab.tabObj.nid+'/'+tab.tabObj.teaser+'/'+tab.tabObj.hide_title;break;case'block':qtAjaxPath+=tab.tabObj.bid+'/'+tab.tabObj.hide_title;break;case'qtabs':qtAjaxPath+=tab.tabObj.qtid;break};$.ajax({url:qtAjaxPath,type:'GET',data:null,success:tab.options.success,complete:tab.options.complete,dataType:'json'})}else tab.quicktabsAjaxView()};return false};Drupal.theme.prototype.quicktabsResponse=function(tab,content){var newDiv=tab.tabObj.type=='view'?'<div id="'+tab.tabpage_id+'" class="quicktabs_tabpage"><div></div></div>':'<div id="'+tab.tabpage_id+'" class="quicktabs_tabpage">'+content+'</div>';return newDiv};Drupal.quicktabs.ajax.scripts=function(files){$('script').each(function(){Drupal.quicktabs.scripts[$(this).attr('src')]=$(this).attr('src')});var html='';for(i in files)if(!Drupal.quicktabs.scripts[files[i]]){Drupal.quicktabs.scripts[files[i]]=files[i];html+='<script type="text/javascript" src="'+files[i]+'"></script>'};if(html)$('body').append($(html))};Drupal.quicktabs.ajax.css_files=function(files){$('link:not(.qt-temporary-css)').each(function(){if($(this).attr('type')=='text/css')Drupal.quicktabs.css[$(this).attr('href')]=$(this).attr('href')});var html='';for(i in files)if(!Drupal.quicktabs.css[files[i].file])html+='<link class="qt-temporary-css" type="text/css" rel="stylesheet" media="'+files[i].media+'" href="'+files[i].file+'" />';if(html){$('link.ctools-temporary-css').remove();$('body').append($(html))}};
(function(){var m=document.uniqueID&&document.compatMode&&!window.XMLHttpRequest&&document.execCommand;try{if(!!m)m('BackgroundImageCache',false,true)}catch(oh){};var u=navigator.userAgent.toLowerCase(),is=function(t){return(u.indexOf(t)!=-1)};jQuery('html').addClass([(!(/opera|webtv/i.test(u))&&/msie (\d)/.test(u))?('ie ie'+RegExp.$1):is('firefox/2')?'gecko firefox2':is('firefox/3')?'gecko firefox3':is('gecko/')?'gecko':is('chrome/')?'chrome':is('opera/9')?'opera opera9':/opera (\d)/.test(u)?'opera opera'+RegExp.$1:is('konqueror')?'konqueror':is('applewebkit/')?'webkit safari':is('mozilla/')?'gecko':'',(is('x11')||is('linux'))?' linux':is('mac')?' mac':is('win')?' win':''].join(' '))})();var _artStyleUrlCached=null
function artGetStyleUrl(){if(null==_artStyleUrlCached){var ns;_artStyleUrlCached='';ns=jQuery('link');for(var i=0;i<ns.length;i++){var l=ns[i].href;if(l&&/style\.ie6\.css(\?.*)?$/.test(l))return _artStyleUrlCached=l.replace(/style\.ie6\.css(\?.*)?$/,'')};ns=jQuery('style');for(var i=0;i<ns.length;i++){var matches=new RegExp('import\\s+"([^"]+\\/)style\\.ie6\\.css"').exec(ns[i].html());if(null!=matches&&matches.length>0)return _artStyleUrlCached=matches[1]}};return _artStyleUrlCached}
function artFixPNG(element){if(jQuery.browser.msie&&parseInt(jQuery.browser.version)<7){var src;if(element.tagName=='IMG'){if(/\.png$/.test(element.src)){src=element.src;element.src=artGetStyleUrl()+'images/spacer.gif'}}else{src=element.currentStyle.backgroundImage.match(/url\("(.+\.png)"\)/i);if(src){src=src[1];element.runtimeStyle.backgroundImage='none'}};if(src)element.runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+src+"')"}};jQuery(function(){jQuery.each(jQuery('ul.art-menu>li,ul.art-vmenu>li'),function(i,val){var l=jQuery(val),s=l.children('span');if(s.length==0)return;var t=l.find('span.t').last();l.children('a').append(t.html(t.text()));s.remove()})});jQuery(function(){jQuery.each(jQuery('ul.art-menu>li:not(:last-child)'),function(i,val){jQuery('<li class="art-menu-li-separator"><span class="art-menu-separator"> </span></li>').insertAfter(val)});if(!jQuery.browser.msie||parseInt(jQuery.browser.version)>6)return;jQuery.each(jQuery('ul.art-menu li'),function(i,val){val.j=jQuery(val);val.UL=val.j.children('ul:first');if(val.UL.length==0)return;val.A=val.j.children('a:first');this.onmouseenter=function(){this.j.addClass('art-menuhover');this.UL.addClass('art-menuhoverUL');this.A.addClass('art-menuhoverA')};this.onmouseleave=function(){this.j.removeClass('art-menuhover');this.UL.removeClass('art-menuhoverUL');this.A.removeClass('art-menuhoverA')}})});jQuery(function(){if(!jQuery.browser.msie||parseInt(jQuery.browser.version)>7)return;var c=jQuery('div.art-content');if(c.length!==1)return;var s=c.parent().children('.art-layout-cell:not(.art-content)');jQuery(window).bind('resize',function(){if(c.w==c.parent().width())return;var w=0;c.css('width',"0");s.each(function(){w+=this.clientWidth});c.w=c.parent().width();c.css('width',c.w-w)}).trigger('resize');jQuery('div.art-content-layout-row').each(function(){this.c=jQuery(this).children('.art-layout-cell')}).bind('resize',function(){if(this.h==this.clientHeight)return;this.c.css('height','auto');this.h=this.clientHeight;this.c.css('height',this.h+'px')}).trigger('resize')});jQuery(function(){jQuery('ul.art-vmenu li').not(':first').before('<li class="art-vsubmenu-separator"><span class="art-vsubmenu-separator-span"> </span></li>');jQuery('ul.art-vmenu > li.art-vsubmenu-separator').removeClass('art-vsubmenu-separator').addClass('art-vmenu-separator').children('span').removeClass('art-vsubmenu-separator-span').addClass('art-vmenu-separator-span');jQuery('ul.art-vmenu > li > ul > li.art-vsubmenu-separator:first-child').removeClass('art-vsubmenu-separator').addClass('art-vmenu-separator').addClass('art-vmenu-separator-first').children('span').removeClass('art-vsubmenu-separator-span').addClass('art-vmenu-separator-span')})
function artButtonSetup(className){jQuery.each(jQuery("a."+className+", button."+className+", input."+className),function(i,val){var b=jQuery(val);if(!b.parent().hasClass('art-button-wrapper')){if(!b.hasClass('art-button'))b.addClass('art-button');jQuery("<span class='art-button-wrapper'><span class='art-button-l'> </span><span class='art-button-r'> </span></span>").insertBefore(b).append(b);if(b.hasClass('active'))b.parent().addClass('active')};b.mouseover(function(){jQuery(this).parent().addClass("hover")});b.mouseout(function(){var b=jQuery(this);b.parent().removeClass("hover");if(!b.hasClass('active'))b.parent().removeClass('active')});b.mousedown(function(){var b=jQuery(this);b.parent().removeClass("hover");if(!b.hasClass('active'))b.parent().addClass('active')});b.mouseup(function(){var b=jQuery(this);if(!b.hasClass('active'))b.parent().removeClass('active')})})};jQuery(function(){artButtonSetup("art-button")});jQuery(function(){jQuery.each(jQuery('button'),function(i,button){button.buttonName=button.getAttribute('name');button.buttonValue=button.getAttribute('value');button.prevOnClick=button.onclick;if(button.outerHTML){var re=/\bvalue="([^"]+)"/i;button.buttonValue=re.test(button.outerHTML)?re.exec(button.outerHTML)[1]:button.buttonValue};button.setAttribute("name","_"+button.buttonName);button.onclick=function(){if(this.prevOnClick)this.prevOnClick.apply(this);var f=this;while(f.tagName.toLowerCase()!="body"){if(f.tagName.toLowerCase()=="form"){var subButton=document.createElement("input");subButton.setAttribute("type","hidden");subButton.setAttribute("name",this.buttonName);subButton.setAttribute("value",this.buttonValue);f.appendChild(subButton);return true};f=f.parentNode};return false}})});jQuery(function(){var imgAssistElem=parent.document.getElementsByName("img_assist_header");if(null!=imgAssistElem&&imgAssistElem.length>0){imgAssistElem[0].scrolling="no";imgAssistElem[0].style.height="150px"}});

