$(".rec_tab_btn").css({"font-weight":"bold"});
$("#tm_n_3").addClass("raid_recovery_on");

if($(".important_content"))
{
	var ipt_cnt = $(".important_content").html();
	$(".important_content").remove();
	$(".footer_top").html( ipt_cnt );
}


/** hdd_news *****************************************************************/
$('.hdd_news p').hide();
$('.hdd_news p:eq(0)').show();

$('.hdd_news').css({'position':'absolute'});
$('.news_more_up_btn').hide();

$('.news_more_btn').click(function(){

	$('.hdd_news').animate({height:100}, 'normal');
	$('.hdd_news p').show('normal');

	if(navigator.appVersion.substring(22,25)==6.0)
	{
		$('.hdd_news p').css({"margin-bottom":"15px"});	
	}
	else if(navigator.appVersion.substring(22,25)==7.0)
	{
		$('.hdd_news p').css({"margin-bottom":"12px"});
	}

	$('.news_more_btn').hide();
	$(".news_more_up_btn").show();

}).css({"cursor":"pointer"});


$('.news_more_up_btn').click(function(){

	$('.hdd_news').animate({height:27}, 'normal');
	
	$('.hdd_news p').hide('normal',function()
	{
		$('.hdd_news p:eq(0)').show();
	});

	$('.news_more_up_btn').hide();
	$(".news_more_btn").show();

}).css({"cursor":"pointer"});
/** hdd_news *****************************************************************/
/**  case_studies_tab  *******************************************************/

$("#tab_02").hide();
$("#tab_03").hide();

$(".case_tab01").addClass('case_tab01_over');

function tab_move_case(tab)
{
	$("#tab_01").hide();
	$("#tab_02").hide();
	$("#tab_03").hide();
	$(".case_tab01").removeClass('case_tab01_over');
	$(".case_tab02").removeClass('case_tab02_over');
	$(".case_tab03").removeClass('case_tab03_over');

	if(tab=='tab_01')
	{
		$("#tab_01").show();
		
		$(".case_tab01").addClass('case_tab01_over');
	}
	else if(tab=='tab_02')
	{
		$("#tab_02").show();
		$(".case_tab02").addClass('case_tab02_over');
	}
	else if(tab=='tab_03')
	{
		$("#tab_03").show();
		$(".case_tab03").addClass('case_tab03_over');
	}
	return false;
}

/**  case_studies_tab  *******************************************************/
/**  recovery_contests_right_brand  ******************************************/
var brand_element = 'recovery_contests_right_brand';
var brand_el = 0;
var brand_el_mx = $('.'+brand_element+' img').size();

$('.'+brand_element+' img').hide();
$('.'+brand_element+' img:eq(0)').show();

function rolling_brand_img()
{
	$('.'+ brand_element+' img:eq('+brand_el+')').hide();
	brand_el++;
	if(brand_el==brand_el_mx) brand_el = 0;

	$('.'+ brand_element+' img:eq('+brand_el+')').css('opacity', '0.01').show().animate({opacity:1}, 'slow');
	setTimeout('rolling_brand_img()',2000);
}

setTimeout('rolling_brand_img()',1500);

/**  recovery_contests_right_brand  ******************************************/
/**  trouble_shooting_roll  **************************************************/
var tb_sh_el = 0;
var tb_sh_el_mx = $('.trouble_shooting_roll div').size();
var tb_sh_el_pause = true;


$('.trouble_shooting_roll div').mouseover(function(){
	tb_sh_el_pause = false;
}).mouseout(function(){
	tb_sh_el_pause = true;
});

$('.trouble_shooting_roll div').hide();
$('.trouble_shooting_roll div:eq(0)').show();

function rolling_element(next,cls)
{
	if(tb_sh_el_pause)
	{
		$('.'+cls+' div:eq('+tb_sh_el+')').hide();
		
		if(next=='next')
		{
			tb_sh_el++;
			if(tb_sh_el==tb_sh_el_mx) tb_sh_el = 0;
		}
		else if(next=='prev')
		{
			tb_sh_el--;
			if(tb_sh_el==-1) tb_sh_el = tb_sh_el_mx-1;
		}
		
		$('.'+cls+' div:eq('+tb_sh_el+')').show();
	}
}

setInterval('rolling_element("next","trouble_shooting_roll")',5000);

/**  trouble_shooting_roll  **************************************************/

