/* Mouseover Script */
function MM_swapImgRestore() {
  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() {
  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) {
  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() {
  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];}
}
/* End MouseOver Script */

/* Not sure what this is, something to do with the search */
function seek1SetCols(v) {
  for (i=0;i<document.seek1.elements.length;i++) {
    if (document.seek1.elements[i].name=='col') {
      document.seek1.elements[i].checked=v
    }
  }
}

/* PopUp */
function popup(URL,w,h) {
	day = new Date();
	id = day.getTime();
	if (w == null) {
		w = 600;
	}
	if (h == null) {
		h = 100;
	}
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width="+ w +",height="+ h +"');");
}

function browzRez() {
var url640x480 = "http://www.toneee.com/v3a/2003_b.asp";
<!-- 640 not using 2003_c.asp because it's too rare.
var url800x600 = "http://www.toneee.com/v3a/2003_b.asp";
var url1024x768 = "http://www.toneee.com/v3a/2003_a.asp";
if ((screen.width == 640) && (screen.height == 480)) 
window.location.href= url640x480;
else if ((screen.width == 800) && (screen.height == 600))
window.location.href= url800x600;
else if ((screen.width == 1024) && (screen.height == 768))
window.location.href= url1024x768;
else window.location.href= url640x480;
}

function launchPortfolio(){
	toneeePORT=window.open("http://portfolio.toneee.com/home.shtml","fs_toneeeCS","fullscreen,scrollbars");
	toneeePORT.focus();
}

function launchGal(){
	toneeePORT=window.open("http://portfolio.toneee.com/gal.shtml","fs_toneeeCS2","width=480, height=410, scrollbars=0");
	toneeePORT.focus();
}

function processForm(form) {
var domain = form.domain.value;
var root = form.root.value;

window.location = "https://secure.onlineaccess.net/cart/index.php" + "?ID=70bd89730f973c4d6759e7b386790769&domain=" + domain + "&root=" + root;
}
