var thumbresolution=381;var tilespace=6;var minPageWidth=242*5+tilespace*6;var maxPageWidth=thumbresolution*5+tilespace*6;var pagewidth=0;var mediaWidth=0;var mediaHeight=0;var slideWidth=0;var slideHeight=0;var numSlides=0;var offsetCount=0;var fadeTransparency=0.15;var lineHeight=18;$(function(){$(window).bind("resize",doResize);$("#thumb-0").find('a[href="/search"]').click(function(a){var b=$(this).parent();b.html('<form method="post" action="/search" accept-charset="utf-8" class="js-search"><input name="data[Search][searchstring]" type="text" id="SearchSearchstring" /></form>');b.find("input").focus();return false})});gethash=function(){var a=window.location.hash;if(a==""){return false}else{a=a.substring(1);return a}};sethash=function(a){window.location.hash=a};clearhash=function(){parent.location.hash="0"};function doResize(){var a=$(window).width();if(minimum_screen_size){a=minPageWidth}if(pagewidth==a-tilespace||(pagewidth==minPageWidth&&a-tilespace<=minPageWidth)){return true}pagewidth=a-tilespace;if(pagewidth<minPageWidth){pagewidth=minPageWidth}if(pagewidth>maxPageWidth){pagewidth=maxPageWidth}mediaWidth=Math.floor((pagewidth-6*tilespace)/5);mediaHeight=Math.round(2/3*mediaWidth);$("#page").css("width",mediaWidth*5+tilespace*6);$("div.imagethumb, table.menu, table.othermenu, div.emptythumb, div.mapthumb").resizeThumb();$("div.textthumb").text("resize");if($.data(window,"slideopen")){slideResize()}}(function(a){a.fn.resizeThumb=function(){return this.each(function(){var e=a(this);var c=mediaWidth;var b=mediaHeight;var d=b;e.css("width",c);e.css("height",d);if(e.hasClass("border")){c-=2;b-=2}e.find("img.thumbimage").css("width",c).css("height",b);e.find("div.info").css("max-width",c-10);e.find("div.video").css("width",c).css("height",b)})}})(jQuery);(function(b){var a={init:function(g){if(this.length==0){return}var d;var c;var f=this;var e;var h;if(g!=undefined&&f.length>1){e=f.not(g)}else{e=f}index=Math.floor(Math.random()*e.length);c=b(e.get(index));h=window.setTimeout(function(){if(c.data("hovervideo")){c.hovervideo("disable");c.hovervideo("showvideo")}else{var i=c.data("thumbData");c.hovervideo("add",i.video,i.image)}showDelay=window.setTimeout(function(){c.hovervideo("showvideo");d=c.find("video");d.unbind("ended");d.one("ended",function(){try{var k=b(this).parent().parent().parent();if(k.data("hovervideo")){k.hovervideo("enable");k.hovervideo("hidevideo")}else{k.hovervideo("hidevideo");k.hovervideo("remove")}f.cycleVideos(k)}catch(j){}});clearTimeout(showDelay)},500);clearTimeout(h)},5000);b.data(window,"timeoutID",h);return this.each(function(){})}};b.fn.cycleVideos=function(c){if(a[c]){return a[c].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof c==="object"||!c){return a.init.apply(this,arguments)}else{b.error("Method "+c+" does not exist on jQuery.cycleVideos")}}}})(jQuery);(function(b){var a={init:function(c){return this.each(function(){if(!touchDevice){b(this).bind("mouseenter.hovervideo",a.showvideo).bind("mouseleave.hovervideo",a.hidevideo);b(this).data("hovervideo",true);b(this).find("video").bind("ended",function(){try{this.play()}catch(d){b.error("error looping video")}})}})},showvideo:function(){var f=b(this);f.find("div.video").show();var c=f.find("video");var e=c.get(0);if(touchDevice&&e){}else{try{e.autoplay=true;e.play()}catch(d){}c.one("timeupdate",function(){f.delay(10).find("img.thumbimage").css("opacity",0)})}},hidevideo:function(){var f=b(this);var c=f.find("video");var e=c.get(0);try{e.pause()}catch(d){}b(e).unbind("timeupdate");f.find("img.thumbimage").css("opacity",100);f.find("div.video").hide()},enable:function(){return this.each(function(){if(!touchDevice){b(this).bind("mouseenter.hovervideo",a.showvideo).bind("mouseleave.hovervideo",a.hidevideo)}else{a.hidevideo.call(this)}})},disable:function(){return this.each(function(){b(this).unbind(".hovervideo")})},add:function(e,h,g){if(!touchDevice||g==true){var d="nocontrols";var j=this.get(0).id;var f=this.find(" > a");var i=0;if(f.length>0){i=1}else{i=0}var c=b('<div class="video"><video nocontrols autobuffer autoplay loop="loop" preload="none"><source src="/thumbvideos/'+e+'.mp4"  type="video/mp4" /><source src="/thumbvideos/'+e+'.ogv"  type="video/ogg" /><object width="100%" type="application/x-shockwave-flash" data="/files/player.swf" id="flashvideo'+j+'"><param name="wmode" value="transparent" /><param name="movie" value="/files/player.swf" /><param name="flashvars" value="autostart=true&id='+j+"&islink="+i+"&image=/img/thumbs/"+h+"&movieUrl=/thumbvideos/"+e+'.mp4" /><img src="/img/thumbs/'+h+'" width="100%" alt="video" title="video" /></object></video></div>');c.css("width","100%").css("height","auto").hide();if(i==1){f.append(c)}else{this.append(c)}$video=this.find("video");$video.bind("ended",function(){try{this.play()}catch(k){b.error("error looping video")}})}},remove:function(){return this.each(function(){b(this).find("div.video").remove()})},destroy:function(){return this.each(function(){b(this).unbind(".hovervideo")})}};b.fn.hovervideo=function(c){if(a[c]){return a[c].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof c==="object"||!c){return a.init.apply(this,arguments)}else{b.error("Method "+c+" does not exist on jQuery.hovervideo")}}}})(jQuery);function loopvideos(){$("video").bind("ended",function(){try{this.play()}catch(a){$.error("error looping video")}})}(function(b){var a={init:function(c){return this.each(function(){var f=b(this);var d=f.find(".infotext");if(d.length>0){b.data(this,"first",true);d.css("max-width","inherit");if(!touchDevice){d.hide();f.bind("mouseenter.hoverinfo",a.showinfo).bind("mouseleave.hoverinfo",a.hideinfo)}}var e=f.find(".clickable");if(e.length>0){e.bind("click",a.click)}})},showinfo:function(){var c=b(this).find(".infotext");if(b.data(this,"first")){b.data(this,"first",false)}c.stop(true,true);c.fadeIn(300,function(){c.css("opacity",0.99)});delete c},hideinfo:function(){var c=b(this).find(".infotext");c.stop(true,true);c.fadeOut(300);delete c},enable:function(){return this.each(function(){var d=b(this);var c=d.find(".info");if(c.length>0){b.data(this,"first",true);c.css("opacity",0.99);if(!touchDevice){d.bind("mouseenter.hoverinfo",a.showinfo).bind("mouseleave.hoverinfo",a.hideinfo)}}})},disable:function(){return this.each(function(){var d=b(this);var c=d.find(".info");if(c.length>0){c.css("opacity",0);b(this).unbind(".hoverinfo")}})},lock:function(){return this.each(function(){var d=b(this);var c=d.find(".info");if(c.length>0){c.show();c.css("visibility","visible");c.css("left",0);b(this).unbind(".hoverinfo")}})},unlock:function(){return this.each(function(){var d=b(this);var c=d.find(".info");if(c.length>0){b.data(this,"first",true);if(!touchDevice){d.bind("mouseenter.hoverinfo",a.showinfo).bind("mouseleave.hoverinfo",a.hideinfo)}else{c.hide()}}})},click:function(){window.location=b(this).next().attr("href")},destroy:function(){return this.each(function(){b(this).unbind(".hoverinfo")})}};b.fn.hoverinfo=function(c){if(a[c]){return a[c].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof c==="object"||!c){return a.init.apply(this,arguments)}else{b.error("Method "+c+" does not exist on jQuery.hoverinfo")}}}})(jQuery);(function(b){var a={init:function(c){return this.each(function(){$this=b(this);$this.disableSelection();$this.addClass("hoverpointer")})},resize:function(){return this.each(function(){$this=b(this);var g=$this.find("div.text");var f=mediaHeight;var e=parseInt(g.css("margin-left"));g.width(mediaWidth-e*2)-2;var d=Math.floor((mediaHeight-e)/lineHeight)*lineHeight;if(d<161){d=161}var c=mediaHeight-d+6;$this.css("margin-bottom",c);f-=c-tilespace;$this.css("width",mediaWidth);$this.css("height",f)})},destroy:function(){return this.each(function(){b(this).unbind("toggle")})}};b.fn.text=function(c){if(a[c]){return a[c].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof c==="object"||!c){return a.init.apply(this,arguments)}else{b.error("Method "+c+" does not exist on jQuery.text")}}}})(jQuery);(function(b){var a={init:function(c){return this.each(function(){b(this).click(a.togglenews)})},togglenews:function(){if(b.data(this,"newsopen")){a.closenews.call(this)}else{a.opennews.call(this)}return false},opennews:function(){var h=b(this);var g=b.data(window,"newsopen");b.data(this,"newsopen",true);if(g){var i=b("#"+g);i.news("closenews");i.trigger("mouseleave")}sethash(b.data(this,"thumbData").url);h.addClass("hoverpointer");h.hoverinfo("lock");h.hovervideo("disable");b.data(window,"newsopen",this.id);var f=h.find("div.text");if(f.length<=0){var e='<div class="text">'+b.data(this,"thumbData").newstext+"</div>";f=h.append(e);f=h.find("div.text");f.find("a").click(function(j){j.stopPropagation()})}f.width(mediaWidth-parseInt(f.css("margin-left"))*2);var d=mediaHeight;var c=(Math.ceil((d+f.outerHeight(true))/d))*d+2;h.animate({height:c},{duration:100});if(h.data("video")=="yes"){h.hovervideo("showvideo")}return false},closenews:function(d){var c=b(this);clearhash();c.hoverinfo("unlock");if(c.data("video")=="yes"){c.hovervideo("enable")}b.removeData(window,"newsopen");b.removeData(this,"newsopen");c.animate({height:mediaHeight},100);return false},destroy:function(){return this.each(function(){b(this).unbind("toggle")})}};b.fn.news=function(c){if(a[c]){return a[c].apply(this[0],Array.prototype.slice.call(arguments,1))}else{if(typeof c==="object"||!c){return a.init.apply(this,arguments)}else{b.error("Method "+c+" does not exist on jQuery.hoverinfo")}}}})(jQuery);(function(b){var a={init:function(c){return this.each(function(){})},inactiveinit:function(){var d=this.find("img");var c="/project/"+this.data("thumbData").url;d.wrap('<a href="'+c+'" target="_self"></a>');this.hovervideo("disable");this.hoverinfo("disable").click(function(){return false})}};b.fn.projectthumb=function(c){if(a[c]){return a[c].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof c==="object"||!c){return a.init.apply(this,arguments)}else{b.error("Method "+c+" does not exist on jQuery.projectthumb")}}}})(jQuery);function changeMediaType(d,c){currentMediaType=d;$.fn.mediamenu("changemedia",d);var b=$("div.imagethumb");var e=b.hasData("mediatype",d);var a=b.not(e);a.each(function(){var n=$(this);var g=$(this).find("img");var j=n.data("mediaData");var k;var l=false;if(typeof(j)==undefined||typeof(j)=="undefined"){l=true}else{if(typeof(j[d])==undefined||typeof(j[d])=="undefined"){l=true}else{if(typeof(j[d].image)==undefined||typeof(j[d].image)=="undefined"){l=true}else{if(j[d].image==""){l=true}}}}if(l){k="/img/var/placeholder.gif"}else{k="/img/thumbs/"+j[d].image}if(k==n.find("img.thumbimage").attr("src")){return true}var m=document.createElement("img");m.src=k;cache.push(m);$(m).addClass("thumbimage");n.animate({opacity:0},100);var o=new Date().getTime();if(c==true){n.find("a:last").html(m);var f=n.hasClass("inactive");if(!l&&j[d].video!=undefined&&j[d].video!=""){var h=j[d].video;var i=j[d].image;n.hovervideo("add",h,i);n.data("video","yes");n.hovervideo();if(f){n.hovervideo("disable")}}else{n.removeData("video")}if(l||j[d].border){n.addClass("border")}else{n.removeClass("border")}}else{$(m).one("load",function(){var q=new Date();var r=getWait(q.getTime()-o,1,200);n.queue(function(){n.find("a:last").html(m);var s=true;var u=n.hasClass("inactive");if(j[d]!=undefined&&j[d].video!=undefined&&j[d].video!=""){var w=j[d].video;var t=j[d].image;n.hovervideo("add",w,t);n.data("video","yes");n.hovervideo();if(u){n.hovervideo("disable")}s=true}else{n.removeData("video")}if(j[d]==undefined||j[d].border){n.addClass("border");s=true}else{n.removeClass("border")}if(s){n.resizeThumb()}var x=u?fadeTransparency:1;n.dequeue();window.setTimeout(function(){n.animate({opacity:x},200)},r)})}).each(function(){if(this.complete){$(m).trigger("load")}})}n.data("mediatype",d)})}function changeProjectType(g,f){currentProjectType=g;$.fn.typemenu("changetype",g);var b;if(g=="all"){b=$("div.inactive")}else{b=$("div.inactive").hasData("projecttype",g)}var e=b.hasData("video","yes");if(f==true){b.hoverinfo("enable").removeClass("inactive").unbind("click")}else{b.animate({opacity:1}).hoverinfo("enable").removeClass("inactive").unbind("click")}e.hovervideo("enable");if(g!="all"){var d=$("div.imagethumb");var a=d.hasData("projecttype",g);var c=d.not(a).not(".inactive");e=c.hasData("video","yes");e.hovervideo("disable");if(f==true){c.addClass("inactive").hoverinfo("disable").click(function(){return false})}else{c.animate({opacity:fadeTransparency}).addClass("inactive").hoverinfo("disable").click(function(){return false})}}}function projecthashchange(f,b){if(b!=true){b=false}var a=f.fragment.split("/");var c=a[0];var d=a[1];if(!c||c==""){c="all"}if(!d||d==""){d="all"}if(d!=currentMediaType){changeMediaType(d,b)}if(c!=currentProjectType){changeProjectType(c,b)}}(function(b){var a={init:function(c){return this.each(function(){var d=b(this);a.setmenu.call(d,c.projecttype)})},setmenu:function(c){b(this).find("a").each(function(){$this=b(this);var d=$this.data("url");d=(d==null)?"all":d;$this.attr("href",window.location.pathname+"#"+c+"/"+d)})},changemedia:function(c){var d=b("table.mediamenu");c=(c==null||c=="")?"all":c;d.find("li.selected").removeClass("selected");d.find("a").hasData("url",c).parent().addClass("selected");b("table.typemenu").typemenu("setmenu",c)},destroy:function(){return this.each(function(){b(this).unbind(".mediamenu")})}};b.fn.mediamenu=function(c){if(a[c]){return a[c].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof c==="object"||!c){return a.init.apply(this,arguments)}else{b.error("Method "+c+" does not exist on jQuery.hoverinfo")}}}})(jQuery);(function(b){var a={init:function(c){return this.each(function(){var d=b(this);a.setmenu.call(d,c.mediatype)})},setmenu:function(d,c){b(this).find("a").each(function(){var f=b(this);var e=f.data("url");e=(e==null)?"all":e;d=(d==undefined||d=="")?"all":d;f.attr("href",window.location.pathname+"#"+e+"/"+d)})},changetype:function(c){var d=b("table.typemenu");c=(c==null||c=="")?"all":c;d.find("li.selected").removeClass("selected");d.find("a").hasData("url",c).parent().addClass("selected");b("table.mediamenu").mediamenu("setmenu",c)},destroy:function(){return this.each(function(){b(this).unbind(".typemenu")})}};b.fn.typemenu=function(c){if(a[c]){return a[c].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof c==="object"||!c){return a.init.apply(this,arguments)}else{b.error("Method "+c+" does not exist on jQuery.hoverinfo")}}}})(jQuery);function slideResize(){var b=$.data(window,"slideopen");slideWidth=mediaWidth*3+tilespace*2;slideHeight=mediaHeight*3+tilespace*2;var e=offsetCount*mediaHeight+offsetCount*tilespace;var a=$("#slideroller");var i=$("#slide-container-js");var c=$("#left-arrow");var d=$("#right-arrow");var h=$("#slide_cover");$slide=$("#slideroller").find("div").hasData("url",b);var f=$("#page").position().left;i.css("left",mediaWidth+tilespace+f-100);i.css("top",e+tilespace);i.width(slideWidth+100*2);i.height(slideHeight);$("#slidewindow").width(slideWidth-2);$("#slidewindow").height(slideHeight-2);a.height(slideHeight-2).width(slideWidth*numSlides*2).find("img, div.vimeovideo").width(slideWidth-2).height(slideHeight-2).end().find("div.bigslide, div.textslide").width(slideWidth-20-2);a.find("div.bigslide").height(slideHeight-10);a.find("div#projectdata").height(mediaHeight-10);c.height(slideHeight);d.height(slideHeight);d.css("left",slideWidth+100);if($slide.data("embedded")){var g=$slide.find("iframe");g.attr("width",slideWidth).attr("height",slideHeight)}if(touchDevice){h.width($(document).width())}else{h.width($(window).width())}h.height($(document).height());$slide=$($slide);p=$slide.position().left*-1;a.css("left",p)}function slideHashChange(B){var f=B.fragment;if(f==0){var o=$.data(window,"slideopen");if(o!=undefined){var z=$("#slideroller").find("div").hasData("url",o);if(z.data("embedded")&&z.data("api_ready")){var r=z.find("iframe");r.get(0).api("api_pause")}if(touchDevice){var a=$("#slideroller").find("div.vimeovideo");a.find("iframe").remove();a.removeData("embedded");a.removeData("api_ready")}$(window).removeData("slideopen");$("#slide_cover").fadeOut("fast");$("#slide-container-js").fadeOut("fast",function(){$("#slide-container-js").find("iframe").hide();if($.data(window,"videomode")=="playall"){$("div.imagethumb").hasData("video","yes").each(function(){$(this).hovervideo("showvideo")})}if($.data(window,"videomode")=="cyclesome"){var e=$("div.imagethumb").hasData("video","yes").hasData("autoplay",true);e.hovervideo("disable").hovervideo();e.cycleVideos()}})}}else{if($.data(window,"slideopen")){var o=$.data(window,"slideopen");var z=$("#slideroller").find("div").hasData("url",o);if(z.data("embedded")&&z.data("api_ready")){var r=z.find("iframe");r.get(0).api("api_pause")}if(z.data("embedded")&&touchDevice){z.find("iframe").remove();z.removeData("embedded");z.removeData("api_ready")}var C=$("#slideroller");var t=$("#slideroller").find("div").hasData("url",f);var b=t.find(".info");b.hide();var h=t.data("vimeo_url");if(h){if(t.data("embedded")){if(t.data("api_ready")){var r=t.find("iframe");var j=r.get(0);j.api("api_play")}}else{t.embedVideo()}}var w=t.data("nextslide");var c=t.data("previousslide");$("#left-arrow").attr("href",window.location.pathname+"#"+c);$("#right-arrow").attr("href",window.location.pathname+"#"+w);$.data(window,"slideopen",f);var u;var i=false;var s=z.data("position");var y=t.data("position");var k=false;if(s>y){i=true}var g=false;if(s==1&&y==numSlides){k=true}if(s==numSlides&&y==1){k=true}if(k){z.animate({opacity:0},400,function(){t.css("opacity",0);t.css("left","0px");u=t.position().left*-1;C.css("left",u);t.delay(300).animate({opacity:1},400,function(){b.css("left",0);b.fadeIn();if(jQuery.browser.msie){t.get(0).style.removeAttribute("filter")}})})}else{if((t.data("scroll")==true&&!i)||(z.data("scroll")==true&&i)||g){u=t.position().left*-1;C.stop(true,false).animate({left:u},600,function(){b.css("left",0);b.fadeIn()})}else{if(i){t.css("left",slideWidth-2);z.animate({opacity:0},400,function(){t.css("left","0px");u=t.position().left*-1;C.css("left",u);z.show();b.css("left",0);b.fadeIn();if(jQuery.browser.msie){t.get(0).style.removeAttribute("filter");z.get(0).style.removeAttribute("filter")}})}else{t.css("opacity",0);t.css("left",-slideWidth+2);t.animate({opacity:1},400,function(){t.css("left","0px");u=t.position().left*-1;C.css("left",u);b.css("left",0);b.fadeIn();if(jQuery.browser.msie){t.get(0).style.removeAttribute("filter");z.get(0).style.removeAttribute("filter")}})}}}setSlideCounter(y,numSlides)}else{$(window).data("slideopen",f);var C=$("#slideroller");var t=$("#slideroller").find("div").hasData("url",f);t.css("opacity",1);$("#slide-container-js").find("iframe").show();if(jQuery.browser.msie){t.get(0).style.removeAttribute("filter")}var D=t.data("position");slideWidth=mediaWidth*3+tilespace*2;slideHeight=mediaHeight*3+tilespace*2;var d=0;var n=$(window).scrollTop();var m=$(document).height();if(n>m-slideHeight-4){offsetCount=Math.floor(m/mediaHeight)-3}else{offsetCount=Math.floor(n/mediaHeight)}offsetCount=offsetCount<0?0:offsetCount;d=offsetCount*mediaHeight+offsetCount*tilespace;$.scrollTo(d,{axis:"y",duration:300});slideResize();var w=t.data("nextslide");var c=t.data("previousslide");var h=t.data("vimeo_url");if(h){if(t.data("embedded")){var r=t.find("iframe");var j=r.get(0);Froogaloop.init([j]);j.api("api_play")}else{t.embedVideo()}}$("#left-arrow").attr("href",window.location.pathname+"#"+c);$("#right-arrow").attr("href",window.location.pathname+"#"+w);$("div.imagethumb").hasData("video","yes").each(function(){$(this).hovervideo("hidevideo")});var E=$.data(window,"timeoutID");if(E!=undefined){clearTimeout(E)}var l=$("#slide_cover");var A=1-fadeTransparency;l.css("opacity",0);l.show();l.animate({opacity:A},200,function(){if(jQuery.browser.msie){this.style.removeAttribute("filter")}});var x=$("#slide-container-js");x.css("opacity",0);x.show();var b=t.find(".info");b.hide();x.animate({opacity:1},200,function(){if(jQuery.browser.msie){this.style.removeAttribute("filter");b.css("left",0)}b.delay(200).fadeIn()});if($.data(window,"columnsupport")==undefined){setColumnSupport()}if(!$.data(window,"columnsupport")){var q=$("div.columnslide");if(q.length>0){q.each(function(){var e=$(this);if(!e.data("columnized")){e.columnize({columns:3})}else{e.trigger("rebuild")}})}}t=$(t);u=t.position().left*-1;C.css("left",u);setSlideCounter(D,numSlides)}}}function setSlideCounter(b,a){$("#slidecounter").html(b+" / "+a);if(isNaN(gethash())){$("#slidecounter").hide()}else{$("#slidecounter").show()}}function setColumnSupport(){var a=$.support.cssProperty("columnCount")&&$.support.cssProperty("columnGap");$.data(window,"columnsupport",a)}function bindKeyboard(){$(document.documentElement).keyup(function(a){if($.data(window,"slideopen")){switch(a.keyCode){case 39:window.location=$("#right-arrow").attr("href");break;case 37:window.location=$("#left-arrow").attr("href");break;case 27:clearhash();break}}})}(function(b){var a={init:function(c){return this.each(function(){var d=b(this);d.find("a").attr("href",window.location.pathname+"#"+d.data("thumbData").id)})},url:function(c){return this.each(function(){var d=b(this);if(c!=undefined){d.find("a").attr("href",window.location.pathname+"#"+c+d.data("thumbData").url)}else{d.find("a").attr("href",window.location.pathname+"#"+d.data("thumbData").url)}})}};b.fn.slideLink=function(c){if(a[c]){return a[c].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof c==="object"||!c){return a.init.apply(this,arguments)}else{b.error("Method "+c+" does not exist on jQuery.slideLink")}}}})(jQuery);(function(a){a.fn.embedVideo=function(){return this.each(function(){var e=a(this);var b=e.data("vimeo_id");var d="vimeo"+e.data("vimeo_id");var c=a("<iframe onload=\"videoloaded('"+d+'\');" src="http://player.vimeo.com/video/'+b+"?autoplay=0&js_api=1&js_swf_id="+d+'" id="'+d+'" width="'+(slideWidth-2)+'" height="'+(slideHeight-2)+'" allowtransparency="yes" frameborder="no" />');e.html(c);e.data("embedded",true)})}})(jQuery);function videoloaded(d){var c=$("#"+d).parent();var b=$("#"+d);var a=b.get(0);Froogaloop.init([a]);a.addEvent("onLoad",function(){c.data("api_ready",true);if($.data(window,"slideopen")==c.data("url")){a.api("api_play")}})}function showMaps(c,g,d,f){var m=new google.maps.MarkerImage("/img/var/marker-l.png",google.maps.Point(45,24),google.maps.Point(23,24));var l;var n;var i=new google.maps.LatLng(c,g);var a={zoom:14,center:i,disableDefaultUI:true,mapTypeId:google.maps.MapTypeId.SATELLITE,NavigationControlStyle:google.maps.NavigationControlStyle.SMALL};l=new google.maps.Map(document.getElementById("thumb-1"),a);var e={clickable:false,map:l,position:i,icon:m};n=new google.maps.Marker(e);$("#thumb-1").removeClass("imagethumb").addClass("mapthumb");google.maps.event.addListener(l,"tilesloaded",function(){$("#thumb-1").find("span").remove();$("#thumb-1").find("a").remove()});var k;var b;var o=new google.maps.LatLng(d,f);var j={zoom:14,center:o,disableDefaultUI:true,mapTypeId:google.maps.MapTypeId.SATELLITE,NavigationControlStyle:google.maps.NavigationControlStyle.SMALL};k=new google.maps.Map(document.getElementById("thumb-12"),j);google.maps.event.addListener(k,"tilesloaded",function(){$("#thumb-12").find("span").remove();$("#thumb-12").find("a").remove()});var h={clickable:false,map:k,position:o,icon:m};b=new google.maps.Marker(h);$("#thumb-12").removeClass("imagethumb").addClass("mapthumb")}function flashClick(b){var e=$(b);try{var c=$.data(e.get(0),"events").click}catch(d){}if(c!=undefined){e.click()}else{var a=e.find(" > a");window.location=a.attr("href")}$this.attr("href",window.location.pathname+"#"+prefix+"/"+url)}(function(b){var a=[];b.preLoadImages=function(){var e=arguments.length;for(var d=e;d--;){var c=document.createElement("img");c.src=arguments[d];a.push(c)}}})(jQuery);jQuery.fn.extend({disableSelection:function(){return this.each(function(){this.onselectstart=function(){return false};this.unselectable="on";jQuery(this).css("user-select","none");jQuery(this).css("-o-user-select","none");jQuery(this).css("-moz-user-select","none");jQuery(this).css("-khtml-user-select","none");jQuery(this).css("-webkit-user-select","none")})}});jQuery.expr[":"].data=function(c,b,a){a[0]=a[0].replace(/:data\(|\)$/g,"");var d=a[0].split(",");return d[1]?jQuery(c).data(d[0])==d[1]:!!jQuery(c).data(key)};(function(a){a.fn.hasData=function(b,c){return this.filter(function(d){return c?jQuery(this).data(b)==c:!!jQuery(this).data(b)})}})(jQuery);$.support.cssProperty=(function(){function a(g,f){var c=document.body||document.documentElement,e=c.style;if(typeof e=="undefined"){return false}if(typeof e[g]=="string"){return f?g:true}v=["Moz","Webkit","Khtml","O","Ms"],g=g.charAt(0).toUpperCase()+g.substr(1);for(var d=0;d<v.length;d++){if(typeof e[v[d]+g]=="string"){return f?(v[d]+g):true}}}return a})();
