jQuery.noConflict();jQuery(document).ready(function(){jQuery("#content-slider").slider({animate:true,orientation:'vertical',change:handleSliderChange,slide:handleSliderSlide,value:100});jQuery("#content-slider_2").slider({animate:true,orientation:'vertical',change:handleSliderChange,slide:handleSliderSlide,value:100});});function handleSliderChange(e,ui)
{var maxScroll=jQuery("#content-scroll").attr("scrollHeight")-jQuery("#content-scroll").height();jQuery("#content-scroll").animate({scrollTop:((100-ui.value)*(maxScroll/100))},1000);var maxScroll=jQuery("#content-scroll_2").attr("scrollHeight")-jQuery("#content-scroll_2").height();jQuery("#content-scroll_2").animate({scrollTop:((100-ui.value)*(maxScroll/100))},1000);}
function handleSliderSlide(e,ui)
{var maxScroll=jQuery("#content-scroll").attr("scrollHeight")-jQuery("#content-scroll").height();jQuery("#content-scroll").attr({scrollTop:((100-ui.value)*(maxScroll/100))});var maxScroll=jQuery("#content-scroll_2").attr("scrollHeight")-jQuery("#content-scroll_2").height();jQuery("#content-scroll_2").attr({scrollTop:((100-ui.value)*(maxScroll/100))});}
function moveSliderUp(value){var ui=jQuery('#content-slider').slider('option','value');jQuery('#content-slider').slider('value',ui+value);var ui=jQuery('#content-slider_2').slider('option','value');jQuery('#content-slider_2').slider('value',ui+value);}
function moveSliderDown(value){var ui=jQuery('#content-slider').slider('option','value');jQuery('#content-slider').slider('value',ui-value);var ui=jQuery('#content-slider_2').slider('option','value');jQuery('#content-slider_2').slider('value',ui-value);}
jQuery.noConflict();;(function(jQuery){jQuery.swapImage=function(i,preload,repeat,swapInEvent,swapOutEvent){jQuery.swapImage.files={};jQuery.swapImage.data={};jQuery.swapImage.init=function(){var id=jQuery.data(this);var data=jQuery(this).metadata();jQuery.swapImage.data[id]=jQuery.swapImage.data[id]||{};if(typeof data.src!="undefined"){jQuery.swapImage.data[id]["src"]=data.src;jQuery.swapImage.files[data.src]=false}jQuery.each(jQuery.grep([[data.sin,"sin"],[data.sout,"sout"]],function(n){return(typeof n[0]!="undefined"&&n[0].length>0)}),function(){var arr=this[0];var vname=this[1];for(var i=0;i<arr.length;i++){var idx=data[vname][i].indexOf(":");var selection=data[vname][i].substring(0,idx);var file=data[vname][i].substring(idx+1);jQuery.swapImage.data[id][vname]=jQuery.swapImage.data[id][vname]||[];if(idx>1){jQuery.swapImage.data[id][vname].push([selection,file]);jQuery.swapImage.files[file]=false}else{jQuery.swapImage.data[id][vname].push([file])}}})};jQuery.swapImage.preload=function(){jQuery.each(jQuery.swapImage.files,function(k,v){if(v==false){jQuery.swapImage.files[k]=true;var img=new Image();img.src=k}})};jQuery.swapImage.swapIn=function(){jQuery.swapImage.swap(this,"sin")};jQuery.swapImage.swapOut=function(){jQuery.swapImage.swap(this,"sout")};jQuery.swapImage.swap=function(obj,a){var id=jQuery.data(obj);if(typeof jQuery.swapImage.data[id][a]!="undefined"){for(var i=0;i<jQuery.swapImage.data[id][a].length;i++){if(jQuery.swapImage.data[id][a][i].length>1){jQuery(jQuery.swapImage.data[id][a][i][0]).attr("src",jQuery.swapImage.data[id][a][i][1])}else{jQuery(jQuery.swapImage.data[id][a][i][0]).each(jQuery.swapImage._swap)}}}else{jQuery.swapImage._swap.call(obj)}};jQuery.swapImage._swap=function(obj){var id=jQuery.data(this);var data=jQuery.swapImage.data[id];if(typeof data.src!="undefined"){var tmp=data.src;data.src=this.src;this.src=tmp}};jQuery(document).ready(function(){if(typeof repeat=="undefined"){repeat=true}if(typeof preload=="undefined"){preload=true}jQuery(i).each(jQuery.swapImage.init);if(typeof swapInEvent=="undefined"&&typeof swapInEvent=="undefined"){swapInEvent="mouseenter";swapOutEvent="mouseleave"}if(repeat){if(typeof swapOutEvent!="undefined"){jQuery(i).bind(swapInEvent,jQuery.swapImage.swapIn).bind(swapOutEvent,jQuery.swapImage.swapOut)}else{jQuery(i).bind(swapInEvent,jQuery.swapImage.swapIn)}}else{jQuery(i).one(swapInEvent,jQuery.swapImage.swapIn)}if(preload){jQuery(i).each(jQuery.swapImage.preload)}})}})(jQuery);jQuery.noConflict();;(function($){$.extend({metadata:{defaults:{type:'class',name:'metadata',cre:/({.*})/,single:'metadata'},setType:function(type,name){this.defaults.type=type;this.defaults.name=name;},get:function(elem,opts){var settings=$.extend({},this.defaults,opts);if(!settings.single.length)settings.single='metadata';var data=$.data(elem,settings.single);if(data)return data;data="{}";if(settings.type=="class"){var m=settings.cre.exec(elem.className);if(m)data=m[1];}else if(settings.type=="elem"){if(!elem.getElementsByTagName)return;var e=elem.getElementsByTagName(settings.name);if(e.length)data=$.trim(e[0].innerHTML);}else if(elem.getAttribute!=undefined){var attr=elem.getAttribute(settings.name);if(attr)data=attr;}if(data.indexOf('{')<0)data="{"+data+"}";data=eval("("+data+")");$.data(elem,settings.single,data);return data;}}});$.fn.metadata=function(opts){return $.metadata.get(this[0],opts);};})(jQuery);jQuery.noConflict();