
//function stoperror() {return true} window.onerror=stoperror

//form validation
function Checkfields()
{
  if(document.inputForm.email.value == ""){
		alert("Please enter your email address.");
		return false;}		
}

//navigation cell bgcolor highlighter start
function inCell(cell, newcolor) {
	if (!cell.contains(event.fromElement)) {
		cell.bgColor = newcolor;
	}
}

function outCell(cell, newcolor) {
	if (!cell.contains(event.toElement)) {
		cell.bgColor = newcolor;
	}
}
//navigation cell bgcolor highlighter start

function initializeUI(f,e) {
  // Put the cursor in the first text field and select contents, if any
  	document[f][e].focus(); //alert(document[f][e]);
	document[f][e].select();
}

//spawn window function
function spawnWindow(theURL,winName,properties) { 
  window.open(theURL,winName,properties);
  //window.moveTo(400, 200)
}

//netscape resize fix
 if(!window.saveInnerWidth) {
   window.onresize = resizeIt;
   window.saveInnerWidth = window.innerWidth;
   window.saveInnerHeight = window.innerHeight;
 }

 function resizeIt() {
     if (saveInnerWidth < window.innerWidth || 
         saveInnerWidth > window.innerWidth || 
         saveInnerHeight > window.innerHeight || 
         saveInnerHeight < window.innerHeight ) 
     {
        // window.history.go(0);
        location.reload();
     }
 }

//go to home page if subframe is loaded
function myHome() {
//if (window == top) top.location.href ='../index.htm';
}
   
//write background color then image
function newBg(imageName) { 
	document.write("<html><head><title></title><script language='JavaScript' src='../js/sniffer.js'></script></head><body topmargin='0' leftmargin='0' marginwidth='0' marginheight='0' bgcolor='#ffffff'><table border=0 cellPadding=0 cellSpacing=0><tr><td width='1%'><img src='../img/spacer.gif' width='20' height='1' border='0' alt=''></td><td><a href='javascript:history.back()'><img border='0' src='" + imageName + "'  /></a><br><br><a href='javascript:history.back()'><img src='../img/back.gif' width='60' height='18' border='0' alt='back'></a></td></tr></table></body></html>");
	document.close();
} 

