function slideStart(slide, timeout) 
{
  var img = document.getElementById("slidestart");
    slide.repeat = true;  
    slide.goto_slide(0);
    slide.play(timeout);
}

function slidePause(slide) 
{

  var img = document.getElementById("slidestart");
    slide.pause();
}

function slideStop(slide) 
{
  var img = document.getElementById("slidestart");

  img.src="images/nip/start.jpg";
  isPause=false;
  slide.goto_slide(0);
  slide.pause();
}

function wopen(link,wi,he) 
{
      wincom = window.open(link ,"fenster","toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,width="+wi+",height="+he);
      wincom.focus() ;
}

function changeLocation(currentLang, cityvar, districtvar, branchvar) 
{	
	objvar=branchvar?branchvar:(districtvar?districtvar:cityvar);
	if(objvar)
	{
  	document.forms.mapLocation.city.value=cityvar;
  	document.forms.mapLocation.district.value=districtvar;
  	document.forms.mapLocation.branch.value=branchvar;
  	document.forms.mapLocation.action='index.php?id='+objvar+'&lang='+currentLang;  	
  	document.forms.mapLocation.submit();
  }
}