// basic
<!--
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_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
 
function MM_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=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
 
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
 
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
 
 
// popup
<!--
function win_pop(path, win_name, wi, he, leftm, topm, scr) {
	window.open(path,win_name,'width='+wi+',height='+he+', left='+leftm+', top='+topm+', resizable=no,scrollbars='+scr+', status=no,toolbar=no');
}
function win_pop_resize(path, win_name, wi, he, leftm, topm, scr) {
	window.open(path,win_name,'width='+wi+',height='+he+', left='+leftm+', top='+topm+', resizable=yes,scrollbars='+scr+', status=no,toolbar=no');
}
//-->

// Flicker
try { document.execCommand("BackgroundImageCache", false, true); } catch (e) {}

var zoomSize = 100;

// Screen Zoom
function screenZoom(inOrOut) {
	if (navigator.userAgent.toLowerCase().indexOf("msie") != -1) {
		if (inOrOut == "in") {
			zoomSize = zoomSize + 10;
		} else {
			zoomSize = zoomSize - 10;
		}
		
		if (zoomSize > 140) {
			zoomSize = 140;			
		}
		
		if (zoomSize < 60) {
			zoomSize = 60;
		}
		
		document.body.style.zoom = zoomSize + "%";
	}
}

// Screen Reset
function screenReset() {
	if (navigator.userAgent.toLowerCase().indexOf("msie") != -1) {
		zoomSize = 100;
		document.body.style.zoom = zoomSize + "%";
	}
}

// Float Div
function floatDiv(el, sx, sy, my) {
	var px = document.layers ? "" : "px";
	if (document.layers) {
		el.style = el;
	}
	el.cx = el.sx = sx;
	el.cy = el.sy = sy;
	el.sP = function(x, y) {
		this.style.left = x + px;
		this.style.top = y + px;
	};
	
	el.float = function() {
		var pX = (this.sx >= 0) ? 0 : document.body.clientWidth || document.documentElement.clientWidth || 0;
		var pY = window.pageYOffset || document.body.scrollTop || document.documentElement.scrollTop || 0;
		
		if(this.sy < 0) {
			pY += document.body.clientHeight || document.documentElement.clientHeight || 0;
		}
		
		this.cx += (pX + this.sx - this.cx) / 8;
		this.cy += (pY + this.sy - this.cy) / 8;
		
		if (my > 0) {
			var pmY = (document.body.scrollHeight || document.documentElement.scrollHeight || 0) - my - Element.getDimensions(el).height;
			
			if (pmY < this.cy) {
				this.cy = pmY;
			}
		}
		
		this.sP(this.cx, this.cy);
		setTimeout("$('" + this.id + "').float()", 23);
	}
	
	return el;
}

function documentWrite(str) {
	document.write(str);
}

function antiSpam(id){
	window.open("/pages/util/antispamin.jsp?UniqId=" + id, "AntiSpam", "width=180, height=263, left=1, top=1");
}