function badBrowser(){if($.browser.msie&&parseInt($.browser.version)<=6){return true}return false}function getBadBrowser(a){if(document.cookie.length>0){c_start=document.cookie.indexOf(a+"=");if(c_start!=-1){c_start=c_start+a.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1){c_end=document.cookie.length}return unescape(document.cookie.substring(c_start,c_end))}}return""}function setBadBrowser(b,c,a){var d=new Date();d.setDate(d.getDate()+a);document.cookie=b+"="+escape(c)+((a==null)?"":";expires="+d.toGMTString())}if(badBrowser()&&getBadBrowser("browser-warning")!="seen"){$(function(){$("<div id='browser-warning'>Gasp! You're using an outdated browser not supported by this site. Please upgrade to <a href='http://www.google.com/chrome'>Chrome</a>, <a href='http://getfirefox.com'>FireFox</a>, or <a href='http://www.microsoft.com/windows/internet-explorer/'>IE8</a>. Thanks!</div>").prependTo("body");$("#warning-close").click(function(){setBadBrowser("browser-warning","seen");$("#browser-warning").slideUp("slow");return false})})}(function(a){a.browserTest=function(f,h){var g="unknown",d="X",b=function(k,j){for(var c=0;c<j.length;c=c+1){k=k.replace(j[c][0],j[c][1])}return k},i=function(l,k,j,n){var m={name:b((k.exec(l)||[g,g])[1],j)};m[m.name]=true;m.version=(n.exec(l)||[d,d,d,d])[3];if(m.name.match(/safari/)&&m.version>400){m.version="2.0"}if(m.name==="presto"){m.version=(a.browser.version>9.27)?"futhark":"linear_b"}m.versionNumber=parseFloat(m.version,10)||0;m.versionX=(m.version!==d)?(m.version+"").substr(0,1):d;m.className=m.name+m.versionX;return m};f=(f.match(/Opera|Navigator|Minefield|KHTML|Chrome/)?b(f,[[/(Firefox|MSIE|KHTML,\slike\sGecko|Konqueror)/,""],["Chrome Safari","Chrome"],["KHTML","Konqueror"],["Minefield","Firefox"],["Navigator","Netscape"]]):f).toLowerCase();a.browser=a.extend((!h)?a.browser:{},i(f,/(camino|chrome|firefox|netscape|konqueror|lynx|msie|opera|safari)/,[],/(camino|chrome|firefox|netscape|netscape6|opera|version|konqueror|lynx|msie|safari)(\/|\s)([a-z0-9\.\+]*?)(\;|dev|rel|\s|$)/));a.layout=i(f,/(gecko|konqueror|msie|opera|webkit)/,[["konqueror","khtml"],["msie","trident"],["opera","presto"]],/(applewebkit|rv|konqueror|msie)(\:|\/|\s)([a-z0-9\.]*?)(\;|\)|\s)/);a.os={name:(/(win|mac|linux|sunos|solaris|iphone)/.exec(navigator.platform.toLowerCase())||[g])[0].replace("sunos","solaris")};if(!h){a("html").addClass([a.os.name,a.browser.name,a.browser.className,a.layout.name,a.layout.className].join(" "))}};a.browserTest(navigator.userAgent)})(jQuery);(function(B){var K,T,R,L,d,x,J,O,A,E=0,I={},i=[],f=0,G={},z=[],g=null,n=new Image(),h=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,l=/[^\.]\.(swf)\s*$/i,r,M=1,a,c,P=false,D=20,u=B.extend(B("<div/>")[0],{prop:0}),k=0,S=!B.support.opacity&&!window.XMLHttpRequest,j=function(){T.hide();n.onerror=n.onload=null;if(g){g.abort()}K.empty()},q=function(){B.fancybox('<p id="fancybox_error">The requested content cannot be loaded.<br />Please try again later.</p>',{scrolling:"no",padding:20,transitionIn:"none",transitionOut:"none"})},F=function(){return[B(window).width(),B(window).height(),B(document).scrollLeft(),B(document).scrollTop()]},b=function(){var W=F(),ad={},ab=G.margin,X=G.autoScale,ac=(D+ab)*2,aa=(D+ab)*2,Y=(G.padding*2),Z;if(G.width.toString().indexOf("%")>-1){ad.width=((W[0]*parseFloat(G.width))/100)-(D*2);X=false}else{ad.width=G.width+Y}if(G.height.toString().indexOf("%")>-1){ad.height=((W[1]*parseFloat(G.height))/100)-(D*2);X=false}else{ad.height=G.height+Y}if(X&&(ad.width>(W[0]-ac)||ad.height>(W[1]-aa))){if(I.type=="image"||I.type=="swf"){ac+=Y;aa+=Y;Z=Math.min(Math.min(W[0]-ac,G.width)/G.width,Math.min(W[1]-aa,G.height)/G.height);ad.width=Math.round(Z*(ad.width-Y))+Y;ad.height=Math.round(Z*(ad.height-Y))+Y}else{ad.width=Math.min(ad.width,(W[0]-ac));ad.height=Math.min(ad.height,(W[1]-aa))}}ad.top=W[3]+((W[1]-(ad.height+(D*2)))*0.5);ad.left=W[2]+((W[0]-(ad.width+(D*2)))*0.5);if(G.autoScale===false){ad.top=Math.max(W[3]+ab,ad.top);ad.left=Math.max(W[2]+ab,ad.left)}return ad},N=function(W){if(W&&W.length){switch(G.titlePosition){case"inside":return W;case"over":return'<span id="fancybox-title-over">'+W+"</span>";default:return'<span id="fancybox-title-wrap"><span id="fancybox-title-left"></span><span id="fancybox-title-main">'+W+'</span><span id="fancybox-title-right"></span></span>'}}return false},t=function(){var Y=G.title,X=c.width-(G.padding*2),W="fancybox-title-"+G.titlePosition;B("#fancybox-title").remove();k=0;if(G.titleShow===false){return}Y=B.isFunction(G.titleFormat)?G.titleFormat(Y,z,f,G):N(Y);if(!Y||Y===""){return}B('<div id="fancybox-title" class="'+W+'" />').css({width:X,paddingLeft:G.padding,paddingRight:G.padding}).html(Y).appendTo("body");switch(G.titlePosition){case"inside":k=B("#fancybox-title").outerHeight(true)-G.padding;c.height+=k;break;case"over":B("#fancybox-title").css("bottom",G.padding);break;default:B("#fancybox-title").css("bottom",B("#fancybox-title").outerHeight(true)*-1);break}B("#fancybox-title").appendTo(d).hide()},p=function(){B(document).unbind("keydown.fb").bind("keydown.fb",function(W){if(W.keyCode==27&&G.enableEscapeButton){W.preventDefault();B.fancybox.close()}else{if(W.keyCode==37){W.preventDefault();B.fancybox.prev()}else{if(W.keyCode==39){W.preventDefault();B.fancybox.next()}}}});if(B.fn.mousewheel){L.unbind("mousewheel.fb");if(z.length>1){L.bind("mousewheel.fb",function(W,X){W.preventDefault();if(P||X===0){return}if(X>0){B.fancybox.prev()}else{B.fancybox.next()}})}}if(!G.showNavArrows){return}if((G.cyclic&&z.length>1)||f!==0){O.show()}if((G.cyclic&&z.length>1)||f!=(z.length-1)){A.show()}},U=function(){var W,X;if((z.length-1)>f){W=z[f+1].href;if(typeof W!=="undefined"&&W.match(h)){X=new Image();X.src=W}}if(f>0){W=z[f-1].href;if(typeof W!=="undefined"&&W.match(h)){X=new Image();X.src=W}}},w=function(){x.css("overflow",(G.scrolling=="auto"?(G.type=="image"||G.type=="iframe"||G.type=="swf"?"hidden":"auto"):(G.scrolling=="yes"?"auto":"visible")));if(!B.support.opacity){x.get(0).style.removeAttribute("filter");L.get(0).style.removeAttribute("filter")}B("#fancybox-title").show();if(G.hideOnContentClick){x.one("click",B.fancybox.close)}if(G.hideOnOverlayClick){R.one("click",B.fancybox.close)}if(G.showCloseButton){J.show()}p();B(window).bind("resize.fb",B.fancybox.center);if(G.centerOnScroll){B(window).bind("scroll.fb",B.fancybox.center)}else{B(window).unbind("scroll.fb")}if(B.isFunction(G.onComplete)){G.onComplete(z,f,G)}P=false;U()},H=function(aa){var X=Math.round(a.width+(c.width-a.width)*aa),W=Math.round(a.height+(c.height-a.height)*aa),Z=Math.round(a.top+(c.top-a.top)*aa),Y=Math.round(a.left+(c.left-a.left)*aa);L.css({width:X+"px",height:W+"px",top:Z+"px",left:Y+"px"});X=Math.max(X-G.padding*2,0);W=Math.max(W-(G.padding*2+(k*aa)),0);x.css({width:X+"px",height:W+"px"});if(typeof c.opacity!=="undefined"){L.css("opacity",(aa<0.5?0.5:aa))}},y=function(W){var X=W.offset();X.top+=parseFloat(W.css("paddingTop"))||0;X.left+=parseFloat(W.css("paddingLeft"))||0;X.top+=parseFloat(W.css("border-top-width"))||0;X.left+=parseFloat(W.css("border-left-width"))||0;X.width=W.width();X.height=W.height();return X},V=function(){var Z=I.orig?B(I.orig):false,Y={},X,W;if(Z&&Z.length){X=y(Z);Y={width:(X.width+(G.padding*2)),height:(X.height+(G.padding*2)),top:(X.top-G.padding-D),left:(X.left-G.padding-D)}}else{W=F();Y={width:1,height:1,top:W[3]+W[1]*0.5,left:W[2]+W[0]*0.5}}return Y},v=function(){T.hide();if(L.is(":visible")&&B.isFunction(G.onCleanup)){if(G.onCleanup(z,f,G)===false){B.event.trigger("fancybox-cancel");P=false;return}}z=i;f=E;G=I;x.get(0).scrollTop=0;x.get(0).scrollLeft=0;if(G.overlayShow){if(S){B("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"})}R.css({"background-color":G.overlayColor,opacity:G.overlayOpacity}).unbind().show()}c=b();t();if(L.is(":visible")){B(J.add(O).add(A)).hide();var X=L.position(),W;a={top:X.top,left:X.left,width:L.width(),height:L.height()};W=(a.width==c.width&&a.height==c.height);x.fadeOut(G.changeFade,function(){var Y=function(){x.html(K.contents()).fadeIn(G.changeFade,w)};B.event.trigger("fancybox-change");x.empty().css("overflow","hidden");if(W){x.css({top:G.padding,left:G.padding,width:Math.max(c.width-(G.padding*2),1),height:Math.max(c.height-(G.padding*2)-k,1)});Y()}else{x.css({top:G.padding,left:G.padding,width:Math.max(a.width-(G.padding*2),1),height:Math.max(a.height-(G.padding*2),1)});u.prop=0;B(u).animate({prop:1},{duration:G.changeSpeed,easing:G.easingChange,step:H,complete:Y})}});return}L.css("opacity",1);if(G.transitionIn=="elastic"){a=V();x.css({top:G.padding,left:G.padding,width:Math.max(a.width-(G.padding*2),1),height:Math.max(a.height-(G.padding*2),1)}).html(K.contents());L.css(a).show();if(G.opacity){c.opacity=0}u.prop=0;B(u).animate({prop:1},{duration:G.speedIn,easing:G.easingIn,step:H,complete:w})}else{x.css({top:G.padding,left:G.padding,width:Math.max(c.width-(G.padding*2),1),height:Math.max(c.height-(G.padding*2)-k,1)}).html(K.contents());L.css(c).fadeIn(G.transitionIn=="none"?0:G.speedIn,w)}},s=function(){K.width(I.width);K.height(I.height);if(I.width=="auto"){I.width=K.width()}if(I.height=="auto"){I.height=K.height()}v()},Q=function(){P=true;I.width=n.width;I.height=n.height;B("<img />").attr({id:"fancybox-img",src:n.src,alt:I.title}).appendTo(K);v()},m=function(){j();var ab=i[E],Y,Z,ad,ac,X,W,aa;I=B.extend({},B.fn.fancybox.defaults,(typeof B(ab).data("fancybox")=="undefined"?I:B(ab).data("fancybox")));ad=ab.title||B(ab).title||I.title||"";if(ab.nodeName&&!I.orig){I.orig=B(ab).children("img:first").length?B(ab).children("img:first"):B(ab)}if(ad===""&&I.orig){ad=I.orig.attr("alt")}if(ab.nodeName&&(/^(?:javascript|#)/i).test(ab.href)){Y=I.href||null}else{Y=I.href||ab.href||null}if(I.type){Z=I.type;if(!Y){Y=I.content}}else{if(I.content){Z="html"}else{if(Y){if(Y.match(h)){Z="image"}else{if(Y.match(l)){Z="swf"}else{if(B(ab).hasClass("iframe")){Z="iframe"}else{if(Y.match(/#/)){ab=Y.substr(Y.indexOf("#"));Z=B(ab).length>0?"inline":"ajax"}else{Z="ajax"}}}}}else{Z="inline"}}}I.type=Z;I.href=Y;I.title=ad;if(I.autoDimensions&&I.type!=="iframe"&&I.type!=="swf"){I.width="auto";I.height="auto"}if(I.modal){I.overlayShow=true;I.hideOnOverlayClick=false;I.hideOnContentClick=false;I.enableEscapeButton=false;I.showCloseButton=false}if(B.isFunction(I.onStart)){if(I.onStart(i,E,I)===false){P=false;return}}K.css("padding",(D+I.padding+I.margin));B(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){B(this).replaceWith(x.children())});switch(Z){case"html":K.html(I.content);s();break;case"inline":B('<div class="fancybox-inline-tmp" />').hide().insertBefore(B(ab)).bind("fancybox-cleanup",function(){B(this).replaceWith(x.children())}).bind("fancybox-cancel",function(){B(this).replaceWith(K.children())});B(ab).appendTo(K);s();break;case"image":P=false;B.fancybox.showActivity();n=new Image();n.onerror=function(){q()};n.onload=function(){n.onerror=null;n.onload=null;Q()};n.src=Y;break;case"swf":ac='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+I.width+'" height="'+I.height+'"><param name="movie" value="'+Y+'"></param>';X="";B.each(I.swf,function(ae,af){ac+='<param name="'+ae+'" value="'+af+'"></param>';X+=" "+ae+'="'+af+'"'});ac+='<embed src="'+Y+'" type="application/x-shockwave-flash" width="'+I.width+'" height="'+I.height+'"'+X+"></embed></object>";K.html(ac);s();break;case"ajax":W=Y.split("#",2);aa=I.ajax.data||{};if(W.length>1){Y=W[0];if(typeof aa=="string"){aa+="&selector="+W[1]}else{aa.selector=W[1]}}P=false;B.fancybox.showActivity();g=B.ajax(B.extend(I.ajax,{url:Y,data:aa,error:q,success:function(af,ag,ae){if(g.status==200){K.html(af);s()}}}));break;case"iframe":B('<iframe id="fancybox-frame" name="fancybox-frame'+new Date().getTime()+'" frameborder="0" hspace="0" scrolling="'+I.scrolling+'" src="'+I.href+'"></iframe>').appendTo(K);v();break}},o=function(){if(!T.is(":visible")){clearInterval(r);return}B("div",T).css("top",(M*-40)+"px");M=(M+1)%12},C=function(){if(B("#fancybox-wrap").length){return}B("body").append(K=B('<div id="fancybox-tmp"></div>'),T=B('<div id="fancybox-loading"><div></div></div>'),R=B('<div id="fancybox-overlay"></div>'),L=B('<div id="fancybox-wrap"></div>'));if(!B.support.opacity){L.addClass("fancybox-ie");T.addClass("fancybox-ie")}d=B('<div id="fancybox-outer"></div>').append('<div class="fancy-bg" id="fancy-bg-n"></div><div class="fancy-bg" id="fancy-bg-ne"></div><div class="fancy-bg" id="fancy-bg-e"></div><div class="fancy-bg" id="fancy-bg-se"></div><div class="fancy-bg" id="fancy-bg-s"></div><div class="fancy-bg" id="fancy-bg-sw"></div><div class="fancy-bg" id="fancy-bg-w"></div><div class="fancy-bg" id="fancy-bg-nw"></div>').appendTo(L);d.append(x=B('<div id="fancybox-inner"></div>'),J=B('<a id="fancybox-close"></a>'),O=B('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),A=B('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>'));J.click(B.fancybox.close);T.click(B.fancybox.cancel);O.click(function(W){W.preventDefault();B.fancybox.prev()});A.click(function(W){W.preventDefault();B.fancybox.next()});if(S){R.get(0).style.setExpression("height","document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px'");T.get(0).style.setExpression("top","(-20 + (document.documentElement.clientHeight ? document.documentElement.clientHeight/2 : document.body.clientHeight/2 ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop )) + 'px'");d.prepend('<iframe id="fancybox-hide-sel-frame" src="javascript:\'\';" scrolling="no" frameborder="0" ></iframe>')}};B.fn.fancybox=function(W){B(this).data("fancybox",B.extend({},W,(B.metadata?B(this).metadata():{}))).unbind("click.fb").bind("click.fb",function(Y){Y.preventDefault();if(P){return}P=true;B(this).blur();i=[];E=0;var X=B(this).attr("rel")||"";if(!X||X==""||X==="nofollow"){i.push(this)}else{i=B("a[rel="+X+"], area[rel="+X+"]");E=i.index(this)}m();return false});return this};B.fancybox=function(Z){if(P){return}P=true;var Y=typeof arguments[1]!=="undefined"?arguments[1]:{};i=[];E=Y.index||0;if(B.isArray(Z)){for(var X=0,W=Z.length;X<W;X++){if(typeof Z[X]=="object"){B(Z[X]).data("fancybox",B.extend({},Y,Z[X]))}else{Z[X]=B({}).data("fancybox",B.extend({content:Z[X]},Y))}}i=jQuery.merge(i,Z)}else{if(typeof Z=="object"){B(Z).data("fancybox",B.extend({},Y,Z))}else{Z=B({}).data("fancybox",B.extend({content:Z},Y))}i.push(Z)}if(E>i.length||E<0){E=0}m()};B.fancybox.showActivity=function(){clearInterval(r);T.show();r=setInterval(o,66)};B.fancybox.hideActivity=function(){T.hide()};B.fancybox.next=function(){return B.fancybox.pos(f+1)};B.fancybox.prev=function(){return B.fancybox.pos(f-1)};B.fancybox.pos=function(W){if(P){return}W=parseInt(W,10);if(W>-1&&z.length>W){E=W;m()}if(G.cyclic&&z.length>1&&W<0){E=z.length-1;m()}if(G.cyclic&&z.length>1&&W>=z.length){E=0;m()}return};B.fancybox.cancel=function(){if(P){return}P=true;B.event.trigger("fancybox-cancel");j();if(I&&B.isFunction(I.onCancel)){I.onCancel(i,E,I)}P=false};B.fancybox.close=function(){if(P||L.is(":hidden")){return}P=true;if(G&&B.isFunction(G.onCleanup)){if(G.onCleanup(z,f,G)===false){P=false;return}}j();B(J.add(O).add(A)).hide();B("#fancybox-title").remove();L.add(x).add(R).unbind();B(window).unbind("resize.fb scroll.fb");B(document).unbind("keydown.fb");function W(){R.fadeOut("fast");L.hide();B.event.trigger("fancybox-cleanup");x.empty();if(B.isFunction(G.onClosed)){G.onClosed(z,f,G)}z=I=[];f=E=0;G=I={};P=false}x.css("overflow","hidden");if(G.transitionOut=="elastic"){a=V();var X=L.position();c={top:X.top,left:X.left,width:L.width(),height:L.height()};if(G.opacity){c.opacity=1}u.prop=1;B(u).animate({prop:0},{duration:G.speedOut,easing:G.easingOut,step:H,complete:W})}else{L.fadeOut(G.transitionOut=="none"?0:G.speedOut,W)}};B.fancybox.resize=function(){var X,W;if(P||L.is(":hidden")){return}P=true;X=x.wrapInner("<div style='overflow:auto'></div>").children();W=X.height();L.css({height:W+(G.padding*2)+k});x.css({height:W});X.replaceWith(X.children());B.fancybox.center()};B.fancybox.center=function(){P=true;var W=F(),X=G.margin,Y={};Y.top=W[3]+((W[1]-((L.height()-k)+(D*2)))*0.5);Y.left=W[2]+((W[0]-(L.width()+(D*2)))*0.5);Y.top=Math.max(W[3]+X,Y.top);Y.left=Math.max(W[2]+X,Y.left);L.css(Y);P=false};B.fn.fancybox.defaults={padding:10,margin:20,opacity:false,modal:false,cyclic:false,scrolling:"auto",width:560,height:340,autoScale:true,autoDimensions:true,centerOnScroll:false,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:true,hideOnContentClick:false,overlayShow:true,overlayOpacity:0.3,overlayColor:"#666",titleShow:true,titlePosition:"outside",titleFormat:null,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:true,showNavArrows:true,enableEscapeButton:true,onStart:null,onCancel:null,onComplete:null,onCleanup:null,onClosed:null};B(document).ready(function(){C()})})(jQuery);jQuery.fn.nospam=function(a){a=jQuery.extend({replaceText:false,filterLevel:"normal"},a);return this.each(function(){e=null;if(a.filterLevel=="low"){if($(this).is("a[rel]")){e=$(this).attr("rel").replace("..","@").replace(".",".")}else{e=$(this).text().replace("..","@").replace(".",".")}}else{if($(this).is("a[rel]")){e=$(this).attr("rel").split("").reverse().join("").replace("..","@").replace(".",".")}else{e=$(this).text().split("").reverse().join("").replace("..","@").replace(".",".")}}if(e){if($(this).is("a[rel]")){$(this).attr("href","mailto:"+e);if(a.replaceText){$(this).text(e)}}else{$(this).text(e)}}})};(function(b){var a=[];b.preLoadImages=function(){var f=arguments.length;for(var d=f;d--;){var c=document.createElement("img");c.src=arguments[d];a.push(c)}}})(jQuery);(function(a){a.fn.customFadeIn=function(b,c){a(this).fadeIn(b,function(){if(jQuery.browser.msie){a(this).get(0).style.removeAttribute("filter")}if(c!=undefined){c()}})};a.fn.customFadeOut=function(b,c){a(this).fadeOut(b,function(){if(jQuery.browser.msie){a(this).get(0).style.removeAttribute("filter")}if(c!=undefined){c()}})}})(jQuery);(function(a){a.fn.ellipsis=function(b){var c=document.documentElement.style;if(!("textOverflow" in c||"OTextOverflow" in c)){return this.each(function(){var g=a(this);if(g.css("overflow")=="hidden"){var j=g.html();var d=g.width();var f=a(this.cloneNode(true)).hide().css({position:"absolute",width:"auto",overflow:"visible","max-width":"inherit"});g.after(f);var i=j;while(i.length>0&&f.width()>g.width()){i=i.substr(0,i.length-1);f.html(i+"...")}g.html(f.html());f.remove();if(b==true){var h=g.width();setInterval(function(){if(g.width()!=h){h=g.width();g.html(j);g.ellipsis()}},200)}}})}else{return this}}})(jQuery);(function(a){a.fn.hoverIntent=function(l,k){var m={sensitivity:1,interval:10,timeout:0};m=a.extend(m,k?{over:l,out:k}:l);var o,n,i,d;var h=function(f){o=f.pageX;n=f.pageY};var c=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);if((Math.abs(i-o)+Math.abs(d-n))<m.sensitivity){a(f).unbind("mousemove",h);f.hoverIntent_s=1;return m.over.apply(f,[g])}else{i=o;d=n;f.hoverIntent_t=setTimeout(function(){c(g,f)},m.interval)}};var j=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);f.hoverIntent_s=0;return m.out.apply(f,[g])};var b=function(r){var q=(r.type=="mouseover"?r.fromElement:r.toElement)||r.relatedTarget;while(q&&q!=this){try{q=q.parentNode}catch(r){q=this}}if(q==this){return false}var g=jQuery.extend({},r);var f=this;if(f.hoverIntent_t){f.hoverIntent_t=clearTimeout(f.hoverIntent_t)}if(r.type=="mouseover"){i=g.pageX;d=g.pageY;a(f).bind("mousemove",h);if(f.hoverIntent_s!=1){f.hoverIntent_t=setTimeout(function(){c(g,f)},m.interval)}}else{a(f).unbind("mousemove",h);if(f.hoverIntent_s==1){f.hoverIntent_t=setTimeout(function(){j(g,f)},m.timeout)}}};return this.mouseover(b).mouseout(b)}})(jQuery);$(document).ready(function(){$(function(){$(".link").show("fast",function(){$(this).append("<div></div>");$(this).children("a").hover(function(){$(this).parent().children("div").stop().css({display:"none",opacity:"1"}).fadeIn()},function(){$(this).parent().children("div").stop().fadeOut("normal")})})});$(function(){$(".thumb").show("fast",function(){$(this).append("<div></div>");$(this).children("a").hover(function(){$(this).parent().children("div").stop().css({display:"none",opacity:"1"}).fadeIn("fast")},function(){$(this).parent().children("div").stop().fadeOut("normal")})})});$("a.email").nospam({replaceText:true});searchField=$("#search-field");if(searchField.val()){searchField.addClass("focus")}searchField.focus(function(){$(this).addClass("focus")});searchField.blur(function(){searchVal=searchField.val();if(!searchVal){$(this).removeClass("focus");$(this).val("")}});searchFieldBlog=$("#s");if(searchFieldBlog.val()){searchFieldBlog.addClass("focus")}searchFieldBlog.focus(function(){$(this).addClass("focus")});searchFieldBlog.blur(function(){if(!searchFieldBlog.val()){$(this).removeClass("focus");$(this).val("")}});$(".tab-content:first").show();var b=$("ul#tabs li");var c=$(".tab-content");jQuery.fn.changeSelected=function(){if($(this).hasClass("selected")==false){b.removeClass("selected");$(this).addClass("selected");c.hide();var d=$(this).find("a").attr("rel");$("#"+d).customFadeIn("fast");return false}};b.hoverIntent(function(){$(this).changeSelected()},function(){return false});b.click(function(){$(this).changeSelected()});var a=$(".thumb a");a.fancybox({transitionIn:"elastic",transitionOut:"elastic",speedIn:200,speedOut:200,overlayShow:true,titleShow:false,hideOnContentClick:true,padding:0,overlayOpacity:0.5,overlayColor:"#454a4d"})});
