// JavaScript Document



function redirect() {
window.location = newpage
}

function clickplay(page, time, ID, dir, file, stopit) {
newpage = page ;
//setEmbed(ID, dir, file);
soundManager.stop(stopit);
soundManager.play(ID);
timer = setTimeout('redirect()', time);
}

function targetopener(mylink, closeme, closeonly)
  {
  if (! (window.focus && window.opener))return true;
  window.opener.focus();
  if (! closeonly)window.opener.location.href=mylink.href;
  if (closeme)window.close();
  return false;
  }

function clickplay2(sound, time, _mypage, _myname, _w, _h, _scroll, image, pic, type, ID, dir, file) {

mypage = _mypage ;
myname = _myname ;
w = _w ;
h = _h ;
scroll = _scroll ;
soundManager.play(ID);
timer = setTimeout('NewWindow()', time);
if(type=="graphic") {
eval("document['" + image + "'].src=" + pic + ".src;") ;
}
} 

function NewWindow() {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

