(function(f){f.tools=f.tools||{version:{}};f.tools.version.tabs="1.0.1";f.tools.addTabEffect=function(b,a){d[b]=a};var d={"default":function(a){this.getPanes().hide().eq(a).show()},fade:function(a){this.getPanes().hide().eq(a).fadeIn(this.getConf().fadeInSpeed)},slide:function(a){this.getCurrentPane().slideUp("fast");this.getPanes().eq(a).slideDown()},horizontal:function(a){if(!f._hW){f._hW=this.getPanes().eq(0).width()}this.getCurrentPane().animate({width:0},function(){f(this).hide()});this.getPanes().eq(a).animate({width:f._hW},function(){f(this).show()})}};function e(k,j,c){var l=this;var b;function a(h,g){f(l).bind(h,function(i,n){if(g&&g.call(this,n.index)===false&&n){n.proceed=false}});return l}f.each(c,function(h,g){if(f.isFunction(g)){a(h,g)}});f.extend(this,{click:function(i){if(i===b){return l}var g=l.getCurrentPane();var h=k.eq(i);if(typeof i=="string"){h=k.filter("[href="+i+"]");i=k.index(h)}if(!h.length){if(b>=0){return l}i=c.initialIndex;h=k.eq(i)}var n={index:i,proceed:true};f(l).triggerHandler("onBeforeClick",n);if(!n.proceed){return l}h.addClass(c.current);d[c.effect].call(l,i);f(l).triggerHandler("onClick",n);k.removeClass(c.current);h.addClass(c.current);b=i;return l},getConf:function(){return c},getTabs:function(){return k},getPanes:function(){return j},getCurrentPane:function(){return j.eq(b)},getCurrentTab:function(){return k.eq(b)},getIndex:function(){return b},next:function(){return l.click(b+1)},prev:function(){return l.click(b-1)},onBeforeClick:function(g){return a("onBeforeClick",g)},onClick:function(g){return a("onClick",g)}});k.each(function(g){f(this).bind(c.event,function(h){l.click(g);if(!c.history){return h.preventDefault()}})});if(c.history){k.history(function(h,g){l.click(g||0)})}if(location.hash){l.click(location.hash)}else{l.click(c.initialIndex)}j.find("a[href^=#]").click(function(){l.click(f(this).attr("href"))})}f.fn.tabs=function(a,h){var c=this.eq(typeof conf=="number"?conf:0).data("tabs");if(c){return c}var b={tabs:"a",current:"current",onBeforeClick:null,onClick:null,effect:"default",history:false,initialIndex:0,event:"click",api:false};if(f.isFunction(h)){h={onBeforeClick:h}}f.extend(b,h);this.each(function(){var j=f(this).find(b.tabs);if(!j.length){j=f(this).children()}var g=a.jquery?a:f(a);c=new e(j,g,b);f(this).data("tabs",c)});return b.api?c:this}})(jQuery);(function(d){var f,e;d.prototype.history=function(a){var b=this;if(d.browser.msie){if(!e){e=d("<iframe />").hide().get(0);d("body").append(e);setInterval(function(){var h=e.contentWindow.document;var c=h.location.hash;if(f!==c){d.event.trigger("hash",c);f=c}},100)}b.bind("click.hash",function(c){var h=e.contentWindow.document;h.open().close();h.location.hash=d(this).attr("href")});b.eq(0).triggerHandler("click.hash")}else{setInterval(function(){var c=location.hash;if(b.filter("[href*="+c+"]").length&&c!==f){f=c;d.event.trigger("hash",c)}},100)}d(window).bind("hash",a);return this}})(jQuery);(function(f){f.tools=f.tools||{version:{}};f.tools.version.tooltip="1.0.2";var d={toggle:[function(){this.getTip().show()},function(){this.getTip().hide()}],fade:[function(){this.getTip().fadeIn(this.getConf().fadeInSpeed)},function(){this.getTip().fadeOut(this.getConf().fadeOutSpeed)}]};f.tools.addTipEffect=function(c,a,b){d[c]=[a,b]};f.tools.addTipEffect("slideup",function(){var b=this.getConf();var a=b.slideOffset||10;this.getTip().css({opacity:0}).animate({top:"-="+a,opacity:b.opacity},b.slideInSpeed||200).show()},function(){var b=this.getConf();var a=b.slideOffset||10;this.getTip().animate({top:"-="+a,opacity:0},b.slideOutSpeed||200,function(){f(this).hide().animate({top:"+="+(a*2)},0)})});function e(l,m){var n=this;var c=l.next();if(m.tip){if(m.tip.indexOf("#")!=-1){c=f(m.tip)}else{c=l.nextAll(m.tip).eq(0);if(!c.length){c=l.parent().nextAll(m.tip).eq(0)}}}function a(h,g){f(n).bind(h,function(j,i){if(g&&g.call(this)===false&&i){i.proceed=false}});return n}f.each(m,function(h,g){if(f.isFunction(g)){a(h,g)}});var k=l.is("input, textarea");l.bind(k?"focus":"mouseover",function(g){g.target=this;n.show(g);c.hover(function(){n.show()},function(){n.hide()})});l.bind(k?"blur":"mouseout",function(){n.hide()});c.css("opacity",m.opacity);var b=0;f.extend(n,{show:function(p){if(p){l=f(p.target)}clearTimeout(b);if(c.is(":animated")||c.is(":visible")){return n}var s={proceed:true};f(n).trigger("onBeforeShow",s);if(!s.proceed){return n}var t=l.position().top-c.outerHeight();var i=c.outerHeight()+l.outerHeight();var j=m.position[0];if(j=="center"){t+=i/2}if(j=="bottom"){t+=i}var h=l.outerWidth()+c.outerWidth();var g=l.position().left+l.outerWidth();j=m.position[1];if(j=="center"){g-=h/2}if(j=="left"){g-=h}t+=m.offset[0];g+=m.offset[1];c.css({position:"absolute",top:t,left:g});d[m.effect][0].call(n);f(n).trigger("onShow");return n},hide:function(){clearTimeout(b);b=setTimeout(function(){if(!c.is(":visible")){return n}var g={proceed:true};f(n).trigger("onBeforeHide",g);if(!g.proceed){return n}d[m.effect][1].call(n);f(n).trigger("onHide")},m.delay||1);return n},isShown:function(){return c.is(":visible, :animated")},getConf:function(){return m},getTip:function(){return c},getTrigger:function(){return l},onBeforeShow:function(g){return a("onBeforeShow",g)},onShow:function(g){return a("onShow",g)},onBeforeHide:function(g){return a("onBeforeHide",g)},onHide:function(g){return a("onHide",g)}})}f.prototype.tooltip=function(c){var b=this.eq(typeof c=="number"?c:0).data("tooltip");if(b){return b}var a={tip:null,effect:"slideup",delay:30,opacity:1,position:["top","center"],offset:[0,0],api:false};if(f.isFunction(c)){c={onBeforeShow:c}}f.extend(a,c);this.each(function(){b=new e(f(this),a);f(this).data("tooltip",b)});return a.api?b:this}})(jQuery);(function(d){d.tools=d.tools||{version:{}};d.tools.version.scrollable="1.0.5";var f=null;function e(c,v){var F=this;if(!f){f=F}function u(h,g){d(F).bind(h,function(i,j){if(g&&g.call(this,j.index)===false&&j){j.proceed=false}});return F}d.each(v,function(h,g){if(d.isFunction(g)){u(h,g)}});var E=!v.vertical;var C=d(v.items,c);var y=0;function w(g,h){return g.indexOf("#")!=-1?d(g).eq(0):h.siblings(g).eq(0)}var b=w(v.navi,c);var B=w(v.prev,c);var z=w(v.next,c);var A=w(v.prevPage,c);var t=w(v.nextPage,c);d.extend(F,{getIndex:function(){return y},getConf:function(){return v},getSize:function(){return F.getItems().size()},getPageAmount:function(){return Math.ceil(this.getSize()/v.size)},getPageIndex:function(){return Math.ceil(y/v.size)},getRoot:function(){return c},getItemWrap:function(){return C},getItems:function(){return C.children()},getVisibleItems:function(){return F.getItems().slice(y,y+v.size)},seekTo:function(l,n,h){if(n===undefined){n=v.speed}if(d.isFunction(n)){h=n;n=v.speed}if(l<0){l=0}if(l>F.getSize()-v.size){return F}var g=F.getItems().eq(l);if(!g.length){return F}var o={index:l,proceed:true};d(F).trigger("onBeforeSeek",o);if(!o.proceed){return F}if(E){var m=-g.position().left;C.animate({left:m},n,v.easing,h?function(){h.call(F)}:null)}else{var i=-g.position().top;C.animate({top:i},n,v.easing,h?function(){h.call(F)}:null)}if(b.length){var k=v.activeClass;var j=Math.ceil(l/v.size);j=Math.min(j,b.children().length-1);b.children().removeClass(k).eq(j).addClass(k)}if(l===0){B.add(A).addClass(v.disabledClass)}else{B.add(A).removeClass(v.disabledClass)}if(l>=F.getSize()-v.size){z.add(t).addClass(v.disabledClass)}else{z.add(t).removeClass(v.disabledClass)}f=F;y=l;d(F).trigger("onSeek",{index:l});return F},move:function(h,i,j){var g=y+h;if(v.loop&&g>(F.getSize()-v.size)){g=0}return this.seekTo(g,i,j)},next:function(g,h){return this.move(1,g,h)},prev:function(g,h){return this.move(-1,g,h)},movePage:function(g,h,i){return this.move(v.size*g,h,i)},setPage:function(g,l,i){var j=v.size;var k=j*g;var h=k+j>=this.getSize();if(h){k=this.getSize()-v.size}return this.seekTo(k,l,i)},prevPage:function(g,h){return this.setPage(this.getPageIndex()-1,g,h)},nextPage:function(g,h){return this.setPage(this.getPageIndex()+1,g,h)},begin:function(g,h){return this.seekTo(0,g,h)},end:function(g,h){return this.seekTo(this.getSize()-v.size,g,h)},reload:function(){return a()},click:function(j,g,i){var h=F.getItems().eq(j);var k=v.activeClass;if(j<0||j>=this.getSize()){return F}if(v.size==2){if(j==F.getIndex()){j--}F.getItems().removeClass(k);h.addClass(k);return this.seekTo(j,g,i)}if(!h.hasClass(k)){F.getItems().removeClass(k);h.addClass(k);var l=Math.floor(v.size/2);var m=j-l;if(m>F.getSize()-v.size){m=F.getSize()-v.size}if(m!==j){return this.seekTo(m,g,i)}}return F},onBeforeSeek:function(g){return u("onBeforeSeek",g)},onSeek:function(g){return u("onSeek",g)}});if(d.isFunction(d.fn.mousewheel)){c.bind("mousewheel.scrollable",function(h,g){var i=d.browser.opera?1:-1;F.move(g>0?i:-i,50);return false})}B.addClass(v.disabledClass).click(function(){F.prev()});z.click(function(){F.next()});t.click(function(){F.nextPage()});A.addClass(v.disabledClass).click(function(){F.prevPage()});if(v.keyboard){d(document).unbind("keydown.scrollable").bind("keydown.scrollable",function(h){var g=f;if(!g||h.altKey||h.ctrlKey){return}if(E&&(h.keyCode==37||h.keyCode==39)){g.move(h.keyCode==37?-1:1);return h.preventDefault()}if(!E&&(h.keyCode==38||h.keyCode==40)){g.move(h.keyCode==38?-1:1);return h.preventDefault()}return true})}function a(){if(b.is(":empty")||b.data("me")==F){b.empty();b.data("me",F);for(var h=0;h<F.getPageAmount();h++){var g=d("<"+v.naviItem+"/>").attr("href",h).click(function(j){var k=d(this);k.parent().children().removeClass(v.activeClass);k.addClass(v.activeClass);F.setPage(k.attr("href"));return j.preventDefault()});if(h===0){g.addClass(v.activeClass)}b.append(g)}}else{var i=b.children();i.each(function(k){var j=d(this);j.attr("href",k);if(k===0){j.addClass(v.activeClass)}j.click(function(){b.find("."+v.activeClass).removeClass(v.activeClass);j.addClass(v.activeClass);F.setPage(j.attr("href"))})})}if(v.clickable){F.getItems().each(function(j,k){var l=d(this);if(!l.data("set")){l.bind("click.scrollable",function(){F.click(j)});l.data("set",true)}})}if(v.hoverClass){F.getItems().hover(function(){d(this).addClass(v.hoverClass)},function(){d(this).removeClass(v.hoverClass)})}return F}a();var D=null;function x(){if(D){return}D=setInterval(function(){if(v.interval===0){clearInterval(D);D=0;return}F.next()},v.interval)}if(v.interval>0){c.hover(function(){clearInterval(D);D=0},function(){x()});x()}}d.fn.scrollable=function(c){var b=this.eq(typeof c=="number"?c:0).data("scrollable");if(b){return b}var a={size:5,vertical:false,clickable:true,loop:false,interval:0,speed:400,keyboard:true,activeClass:"active",disabledClass:"disabled",hoverClass:null,easing:"swing",items:".items",prev:".prev",next:".next",prevPage:".prevPage",nextPage:".nextPage",navi:".navi",naviItem:"a",api:false,onBeforeSeek:null,onSeek:null};d.extend(a,c);this.each(function(){b=new e(d(this),a);d(this).data("scrollable",b)});return a.api?b:this}})(jQuery);(function(d){d.tools=d.tools||{version:{}};d.tools.version.overlay="1.0.4";var f=[];function e(y,C){var a=this,b=d(window),A,o,D,x,v,t,u;var B=C.expose&&d.tools.version.expose;function c(h,g){d(a).bind(h,function(i,j){if(g&&g.call(this)===false&&j){j.proceed=false}});return a}d.each(C,function(h,g){if(d.isFunction(g)){c(h,g)}});var w=C.target||y.attr("rel");var z=w?d(w):null;if(!z){z=y}else{v=y}b.load(function(){t=z.attr("overlay");if(!t){t=z.css("backgroundImage");if(!t){throw"background-image CSS property not set for overlay element: "+w}t=t.substring(t.indexOf("(")+1,t.indexOf(")")).replace(/\"/g,"");z.css("backgroundImage","none");z.attr("overlay",t)}D=z.outerWidth({margin:true});x=z.outerHeight({margin:true});o=d('<img src="'+t+'"/>');o.css({border:0,position:"absolute",display:"none"}).width(D).attr("overlay",true);d("body").append(o);if(v){v.bind("click.overlay",function(g){a.load(g.pageY-b.scrollTop(),g.pageX-b.scrollLeft());return g.preventDefault()})}C.close=C.close||".close";if(!z.find(C.close).length){z.prepend('<div class="close"></div>')}A=z.find(C.close);A.bind("click.overlay",function(){a.close()});if(C.preload){setTimeout(function(){var g=new Image();g.src=t},2000)}});d.extend(a,{load:function(g,h){if(!o){b.load(function(){a.load(g,h)});return a}if(a.isOpened()){return a}if(C.oneInstance){d.each(f,function(){this.close()})}var i={proceed:true};d(a).trigger("onBeforeLoad",i);if(!i.proceed){return a}if(B){o.expose(C.expose);u=o.expose().load()}g=g||C.start.top;h=h||C.start.left;var k=C.finish.top;var j=C.finish.left;if(k=="center"){k=Math.max((b.height()-x)/2,0)}if(j=="center"){j=Math.max((b.width()-D)/2,0)}if(!C.start.absolute){g+=b.scrollTop();h+=b.scrollLeft()}if(!C.finish.absolute){k+=b.scrollTop();j+=b.scrollLeft()}o.css({top:g,left:h,width:C.start.width,zIndex:C.zIndex}).show();o.animate({top:k,left:j,width:D},C.speed,function(){z.css({position:"absolute",top:k,left:j});var l=o.css("zIndex");A.add(z).css("zIndex",++l);z.fadeIn(C.fadeInSpeed,function(){d(a).trigger("onLoad")})});return a},close:function(){if(!a.isOpened()){return a}var g={proceed:true};d(a).trigger("onBeforeClose",g);if(!g.proceed){return a}if(u){u.close()}if(o.is(":visible")){z.hide();var h=C.start.top;var i=C.start.left;if(v){g=v.offset();h=g.top+v.height()/2;i=g.left+v.width()/2}o.animate({top:h,left:i,width:0},C.closeSpeed,function(){d(a).trigger("onClose",g)})}return a},getBackgroundImage:function(){return o},getContent:function(){return z},getTrigger:function(){return v},isOpened:function(){return z.is(":visible")},getConf:function(){return C},onBeforeLoad:function(g){return c("onBeforeLoad",g)},onLoad:function(g){return c("onLoad",g)},onBeforeClose:function(g){return c("onBeforeClose",g)},onClose:function(g){return c("onClose",g)}});d(document).keydown(function(g){if(g.keyCode==27){a.close()}});if(C.closeOnClick){d(document).bind("click.overlay",function(h){if(!z.is(":visible, :animated")){return}var g=d(h.target);if(g.attr("overlay")){return}if(g.parents("[overlay]").length){return}a.close()})}}d.fn.overlay=function(c){var b=this.eq(typeof c=="number"?c:0).data("overlay");if(b){return b}var h=d(window);var a={start:{top:Math.round(h.height()/2),left:Math.round(h.width()/2),width:0,absolute:false},finish:{top:80,left:"center",absolute:false},speed:"normal",fadeInSpeed:"fast",closeSpeed:"fast",close:null,oneInstance:true,closeOnClick:true,preload:true,zIndex:9999,api:false,expose:null,target:null};if(d.isFunction(c)){c={onBeforeLoad:c}}d.extend(true,a,c);this.each(function(){b=new e(d(this),a);f.push(b);d(this).data("overlay",b)});return a.api?b:this}})(jQuery);(function(d){d.tools=d.tools||{version:{}};d.tools.version.expose="1.0.3";function e(){var a=d(window).width();if(d.browser.mozilla){return a}var b;if(window.innerHeight&&window.scrollMaxY){b=window.innerWidth+window.scrollMaxX}else{if(document.body.scrollHeight>document.body.offsetHeight){b=document.body.scrollWidth}else{b=document.body.offsetWidth}}return b<a?b+20:a}function f(k,c){var m=this,n=null,l=false,b=0;function a(h,g){d(m).bind(h,function(j,i){if(g&&g.call(this)===false&&i){i.proceed=false}});return m}d.each(c,function(h,g){if(d.isFunction(g)){a(h,g)}});d(window).bind("resize.expose",function(){if(n){n.css({width:e(),height:d(document).height()})}});d.extend(this,{getMask:function(){return n},getExposed:function(){return k},getConf:function(){return c},isLoaded:function(){return l},load:function(){if(l){return m}b=k.eq(0).css("zIndex");if(c.maskId){n=d("#"+c.maskId)}if(!n||!n.length){n=d("<div/>").css({position:"absolute",top:0,left:0,width:e(),height:d(document).height(),display:"none",opacity:0,zIndex:c.zIndex});if(c.maskId){n.attr("id",c.maskId)}d("body").append(n);var i=n.css("backgroundColor");if(!i||i=="transparent"||i=="rgba(0, 0, 0, 0)"){n.css("backgroundColor",c.color)}if(c.closeOnEsc){d(document).bind("keydown.unexpose",function(j){if(j.keyCode==27){m.close()}})}if(c.closeOnClick){n.bind("click.unexpose",function(){m.close()})}}var g={proceed:true};d(m).trigger("onBeforeLoad",g);if(!g.proceed){return m}d.each(k,function(){var j=d(this);if(!/relative|absolute|fixed/i.test(j.css("position"))){j.css("position","relative")}});k.css({zIndex:c.zIndex+1});var h=n.height();if(!this.isLoaded()){n.css({opacity:0,display:"block"}).fadeTo(c.loadSpeed,c.opacity,function(){if(n.height()!=h){n.css("height",h)}d(m).trigger("onLoad")})}l=true;return m},close:function(){if(!l){return m}var g={proceed:true};d(m).trigger("onBeforeClose",g);if(g.proceed===false){return m}n.fadeOut(c.closeSpeed,function(){d(m).trigger("onClose");k.css({zIndex:d.browser.msie?b:null})});l=false;return m},onBeforeLoad:function(g){return a("onBeforeLoad",g)},onLoad:function(g){return a("onLoad",g)},onBeforeClose:function(g){return a("onBeforeClose",g)},onClose:function(g){return a("onClose",g)}})}d.fn.expose=function(c){var b=this.eq(typeof c=="number"?c:0).data("expose");if(b){return b}var a={maskId:null,loadSpeed:"slow",closeSpeed:"fast",closeOnClick:true,closeOnEsc:true,zIndex:9998,opacity:0.8,color:"#456",api:false};if(typeof c=="string"){c={color:c}}d.extend(a,c);this.each(function(){b=new f(d(this),a);d(this).data("expose",b)});return a.api?b:this}})(jQuery);var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);
/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/
return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return}f(H);if(h.ie&&h.win){try{K.write("<script id=__ie_ondomload defer=true src=//:><\/script>");J=C("__ie_ondomload");if(J){I(J,"onreadystatechange",S)}}catch(q){}}if(h.webkit&&typeof K.readyState!=b){Z=setInterval(function(){if(/loaded|complete/.test(K.readyState)){E()}},10)}if(typeof K.addEventListener!=b){K.addEventListener("DOMContentLoaded",E,null)}R(E)}();function S(){if(J.readyState=="complete"){J.parentNode.removeChild(J);E()}}function E(){if(e){return}if(h.ie&&h.win){var v=a("span");try{var u=K.getElementsByTagName("body")[0].appendChild(v);u.parentNode.removeChild(u)}catch(w){return}}e=true;if(Z){clearInterval(Z);Z=null}var q=o.length;for(var r=0;r<q;r++){o[r]()}}function f(q){if(e){q()}else{o[o.length]=q}}function R(r){if(typeof j.addEventListener!=b){j.addEventListener("load",r,false)}else{if(typeof K.addEventListener!=b){K.addEventListener("load",r,false)}else{if(typeof j.attachEvent!=b){I(j,"onload",r)}else{if(typeof j.onload=="function"){var q=j.onload;j.onload=function(){q();r()}}else{j.onload=r}}}}}function H(){var t=N.length;for(var q=0;q<t;q++){var u=N[q].id;if(h.pv[0]>0){var r=C(u);if(r){N[q].width=r.getAttribute("width")?r.getAttribute("width"):"0";N[q].height=r.getAttribute("height")?r.getAttribute("height"):"0";if(c(N[q].swfVersion)){if(h.webkit&&h.webkit<312){Y(r)}W(u,true)}else{if(N[q].expressInstall&&!A&&c("6.0.65")&&(h.win||h.mac)){k(N[q])}else{O(r)}}}}else{W(u,true)}}}function Y(t){var q=t.getElementsByTagName(Q)[0];if(q){var w=a("embed"),y=q.attributes;if(y){var v=y.length;for(var u=0;u<v;u++){if(y[u].nodeName=="DATA"){w.setAttribute("src",y[u].nodeValue)}else{w.setAttribute(y[u].nodeName,y[u].nodeValue)}}}var x=q.childNodes;if(x){var z=x.length;for(var r=0;r<z;r++){if(x[r].nodeType==1&&x[r].nodeName=="PARAM"){w.setAttribute(x[r].getAttribute("name"),x[r].getAttribute("value"))}}}t.parentNode.replaceChild(w,t)}}function k(w){A=true;var u=C(w.id);if(u){if(w.altContentId){var y=C(w.altContentId);if(y){M=y;l=w.altContentId}}else{M=G(u)}if(!(/%$/.test(w.width))&&parseInt(w.width,10)<310){w.width="310"}if(!(/%$/.test(w.height))&&parseInt(w.height,10)<137){w.height="137"}K.title=K.title.slice(0,47)+" - Flash Player Installation";var z=h.ie&&h.win?"ActiveX":"PlugIn",q=K.title,r="MMredirectURL="+j.location+"&MMplayerType="+z+"&MMdoctitle="+q,x=w.id;if(h.ie&&h.win&&u.readyState!=4){var t=a("div");x+="SWFObjectNew";t.setAttribute("id",x);u.parentNode.insertBefore(t,u);u.style.display="none";var v=function(){u.parentNode.removeChild(u)};I(j,"onload",v)}U({data:w.expressInstall,id:m,width:w.width,height:w.height},{flashvars:r},x)}}function O(t){if(h.ie&&h.win&&t.readyState!=4){var r=a("div");t.parentNode.insertBefore(r,t);r.parentNode.replaceChild(G(t),r);t.style.display="none";var q=function(){t.parentNode.removeChild(t)};I(j,"onload",q)}else{t.parentNode.replaceChild(G(t),t)}}function G(v){var u=a("div");if(h.win&&h.ie){u.innerHTML=v.innerHTML}else{var r=v.getElementsByTagName(Q)[0];if(r){var w=r.childNodes;if(w){var q=w.length;for(var t=0;t<q;t++){if(!(w[t].nodeType==1&&w[t].nodeName=="PARAM")&&!(w[t].nodeType==8)){u.appendChild(w[t].cloneNode(true))}}}}}return u}function U(AG,AE,t){var q,v=C(t);if(v){if(typeof AG.id==b){AG.id=t}if(h.ie&&h.win){var AF="";for(var AB in AG){if(AG[AB]!=Object.prototype[AB]){if(AB.toLowerCase()=="data"){AE.movie=AG[AB]}else{if(AB.toLowerCase()=="styleclass"){AF+=' class="'+AG[AB]+'"'}else{if(AB.toLowerCase()!="classid"){AF+=" "+AB+'="'+AG[AB]+'"'}}}}}var AD="";for(var AA in AE){if(AE[AA]!=Object.prototype[AA]){AD+='<param name="'+AA+'" value="'+AE[AA]+'" />'}}v.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AF+">"+AD+"</object>";i[i.length]=AG.id;q=C(AG.id)}else{if(h.webkit&&h.webkit<312){var AC=a("embed");AC.setAttribute("type",P);for(var z in AG){if(AG[z]!=Object.prototype[z]){if(z.toLowerCase()=="data"){AC.setAttribute("src",AG[z])}else{if(z.toLowerCase()=="styleclass"){AC.setAttribute("class",AG[z])}else{if(z.toLowerCase()!="classid"){AC.setAttribute(z,AG[z])}}}}}for(var y in AE){if(AE[y]!=Object.prototype[y]){if(y.toLowerCase()!="movie"){AC.setAttribute(y,AE[y])}}}v.parentNode.replaceChild(AC,v);q=AC}else{var u=a(Q);u.setAttribute("type",P);for(var x in AG){if(AG[x]!=Object.prototype[x]){if(x.toLowerCase()=="styleclass"){u.setAttribute("class",AG[x])}else{if(x.toLowerCase()!="classid"){u.setAttribute(x,AG[x])}}}}for(var w in AE){if(AE[w]!=Object.prototype[w]&&w.toLowerCase()!="movie"){F(u,w,AE[w])}}v.parentNode.replaceChild(u,v);q=u}}}return q}function F(t,q,r){var u=a("param");u.setAttribute("name",q);u.setAttribute("value",r);t.appendChild(u)}function X(r){var q=C(r);if(q&&(q.nodeName=="OBJECT"||q.nodeName=="EMBED")){if(h.ie&&h.win){if(q.readyState==4){B(r)}else{j.attachEvent("onload",function(){B(r)})}}else{q.parentNode.removeChild(q)}}}function B(t){var r=C(t);if(r){for(var q in r){if(typeof r[q]=="function"){r[q]=null}}r.parentNode.removeChild(r)}}function C(t){var q=null;try{q=K.getElementById(t)}catch(r){}return q}function a(q){return K.createElement(q)}function I(t,q,r){t.attachEvent(q,r);d[d.length]=[t,q,r]}function c(t){var r=h.pv,q=t.split(".");q[0]=parseInt(q[0],10);q[1]=parseInt(q[1],10)||0;q[2]=parseInt(q[2],10)||0;return(r[0]>q[0]||(r[0]==q[0]&&r[1]>q[1])||(r[0]==q[0]&&r[1]==q[1]&&r[2]>=q[2]))?true:false}function V(v,r){if(h.ie&&h.mac){return}var u=K.getElementsByTagName("head")[0],t=a("style");t.setAttribute("type","text/css");t.setAttribute("media","screen");if(!(h.ie&&h.win)&&typeof K.createTextNode!=b){t.appendChild(K.createTextNode(v+" {"+r+"}"))}u.appendChild(t);if(h.ie&&h.win&&typeof K.styleSheets!=b&&K.styleSheets.length>0){var q=K.styleSheets[K.styleSheets.length-1];if(typeof q.addRule==Q){q.addRule(v,r)}}}function W(t,q){var r=q?"visible":"hidden";if(e&&C(t)){C(t).style.visibility=r}else{V("#"+t,"visibility:"+r)}}function g(s){var r=/[\\\"<>\.;]/;var q=r.exec(s)!=null;return q?encodeURIComponent(s):s}var D=function(){if(h.ie&&h.win){window.attachEvent("onunload",function(){var w=d.length;for(var v=0;v<w;v++){d[v][0].detachEvent(d[v][1],d[v][2])}var t=i.length;for(var u=0;u<t;u++){X(i[u])}for(var r in h){h[r]=null}h=null;for(var q in swfobject){swfobject[q]=null}swfobject=null})}}();return{registerObject:function(u,q,t){if(!h.w3cdom||!u||!q){return}var r={};r.id=u;r.swfVersion=q;r.expressInstall=t?t:false;N[N.length]=r;W(u,false)},getObjectById:function(v){var q=null;if(h.w3cdom){var t=C(v);if(t){var u=t.getElementsByTagName(Q)[0];if(!u||(u&&typeof t.SetVariable!=b)){q=t}else{if(typeof u.SetVariable!=b){q=u}}}}return q},embedSWF:function(x,AE,AB,AD,q,w,r,z,AC){if(!h.w3cdom||!x||!AE||!AB||!AD||!q){return}AB+="";AD+="";if(c(q)){W(AE,false);var AA={};if(AC&&typeof AC===Q){for(var v in AC){if(AC[v]!=Object.prototype[v]){AA[v]=AC[v]}}}AA.data=x;AA.width=AB;AA.height=AD;var y={};if(z&&typeof z===Q){for(var u in z){if(z[u]!=Object.prototype[u]){y[u]=z[u]}}}if(r&&typeof r===Q){for(var t in r){if(r[t]!=Object.prototype[t]){if(typeof y.flashvars!=b){y.flashvars+="&"+t+"="+r[t]}else{y.flashvars=t+"="+r[t]}}}}f(function(){U(AA,y,AE);if(AA.id==AE){W(AE,true)}})}else{if(w&&!A&&c("6.0.65")&&(h.win||h.mac)){A=true;W(AE,false);f(function(){var AF={};AF.id=AF.altContentId=AE;AF.width=AB;AF.height=AD;AF.expressInstall=w;k(AF)})}}},getFlashPlayerVersion:function(){return{major:h.pv[0],minor:h.pv[1],release:h.pv[2]}},hasFlashPlayerVersion:c,createSWF:function(t,r,q){if(h.w3cdom){return U(t,r,q)}else{return undefined}},removeSWF:function(q){if(h.w3cdom){X(q)}},createCSS:function(r,q){if(h.w3cdom){V(r,q)}},addDomLoadEvent:f,addLoadEvent:R,getQueryParamValue:function(v){var u=K.location.search||K.location.hash;if(v==null){return g(u)}if(u){var t=u.substring(1).split("&");for(var r=0;r<t.length;r++){if(t[r].substring(0,t[r].indexOf("="))==v){return g(t[r].substring((t[r].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(A&&M){var q=C(m);if(q){q.parentNode.replaceChild(M,q);if(l){W(l,true);if(h.ie&&h.win){M.style.display="block"}}M=null;l=null;A=false}}}}}();jQuery(function(){var b=jQuery;var a="video_overlay";if(!document.getElementById("vcontainer")){b("body").append(b("<div id='voverlay'></div>"));b("#voverlay").append(b("<div id = 'vcontainer'></div>"))}b("#videogallery a[rel]").overlay({api:true,expose:(0?{color:"#151410",loadSpeed:400,opacity:0}:null),onClose:function(){swfobject.removeSWF(a)},onBeforeLoad:function(){var l=document.getElementById(a);if(!l){var k=b("<div></div>");k.attr({id:a});b("#vcontainer").append(k)}var i="";var e="http://videolightbox.com";l=i?b("<div></div>"):0;if(l){l.css({position:"absolute",right:"38px",top:"38px",padding:"0 0 0 0"});b("#vcontainer").append(l)}if(l&&document.all){var h=b('<iframe src="javascript:false"></iframe>');h.css({position:"absolute",left:0,top:0,width:"100%",height:"100%",filter:"alpha(opacity=0)"});h.attr({scrolling:"no",framespacing:0,border:0,frameBorder:"no"});l.append(h)}var k=l?b(document.createElement("A")):l;if(k){k.css({position:"relative",display:"block","background-color":"#E4EFEB",color:"#837F80","font-family":"Lucida Grande,Arial,Verdana,sans-serif","font-size":"11px","font-weight":"normal","font-style":"normal",padding:"1px 5px",opacity:0.7,filter:"alpha(opacity=70)",width:"auto",height:"auto",margin:"0 0 0 0",outline:"none"});k.attr({href:e});k.html(i);k.bind("contextmenu",function(c){return false});l.append(k)}var j=this.getTrigger().attr("href");if(typeof(k)!="number"&&(!l||!l.html||!l.html())){return}if(true){var g=this;window.videolb_complite_event=function(){g.close()};window.onYouTubePlayerReady=function(c){var d=b("#"+a).get(0);if(d.addEventListener){d.addEventListener("onStateChange","videolb_YTStateChange")}else{d.attachEvent("onStateChange","videolb_YTStateChange")}window.videolb_YTStateChange=function(f){if(!f){g.close()}}}}swfobject.createSWF({data:j,width:"100%",height:"100%",wmode:"opaque"},{allowScriptAccess:"always",allowFullScreen:true,FlashVars:(true?"complete_event=videolb_complite_event()&enablejsapi=1":"")},a)}})});
