<!--
function preload_img()
{
    var img_list = preload_img.arguments;

    if (document.preloadlist == null)
        document.preloadlist = new Array();
    var top = document.preloadlist.length;
    for (var i=0; i < img_list.length; i++) {
        document.preloadlist[top+i] = new Image;
        document.preloadlist[top+i].src = img_list[i+1];
    }
}

function change_img_src(name, nsdoc, rpath, preload)
{
    var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
    if (name == '')
        return;
    if (img) {
        img.altsrc = img.src;
        img.src    = rpath;
    }
}

function restore_img_src(name, nsdoc)
{
    var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
    if (name == '')
        return;
    if (img && img.altsrc) {
        img.src    = img.altsrc;
        img.altsrc = null;
    } 
}

// -->
function SwapImgRestore() { //v3.0
  var i, x, a = document.sr;
  for (i = 0; a && i < a.length && (x = a[i]) && x.oSrc; i++)
  	x.src = x.oSrc;
}

function PreloadImages() { //v3.0
  var d = document;
  if(d.images){
	  if(!d.p)
	  d.p = new Array();
      var i, j = d.p.length, a = PreloadImages.arguments;
	  for (i = 0; i < a.length; i++)
      	if (a[i].indexOf("#") != 0){
			d.p[j] = new Image;
			d.p[j++].src = a[i];
		}
	}
}

function FindObj(n, d) { //v4.01
  var p, i, x;
  if (!d)
  	d = document;
  if ((p = n.indexOf("?")) > 0 && parent.frames.length) {
	d = parent.frames[n.substring(p + 1)].document;
	n = n.substring(0, p);
  }
  if (!(x = d[n]) && d.all)
  	x = d.all[n];
  for (i = 0; !x && i < d.forms.length; i++)
  	x = d.forms[i][n];
  for (i = 0; !x && d.layers && i < d.layers.length; i++)
  x = FindObj(n, d.layers[i].document);
  if (!x && d.getElementById)
  	x = d.getElementById(n);
  return x;
}

function SwapImage() { //v3.0
	var i, j = 0, x, a = SwapImage.arguments;
	document.sr = new Array;
	for (i = 0; i < (a.length - 2); i += 3)
		if ((x = FindObj(a[i])) != null) {
			document.sr[j++] = x;
			if(!x.oSrc)
				x.oSrc = x.src;
				x.src=a[i + 2];
		}
}

function PlaySound1(sndFile) {
	if (navigator.appName == "Netscape"){
		window.location = sndFile;
	}
}

function PlaySound(x, _sndObj, sndFile) { //v3.0
	var i, method = "";
	if (navigator.appName != 'Netscape') {
		sndObj = eval(_sndObj);
	}
	else {
		sndObj = null;
	}
	if (sndObj != null) {
		if (navigator.appName == 'Netscape')
			if (x == "play")
				method = "play";
			else
				method = "stop";
		else {
			if (window.MM_WMP == null) {
				window.MM_WMP = false;
				for(i in sndObj)
					if (i == "ActiveMovie") {
						window.MM_WMP = true;
						break;
					}
			}
			if (window.MM_WMP)
				if (x == "play")
					method = "play";
				else
					method = "stop";
			else if (sndObj.FileName)
				if (x == "play")
					method = "run";
				else
					method = "stop";
		}
	}
	if (method)
		eval(_sndObj+"."+method+"()");
	else
		window.location = sndFile;
}

function rollout(what) {
	what.src = what.name + '.gif';
}

function roolin(what) {
	what.src = what.name + '_roll.gif';
}

function popUpWindow(URLStr, name, prop)
{
	window.open(URLStr, name, prop);
}
// -->

