<!-- 

// Add Load Event Function
// Wrap up all onload events into a queue
// Must keep at top of library
// Wrap swf object in a function and add to onload queue (workaround to avoid swfobject/sIRF bug)
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}
// --------------------------------------------------
// Example/Usage:

/*
//addLoadEvent(nameOfSomeFunctionToRunOnPageLoad);
//addLoadEvent(function() {
	// More code to run on load
//});
*/




// Flash embed
function writeSWF(objSWF, intSWFWidth, intSWFHeight, bgColor) {
  document.writeln('<object'); 
  document.writeln('classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"');
  document.writeln('width="' + intSWFWidth + '"');
  document.writeln('height="' + intSWFHeight + '">');
  document.writeln('<param name="movie" value="' + objSWF + location.search + '">');
  document.writeln('<param name="menu" value="false">');
  document.writeln('<param name="quality" value="best">');
  document.writeln('<param name="wmode" value="transparent">');
  document.writeln('<param name="scale" value="noscale">');
  document.writeln('<param name="BGCOLOR" value="' + bgColor + '">');
  document.writeln('<embed');
  document.writeln('pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"'); 
  document.writeln('width="' + intSWFWidth + '"');
  document.writeln('height="' + intSWFHeight + '"');
  document.writeln('src="' + objSWF + location.search + '"');
  document.writeln('menu="false"');
  document.writeln('wmode="transparent"');
  document.writeln('bgcolor="' + bgColor + '"');
  document.writeln('quality="best"');
  document.writeln('scale="noscale">');
  document.writeln('</embed>');
  document.writeln('</object>');
}

// Popup window for flash admin
function launch(url, title, settings) {
    window.open(url, title, settings);
}
			
// Popup window
function popup(theURL,winName,features) { 
  window.open(theURL,winName,features);
}

// Popup window in center of screen
function popupCenter(theURL,winName,w,h) {
	var iMyWidth;
	var iMyHeight;
	//gets top and left positions based on user's resolution so hint window is centered.
	iMyWidth = (window.screen.width/2) - ((w/2) + 10); //half the screen width minus half the new window width (plus 5 pixel borders).
	iMyHeight = (window.screen.height/2) - ((h/2) + 50); //half the screen height minus half the new window height (plus title and status bars).
	var win2 = window.open(theURL,winName,"toolbar=no,location=no,status=no,menubar=no,scrollbars=1,resizable=yes,height="+h+",width="+w+",left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight);
	win2.focus();
}

function popupCenterNoScroll(theURL,winName,w,h) {
	var iMyWidth;
	var iMyHeight;
	//gets top and left positions based on user's resolution so hint window is centered.
	iMyWidth = (window.screen.width/2) - ((w/2) + 10); //half the screen width minus half the new window width (plus 5 pixel borders).
	iMyHeight = (window.screen.height/2) - ((h/2) + 50); //half the screen height minus half the new window height (plus title and status bars).
	var win2 = window.open(theURL,winName,"toolbar=no,location=no,status=no,menubar=no,scrollbars=0,resizable=no,height="+h+",width="+w+",left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight);
	win2.focus();
}


// Hide/Show DIV Layer
imgout=new Image(12,8);
imgin=new Image(12,8);
imgout.src="images/plus.gif";
imgin.src="images/minus.gif";

function filter(imagename,objectsrc){
	if (document.images){
		document.images[imagename].src=eval(objectsrc+".src");
	}
}

function collapse(id) { 
	if (document.getElementById) { // DOM3 = IE5, NS6
		if (document.getElementById(id).style.display == "none"){
			document.getElementById(id).style.display = 'block';
			filter(("img"+id),'imgin');			
		} else {
			filter(("img"+id),'imgout');
			document.getElementById(id).style.display = 'none';			
		}	
	} else { 
		if (document.layers) {	
			if (document.id.display == "none"){
				document.id.display = 'block';
				filter(("img"+id),'imgin');
			} else {
				filter(("img"+id),'imgout');	
				document.id.display = 'none';
			}
		} else {
			if (document.all.id.style.visibility == "none"){
				document.all.id.style.display = 'block';
			} else {
				filter(("img"+id),'imgout');
				document.all.id.style.display = 'none';
			}
		}
	}
}

-->