// JavaScript Document

function toggleSWF(swfdiv) {
	var swf = document.getElementById(swfdiv);
	if (swf.className == "hidden") {
		swf.className = "";
		MM_showHideLayers(swfdiv,'','show')
	} else {
		swf.className = "hidden";
		MM_showHideLayers(swfdiv,'','hide')
	}	
}

function MM_changeProp(objId,x,theProp,theValue) { //v9.0
  var obj = null; with (document){ if (getElementById)
  obj = getElementById(objId); }
  if (obj){
    if (theValue == true || theValue == false)
      eval("obj.style."+theProp+"="+theValue);
    else eval("obj.style."+theProp+"='"+theValue+"'");
  }
}

function MM_preloadImages() { //v3.0
	var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
		
function MM_showHideLayers() { //v9.0
	var i,p,v,obj,args=MM_showHideLayers.arguments;
	for (i=0; i<(args.length-2); i+=3)
	with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
	if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
	obj.visibility=v; }
}
		
function MM_setTextOfLayer(objId,x,newText) { //v9.0
	with (document) if (getElementById && ((obj=getElementById(objId))!=null))
	with (obj) innerHTML = unescape(newText);
}

function popUp(URL,width,height) {
	window.open(URL, 'popup', 'toolbar=0,scrollbars=1,location=0,status=0,menubar=0,resizable=0,width=' + width + ',height=' + height + ',left = 50,top = 50');
	return false;
}

