jQuery(document).ready(function(){heroslide(hs_class_name);heroslide_auto()});var hs_class_name="heroslide";var hs_auto_active=1;var hs_auto_active_item=1;var hs_auto_timer=5000;function heroslide_auto(){if(hs_auto_active==1){hs_auto_active_item++;if(hs_auto_active_item>$("."+hs_class_name).children().size()){hs_auto_active_item=1}setTimeout("heroslide_auto_act()",hs_auto_timer)}}function heroslide_auto_act(){if(hs_auto_active==1){$("."+hs_class_name+" li:nth-child("+hs_auto_active_item+")").click();hs_auto_active=1;heroslide_auto()}}var heroslide=function(c){var d=150;var b=300;var f=1;$("."+c+" li").click(function(){hs_auto_active=0;var h=$(this).index()+1;var g=$(this).parent().children().size();f=h;for(i=0;i<g;i++){element=$(this).parent().children(":nth-child("+(i+1)+")");li_width=element.width();div_width=element.find("div").width();move_factor=li_width-div_width;left_pos_norm=i*move_factor;if(i<(h-1)){left_pos_now=left_pos_norm-move_factor}else{left_pos_now=left_pos_norm}if(left_pos_now>=0){left_pos_now+=i*1}element.animate({left:left_pos_now},b,function(){})}$(this).parent().find("li div").animate({bottom:"-111"},b,function(){});$(this).find("div").animate({bottom:"0"},b,function(){})});$("."+c+" li").hover(function(){if(f!=($(this).index()+1)){$(this).find("div").animate({bottom:"+=10"},d,function(){})}},function(){if(f!=($(this).index()+1)){$(this).find("div").animate({bottom:"-=10"},d,function(){})}});var e=$({});var a="welcomeSequence";e.queue(a,function(g){$("."+c+" li:nth-child(1)").trigger("click");hs_auto_active=1;g()});e.delay(800,a);e.queue(a,function(g){$("."+c+" li:nth-child(2)").mouseover().mouseout();g()});e.delay(250,a);e.queue(a,function(g){$("."+c+" li:nth-child(3)").mouseover().mouseout();g()});e.delay(250,a);e.dequeue(a)};
