
function showhidediv(id) {    var i;    for(i=1;i<=19;i++)        

if(document.getElementById('id' + i))document.getElementById('id' + i).style.display = 'none';    

if(document.getElementById('id' + id)){
		document.getElementById('id' + id).style.display = 'inline';
		}else{
		
		switch(id){
		case('2'):		document.location.href="./tlumaczenia_pisemne.html";break;
		case('13'):		document.location.href="./szkolenia.php";break;
		case('10'):		document.location.href="./formularz.html";break;
		case('8'):		document.location.href="./cennik.php";break;	
		case('12'):	document.location.href="./regulamin.html";break;
		case('14'):	document.location.href="./certyfikat_toeic.php";break;	
		case('15'):	document.location.href="./certyfikat_tfi.php";break;	
		case('16'):	document.location.href="./certyfikat_widaf.php";break;	
		case ('17'): document.location.href="./ofirmie_referencje.html";break;
		default:	 document.location.href="./index.php";
		}
		
		//window.alert(id);
		
		//document.location.href="./index.php";
		}    

return false;}

/****
****/

function getFlashMovieObject(movieName)
{

  if (window.document[movieName]) 
  {
      return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else{    
    return document.getElementById(movieName);  // if Microsoft Internet"
  }
}
/****
****/


function otworzlink(linkowanieJS){

if(navigator.appName.indexOf("Microsoft Internet")!=-1){

 window.document.menubar.SetVariable("linkowanie",linkowanieJS);
 window.document.menubar.play();

}else{
 //var menubar = getFlashMovieObject('menubar_ff');
 var menubar = document.embeds[0];

 menubar.SetVariable("linkowanie", linkowanieJS);
 menubar.Play();
 }
}

/****
****/

function otworzlink_old(linkowanieJS){

if(document.getElementById('menubar') != undefined){
  var menubar = document.getElementById('menubar'); 
  }else{
  var menubar = document.getElementById('menubar');
  if(menubar == undefined) window.alert("niema menubar");
  }

//poprawka Lakshmi:
if (navigator.appName.indexOf("Microsoft Internet")==-1){
if (document.embeds && document.embeds['menubar_ff']){
  document.embeds['menubar_ff'].SetVariable("linkowanie",linkowanieJS);
  document.embeds['menubar_ff'].play();
  }
} else if (navigator.appName.indexOf("Microsoft Internet")!=-1){
document.menubar.SetVariable("linkowanie",linkowanieJS);
document.menubar.play();
}

//window.document.menubar.SetVariable("linkowanie", linkowanieJS);
//window.document.menubar.play();
}

/****
****/

		  function kontakt(){

	if(navigator.appName.indexOf("Microsoft")==-1){
	var menubar = document.embeds[0];
	menubar.LoadMovie(7, "kontakt.swf");
	}else{		  
	window.document.menubar.LoadMovie(7, "kontakt.swf");
	}

}

