$(document).ready(function(){var F={climatechange:0,businessweek:1,poptech:2};var E="climatechange";var B=0;var H=true;var C=7500;var D=250;function G(){E=$(this).children("div:first").attr("id").substring(10);B=F[E];$("#slideshow-controls span").removeClass("slideshow-image-control-selected");$("#slideshow-controls #slideshow"+(B+1)).addClass("slideshow-image-control-selected");if(H&&(B==2)){$("#slideshow-contents").cycle({fx:"scrollRight",speed:D,startingSlide:2,timeout:0});$("#slideshow-contents").oneTime(C,"goback",function(){$("#slideshow-contents").cycle(0);$("#slideshow-contents").cycle({fx:"scrollLeft",speed:"slow",timeout:C,after:G})})}}function A(I){if(I==B){return }$("#slideshow-contents").stopTime("goback");$("#slideshow-contents").cycle({fx:(I>B)?"scrollLeft":"scrollRight",speed:D,startingSlide:B,timeout:0,after:G});$("#slideshow-contents").cycle(I);$("#slideshow-contents").cycle("pause");H=false}$("#slideshow-prev").click(function(){$("#slideshow-contents").stopTime("goback");$("#slideshow-contents").cycle({fx:"scrollRight",speed:D,startingSlide:B,timeout:0,after:G});if(B>0){$("#slideshow-contents").cycle("prev")}$("#slideshow-contents").cycle("pause");H=false});$("#slideshow-next").click(function(){$("#slideshow-contents").stopTime("goback");$("#slideshow-contents").cycle({fx:"scrollLeft",speed:D,startingSlide:B,timeout:0,after:G});if(B<2){$("#slideshow-contents").cycle("next")}$("#slideshow-contents").cycle("pause");H=false});$("#slideshow-controls #slideshow1").click(function(){A(0)});$("#slideshow-controls #slideshow2").click(function(){A(1)});$("#slideshow-controls #slideshow3").click(function(){A(2)});$("#slideshow-contents").cycle({fx:"scrollLeft",speed:"slow",timeout:C,after:G})});