$(document).ready(function(){$(function(){$("#tabcontent > ul").tabs()});$("#tabs .imagescroll").cycle({fx:"fade",speed:1000,timeout:4000,pause:2});

$(function()
{
	var a = $("div#sidebar #newsblog > div");
	$("div#newsblog ul.navigation a").click(
		function()
		{
			a.hide().filter(this.hash).show();
			$("div#newsblog ul.navigation a").removeClass("active");
			$(this).addClass("active");
			return false
		}
	).filter(":first").click()
}
);

$("#topimages img").each(function(){rollsrc=$(this).attr("src");rollON=rollsrc.replace("OFF","ON");newImg=new Image();$(newImg).attr("src",rollON)});$("#topimages a").mouseover(function(){imgsrc=$(this).children("img").attr("src");if(typeof(imgsrc)!="undefined"){imgsrcON=imgsrc.replace("OFF","ON");$(this).children("img").attr("src",imgsrcON)}});$("#topimages a").mouseout(function(){if(typeof(imgsrc)!="undefined"){$(this).children("img").attr("src",imgsrc)}});$(".scroll").cycle({fx:"scrollHorz",speed:800,timeout:4000,next:"#next",prev:"#prev",pause:1})});
