﻿$(document).ready(function(){$("#welcometoshirley").modal({keyboard:true,backdrop:true,show:true});$(".content article").click(function(){$(this).toggleClass("main").toggleClass("side");$(this).siblings().toggleClass("main").toggleClass("side")});$(".paging").show();$(".paging li:first").addClass("active");rotate=function(){var b=$active.find("a").attr("rel")-1,a=b*379;$(".paging li").removeClass("active");$active.addClass("active");$(".images figure").animate({left:-a},250)};var a;rotateSwitch=function(){a=setInterval(function(){$active=$(".paging li.active").next();if($active.length===0)$active=$(".paging li:first");rotate()},4e3)};rotateSwitch();$(".featured").hover(function(){clearInterval(a)},function(){rotateSwitch()});$(".paging a").hover(function(){$active=$(this).parent("li");clearInterval(a);rotate();rotateSwitch();return false})})
