/* wienerzuhause.at  by project & web management (www.proweb-management.de) */

function subMenu(which, mode) {
	var el = 'subMenu'+which;
	var subMenu = document.getElementById(el);	
	subMenu.style.visibility = mode;
}

function selRow(which, mode) {
	var el = which;
	var td = document.getElementById(el);
	(mode == 1) ? col = '#684894' : col = '#9e90c1';
	td.style.backgroundColor = col;
}

function newWin(url, w, h) {
	winl = (screen.width-w)/2;
	wint = (screen.height-h)/2;
	settings='height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',toolbar=no,location=no,status=no,menubar=no,resizable=no,dependent=no';
	myWin = window.open(url,'Info',settings);
	myWin.focus();
}



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 // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  }
}

function StopFlashMovie() {
	var flashMovie=getFlashMovieObject("wienSnd");
	flashMovie.StopPlay();
}

function PlayFlashMovie() {
	var flashMovie=getFlashMovieObject("wienSnd");
	flashMovie.Play();
}
