$(function(){$(".slide-out-div").tabSlideOut({tabLocation:"left",speed:300,action:"click",topPos:"0px",leftPos:"20px",fixedPosition:false})});jQuery(document).ready(function(){jQuery("#meta-panel").hide();jQuery("#meta-anchor").click(function(){jQuery("#meta-panel").slideToggle(300);jQuery(this).toggleClass("active");return false})});(function(b){b.fn.tabSlideOut=function(a){var q=b.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},a||{});q.tabHandle=b(q.tabHandle);var p=this;if(q.fixedPosition===true){q.positioning="fixed"}else{q.positioning="absolute"}if(document.all&&!window.opera&&!window.XMLHttpRequest){q.positioning="absolute"}if(q.pathToTabImage!=null){q.tabHandle.css({background:"url("+q.pathToTabImage+") no-repeat",width:q.imageWidth,height:q.imageHeight})}q.tabHandle.css({display:"block",textIndent:"-99999px",outline:"none",position:"absolute"});p.css({"line-height":"1",position:q.positioning});var m={containerWidth:parseInt(p.outerWidth(),10)+"px",containerHeight:parseInt(p.outerHeight(),10)+"px",tabWidth:parseInt(q.tabHandle.outerWidth(),10)+"px",tabHeight:parseInt(q.tabHandle.outerHeight(),10)+"px"};if(q.tabLocation==="top"||q.tabLocation==="bottom"){p.css({left:q.leftPos});q.tabHandle.css({right:0})}if(q.tabLocation==="top"){p.css({top:"-"+m.containerHeight});q.tabHandle.css({bottom:"-"+m.tabHeight})}if(q.tabLocation==="bottom"){p.css({bottom:"-"+m.containerHeight,position:"fixed"});q.tabHandle.css({top:"-"+m.tabHeight})}if(q.tabLocation==="left"||q.tabLocation==="right"){p.css({height:m.containerHeight,top:q.topPos});q.tabHandle.css({top:0})}if(q.tabLocation==="left"){p.css({left:"-"+m.containerWidth});q.tabHandle.css({right:"-"+m.tabWidth})}if(q.tabLocation==="right"){p.css({right:"-"+m.containerWidth});q.tabHandle.css({left:"-"+m.tabWidth});b("html").css("overflow-x","hidden")}q.tabHandle.click(function(c){c.preventDefault()});var r=function(){if(q.tabLocation==="top"){p.animate({top:"-"+m.containerHeight},q.speed).removeClass("open")}else{if(q.tabLocation==="left"){p.animate({left:"-"+m.containerWidth},q.speed).removeClass("open")}else{if(q.tabLocation==="right"){p.animate({right:"-"+m.containerWidth},q.speed).removeClass("open")}else{if(q.tabLocation==="bottom"){p.animate({bottom:"-"+m.containerHeight},q.speed).removeClass("open")}}}}};var o=function(){if(q.tabLocation=="top"){p.animate({top:"-3px"},q.speed).addClass("open")}else{if(q.tabLocation=="left"){p.animate({left:"-3px"},q.speed).addClass("open")}else{if(q.tabLocation=="right"){p.animate({right:"-3px"},q.speed).addClass("open")}else{if(q.tabLocation=="bottom"){p.animate({bottom:"-3px"},q.speed).addClass("open")}}}}};var s=function(){p.click(function(c){c.stopPropagation()});b(document).click(function(){r()})};var l=function(){q.tabHandle.click(function(c){if(p.hasClass("open")){r()}else{o()}});s()};var n=function(){p.hover(function(){o()},function(){r()});q.tabHandle.click(function(c){if(p.hasClass("open")){r()}});s()};var t=function(){r();setTimeout(o,500)};if(q.action==="click"){l()}if(q.action==="hover"){n()}if(q.onLoadSlideOut){t()}}})(jQuery);$(document).ready(function(){$("ul.subnav").parent().append("<span></span>");$("ul.topnav li span").hover(function(){$(this).parent().find("ul.subnav").slideDown("medium").show();$(this).parent().hover(function(){},function(){$(this).parent().find("ul.subnav").slideUp("fast")})}).hover(function(){$(this).addClass("subhover")},function(){$(this).removeClass("subhover")});$("ul.subnav1").parent().append("<span></span>");$("ul.topnav li span").hover(function(){$(this).parent().find("ul.subnav1").slideDown("medium").show();$(this).parent().hover(function(){},function(){$(this).parent().find("ul.subnav1").slideUp("fast")})}).hover(function(){$(this).addClass("subhover")},function(){$(this).removeClass("subhover")})});$(document).ready(function(){$(".paging").show();$(".paging a:first").addClass("active");var e=$(".window").width();var d=$(".image_reel img").size();var f=e*d;$(".image_reel").css({width:f});rotate=function(){var a=$active.attr("rel")-1;var b=a*e;$(".paging a").removeClass("active");$active.addClass("active");$(".image_reel").animate({left:-b},500)};rotateSwitch=function(){play=setInterval(function(){$active=$(".paging a.active").next();if($active.length===0){$active=$(".paging a:first")}rotate()},7000)};rotateSwitch();$(".image_reel a").hover(function(){clearInterval(play)},function(){rotateSwitch()});$(".paging a").click(function(){$active=$(this);clearInterval(play);rotateSwitch();rotate();return false})});
