﻿// JScript File
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
 if (document.images) {
  print_icon_gray_over = newImage("images/print_icon_gray_over.gif");
  blue_open_arrow_right = newImage("images/blue_open_arrow_right.gif");
  blue_open_arrow_right = newImage("images/blue_open_arrow_right.gif");
  blue_square_bullet = newImage("images/blue_square_bullet.gif");
  yellow_open_arrow_right = newImage("images/yellow_open_arrow_right.gif");
  yellow_solid_arrow_down = newImage("images/yellow_solid_arrow_down.gif");
  message_arrow_right = newImage("images/message_arrow_right.gif");
  preloadFlag = true;
 }
}

preloadImages()

// Flash Script

function MM_findObj(n, d) { //v4.0
  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=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_controlShockwave(objStr,x,cmdName,frameNum) { //v3.0
  var obj=MM_findObj(objStr);
  if (obj) eval('obj.'+cmdName+'('+((cmdName=='GotoFrame')?frameNum:'')+')');
}


// Popup New Window Script

function popupWindow(pathID, width, height){
  window.open(pathID,"popLarge","width="+width+",height="+height+",toolbar=1,menubar=1,scrollbars=1,resizable=1,status=0,top=10,left=10");
}
