<!--

var sUserAgent = navigator.userAgent.toLowerCase();
var isIE = document.all?true:false;
var isNS4 = document.layers?true:false;
var isOp = (sUserAgent.indexOf('opera')!=-1)?true:false;

var isMoz = (sUserAgent.indexOf('mozilla/5')!=-1 && sUserAgent.indexOf('opera')==-1 && sUserAgent.indexOf('msie')==-1)?true:false;

// ****************************************************************
// Make a new popup window...
// Parameters:
//   oAnchor: required object reference to the anchor (link)
//   sWindow: string for the window name if wanting to reuse window or null string ('') to use the default.
//   sProps: string of window properties ('width=300,height=200') or null string ('') to use the defaults defined here.
// Notes:
//   Notice in the example that the 'href' value maintains URL
//   (not "#" or "javascript:") and the 'title' attribute indicates
//   this will be a popup window. These things are required for
//   accessibility reasons.
// Example use:
//   <a href="/foo.htm" onclick="return pop(this,'survey');" title="Survey opens a new window.">Take our survey!</a>
//   <a href="/foo.htm" onclick="return pop(this,'','width=200,height=200');" title="Opens a new window.">Foo</a>
//   <a href="/foo.htm" onclick="return pop(this);" title="Opens a new window.">Foo</a>
// ****************************************************************
function pop(oAnchor,sWindow,sProps){
	var sUrl = '';
	if(oAnchor.getAttribute) sUrl = oAnchor.getAttribute('href');
	if(sUrl=='' && isIE) sUrl = window.event.srcElement.getAttribute('href');
	if(sUrl=='') sUrl = oAnchor.href;
	var sWindowName = sWindow?sWindow:'_blank';
	// if(!sProps) sProps = 'width=640,height=480,scrollbars,resizable,toolbar,status,menubar,location';
	if(!sProps) sProps = 'width=268,height=420';
	if(sUrl) var oPopup = window.open(sUrl,sWindowName,sProps);
	// An Opera bug returns too early if you focus the window, so we don't focus it in that browser.
	// Only a noticable defect (in that browser) if a window is already open and hidden behind another window.
	if(oPopup && !isOp) oPopup.focus();
	// If popup was created successfully, cancel link in calling window.
	// Acts as regular link in browser that has popup blocking enabled.
	return (oPopup)?false:true;
}

function popbutton(oAnchor,sWindow,sProps,sUrl){
	var sWindowName = sWindow?sWindow:'_blank';
	// if(!sProps) sProps = 'width=640,height=480,scrollbars,resizable,toolbar,status,menubar,location';
	if(!sProps) sProps = 'width=268,height=420';
	if(sUrl) var oPopup = window.open(sUrl,sWindowName,sProps);
	// An Opera bug returns too early if you focus the window, so we don't focus it in that browser.
	// Only a noticable defect (in that browser) if a window is already open and hidden behind another window.
	if(oPopup && !isOp) oPopup.focus();
	// If popup was created successfully, cancel link in calling window.
	// Acts as regular link in browser that has popup blocking enabled.
	return (oPopup)?false:true;
}

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_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('Please complete the following fields:\n\n'+errors);
  document.MM_returnValue = (errors == '');
}
var FloaterImages=new Array();
function PreloadFloaters() {
	if(FloaterImages.length>0){
		for (i=0;i<FloaterImages.length;i++) {
			preload=new Image(400,187); 
			preload.src="http://"+location.host+FloaterImages[i].match(/src="(.+.jpg)/)[1];
		}
		RunFloaters(0,1);	
	}
}
RunFloaters = function(element,type) {
	if (type==1) {
		document.getElementById("floaters").innerHTML=FloaterImages[element];	
		new Effect.Appear('floaters');
		window.setTimeout('RunFloaters('+element+',2)',5000);
	}
	if (type==2) {
		new Effect.Fade('floaters');
		if(element==FloaterImages.length-1){
			element = 0;
		} else {	
			element=element+1;
		}	
		window.setTimeout('RunFloaters('+element+',1)',1000);
	}
}
if (window.addEventListener) { 
	window.addEventListener("load", PreloadFloaters, false);
} else if (window.attachEvent) { 
	window.attachEvent("onload", PreloadFloaters);
} else if (document.getElementById) {
	window.onload=PreloadFloaters;
}
//-->