// JavaScript Document

/*function view( arg ) {
alert ( arg );
}
*/
function playsound (soundfile) {
window.open('http://www.audiowise.dk/soundplayer.aspx?sound='+soundfile,'Soundplayer','width=300,height=100,scrollbars=no');

}

function hoversound (hoverfile) {
hoverfile = "uploads/Audiowise/media/" + hoverfile;
window.document.sound3.SetVariable("soundfile", hoverfile);
window.document.sound3.Play();
//{ alert(hoverfile+" is playing"); }
}

function mouseoversound() {
window.document.sound4.Play();
//{ alert("playing"); }
}

function kontakt() {
window.open('http://www.audiowise.dk/kontakt.aspx','Webformular','width=600,height=400,scrollbars=yes');
}

function view( name ) { 
hideall();
if (document.layers) { // NS4 
document.layers[name].visibility = 'visible'; 
} 
else if (document.all) { // IE4+ 
//document.all('nyhedsbrevbox').style.visibility = 'hidden'; 
document.all(name).style.visibility = 'visible'; 
//var timer = setTimeout("CheckDropdownStatus(n);", 1500);
} 
else if (document.getElementById) { // NS6 and IE5+ 
//document.getElementById('nyhedsbrevbox').style.visibility = 'hidden'; 
document.getElementById(name).style.visibility = 'visible'; 
	  } 
} 

function hideall () {
  hide('dropdown1');
  hide('dropdown2');
  hide('dropdown3');
  hide('dropdown4');
  hide('dropdown5');
   return;
}
 
function checkstatus (name) {
var n = name;
switch(n) 
{
case(n="dropdown1"): 
  view('dropdown1');
  hide('dropdown2');
  hide('dropdown3');
  hide('dropdown4');
  hide('dropdown5');
break
case(n="dropdown2"): 
  hide('dropdown1');
  view('dropdown2');
  hide('dropdown3');
  hide('dropdown4');
  hide('dropdown5');

break
case(n="dropdown3"): 
  hide('dropdown1');
  hide('dropdown2');
  view('dropdown3');
  hide('dropdown4');
  hide('dropdown5');

break
case(n="dropdown4"): 
  hide('dropdown1');
  hide('dropdown2');
  hide('dropdown3');
  view('dropdown4');
  hide('dropdown5');
break
case(n="dropdown5"): 
  hide('dropdown1');
  hide('dropdown2');
  hide('dropdown3');
  hide('dropdown4');
  view('dropdown5');
break

}

if (submenu==1) {
	submenu=0;
	hide (n);
}
}

function hide( name ) { 
if (document.layers) { // NS4 
document.layers[name].visibility = 'hidden'; 
} 
 else 
if (document.all) { // IE4+ 
document.all(name).style.visibility = 'hidden'; 
} 
else if (document.getElementById) { // NS6 and IE5+ 
document.getElementById(name).style.visibility = 'hidden'; // if layer$id 
} 
} 

function showevent (id) {
window.open('eventpopup.aspx?slideid='+id,'Evenement','width=706,height=480,scrollbars=yes');
}
function eventdetails (id) {
window.open('eventpopupnew.aspx?id='+id,'Evenement','width=706,height=480,scrollbars=yes');
}
function spawnwindow (url) {
window.open(url,'','scrollbars=yes,resize=1');
}