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_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_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_callJS(jsStr) { //v2.0  return eval(jsStr)}function unblur() {		this.blur();	}	function getLinkBlur() {		if (!document.getElementById) return		links = document.getElementsByTagName("a");		for(i=0; i<links.length; i++) {			links[i].onfocus = unblur		}	}// Name: openWin// Language: JavaScript// Author: Travis Beckham | squidfingers.com// Description: This script is for opening external windows.// --------------------------------------------------openWin = function(url,name,width,height,xpos,ypos,chrome,scroll){  var x, y, w, h, moveX=0, moveY=0, features="";  chrome = chrome ? "yes" : "no";  scroll = scroll ? "yes" : "no";  features += "toolbar="+chrome+",location="+chrome+",status="+chrome+",menubar="+chrome;  features += ",scrollbars="+scroll+",resizable="+scroll;  if(width) features += ",width="+width;  if(height) features += ",height="+height;  if(xpos && window.screen){    w = window.screen.availWidth;    width = parseInt(width);    switch(xpos){      case "left": x = 0; break;      case "center": x = (w-width)/2; break;      case "right": x = w-width; break;      default: x = xpos;    }    features += ",screenX="+x+",left="+x;    var moveX = x;  }  if(ypos && window.screen){    h = window.screen.availHeight;    height = parseInt(height);    switch(ypos){      case "top": y = 0; break;      case "middle": y = (h-height)/2; break;      case "bottom": y = h-height; break;      default: y = ypos;    }    features += ",screenY="+y+",top="+y;    var moveY = y;  }  openWinReference = window.open(url,name,features);  if(moveX || moveY){    // position the window for browsers that don't recognize screenX, screenY    openWinReference.moveTo(moveX,moveY);  }}openScroll = function(url,name,width,height){  openWin(url,name,width,height,false,false,false,"scroll");}openCenter = function(url,name,width,height){  openWin(url,name,width,height,"center","middle");}openCenterScroll = function(url,name,width,height){  openWin(url,name,width,height,"center","middle",false,"scroll");}openFull = function(url,name){  openWin(url,name,false,false,false,false,"chrome","scroll");}// --------------------------------------------------// Example/Usage:/*<a href="#" onclick="openWin('blank.html', 'blank', '400', '300');">no position, no features, no scroll</a><a href="#" onclick="openWin('blank.html', 'blank', '400', '300', 'center');">center, no features, no scroll</a><a href="#" onclick="openWin('blank.html', 'blank', '400', '300', 'center', 'middle');">center/middle, no features, no scroll</a><a href="#" onclick="openWin('blank.html', 'blank', '400', '300', 'right', 'middle', 'chrome');">right/middle, features, no scroll</a><a href="#" onclick="openWin('blank.html', 'blank', '400', '300', 'left', 'bottom', false, 'scroll');">left/bottom, no features, scroll</a><a href="#" onclick="openWin('blank.html', 'blank', '400', '300', 'center', '50');">center/50, no features, no scroll</a><a href="#" onclick="openWin('blank.html', 'blank', false, false, false, false, 'chrome', 'scroll';">no size, no position, features, scroll</a>--- Preset Functions --- <a href="#" onclick="openScroll('blank.html', 'blank', '400', '300');">openScroll</a><a href="#" onclick="openCenter('blank.html', 'blank', '400', '300');">openCenter</a><a href="#" onclick="openCenterScroll('blank.html', 'blank', '400', '300');">openCenterScroll</a><a href="#" onclick="openFull('blank.html', 'blank');">openFull</a>*/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('The following error(s) occurred:\n'+errors);  document.MM_returnValue = (errors == '');}function mailpage() {mail_str = "mailto:?subject= Check out " + document.title; mail_str += "&body=I thought you might be interested in the " + document.title;mail_str += " website" mail_str += ". You can view it at, " + location.href; location.href = mail_str; }