
function stopErrors() { return true; }
window.onerror = stopErrors;


if (parent.frames.length > 0) {
    parent.location.href = self.document.location
}


function reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.pgW=innerWidth; document.pgH=innerHeight; onresize=reloadPage; }}
  else if (innerWidth!=document.pgW || innerHeight!=document.pgH) location.reload();
}
reloadPage(true);

function pics(img,ref) {
	document.images[img].src = ref;
}

/*********** BEGIN UNBLUR ALL LINKS ***************/

function unblur() {
this.blur();
}

function blurLinks() {
if (!document.getElementById) return;
theLinks = document.getElementsByTagName("a");
for(i=0; i<theLinks.length; i++) {
theLinks[i].onfocus = unblur;
}
}

/*********** END UNBLUR ALL LINKS ***************/


function preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.p) d.p=new Array();
    var i,j=d.p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}
}

var spawn = true;
function graphics()

{NewWindow=window.open ("sample-graphics.html","Projects","width=650,height=575,scrollbars=no,toolbar=no,status=no,directories=no,location=no,menubar=no,resizable=no")}

function music()

{NewWindow=window.open ("sample-music.html","Music","width=600,height=550,scrollbars=yes,toolbar=no,status=no,directories=no,location=no,menubar=no,resizable=no")}

function screenShots()

{NewWindow=window.open ("samples/websites/1.html","ScreenShots","width=550,height=650,scrollbars=yes,toolbar=no,status=no,directories=no,location=no,menubar=no,resizable=no")}