//write background color then image
function doPic2(img1,img2) { 
	document.write("<!doctype html public '-//W3C//DTD HTML 4.01 Transitional//EN'><html><head><title>gustav katz illustration</title><script src='../js/scripts.js'type='text/javascript'></script><link rel='STYLESHEET' type='text/css' href='../css/pc.css'></head><body bgcolor='#ffffff' marginwidth='0' marginheight='0' leftmargin='0' topmargin='0'><table width='630' border='0' cellspacing='0' cellpadding='0'><tr><td width='1%' valign='top'><img src='../img/spacer.gif' width='37' height='1' alt='' border='0'><br><img src='../img/spacer.gif' width='1' height='66' alt='' border='0'><br><a href='javascript:;' onclick=javascript:doPic2('../img/t-yoyoma.gif','../img/p-yoyoma.gif');><img src='../img/n-a.gif' width='24' height='15'alt='' border='0'></a><br><a href='javascript:;' onclick=javascript:doPic2('../img/t-loslobos.gif','../img/p-loslobos.gif');><img src='../img/n-b.gif' width='24' height='15' alt='' border='0'></a><br><a href='javascript:;' onclick=javascript:doPic2('../img/t-petergabriel.gif','../img/p-petergabriel.gif');><img src='../img/n-c.gif' width='24' height='15' alt='' border='0'></a><br><a href='javascript:;' onclick=javascript:doPic2('../img/t-billfrisell.gif','../img/p-billfrisell.gif');><img src='../img/n-d.gif' width='24' height='15' alt='' border='0'></a><br><a href='javascript:;' onclick=javascript:doPic2('../img/t-lylelovett.gif','../img/p-lylelovett.gif');><img src='../img/n-e.gif' width='24' height='15' alt='' border='0'></a><br><a href='javascript:;' onclick=javascript:doPic2('../img/t-bowie-moby.gif','../img/p-bowie-moby.gif');><img src='../img/n-f.gif' width='24' height='15' alt='' border='0'></a><br><a href='javascript:;' onclick=javascript:doPic2('../img/t-deboravoight.gif','../img/p-deboravoight.gif');><img src='../img/n-g.gif' width='24' height='15' alt='' border='0'></a><br><a href='javascript:;' onclick=javascript:doPic2('../img/t-josecarreras.gif','../img/p-josecarreras.gif');><img src='../img/n-h.gif' width='24' height='15' alt='' border='0'></a><br><a href='javascript:;' onclick=javascript:doPic2('../img/t-cassandrawilson.gif','../img/p-cassandrawilson.gif');><img src='../img/n-i.gif' width='24' height='15' alt='' border='0'></a><br><a href='javascript:;' onclick=javascript:doPic2('../img/t-johnnymathis.gif','../img/p-johnnymathis.gif');><img src='../img/n-j.gif' width='24' height='15' alt='' border='0'></a><br><a href='javascript:;' onclick=javascript:doPic2('../img/t-datastream.gif','../img/p-datastream.gif');><img src='../img/n-k.gif' width='24' height='15' alt='' border='0'></a><br><a href='javascript:;' onclick=javascript:doPic2('../img/t-targetconsistency.gif','../img/p-targetconsistency.gif');><img src='../img/n-l.gif' width='24' height='15' alt='' border='0'></a><br><a href='javascript:;' onclick=javascript:doPic2('../img/t-mediacorruption.gif','../img/p-mediacorruption.gif');><img src='../img/n-m.gif' width='24' height='15' alt='' border='0'></a><br><a href='javascript:;' onclick=javascript:doPic2('../img/t-homelesshulk.gif','../img/p-homelesshulk.gif');><img src='../img/n-n.gif' width='24' height='15' alt='' border='0'></a><br><a href='javascript:;' onclick=javascript:doPic2('../img/t-onlinehulk.gif','../img/p-onlinehulk.gif');><img src='../img/n-o.gif' width='24' height='15' alt='' border='0'></a><br><a href='javascript:;' onclick=javascript:doPic2('../img/t-bjork.gif','../img/p-bjork.gif');><img src='../img/n-p.gif' width='24' height='15' alt='' border='0'></a><br><a href='javascript:;' onclick=javascript:doPic2('../img/t-headlinemasses.gif','../img/p-headlinemasses.gif');><img src='../img/n-q.gif' width='24' height='15'alt='' border='0'></a><br><a href='javascript:;' onclick=javascript:doPic2('../img/t-shirleyhorn.gif','../img/p-shirleyhorn.gif');><img src='../img/n-r.gif' width='24' height='15' alt='' border='0'></a></td><td valign='top'><img src='../img/spacer.gif' width='1' height='94' alt='' border='0'><br><img name='titlepic'src='"+ img1 +"' alt='' border='0'><img src='../img/spacer.gif' width='20' height='1' alt='' border='0'></td><td width='60%'><img src='../img/spacer.gif' width='1' height='70' alt='' border='0'><br><img name='mainpic' src='"+ img2 +"'  alt='' border='0'></td><td valign='bottom' align='right'><img src='../img/spacer.gif' width='1' height='350' alt='' border='0'><table  border='0'cellspacing='0' cellpadding='0'><tr><td><a href='../index.htm'><img src='../img/b-home.gif' width='34' height='15' alt='' border='0'></a></td></tr></table><img src='../img/spacer.gif' width='1' height='40' alt='' border='0'></td><td width='1%'><img src='../img/spacer.gif' width='33' height='1' alt='' border='0'></td></tr></table></body></html>");
	document.close();
} 


//############ swap multiple images
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) { //v3.0
  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); 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];}
}


//#############image swap function for gallery page
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);

ns3up = (browserName == "Netscape" && browserVer >= 3);
ie4up = (browserName.indexOf("Microsoft") >= 0 && browserVer >= 4);

function doPic(imgName1,imgName2) {
//if (ns3up || ie4up) {
img1 = (imgName1);
img2 = (imgName2);
//alert(img1);
//alert(img2);
document.titlepic.src = img1;
document.mainpic.src = img2;
//   }
}

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.0
  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 && document.getElementById) x=document.getElementById(n); return x;
}
//#########end gallery page 
      

