﻿function getE(name){if(document.getElementById)
var elem=document.getElementById(name);else if(document.all)
var elem=document.all[name];else if(document.layers)
var elem = document.layers[name]; return elem;}
function OpenWindow(query, w, h, scroll){
var l=(screen.width -w)/2;
var t=(screen.height -h)/2;
winprops='resizable=0, height='+h+',width='+w+',top='+t+',left='+l+'w';
if(scroll)winprops+=',scrollbars=1';var f=window.open(query,"_blank",winprops);}
function setLocation(url){window.location.href = url;}
(function(v){var D=v(window),t,g,E=-1,w,C,u,x,K,r,n=!window.XMLHttpRequest,e=window.opera&&(document.compatMode=="CSS1Compat")&&(v.browser.version>=9.3),m=document.documentElement,l={},s=new Image(),I=new Image(),G,a,h,p,H,d,F,c,z,J;v(function(){v("body").append(v([G=v('<div id="lbOverlay" />')[0],a=v('<div id="lbCenter" />')[0],F=v('<div id="lbBottomContainer" />')[0]]).css("display","none"));h=v('<div id="lbImage" />').appendTo(a).append(p=v('<div style="position: relative;" />').append([H=v('<a id="lbPrevLink" href="#" />').click(A)[0],d=v('<a id="lbNextLink" href="#" />').click(f)[0]])[0])[0];c=v('<div id="lbBottom" />').appendTo(F).append([v('<a id="lbCloseLink" href="#" />').add(G).click(B)[0],z=v('<div id="lbCaption" />')[0],J=v('<div id="lbNumber" />')[0],v('<div style="clear: both;" />')[0]])[0]});v.slimbox=function(N,M,L){t=v.extend({loop:false,overlayOpacity:0.8,overlayFadeDuration:400,resizeDuration:400,resizeEasing:"swing",initialWidth:250,initialHeight:250,imageFadeDuration:400,captionAnimationDuration:400,counterText:"Image {x} of {y}",closeKeys:[27,88,67],previousKeys:[37,80],nextKeys:[39,78]},L);if(typeof N=="string"){N=[[N,M]];M=0}x=D.scrollTop()+((e?m.clientHeight:D.height())/2);K=t.initialWidth;r=t.initialHeight;v(a).css({top:Math.max(0,x-(r/2)),width:K,height:r,marginLeft:-K/2}).show();u=n||(G.currentStyle&&(G.currentStyle.position!="fixed"));if(u){G.style.position="absolute"}v(G).css("opacity",t.overlayOpacity).fadeIn(t.overlayFadeDuration);y();k(1);g=N;t.loop=t.loop&&(g.length>1);return b(M)};v.fn.slimbox=function(L,O,N){O=O||function(P){return[P.href,P.title]};N=N||function(){return true};var M=this;return M.unbind("click").click(function(){var R=this,T=0,S,P=0,Q;S=v.grep(M,function(V,U){return N.call(R,V,U)});for(Q=S.length;P<Q;++P){if(S[P]==R){T=P}S[P]=O(S[P],P)}return v.slimbox(S,T,L)})};function y(){var M=D.scrollLeft(),L=e?m.clientWidth:D.width();v([a,F]).css("left",M+(L/2));if(u){v(G).css({left:M,top:D.scrollTop(),width:L,height:D.height()})}}function k(L){v("object").add(n?"select":"embed").each(function(N,O){if(L){v.data(O,"slimbox",O.style.visibility)}O.style.visibility=L?"hidden":v.data(O,"slimbox")});var M=L?"bind":"unbind";D[M]("scroll resize",y);v(document)[M]("keydown",o)}function o(N){var M=N.keyCode,L=v.inArray;return(L(M,t.closeKeys)>=0)?B():(L(M,t.nextKeys)>=0)?f():(L(M,t.previousKeys)>=0)?A():false}function A(){return b(w)}function f(){return b(C)}function b(L){if(L>=0){E=L;w=(E||(t.loop?g.length:0))-1;C=((E+1)%g.length)||(t.loop?0:-1);q();a.className="lbLoading";l=new Image();l.onload=j;l.src=g[E][0]}return false}function j(){a.className="";v(h).css({backgroundImage:"url("+l.src+")",visibility:"hidden",display:""});v(p).width(l.width);v([p,H,d]).height(l.height);v(z).html(g[E][1]||"");v(J).html((((g.length>1)&&t.counterText)||"").replace(/{x}/,E+1).replace(/{y}/,g.length));if(w>=0){s.src=g[w][0]}if(C>=0){I.src=g[C][0]}K=h.offsetWidth;r=h.offsetHeight;var L=Math.max(0,x-(r/2));if(a.offsetHeight!=r){v(a).animate({height:r,top:L},t.resizeDuration,t.resizeEasing)}if(a.offsetWidth!=K){v(a).animate({width:K,marginLeft:-K/2},t.resizeDuration,t.resizeEasing)}v(a).queue(function(){v(F).css({width:K,top:L+r,marginLeft:-K/2,visibility:"hidden",display:""});v(h).css({display:"none",visibility:"",opacity:""}).fadeIn(t.imageFadeDuration,i)})}function i(){if(w>=0){v(H).show()}if(C>=0){v(d).show()}v(c).css("marginTop",-c.offsetHeight).animate({marginTop:0},t.captionAnimationDuration);F.style.visibility=""}function q(){l.onload=null;l.src=s.src=I.src="";v([a,h,c]).stop(true);v([H,d,h,F]).hide()}function B(){if(E>=0){q();E=w=C=-1;v(a).hide();v(G).stop().fadeOut(t.overlayFadeDuration,k)}return false}})(jQuery);jQuery(function($){$("a[rel^='lightbox']").slimbox({overlayFadeDuration:120,resizeDuration:120,imageFadeDuration:120},null,function(el){return(this==el)||((this.rel.length>8)&&(this.rel==el.rel));});});(function($){$.fn.jCarouselLite=function(o){o=$.extend({btnPrev:null,btnNext:null,btnGo:null,mouseWheel:false,auto:null,speed:200,easing:null,vertical:false,circular:true,visible:3,start:0,scroll:1,beforeStart:null,afterEnd:null},o||{});return this.each(function(){var b=false,animCss=o.vertical?"top":"left",sizeCss=o.vertical?"height":"width";var c=$(this),ul=$("ul",c),tLi=$("li",ul),tl=tLi.size(),v=o.visible;if(o.circular){ul.prepend(tLi.slice(tl-v-1+1).clone()).append(tLi.slice(0,v).clone());o.start+=v}var f=$("li",ul),itemLength=f.size(),curr=o.start;c.css("visibility","visible");f.css({overflow:"hidden",float:o.vertical?"none":"left"});ul.css({margin:"0",padding:"0",position:"relative","list-style-type":"none","z-index":"1"});c.css({overflow:"hidden",position:"relative","z-index":"2",left:"0px"});var g=o.vertical?height(f):width(f);var h=g*itemLength;var j=g*v;f.css({width:f.width(),height:f.height()});ul.css(sizeCss,h+"px").css(animCss,-(curr*g));c.css(sizeCss,j+"px");if(o.btnPrev)$(o.btnPrev).click(function(){return go(curr-o.scroll)});if(o.btnNext)$(o.btnNext).click(function(){return go(curr+o.scroll)});if(o.btnGo)$.each(o.btnGo,function(i,a){$(a).click(function(){return go(o.circular?o.visible+i:i)})});if(o.mouseWheel&&c.mousewheel)c.mousewheel(function(e,d){return d>0?go(curr-o.scroll):go(curr+o.scroll)});if(o.auto)setInterval(function(){go(curr+o.scroll)},o.auto+o.speed);function vis(){return f.slice(curr).slice(0,v)};function go(a){if(!b){if(o.beforeStart)o.beforeStart.call(this,vis());if(o.circular){if(a<=o.start-v-1){ul.css(animCss,-((itemLength-(v*2))*g)+"px");curr=a==o.start-v-1?itemLength-(v*2)-1:itemLength-(v*2)-o.scroll}else if(a>=itemLength-v+1){ul.css(animCss,-((v)*g)+"px");curr=a==itemLength-v+1?v+1:v+o.scroll}else curr=a}else{if(a<0||a>itemLength-v)return;else curr=a}b=true;ul.animate(animCss=="left"?{left:-(curr*g)}:{top:-(curr*g)},o.speed,o.easing,function(){if(o.afterEnd)o.afterEnd.call(this,vis());b=false});if(!o.circular){$(o.btnPrev+","+o.btnNext).removeClass("disabled");$((curr-o.scroll<0&&o.btnPrev)||(curr+o.scroll>itemLength-v&&o.btnNext)||[]).addClass("disabled")}}return false}})};function css(a,b){return parseInt($.css(a[0],b))||0};function width(a){return a[0].offsetWidth+css(a,'marginLeft')+css(a,'marginRight')};function height(a){return a[0].offsetHeight+css(a,'marginTop')+css(a,'marginBottom')}})(jQuery);(function($){$.fn.tabSlideOut=function(callerSettings){var settings=$.extend({tabHandle:'.handle',speed:300,action:'click',tabLocation:'left',topPos:'200px',leftPos:'20px',fixedPosition:false,positioning:'absolute',pathToTabImage:null,imageHeight:null,imageWidth:null,onLoadSlideOut:false},callerSettings||{});settings.tabHandle=$(settings.tabHandle);var obj=this;if(settings.fixedPosition===true){settings.positioning='fixed';}else{settings.positioning='absolute';}
if(document.all&&!window.opera&&!window.XMLHttpRequest){settings.positioning='absolute';}
if(settings.pathToTabImage!=null){settings.tabHandle.css({'background':'url('+settings.pathToTabImage+') no-repeat','width':settings.imageWidth,'height':settings.imageHeight});}
settings.tabHandle.css({'display':'block','textIndent':'-99999px','outline':'none','position':'absolute'});obj.css({'line-height':'1','position':settings.positioning});var properties={containerWidth:parseInt(obj.outerWidth(),10)+'px',containerHeight:parseInt(obj.outerHeight(),10)+'px',tabWidth:parseInt(settings.tabHandle.outerWidth(),10)+'px',tabHeight:parseInt(settings.tabHandle.outerHeight(),10)+'px'};if(settings.tabLocation==='top'||settings.tabLocation==='bottom'){obj.css({'left':settings.leftPos});settings.tabHandle.css({'right':0});}
if(settings.tabLocation==='top'){obj.css({'top':'-'+properties.containerHeight});settings.tabHandle.css({'bottom':'-'+properties.tabHeight});}
if(settings.tabLocation==='bottom'){obj.css({'bottom':'-'+properties.containerHeight,'position':'fixed'});settings.tabHandle.css({'top':'-'+properties.tabHeight});}
if(settings.tabLocation==='left'||settings.tabLocation==='right'){obj.css({'height':properties.containerHeight,'top':settings.topPos});settings.tabHandle.css({'top':0});}
if(settings.tabLocation==='left'){obj.css({'left':'-'+properties.containerWidth});settings.tabHandle.css({'right':'-'+properties.tabWidth});}
if(settings.tabLocation==='right'){obj.css({'right':'-'+properties.containerWidth});settings.tabHandle.css({'left':'-'+properties.tabWidth});$('html').css('overflow-x','hidden');}
settings.tabHandle.click(function(event){event.preventDefault();});var slideIn=function(){if(settings.tabLocation==='top'){obj.animate({top:'-'+properties.containerHeight},settings.speed).removeClass('open');}else if(settings.tabLocation==='left'){obj.animate({left:'-'+properties.containerWidth},settings.speed).removeClass('open');}else if(settings.tabLocation==='right'){obj.animate({right:'-'+properties.containerWidth},settings.speed).removeClass('open');}else if(settings.tabLocation==='bottom'){obj.animate({bottom:'-'+properties.containerHeight},settings.speed).removeClass('open');}};var slideOut=function(){if(settings.tabLocation=='top'){obj.animate({top:'-3px'},settings.speed).addClass('open');}else if(settings.tabLocation=='left'){obj.animate({left:'-3px'},settings.speed).addClass('open');}else if(settings.tabLocation=='right'){obj.animate({right:'-3px'},settings.speed).addClass('open');}else if(settings.tabLocation=='bottom'){obj.animate({bottom:'-3px'},settings.speed).addClass('open');}};var clickScreenToClose=function(){obj.click(function(event){event.stopPropagation();});$(document).click(function(){slideIn();});};var clickAction=function(){settings.tabHandle.click(function(event){if(obj.hasClass('open')){slideIn();}else{slideOut();}});clickScreenToClose();};var hoverAction=function(){obj.hover(function(){slideOut();},function(){slideIn();});settings.tabHandle.click(function(event){if(obj.hasClass('open')){slideIn();}});clickScreenToClose();};var slideOutOnLoad=function(){slideIn();setTimeout(slideOut,500);};if(settings.action==='click'){clickAction();}
if(settings.action==='hover'){hoverAction();}
if(settings.onLoadSlideOut){slideOutOnLoad();};};})(jQuery);
