$(document).ready(function(){
	$("#bar h2:first").addClass("selecton");
	$("#bar h2:not(:first)").addClass("selectoff");
	$("#bar form:not(:first)").hide();
	$("#bar h2").click(function(){
		$(this).next("form").slideToggle("fast").siblings("form:visible").slideUp("fast");
		$(this).removeClass("selectoff").toggleClass("selecton");
		$(this).siblings("h2").removeClass("selecton").addClass("selectoff");
	});
});

$(document).ready(function(){
	$('#changebg ol li').click(function(){
		$('#web_bg').css('backgroundImage','url(./webbg/'+$(this).find('span').attr("id")+'.jpg)');
	});
});

var tID=0;
function ShowTabs(ID){
	if(ID!=tID){
		eval("document.getElementById('hotareaimg_"+[tID]+"').style.display='none';");
		eval("document.getElementById('hotareaimg_"+[ID]+"').style.display='block';");
		tID=ID;
	}
}