	var country = new Array();
	country[0]="australia";		// +10
	country[1]="canada";		// -5
	country[2]="china";		    // +8
	country[3]="hong_kong";   	// +8
	country[4]="japan";			// +9
	country[5]="new_zealand";	// +12
	country[6]="united_kingdom";// 0
	country[7]="united_states";	// -5
	country[8]="taiwan"; 		// +8
	
	var country2 = new Array();
	country2[0]="澳大利亚";		// +10
	country2[1]="加拿大";		// -5
	country2[2]="中国";		    // +8
	country2[3]="香港";   	// +8
	country2[4]="日本国";			// +9
	country2[5]="新西兰";	// +12
	country2[6]="英国";// 0
	country2[7]="美国";	// -5
	country2[8]="台湾"; 		// +8

	var maps_name = new Array();
	maps_name[0] ="map_au.png";
	maps_name[1] ="map_ca.png";
	maps_name[2] ="map_cn.png";
	maps_name[3] ="map_hk.png";
	maps_name[4] ="map_jp.png";
	maps_name[5] ="map_nz.png";
	maps_name[6] ="map_uk.png";
	maps_name[7] ="map_us.png";
	maps_name[8] ="map_tw.png";
	maps_name[9] ="map_other.png";

	var time_zone = new Array();
	time_zone[0]=10;
	time_zone[1]=-5;
	time_zone[2]=8;
	time_zone[3]=8;
	time_zone[4]=9;
	time_zone[5]=12;
	time_zone[6]=0;
	time_zone[7]=-5;
	time_zone[8]=8;
	
	var temp = Math.random();
	temp = temp * 9;
	var country_num = Math.ceil(temp)-1;
	var rotate_num=1;
	var temp_rotate=1;
	var country_name = country[country_num].toUpperCase();	
	var country_name2 = country2[country_num].toUpperCase();	
function put_time(){
		
		 $("body").attr('id','bg'+country_num);
	  	 var d = new Date();
		 var current_hour=d.getUTCHours()+time_zone[country_num];
		 var flag=1;
		 if(country_name == "UNITED_STATES")
		 {
		 	flag=0;
		 }
		 if(current_hour>23)
		 {
		 	current_hour = current_hour - 24;
		 }else if(current_hour<0)
		 {
		 	current_hour =current_hour +24;
		 }
		 if(d.getUTCMinutes()<10 && current_hour<10)
		 {
			
			if(flag==1)
			{		 
		 		$(".time_cell").text( '0'+current_hour+':0'+d.getUTCMinutes());  //put local time to local_time div
			}else{
				$(".time_cell").text('EST 0'+ current_hour+':0'+d.getUTCMinutes());
			}
		 }else if(d.getUTCMinutes()>9 && current_hour<10)
		 {
			 if(flag==1)
			{		 
		 		$(".time_cell").text( '0'+current_hour+':'+d.getUTCMinutes());  //put local time to local_time div
			}else{
				$(".time_cell").text('EST 0'+ current_hour+':'+d.getUTCMinutes());
			}
		 }else if(d.getUTCMinutes()<10 && current_hour>9)
		 {
			 if(flag==1)
			{		 
		 		$(".time_cell").text( current_hour+':0'+d.getUTCMinutes());  //put local time to local_time div
			}else{
				$(".time_cell").text('EST '+ current_hour+': 0'+d.getUTCMinutes());
			}
		 }
		 else{
		 	if(flag==1){
		 		$(".time_cell").text( current_hour+':'+d.getUTCMinutes());  //put local time to local_time div
			}else{
				$(".time_cell").text('EST '+current_hour+':'+d.getUTCMinutes());
			}
		 }

		 var tttt=country_name2.replace(/_/," ");
		 $(".country_cell").text(tttt);                    	  //put country name to country_name div	
		 
		 var t =".country";
		 var tt =country_num+1;
		 //alert('.ratebox table#'+country_num.toString());
		  $('.ratebox table#'+country[country_num]).show();
		 //alert(tt);
		 for(var i=1;i<10;i++)
		 { 	
		 	$(t+i.toString()).hide(); 
		 }
		 $(t+tt.toString()).show();
		  
		 //document.getElementById('maincol2').style.backgroundImage='url(images/'+country[country_num]+'1.jpg)';
	  }	
var pre_country="none";
var select_country_flag=false;

$(document).ready(function(){
	
	//language support div slide down javascripts
	$(".lang_btn").click(function() { 
		$(".lang_support").toggle("slide", { 
			direction: "up" 
		}, 
		1000); 
	});
	
	$('.site_selection2 a').hover(
		function (){
			$(this).find('img').attr('src','images/'+$(this).attr('id')+'.png');   
		},
		function (){
			$(this).find('img').attr('src','images/'+$(this).attr('id')+'_dark.png');   
		}
	);
	
	$(".country_select_container").mouseover(
	//$("#container").mouseout(
		function(){
			$("#country_select_box_template").addClass("onover");
			$(".conuntry_select_background, #country_select_box_template ul").show();
			//$(".maps_contain").show();
			/*$(".maps_picture").css("background","url(images/"+maps_name[9]+") no-repeat");*/
			$(".maps_picture").show();
		}
	);
	
	$(".conuntry_select_background").click(
		function(){
			/*alert('call');*/
			$(".site_container").hide();
			$("#country_select_box_template").removeClass("onover");
			$(".conuntry_select_background, #country_select_box_template ul").hide();
			$(".maps_picture").hide();
			$(".maps_picture").css("background","url(images/map_none.png) no-repeat");
			$(".site_left").hide();
			if(pre_country!="none")
			{
				$(".site_left").find("#country_"+pre_country).hide();
				$(".site_left_hake").find("#country_"+pre_country).hide();
				pre_country="none";
			}
			select_country_flag=false;
		}
	);
	
	$(".conuntry_select_background").mouseover(
		function(){
			if(select_country_flag==false)
			{
			/*alert('call');*/
				$(".site_container").hide();
				$("#country_select_box_template").removeClass("onover");
				$(".conuntry_select_background, #country_select_box_template ul").hide();
				$(".maps_picture").hide();
				$(".maps_picture").css("background","url(images/map_none.png) no-repeat");
				$(".site_left").hide();
				if(pre_country!="none")
				{
					$(".site_left").find("#country_"+pre_country).hide();
					$(".site_left_hake").find("#country_"+pre_country).hide();
					pre_country="none";
				}
				select_country_flag=false;
			}
		}
	);
	
	$(" #country_select_box_template ul li").mouseover(
		function(){
			//alert($(this));
			/*if(first_touch_flag==true)
			{
				//$(".site_container").slideDown();
				$(".site_container").fadeIn(1000);				
				first_touch_flag=false;
			}*/
			if(pre_country!="none")
			{	
				$(".site_left").find("#country_"+pre_country).hide();
			}
			
			var t=$(this).attr("id");
			pre_country =t;

			$(".maps_picture").css("background","url(images/"+maps_name[t]+") no-repeat");
			$(".site_left").show();
			select_country_flag=false;
		}
	);
	
	$(" #country_select_box_template ul li").click(
		function(){
			$(".site_left").find("#country_"+pre_country).fadeIn(1000);
			select_country_flag=true;
		}
	);
	/*
	$(".country_select_container").mouseout(
		function(){	$(".conuntry_select_background").hide();}	
	);
	*/
});
