// JavaScript Document
// JavaScript Document


function showHideVideo() {
    if (document.getElementById('open_video').style.display ==''){
        document.getElementById('open_video').style.display = 'none';
		document.getElementById('collap_sh_video').className = 'pic_sh_up_video';
	}
    else{ 
        document.getElementById('open_video').style.display = '';
		document.getElementById('collap_sh_video').className = 'pic_sh_up_video';
	}
    return;
}
function showHideLienHe_sh() {
    if (document.getElementById('open_lh').style.display ==''){
        document.getElementById('open_lh').style.display = 'none';
		document.getElementById('collap_sh_lh').className = 'pic_sh_up_lh';
	}
    else{ 
        document.getElementById('open_lh').style.display = '';
		document.getElementById('collap_sh_lh').className = 'pic_sh_down_lh';
	}
    return;
}

function showHideIdAuto_header_sh() {
    if (document.getElementById('open_js').style.display ==''){
        document.getElementById('open_js').style.display = 'none';
		document.getElementById('collap_sh_js').className = 'pic_sh_down_js';
	}
    else{ 
        document.getElementById('open_js').style.display = '';
		document.getElementById('collap_sh_js').className = 'pic_sh_up_js';
	}
    return;
}
function showHidecontact() {
    if (document.getElementById('open_ct').style.display ==''){
        document.getElementById('open_ct').style.display = 'none';
		document.getElementById('collap_ct').className = 'pic_ct_down';
	}
    else{ 
        document.getElementById('open_ct').style.display = '';
		document.getElementById('collap_ct').className = 'pic_ct_up';
	}
    return;
}
function showtool() {
    if (document.getElementById('open_check').style.display ==''){
        document.getElementById('open_check').style.display = 'none';
		document.getElementById('collap_open_check').className = 'open_check_down';
	}
    else{ 
        document.getElementById('open_check').style.display = '';
		document.getElementById('collap_open_check').className = 'open_check_up';
	}
    return;
}
function hidetool() {
    if (document.getElementById('open_check').style.display ==''){
        document.getElementById('open_check').style.display = 'none';
	}
    return;
}

var curentContent="cont1";
var int;
function tommi_active_tab(obj, num){

		var curentTab=obj.id;
		var curentContent_1=curentTab.replace("tab","cont");
		switch(num){
			case 0:
				curentContent=curentTab.replace("tab","cont");
				var tabs=$('#' + curentTab).parent().children();
				var contents=$('#' + curentContent).parent().children();
				/*window.clearInterval(int)
				int=setInterval("loadPage()",1000);	*/
				break;
				case 1:
				curentContent=curentTab.replace("tab","cont");
				var tabs=$('#' + curentTab).parent().children();
				var contents=$('#' + curentContent).parent().children();
				/*window.clearInterval(int)
				int=setInterval("loadPage()",1000);	*/
				break;
		}
		
		$(tabs).each( function(){								
				$(this).attr('class','');
		});
		$(contents).each( function(){								
				$(this).hide();
		});
		
		$('#' + curentTab).addClass('active_tab');
		switch(num){
			case 0:
				$('#' + curentContent).fadeIn('slow');	
				break;
				case 1:
				$('#' + curentContent).fadeIn('slow');	
				break;
		}		 	
	}
	




function tommi_active_tab_index(obj, num){

		var curentTab=obj.id;
		var curentContent_1=curentTab.replace("tab_in","cont_tab");
		switch(num){
			case 0:
				curentContent=curentTab.replace("tab_in","cont_tab");
				var tabs=$('#' + curentTab).parent().children();
				var contents=$('#' + curentContent).parent().children();
				/*window.clearInterval(int)
				int=setInterval("loadPage()",1000);	*/
				break;
		}
		
		$(tabs).each( function(){								
				$(this).attr('class','');
		});
		$(contents).each( function(){								
				$(this).hide();
		});
		
		$('#' + curentTab).addClass('eb_tabs_top_select');
		switch(num){
			case 0:
				$('#' + curentContent).fadeIn('slow');	
				break;
		}		 	
	}
	
	
	
	
	
