(function($){$.dimensions={version:
'@VERSION'
};
$.each([
'Height'
,
'Width'
],function(i,name){
$.fn[
'inner'
+name ]=function(){if (!this[0]) return;var torl=name==
'Height'
?
'Top'
:
'Left'
,
borr=name==
'Height'
?
'Bottom'
:
'Right'
;
return this.is(
':visible'
)?this[0][
'client'
+name]:num(this,name.toLowerCase())+num(this,
'padding'
+torl)+num(this,
'padding'
+borr);};
$.fn[
'outer'
+name ]=function(options){if (!this[0]) return;var torl=name==
'Height'
?
'Top'
:
'Left'
,
borr=name==
'Height'
?
'Bottom'
:
'Right'
;
options=$.extend({margin:false},options||{});var val=this.is(
':visible'
)?this[0][
'offset'
+name]:num(this,name.toLowerCase())+num(this,
'border'
+torl+
'Width'
)+num(this,
'border'
+borr+
'Width'
)+num(this,
'padding'
+torl)+num(this,
'padding'
+borr);return val+(options.margin?(num(this,
'margin'
+torl)+num(this,
'margin'
+borr)):0);};});
$.each([
'Left'
,
'Top'
],function(i,name){$.fn[
'scroll'
+name ]=function(val){if (!this[0]) return;return val !=undefined?
this.each(function(){this==window||this==document?window.scrollTo(name==
'Left'
?val:$(window)[
'scrollLeft'
](),name==
'Top'
?val:$(window)[
'scrollTop'
]()):this[
'scroll'
+name ]=val;}):
this[0]==window||this[0]==document?self[ (name==
'Left'
?
'pageXOffset'
:
'pageYOffset'
) ]||$.boxModel&&document.documentElement[
'scroll'
+name ]||document.body[
'scroll'
+name ]:this[0][
'scroll'
+name ];};});$.fn.extend({position:function(){var left=0,top=0,elem=this[0],offset,parentOffset,offsetParent,results;if (elem){
offsetParent=this.offsetParent();
offset=this.offset();parentOffset=offsetParent.offset();
offset.top-=num(elem,
'marginTop'
);offset.left-=num(elem,
'marginLeft'
);
parentOffset.top+=num(offsetParent,
'borderTopWidth'
);parentOffset.left+=num(offsetParent,
'borderLeftWidth'
);
results={top:offset.top-parentOffset.top,left:offset.left-parentOffset.left};}
return results;},offsetParent:function(){var offsetParent=this[0].offsetParent;while (offsetParent&&(!
/^body|html$/i.test(offsetParent.tagName)&&$.css(offsetParent,
'position'
)==
'static'
))
offsetParent=offsetParent.offsetParent;return $(offsetParent);}});function num(el,prop){return parseInt($.curCSS(el.jquery?el[0]:el,prop,true))||0;};})(jQuery);
var tb_pathToImage=
"/img/loadingAnimation.gif"
;
$(document).ready(function(){tb_init(
'a.thickbox, area.thickbox, input.thickbox'
);
imgLoader=new Image();
imgLoader.src=tb_pathToImage;});
function tb_init(domChunk){$(domChunk).click(function(){var t=this.title||this.name||null;var a=this.href||this.alt;var g=this.rel||false;tb_show(t,a,g);this.blur();return false;});}
function tb_show(caption,url,imageGroup){
try {if (typeof document.body.style.maxHeight===
"undefined"
){
$(
"body"
,
"html"
).css({height:
"100%"
,width:
"100%"
});$(
"html"
).css(
"overflow"
,
"hidden"
);if (document.getElementById(
"TB_HideSelect"
)===null){
$(
"body"
).append(
"<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>"
);$(
"#TB_overlay"
).click(tb_remove);}}else{
if(document.getElementById(
"TB_overlay"
)===null){$(
"body"
).append(
"<div id='TB_overlay'></div><div id='TB_window'></div>"
);$(
"#TB_overlay"
).click(tb_remove);}}
if(tb_detectMacXFF()){$(
"#TB_overlay"
).addClass(
"TB_overlayMacFFBGHack"
);
}else{$(
"#TB_overlay"
).addClass(
"TB_overlayBG"
);
}
if(caption===null){caption=
""
;}
$(
"body"
).append(
"<div id='TB_load'><img src='"
+imgLoader.src+
"' /></div>"
);
$(
'#TB_load'
).show();
var baseURL;if(url.indexOf(
"?"
)!==-1){
baseURL=url.substr(0,url.indexOf(
"?"
));}else{baseURL=url;}
var urlString=
/\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/;var urlType=baseURL.toLowerCase().match(urlString);if(urlType==
'.jpg'
||urlType==
'.jpeg'
||urlType==
'.png'
||urlType==
'.gif'
||urlType==
'.bmp'
){
TB_PrevCaption=
""
;TB_PrevURL=
""
;TB_PrevHTML=
""
;TB_NextCaption=
""
;TB_NextURL=
""
;TB_NextHTML=
""
;TB_imageCount=
""
;TB_FoundURL=false;if(imageGroup){TB_TempArray=$(
"a[rel="
+imageGroup+
"]"
).get();for (TB_Counter=0;((TB_Counter<TB_TempArray.length)&&(TB_NextHTML===
""
));TB_Counter++){var urlTypeTemp=TB_TempArray[TB_Counter].href.toLowerCase().match(urlString);if (!(TB_TempArray[TB_Counter].href==url)){if (TB_FoundURL){TB_NextCaption=TB_TempArray[TB_Counter].title;TB_NextURL=TB_TempArray[TB_Counter].href;TB_NextHTML=
"<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Next &gt;</a></span>"
;} else {TB_PrevCaption=TB_TempArray[TB_Counter].title;TB_PrevURL=TB_TempArray[TB_Counter].href;TB_PrevHTML=
"<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Prev</a></span>"
;}} else {TB_FoundURL=true;TB_imageCount=
"Image "
+(TB_Counter+1)+
" of "
+(TB_TempArray.length);}}}
imgPreloader=new Image();imgPreloader.onload=function(){imgPreloader.onload=null;
var pagesize=tb_getPageSize();var x=pagesize[0]-150;var y=pagesize[1]-150;var imageWidth=imgPreloader.width;var imageHeight=imgPreloader.height;if (imageWidth>x){imageHeight=imageHeight * (x / imageWidth);imageWidth=x;if (imageHeight>y){imageWidth=imageWidth * (y / imageHeight);imageHeight=y;}} else if (imageHeight>y){imageWidth=imageWidth * (y / imageHeight);imageHeight=y;if (imageWidth>x){imageHeight=imageHeight * (x / imageWidth);imageWidth=x;}}
TB_WIDTH=imageWidth+30;TB_HEIGHT=imageHeight+60;$(
"#TB_window"
).append(
"<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"
+url+
"' width='"
+imageWidth+
"' height='"
+imageHeight+
"' alt='"
+caption+
"'/></a>"
+
"<div id='TB_caption'>"
+caption+
"<div id='TB_secondLine'>"
+TB_imageCount+TB_PrevHTML+TB_NextHTML+
"</div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div>"
);$(
"#TB_closeWindowButton"
).click(tb_remove);if (!(TB_PrevHTML===
""
)){function goPrev(){if($(document).unbind(
"click"
,goPrev)){$(document).unbind(
"click"
,goPrev);}
$(
"#TB_window"
).remove();$(
"body"
).append(
"<div id='TB_window'></div>"
);tb_show(TB_PrevCaption,TB_PrevURL,imageGroup);return false;}
$(
"#TB_prev"
).click(goPrev);}
if (!(TB_NextHTML===
""
)){function goNext(){$(
"#TB_window"
).remove();$(
"body"
).append(
"<div id='TB_window'></div>"
);tb_show(TB_NextCaption,TB_NextURL,imageGroup);return false;}
$(
"#TB_next"
).click(goNext);}
document.onkeydown=function(e){if (e==null){
keycode=event.keyCode;} else {
keycode=e.which;}
if(keycode==27){
tb_remove();} else if(keycode==190){
if(!(TB_NextHTML==
""
)){document.onkeydown=
""
;goNext();}} else if(keycode==188){
if(!(TB_PrevHTML==
""
)){document.onkeydown=
""
;goPrev();}}};tb_position();$(
"#TB_load"
).remove();$(
"#TB_ImageOff"
).click(tb_remove);$(
"#TB_window"
).css({display:
"block"
});
};imgPreloader.src=url;}else{
var queryString=url.replace(
/^[^\?]+\??/,
''
);var params=tb_parseQuery(queryString);TB_WIDTH=(params[
'width'
]*1)+30||630;
TB_HEIGHT=(params[
'height'
]*1)+40||440;
ajaxContentW=TB_WIDTH-30;ajaxContentH=TB_HEIGHT-45;if(url.indexOf(
'TB_iframe'
) !=-1){
urlNoQuery=url.split(
'TB_'
);$(
"#TB_iframeContent"
).remove();if(params[
'modal'
] !=
"true"
){
$(
"#TB_window"
).append(
"<div id='TB_title'><div id='TB_ajaxWindowTitle'>"
+caption+
"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div></div><iframe frameborder='0' hspace='0' src='"
+urlNoQuery[0]+
"' id='TB_iframeContent' name='TB_iframeContent"
+Math.round(Math.random()*1000)+
"' onload='tb_showIframe()' style='width:"
+(ajaxContentW+29)+
"px;height:"
+(ajaxContentH+17)+
"px;' > </iframe>"
);}else{
$(
"#TB_overlay"
).unbind();$(
"#TB_window"
).append(
"<iframe frameborder='0' hspace='0' src='"
+urlNoQuery[0]+
"' id='TB_iframeContent' name='TB_iframeContent"
+Math.round(Math.random()*1000)+
"' onload='tb_showIframe()' style='width:"
+(ajaxContentW+29)+
"px;height:"
+(ajaxContentH+17)+
"px;'> </iframe>"
);}}else{
if($(
"#TB_window"
).css(
"display"
) !=
"block"
){if(params[
'modal'
] !=
"true"
){
$(
"#TB_window"
).append(
"<div id='TB_title'><div id='TB_ajaxWindowTitle'>"
+caption+
"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>close</a> or Esc Key</div></div><div id='TB_ajaxContent' style='width:"
+ajaxContentW+
"px;height:"
+ajaxContentH+
"px'></div>"
);}else{
$(
"#TB_overlay"
).unbind();$(
"#TB_window"
).append(
"<div id='TB_ajaxContent' class='TB_modal' style='width:"
+ajaxContentW+
"px;height:"
+ajaxContentH+
"px;'></div>"
);}}else{
$(
"#TB_ajaxContent"
)[0].style.width=ajaxContentW+
"px"
;$(
"#TB_ajaxContent"
)[0].style.height=ajaxContentH+
"px"
;$(
"#TB_ajaxContent"
)[0].scrollTop=0;$(
"#TB_ajaxWindowTitle"
).html(caption);}}
$(
"#TB_closeWindowButton"
).click(tb_remove);if(url.indexOf(
'TB_inline'
) !=-1){$(
"#TB_ajaxContent"
).append($(
'#'
+params[
'inlineId'
]).children());$(
"#TB_window"
).unload(function (){$(
'#'
+params[
'inlineId'
]).append($(
"#TB_ajaxContent"
).children());
});tb_position();$(
"#TB_load"
).remove();$(
"#TB_window"
).css({display:
"block"
});}else if(url.indexOf(
'TB_iframe'
) !=-1){tb_position();if($.browser.safari){
$(
"#TB_load"
).remove();$(
"#TB_window"
).css({display:
"block"
});}}else{$(
"#TB_ajaxContent"
).load(url+=
"&random="
+(new Date().getTime()),function(){
tb_position();$(
"#TB_load"
).remove();tb_init(
"#TB_ajaxContent a.thickbox"
);$(
"#TB_window"
).css({display:
"block"
});});}}
if(!params[
'modal'
]){document.onkeyup=function(e){if (e==null){
keycode=event.keyCode;} else {
keycode=e.which;}
if(keycode==27){
tb_remove();}};}} catch(e){
}}
function tb_showIframe(){$(
"#TB_load"
).remove();$(
"#TB_window"
).css({display:
"block"
});}
function tb_remove(){$(
"#TB_imageOff"
).unbind(
"click"
);$(
"#TB_closeWindowButton"
).unbind(
"click"
);$(
"#TB_window"
).fadeOut(
"fast"
,function(){$(
'#TB_window,#TB_overlay,#TB_HideSelect'
).trigger(
"unload"
).unbind().remove();});$(
"#TB_load"
).remove();if (typeof document.body.style.maxHeight==
"undefined"
){
$(
"body"
,
"html"
).css({height:
"auto"
,width:
"auto"
});$(
"html"
).css(
"overflow"
,
""
);}
document.onkeydown=
""
;document.onkeyup=
""
;return false;}
function tb_position(){$(
"#TB_window"
).css({marginLeft:
'-'
+parseInt((TB_WIDTH / 2),10)+
'px'
,width:TB_WIDTH+
'px'
});if (!(jQuery.browser.msie&&jQuery.browser.version<7)){
$(
"#TB_window"
).css({marginTop:
'-'
+parseInt((TB_HEIGHT / 2),10)+
'px'
});}}
function tb_parseQuery (query){var Params={};if (! query){return Params;}
var Pairs=query.split(
/[;&]/);for (var i=0;i<Pairs.length;i++){var KeyVal=Pairs[i].split(
'='
);if (! KeyVal||KeyVal.length !=2){continue;}
var key=unescape(KeyVal[0]);var val=unescape(KeyVal[1]);val=val.replace(
/\+/g,
' '
);Params[key]=val;}
return Params;}
function tb_getPageSize(){var de=document.documentElement;var w=window.innerWidth||self.innerWidth||(de&&de.clientWidth)||document.body.clientWidth;var h=window.innerHeight||self.innerHeight||(de&&de.clientHeight)||document.body.clientHeight;arrayPageSize=[w,h];return arrayPageSize;}
function tb_detectMacXFF(){var userAgent=navigator.userAgent.toLowerCase();if (userAgent.indexOf(
'mac'
) !=-1&&userAgent.indexOf(
'firefox'
)!=-1){return true;}}
(function($){$.fn.s3Slider=function(vars){var element=this;var timeOut=(vars.timeOut !=undefined)?vars.timeOut:4000;var current=null;var timeOutFn=null;var faderStat=true;var mOver=false;var items=$(
"#"
+element[0].id+
"Content ."
+element[0].id+
"Image"
);var itemsSpan=$(
"#"
+element[0].id+
"Content ."
+element[0].id+
"Image span"
);items.each(function(i){$(items[i]).mouseover(function(){mOver=true;});$(items[i]).mouseout(function(){mOver=false;fadeElement(true);});});var fadeElement=function(isMouseOut){var thisTimeOut=(isMouseOut)?(timeOut/2):timeOut;thisTimeOut=(faderStat)?10:thisTimeOut;if(items.length>0){timeOutFn=setTimeout(makeSlider,thisTimeOut);} else {console.log(
"Poof.."
);}}
var makeSlider=function(){current=(current !=null)?current:items[(items.length-1)];var currNo=jQuery.inArray(current,items)+1
currNo=(currNo==items.length)?0:(currNo-1);var newMargin=$(element).width() * currNo;if(faderStat==true){if(!mOver){$(items[currNo]).fadeIn((timeOut/6),function(){if($(itemsSpan[currNo]).css(
'bottom'
)==0){$(itemsSpan[currNo]).slideUp((timeOut/6),function(){faderStat=false;current=items[currNo];if(!mOver){fadeElement(false);}});} else {$(itemsSpan[currNo]).slideDown((timeOut/6),function(){faderStat=false;current=items[currNo];if(!mOver){fadeElement(false);}});}});}} else {if(!mOver){if($(itemsSpan[currNo]).css(
'bottom'
)==0){$(itemsSpan[currNo]).slideDown((timeOut/6),function(){$(items[currNo]).fadeOut((timeOut/6),function(){faderStat=true;current=items[(currNo+1)];if(!mOver){fadeElement(false);}});});} else {$(itemsSpan[currNo]).slideUp((timeOut/6),function(){$(items[currNo]).fadeOut((timeOut/6),function(){faderStat=true;current=items[(currNo+1)];if(!mOver){fadeElement(false);}});});}}}}
makeSlider();};})(jQuery);
$(function(){$(
'ul.jd_menu'
).jdMenu();});(function($){function addEvents(ul){var settings=$.data($(ul).parents().andSelf().filter(
'ul.jd_menu'
)[0],
'jdMenuSettings'
);$(
'> li'
,ul)
.bind(
'mouseenter.jdmenu mouseleave.jdmenu'
,function(evt){$(this).toggleClass(
'jdm_hover'
);var ul=$(
'> ul'
,this);if (ul.length==1){clearTimeout(this.$jdTimer);var enter=(evt.type==
'mouseenter'
);var fn=(enter?showMenu:hideMenu);this.$jdTimer=setTimeout(function(){fn(ul[0],settings.onAnimate,settings.isVertical);},enter?settings.showDelay:settings.hideDelay);}})
.bind(
'click.jdmenu'
,function(evt){var ul=$(
'> ul'
,this);if (ul.length==1&&(settings.disableLinks==true||$(this).hasClass(
'accessible'
))){showMenu(ul,settings.onAnimate,settings.isVertical);return false;}
if (evt.target==this){var link=$(
'> a'
,evt.target).not(
'.accessible'
);if (link.length>0){var a=link[0];if (!a.onclick){window.open(a.href,a.target||
'_self'
);} else {$(a).trigger(
'click'
);}}}
if (settings.disableLinks||(!settings.disableLinks&&!$(this).parent().hasClass(
'jd_menu'
))){$(this).parent().jdMenuHide();evt.stopPropagation();}})
.find(
'> a'
)
.bind(
'focus.jdmenu blur.jdmenu'
,function(evt){var p=$(this).parents(
'li:eq(0)'
);if (evt.type==
'focus'
){p.addClass(
'jdm_hover'
);} else {p.removeClass(
'jdm_hover'
);}})
.filter(
'.accessible'
)
.bind(
'click.jdmenu'
,function(evt){evt.preventDefault();});}
function showMenu(ul,animate,vertical){var ul=$(ul);if (ul.is(
':visible'
)){return;}
ul.bgiframe();var li=ul.parent();ul .trigger(
'jdMenuShow'
)
.positionBy({target:li[0],targetPos:(vertical===true||!li.parent().hasClass(
'jd_menu'
)?1:3),elementPos:0,hideAfterPosition:true});if (!ul.hasClass(
'jdm_events'
)){ul.addClass(
'jdm_events'
);addEvents(ul);}
li .addClass(
'jdm_active'
)
.siblings(
'li'
).find(
'> ul:eq(0):visible'
)
.each(function(){hideMenu(this);});if (animate===undefined){ul.show();} else {animate.apply(ul[0],[true]);}}
function hideMenu(ul,animate){var ul=$(ul);$(
'.bgiframe'
,ul).remove();ul .filter(
':not(.jd_menu)'
)
.find(
'> li > ul:eq(0):visible'
)
.each(function(){hideMenu(this);})
.end();if (animate===undefined){ul.hide()} else {animate.apply(ul[0],[false]);}
ul .trigger(
'jdMenuHide'
)
.parents(
'li:eq(0)'
)
.removeClass(
'jdm_active jdm_hover'
)
.end()
.find(
'> li'
)
.removeClass(
'jdm_active jdm_hover'
);}
$.fn.jdMenu=function(settings){
var settings=$.extend({
showDelay:200,
hideDelay:500,
disableLinks:true
},settings);if (!$.isFunction(settings.onAnimate)){settings.onAnimate=undefined;}
return this.filter(
'ul.jd_menu'
).each(function(){$.data(this,
'jdMenuSettings'
,$.extend({isVertical:$(this).hasClass(
'jd_menu_vertical'
)},settings));addEvents(this);});};$.fn.jdMenuUnbind=function(){$(
'ul.jdm_events'
,this)
.unbind(
'.jdmenu'
)
.find(
'> a'
).unbind(
'.jdmenu'
);};$.fn.jdMenuHide=function(){return this.filter(
'ul'
).each(function(){hideMenu(this);});};
$(window)
.bind(
'click.jdmenu'
,function(){$(
'ul.jd_menu ul:visible'
).jdMenuHide();});})(jQuery);
jQuery.easing[
'jswing'
]=jQuery.easing[
'swing'
];jQuery.extend(jQuery.easing,{def:
'easeOutQuad'
,swing:function (x,t,b,c,d){
return jQuery.easing[jQuery.easing.def](x,t,b,c,d);},easeInQuad:function (x,t,b,c,d){return c*(t/=d)*t+b;},easeOutQuad:function (x,t,b,c,d){return-c *(t/=d)*(t-2)+b;},easeInOutQuad:function (x,t,b,c,d){if ((t
/=d/2)<1) return c/2*t*t+b;return-c/2 * ((--t)*(t-2)-1)+b;},easeInCubic:function (x,t,b,c,d){return c*(t/=d)*t*t+b;},easeOutCubic:function (x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b;},easeInOutCubic:function (x,t,b,c,d){if ((t
/=d/2)<1) return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b;},easeInQuart:function (x,t,b,c,d){return c*(t/=d)*t*t*t+b;},easeOutQuart:function (x,t,b,c,d){return-c * ((t=t/d-1)*t*t*t-1)+b;},easeInOutQuart:function (x,t,b,c,d){if ((t
/=d/2)<1) return c/2*t*t*t*t+b;return-c/2 * ((t-=2)*t*t*t-2)+b;},easeInQuint:function (x,t,b,c,d){return c*(t/=d)*t*t*t*t+b;},easeOutQuint:function (x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b;},easeInOutQuint:function (x,t,b,c,d){if ((t
/=d/2)<1) return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b;},easeInSine:function (x,t,b,c,d){return-c * Math.cos(t
/d * (Math.PI/2))+c+b;},easeOutSine:function (x,t,b,c,d){return c * Math.sin(t
/d * (Math.PI/2))+b;},easeInOutSine:function (x,t,b,c,d){return-c
/2 * (Math.cos(Math.PI*t/d)-1)+b;},easeInExpo:function (x,t,b,c,d){return (t==0)?b:c * Math.pow(2,10 * (t/d-1))+b;},easeOutExpo:function (x,t,b,c,d){return (t==d)?b+c:c * (-Math.pow(2,-10 * t/d)+1)+b;},easeInOutExpo:function (x,t,b,c,d){if (t==0) return b;if (t==d) return b+c;if ((t
/=d/2)<1) return c/2 * Math.pow(2,10 * (t-1))+b;return c/2 * (-Math.pow(2,-10 *--t)+2)+b;},easeInCirc:function (x,t,b,c,d){return-c * (Math.sqrt(1-(t/=d)*t)-1)+b;},easeOutCirc:function (x,t,b,c,d){return c * Math.sqrt(1-(t=t/d-1)*t)+b;},easeInOutCirc:function (x,t,b,c,d){if ((t
/=d/2)<1) return-c/2 * (Math.sqrt(1-t*t)-1)+b;return c/2 * (Math.sqrt(1-(t-=2)*t)+1)+b;},easeInElastic:function (x,t,b,c,d){var s=1.70158;var p=0;var a=c;if (t==0) return b;if ((t/=d)==1) return b+c;if (!p) p=d*.3;if (a<Math.abs(c)){a=c;var s=p/4;}
else var s=p
/(2*Math.PI) * Math.asin (c/a);return-(a*Math.pow(2,10*(t-=1)) * Math.sin((t*d-s)*(2*Math.PI)/p))+b;},easeOutElastic:function (x,t,b,c,d){var s=1.70158;var p=0;var a=c;if (t==0) return b;if ((t/=d)==1) return b+c;if (!p) p=d*.3;if (a<Math.abs(c)){a=c;var s=p/4;}
else var s=p
/(2*Math.PI) * Math.asin (c/a);return a*Math.pow(2,-10*t) * Math.sin((t*d-s)*(2*Math.PI)/p)+c+b;},easeInOutElastic:function (x,t,b,c,d){var s=1.70158;var p=0;var a=c;if (t==0) return b;if ((t
/=d/2)==2) return b+c;if (!p) p=d*(.3*1.5);if (a<Math.abs(c)){a=c;var s=p/4;}
else var s=p
/(2*Math.PI) * Math.asin (c/a);if (t<1) return-.5*(a*Math.pow(2,10*(t-=1)) * Math.sin((t*d-s)*(2*Math.PI)/p))+b;return a*Math.pow(2,-10*(t-=1)) * Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b;},easeInBack:function (x,t,b,c,d,s){if (s==undefined) s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b;},easeOutBack:function (x,t,b,c,d,s){if (s==undefined) s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b;},easeInOutBack:function (x,t,b,c,d,s){if (s==undefined) s=1.70158;if ((t
/=d/2)<1) return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b;},easeInBounce:function (x,t,b,c,d){return c-jQuery.easing.easeOutBounce (x,d-t,0,c,d)+b;},easeOutBounce:function (x,t,b,c,d){if ((t
/=d) < (1/2.75)){return c*(7.5625*t*t)+b;} else if (t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b;} else if (t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b;} else {return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b;}},easeInOutBounce:function (x,t,b,c,d){if (t<d/2) return jQuery.easing.easeInBounce (x,t*2,0,c,d) * .5+b;return jQuery.easing.easeOutBounce (x,t*2-d,0,c,d) * .5+c*.5+b;}});
$(function(){$.fn.scrollToTop=function(options){if(options){var speed=options.speed;var ease=options.ease;}else{var speed=
"slow"
;var ease=
"jswing"
;}var scrollDiv=$(this);$(this).hide().removeAttr(
"href"
);if($(window).scrollTop()!=
"0"
){$(this).fadeIn(
"slow"
);}$(window).scroll(function(){if($(window).scrollTop()==
"0"
){$(scrollDiv).fadeOut(
"slow"
);}else{$(scrollDiv).fadeIn(
"slow"
);}});$(this).click(function(event){$(
"html, body"
).animate({scrollTop:
"0px"
},speed,ease);});}});
(function($){
$.fn.bgIframe=$.fn.bgiframe=function(s){
if ($.browser.msie&&
/6.0/.test(navigator.userAgent)){s=$.extend({top:
'auto'
,
left:
'auto'
,
width:
'auto'
,
height:
'auto'
,
opacity:true,src:
'javascript:false;'
},s||{});var prop=function(n){return n&&n.constructor==Number?n+
'px'
:n;},html=
'<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'
+s.src+
'"'
+
'style="display:block;position:absolute;z-index:-1;'
+(s.opacity !==false?
'filter:Alpha(Opacity=\'0\');'
:
''
)+
'top:'
+(s.top==
'auto'
?
'expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+\'px\')'
:prop(s.top))+
';'
+
'left:'
+(s.left==
'auto'
?
'expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+\'px\')'
:prop(s.left))+
';'
+
'width:'
+(s.width==
'auto'
?
'expression(this.parentNode.offsetWidth+\'px\')'
:prop(s.width))+
';'
+
'height:'
+(s.height==
'auto'
?
'expression(this.parentNode.offsetHeight+\'px\')'
:prop(s.height))+
';'
+
'"/>'
;return this.each(function(){if ($(
'> iframe.bgiframe'
,this).length==0)
this.insertBefore(document.createElement(html),this.firstChild);});}
return this;};})(jQuery);
(function($){
var Range=function(x1,y1,x2,y2){this.x1=x1;this.x2=x2;this.y1=y1;this.y2=y2;};Range.prototype.contains=function(range){return (this.x1<=range.x1&&range.x2<=this.x2)&&(this.y1<=range.y1&&range.y2<=this.y2);};Range.prototype.transform=function(x,y){return new Range(this.x1+x,this.y1+y,this.x2+x,this.y2+y);};$.fn.positionBy=function(args){var date1=new Date();if (this.length==0){return this;}
var args=$.extend({
target:null,
targetPos:null,
elementPos:null,
x:null,y:null,
positions:null,
addClass:false,
force:false,
container:window,
hideAfterPosition:false},args);if (args.x !=null){var tLeft=args.x;var tTop=args.y;var tWidth=0;var tHeight=0;
} else {var $target=$($(args.target)[0]);var tWidth=$target.outerWidth();var tHeight=$target.outerHeight();var tOffset=$target.offset();var tLeft=tOffset.left;var tTop=tOffset.top;}
var tRight=tLeft+tWidth;var tBottom=tTop+tHeight;return this.each(function(){var $element=$(this);
if (!$element.is(
':visible'
)){$element.css({left:-3000,top:-3000})
.show();}
var eWidth=$element.outerWidth();var eHeight=$element.outerHeight();
var position=[];
var next=[];
position[0]=new Range(tRight,tTop,tRight+eWidth,tTop+eHeight);next[0]=[1,7,4];position[1]=new Range(tRight,tBottom-eHeight,tRight+eWidth,tBottom);next[1]=[0,6,4];position[2]=new Range(tRight,tBottom,tRight+eWidth,tBottom+eHeight);next[2]=[1,3,10];position[3]=new Range(tRight-eWidth,tBottom,tRight,tBottom+eHeight);next[3]=[1,6,10];position[4]=new Range(tLeft,tBottom,tLeft+eWidth,tBottom+eHeight);next[4]=[1,6,9];position[5]=new Range(tLeft-eWidth,tBottom,tLeft,tBottom+eHeight);next[5]=[6,4,9];position[6]=new Range(tLeft-eWidth,tBottom-eHeight,tLeft,tBottom);next[6]=[7,1,4];position[7]=new Range(tLeft-eWidth,tTop,tLeft,tTop+eHeight);next[7]=[6,0,4];position[8]=new Range(tLeft-eWidth,tTop-eHeight,tLeft,tTop);next[8]=[7,9,4];position[9]=new Range(tLeft,tTop-eHeight,tLeft+eWidth,tTop);next[9]=[0,7,4];position[10]=new Range(tRight-eWidth,tTop-eHeight,tRight,tTop);next[10]=[0,7,3];position[11]=new Range(tRight,tTop-eHeight,tRight+eWidth,tTop);next[11]=[0,10,3];position[12]=new Range(tRight-eWidth,tTop,tRight,tTop+eHeight);next[12]=[13,7,10];position[13]=new Range(tRight-eWidth,tBottom-eHeight,tRight,tBottom);next[13]=[12,6,3];position[14]=new Range(tLeft,tBottom-eHeight,tLeft+eWidth,tBottom);next[14]=[15,1,4];position[15]=new Range(tLeft,tTop,tLeft+eWidth,tTop+eHeight);next[15]=[14,0,9];if (args.positions !==null){var pos=args.positions[0];} else if (args.targetPos !=null&&args.elementPos !=null){var pos=[];pos[0]=[];pos[0][0]=15;pos[0][1]=7;pos[0][2]=8;pos[0][3]=9;pos[1]=[];pos[1][0]=0;pos[1][1]=12;pos[1][2]=10;pos[1][3]=11;pos[2]=[];pos[2][0]=2;pos[2][1]=3;pos[2][2]=13;pos[2][3]=1;pos[3]=[];pos[3][0]=4;pos[3][1]=5;pos[3][2]=6;pos[3][3]=14;var pos=pos[args.targetPos][args.elementPos];}
var ePos=position[pos];var fPos=pos;if (!args.force){
$window=$(window);var sx=$window.scrollLeft();var sy=$window.scrollTop();
var container=new Range(sx,sy,sx+$window.width(),sy+$window.height());
var stack;if (args.positions){stack=args.positions;} else {stack=[pos];}
var test=[];
while (stack.length>0){var p=stack.shift();if (test[p]){continue;}
test[p]=true;
if (!container.contains(position[p])){if (args.positions===null){stack=jQuery.merge(stack,next[p]);}} else {ePos=position[p];break;}}}
$element.parents().each(function(){var $this=$(this);if ($this.css(
'position'
) !=
'static'
){var abs=$this.offset();ePos=ePos.transform(-abs.left,-abs.top);return false;}});
var css={left:ePos.x1,top:ePos.y1};if (args.hideAfterPosition){css[
'display'
]=
'none'
;}
$element.css(css);if (args.addClass){$element.removeClass(
'positionBy0 positionBy1 positionBy2 positionBy3 positionBy4 positionBy5 '
+
'positionBy6 positionBy7 positionBy8 positionBy9 positionBy10 positionBy11 '
+
'positionBy12 positionBy13 positionBy14 positionBy15'
)
.addClass(
'positionBy'
+p);}});};})(jQuery);
(function($){
$.fn.jCarouselLite=function(o){o=$.extend({btnPrev:null,btnNext:null,btnGo:null,mouseWheel:false,auto:null,hoverPause:false,speed:200,easing:null,vertical:false,circular:true,visible:3,start:0,scroll:1,beforeStart:null,afterEnd:null},o||{});return this.each(function(){
var running=false,animCss=o.vertical?
"top"
:
"left"
,sizeCss=o.vertical?
"height"
:
"width"
;var div=$(this),ul=$(
"ul"
,div),tLi=$(
"li"
,ul),tl=tLi.size(),v=o.visible;if(o.circular){ul.prepend(tLi.slice(tl-v+1).clone())
.append(tLi.slice(0,o.scroll).clone());o.start+=v-1;}
var li=$(
"li"
,ul),itemLength=li.size(),curr=o.start;div.css(
"visibility"
,
"visible"
);li.css({overflow:
"hidden"
,float:o.vertical?
"none"
:
"left"
});ul.css({margin:
"0"
,padding:
"0"
,position:
"relative"
,
"list-style-type"
:
"none"
,
"z-index"
:
"1"
});div.css({overflow:
"hidden"
,position:
"relative"
,
"z-index"
:
"2"
,left:
"0px"
});var liSize=o.vertical?height(li):width(li);
var ulSize=liSize * itemLength;
var divSize=liSize * v;
li.css({width:li.width(),height:li.height()});ul.css(sizeCss,ulSize+
"px"
).css(animCss,-(curr*liSize));div.css(sizeCss,divSize+
"px"
);
if(o.btnPrev){$(o.btnPrev).click(function(){return go(curr-o.scroll);});if(o.hoverPause){$(o.btnPrev).hover(function(){stopAuto();},function(){startAuto();});}}
if(o.btnNext){$(o.btnNext).click(function(){return go(curr+o.scroll);});if(o.hoverPause){$(o.btnNext).hover(function(){stopAuto();},function(){startAuto();});}}
if(o.btnGo)
$.each(o.btnGo,function(i,val){$(val).click(function(){return go(o.circular?o.visible+i:i);});});if(o.mouseWheel&&div.mousewheel)
div.mousewheel(function(e,d){return d>0?go(curr-o.scroll):go(curr+o.scroll);});var autoInterval;function startAuto(){stopAuto();autoInterval=setInterval(function(){go(curr+o.scroll);},o.auto+o.speed);};function stopAuto(){clearInterval(autoInterval);};if(o.auto){if(o.hoverPause){div.hover(function(){stopAuto();},function(){startAuto();});}
startAuto();};function vis(){return li.slice(curr).slice(0,v);};function go(to){if(!running){if(o.beforeStart)
o.beforeStart.call(this,vis());if(o.circular){
if(to<0){
ul.css(animCss,-((curr+tl) * liSize)+
"px"
);curr=to+tl;} else if(to>itemLength-v){
ul.css(animCss,-((curr-tl) * liSize)+
"px"
);curr=to-tl;} else curr=to;} else {
if(to<0||to>itemLength-v) return;else curr=to;}
running=true;ul.animate(animCss==
"left"
?{left:-(curr*liSize)}:{top:-(curr*liSize)},o.speed,o.easing,function(){if(o.afterEnd)
o.afterEnd.call(this,vis());running=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(el,prop){return parseInt($.css(el[0],prop))||0;};function width(el){return el[0].offsetWidth+css(el,
'marginLeft'
)+css(el,
'marginRight'
);};function height(el){return el[0].offsetHeight+css(el,
'marginTop'
)+css(el,
'marginBottom'
);};})(jQuery);
