// JavaScript Document

function set_tab(id, p)
{
	if(navigator.appName=="Microsoft Internet Explorer"){
		dp_type="block";
	}
	else{
		dp_type="table-row";
	}
	
	
	for(i=1; i<=12; i++)
	{
		t_id= 't' + i;
		
		if(id == t_id)
		{
			document.getElementById(id).className ='active_tab';
			document.getElementById(p).style.display =dp_type;
		}
		else
		{
			document.getElementById(t_id).className ='';	
		}
		
	}
	
	for(i=1; i<=27; i++)
	{
		p_id= 'p' + i;
		
		if(p != p_id)
		{
			//alert(p_id);
			document.getElementById(p_id).style.display = 'none';
		}
	}
	
}
function set_tab1(id, p)
{
	if(navigator.appName=="Microsoft Internet Explorer"){
		dp_type="block";
	}
	else{
		dp_type="table-row";
	}
	
	
	for(i=1; i<=7; i++)
	{
		t_id= 't' + i;
		
		if(id == t_id)
		{
			document.getElementById(id).className ='active_tab';
			document.getElementById(p).style.display =dp_type;
		}
		else
		{
			document.getElementById(t_id).className ='';	
		}
		
	}
	
	for(i=1; i<=7; i++)
	{
		p_id= 'p' + i;
		
		if(p != p_id)
		{
			//alert(p_id);
			document.getElementById(p_id).style.display = 'none';
		}
	}
	
	
	
}


function show_sub(dude_id){
	document.getElementById(dude_id).style.visibility='visible';
}
function hide_sub(dude_id){
	document.getElementById(dude_id).style.visibility='hidden';
}

function GetRandom( min, max ) {
	if( min > max ) {
		return( -1 );
	}
	if( min == max ) {
		return( min );
	}
 
     zahl= min + parseInt( Math.random() * ( max-min+1 ) );
	 
	 if(zahl == 1)
	 {
		document.getElementById('head_img').src = 'img/head2012.jpg';
	}
} 

