/*$(document).ready(function () {
 document.getElementById('wrapper').style.display='none';
 document.getElementById("top_m_o").style.backgroundImage = "url('img/tpm_mini.png')";
});*/

$(window).load(function(){  
document.getElementById("top_m_o").style.backgroundImage = "url('img/TPM_Logo_115x125.png')";
$("#wrapper").fadeIn(100, function(){
 //document.getElementById("top_m_o").style.backgroundImage = "url('img/TPM_Logo_115x125.png')";




$("#stage_wrapper").fadeIn(10, function(){

setTimeout("ininavi();",65);

  });

 });

      


$("div#mygaltop").slideView({toolTip: true, ttOpacity: 0.5});

});



 
 



function ininavi(){

$('#top_m_o').animate({height: '124px'},600, 'easeOutBack');
   
$('#ni_1').animate({ width: '150px' },200, 'easeOutBack', function(){
//$('#m1_label').show(50);
document.getElementById('top_m_o').style.height='124px';
document.getElementById('m1_label').style.display='block';
  		});
$('#ni_2').animate({ width: '150px' },400, 'easeOutBack', function(){
//$('#m2_label').show(50);
document.getElementById('m2_label').style.display='block';
 });
$('#ni_3').animate({ width: '150px' },600, 'easeOutBack', function(){
//$('#m3_label').show(50);
document.getElementById('m3_label').style.display='block';
	 });
$('#ni_4').animate({ width: '150px'},800, 'easeOutBack', function(){
//$('#m4_label').show(50);
document.getElementById('m4_label').style.display='block';
 });


$('#ni_1').delay(800).animate({ width: '0px'},150, 'easeOutBack', function(){
//$('#m1_label').hide(50);
document.getElementById('m1_label').style.display='none';




$('#ni_2').delay(100).animate({ width: '0px'},150, 'easeOutBack', function(){
//$('#m2_label').hide(10);
document.getElementById('m2_label').style.display='none';

$('#ni_3').delay(100).animate({ width: '0px'},150, 'easeOutBack', function(){
//$('#m3_label').hide(10); 	
document.getElementById('m3_label').style.display='none'; 			
 $('#ni_4').delay(100).animate({ width: '0px'},150, 'easeOutBack', function(){
 //$('#m4_label').hide(10);	
document.getElementById('m4_label').style.display='none'; 		
 	document.getElementById('navi_protec').style.display='none';
 	document.getElementById('naviani').style.display='none'; 
 				 
 			
 				
 				
       });});});
 });


 }

  


var pop=0; 
 function portlabeler(){

if(pop==0){
$('#p_label1').animate({ width: '550px' },600, 'easeOutBack', function(){
//$('#m1_label').show(400);
  });
  pop++;
  }
  else{
 pop=0;
  $('#p_label1').animate({ width: '0px' },600, 'easeOutBack', function(){
//$('#m1_label').show(400);
  });
  }

 }
 

 

 
 



/*
function(){
	$("#wrapper").animate({ 
    	width: "1000px",
    	height: "300px",
  	 	backgroundColor: "maroon"
  	}, 500, 

function(){
  			
  			//ajax request -start
  			$.ajax({
   				type: "POST",
   				url: "file.php",
  				data: "name=icke&city=berlin&date=heute",
   				success: 
   				
function(msg){
     				//alert( "Data Saved: " + msg );
     				  //$("#wrapper").text("neuertext");
     				 $("#wrapper").append("<--danach");
     				 $("#wrapper").prepend("davor -->");
     				 $("#wrapper").append("<br />AJAX Text:<br />"+msg);
     				// setTimeout( '$("#wrapper").text("text von php");', 2000);
     				 //$("#wrapper").effect("bounce", { times:5 }, 300)
                 }
             });
             //ajax request -end
		});
	});
});  
*/


