$(document).ready(function(){$('ul.sf-menu').superfish();});function simple_tooltip(target_items,name){$(target_items).each(function(i){$("body").append("<div class='"+name+"' id='"+name+i+"'><p>"+$(this).attr('title')+"</p></div>");var my_tooltip=$("#"+name+i);if($(this).attr("title")!=""&&$(this).attr("title")!="undefined"){$(this).removeAttr("title").mouseover(function(){my_tooltip.css({opacity:1,display:"none"}).fadeIn(300);}).mousemove(function(kmouse){var border_top=$(window).scrollTop();var border_right=$(window).width();var left_pos;var top_pos;var offset=20;if(border_right-(offset*2)>=my_tooltip.width()+kmouse.pageX){left_pos=kmouse.pageX-20;}else{left_pos=border_right-my_tooltip.width()-offset;}
if(border_top+(offset*2)>=kmouse.pageY-my_tooltip.height()){top_pos=border_top+offset;}else{top_pos=kmouse.pageY-my_tooltip.height()-offset;}
my_tooltip.css({left:left_pos,top:top_pos});}).mouseout(function(){my_tooltip.css({left:"-9999px"});});}});}
$(document).ready(function(){simple_tooltip("a","tooltip");});(function($){$.fn.jFlow=function(options){var opts=$.extend({},$.fn.jFlow.defaults,options);var randNum=Math.floor(Math.random()*11);var jFC=opts.controller;var jFS=opts.slideWrapper;var jSel=opts.selectedWrapper;var cur=0;var maxi=$(jFC).length;var slide=function(dur,i){$(opts.slides).children().css({overflow:"hidden"});$(opts.slides+" iframe").hide().addClass("temp_hide");$(opts.slides).animate({marginLeft:"-"+(i*$(opts.slides).find(":first-child").width()+"px")},opts.duration*(dur),opts.easing,function(){$(opts.slides).children().css({overflow:"auto"});$(".temp_hide").show();});}
$(this).find(jFC).each(function(i){$(this).click(function(){if($(opts.slides).is(":not(:animated)")){$(jFC).removeClass(jSel);$(this).addClass(jSel);var dur=Math.abs(cur-i);slide(dur,i);cur=i;}});});$(opts.slides).before('<div id="'+jFS.substring(1,jFS.length)+'"></div>').appendTo(jFS);$(opts.slides).find("div").each(function(){$(this).before('<div class="jFlowSlideContainer"></div>').appendTo($(this).prev());});$(jFC).eq(cur).addClass(jSel);var resize=function(x){$(jFS).css({position:"relative",width:opts.width,height:opts.height,overflow:"hidden"});$(opts.slides).css({position:"relative",width:$(jFS).width()*$(jFC).length+"px",height:$(jFS).height()+"px",overflow:"hidden"});$(opts.slides).children().css({position:"relative",width:$(jFS).width()+"px",height:$(jFS).height()+"px","float":"left",overflow:"auto"});$(opts.slides).css({marginLeft:"-"+(cur*$(opts.slides).find(":eq(0)").width()+"px")});}
resize();$(window).resize(function(){resize();});$(opts.prev).click(function(){if($(opts.slides).is(":not(:animated)")){var dur=1;if(cur>0)
cur--;else{cur=maxi-1;dur=cur;}
$(jFC).removeClass(jSel);slide(dur,cur);$(jFC).eq(cur).addClass(jSel);}});$(opts.next).click(function(){if($(opts.slides).is(":not(:animated)")){var dur=1;if(cur<maxi-1)
cur++;else{cur=0;dur=maxi-1;}
$(jFC).removeClass(jSel);slide(dur,cur);$(jFC).eq(cur).addClass(jSel);}});};$.fn.jFlow.defaults={controller:".jFlowControl",slideWrapper:"#jFlowSlide",selectedWrapper:"jFlowSelected",easing:"swing",duration:400,width:"100%",prev:".jFlowPrev",next:".jFlowNext"};})(jQuery);$(document).ready(function(){$("#myController").jFlow({slides:"#mySlides",controller:".jFlowControl",slideWrapper:"#jFlowSlide",selectedWrapper:"jFlowSelected",width:"542px",height:"196px",duration:400,prev:".jFlowPrev",next:".jFlowNext"});});$(function(){var tabContainers=$('.tabs > div');tabContainers.hide().filter(':first').show();$('.tabs .tabNavigation a').click(function(){tabContainers.hide();tabContainers.filter(this.hash).show();$('.tabs .tabNavigation a').removeClass('selected');$(this).addClass('selected');return false;}).filter(':first').click();});