


function ShowHide( divID ) {
	for( ctr = 1; ctr <= 4; ctr++ ){
		if( ctr == divID ){
			document.getElementById( "tab" + ctr + "Content" ).style.visibility="visible";
			document.getElementById( "tab" + ctr + "Content" ).style.position="static";
			createCookie( 'cookie_menu_tab', ctr, 30 );
			//alert( readCookie( 'cookie_menu_tab' ) );
		}else{
			document.getElementById( "tab" + ctr + "Content" ).style.visibility="hidden";
			document.getElementById( "tab" + ctr + "Content"  ).style.position="absolute";
		}
	}
	
}

function selectTab( divID ){
	for( ctr = 1; ctr <= 4; ctr++ ){
		if( ctr == divID ){
			createCookie( 'cookie_menu_tab', ctr, 30 );
			alert( readCookie( 'cooki_menu_tab' ) );
		}
	}
	ShowHide( divID );
}

function setTab( ){
	for( ctr = 1; ctr <= 4; ctr++ ){
		if( ctr == readCookie( 'cookie_menu_tab' ) ){
			document.getElementById( "tab" + ctr ).className = 'active';
		} else{
			document.getElementById( "tab" + ctr ).className = 'down';
		}
	}
	ShowHide( readCookie( 'cookie_menu_tab' ) );
}
