function openNewWindow(winURL, winWidth, winHeight, winConfig)
{
   mmConfig = ""
   mmConfig = "width="+winWidth+","
   mmConfig+="height="+winHeight+","
   mmConfig+=winConfig
   var mmWin=open(winURL,"",mmConfig);
   mmWin.focus();
}

function openIFrame(iFrameId, winURL)
{
   ifId = gmobj(iFrameId)
   ifId.src = winURL
}

var curmsg=-1
function display()
{
   if (curmsg<messages.length-1)
   curmsg++
   else
   curmsg=0
document.getElementById('slideshow').innerHTML=messages[curmsg]
setTimeout("display()",8000)
}

more = function(obj)
{
   if ((obj.className.indexOf('more'))!=-1) {
      if ((obj.className.indexOf('click'))!=-1)
      obj.className=obj.className.replace("click", "");
      else
      obj.className+=" click";
   }
}

var soundfile="click.wav"
function playsound(soundfile){
if (document.all && document.getElementById){
document.getElementById("soundeffect").src="" //reset first in case of problems
document.getElementById("soundeffect").src=soundfile
}
}