var open_index=0;
var k;
var j;
k=1;
j=0;
$(document).ready(function(){
$("a.tt").tooltip();
$("a").not(".tt").removeAttr("title");
open_index++;
show_hot(0,1);
$("#contact").click(function(){
window.open("/contact/","Contact","status=yes,scrollbars=yes,toolbar=no,menubar=no,location=no ,width=400px,height=310px");
return false})});
function show_hot(c,a){
$(".contents .content").hide();
var b=$(".contents .content").length;
$(".contents .content").eq(c).show("150");

$(".contents .content").eq(a).show();
$("#hot-next").die();
$("#hot-back").die();
k=k+1;
j=j+1;
if(b<=2){
$("#hot-next").removeClass("arrow_left").addClass("arrow_lef2");
$("#hot-back").removeClass("arrow_right").addClass("arrow_right2")
}
else{
$("#hot-next").die().live("click",hot_next);$("#hot-back").die().live("click",hot_back)
}
if(a==b-1){
$("#hot-next").removeClass("arrow_left").addClass("arrow_left2")
}
else{$("#hot-next").removeClass("arrow_left2").addClass("arrow_left")
}
if(c==0){
$("#hot-back").removeClass("arrow_right").addClass("arrow_right2")
}
else{
$("#hot-back").removeClass("arrow_right2").addClass("arrow_right")
}}
function hot_next(){
var a=$(".contents .content").length;
if(open_index!=a-1){
i1=open_index;open_index++;show_hot(i1,i1+1)
}}
function hot_back(){
if(open_index!=1){
open_index--;show_hot(open_index-1,open_index)
}}
function change_font(a){switch(a){case 0:$("#cms-body").css("font-size","11px");
break;case 1:$("#cms-body").css("font-size","15px");break;case 2:$("#cms-body").css("font-size","20px");break}};

$(document).ready(function()
{
$("#hot-next").click(function(){
	if(k==14){
	k=1;
	j=0;
	open_index=0;
	}
}
);

$("#hot-back").click(function(){
	if(k==0){
	k=1;
	j=0;
	open_index=0;
	}
	k=k-2;
	j=j-2;
}
);

window.setInterval(hot_next, 7000);

function hot_next() {

if(k==14){
k=1;
j=0;
open_index=0;
}
show_hot(j,k+1);
open_index++;
}
});
