// JavaScript Document

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_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_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_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

ns4 = (document.layers) ? true:false 
ie4 = (document.all) ? true:false 
ng5 = (document.getElementById) ? true:false 

function hideSec() { 
if (ng5) document.getElementById('sec1').style.visibility = "hidden" 
else if (ns4) document.sec1.visibility = "hide" 
else if (ie4) sec1.style.visibility ="hidden" 

if (ng5) document.getElementById('sec2').style.visibility = "hidden" 
else if (ns4) document.sec2.visibility = "hide" 
else if (ie4) sec2.style.visibility ="hidden" 

if (ng5) document.getElementById('sec3').style.visibility = "hidden" 
else if (ns4) document.sec3.visibility = "hide" 
else if (ie4) sec3.style.visibility ="hidden"
}


function showSec(n) { 
hideSec(); 
if (ng5) document.getElementById('sec' + n).style.visibility = "visible"; 
else if (ns4) document.layers["sec" + n].visibility = "show"; 
else if (ie4) document.all["sec" + n].style.visibility = "visible"; 
}

// random image code

image = new Array( 33); 
image[0] = 'images/c1.jpg'
image[1] = 'images/c2.jpg'
image[2] = 'images/c3.jpg'
image[3] = 'images/c4.jpg'
image[4] = 'images/c5.jpg'
image[5] = 'images/c6.jpg'
image[6] = 'images/c7.jpg'
image[7] = 'images/c8.jpg'
image[8] = 'images/c9.jpg'
image[9] = 'images/c10.jpg'
image[10] = 'images/c11.jpg'
image[11] = 'images/c12.jpg'
image[12] = 'images/c13.jpg'
image[13] = 'images/c14.jpg'
image[14] = 'images/c15.jpg'
image[15] = 'images/c16.jpg'
image[16] = 'images/c17.jpg'
image[17] = 'images/c18.jpg'
image[18] = 'images/c19.jpg'
image[19] = 'images/c20.jpg'
image[20] = 'images/c21.jpg'
image[21] = 'images/c22.jpg'
image[22] = 'images/c23.jpg'
image[23] = 'images/c24.jpg'
image[24] = 'images/c25.jpg'
image[25] = 'images/c26.jpg'
image[26] = 'images/c27.jpg'
image[27] = 'images/c28.jpg'
image[28] = 'images/c29.jpg'
image[29] = 'images/c30.jpg'
image[30] = 'images/c31.jpg'
image[31] = 'images/c32.jpg'
image[32] = 'images/c33.jpg'
image[33] = 'images/c34.jpg'


image2 = new Array(12); 
image2[0] = 'images/j1.gif'
image2[1] = 'images/j2.gif'
image2[2] = 'images/j3.gif'
image2[3] = 'images/j4.gif'
image2[4] = 'images/j6.gif'
image2[5] = 'images/j7.gif'
image2[6] = 'images/j8.gif'
image2[7] = 'images/j9.gif'
image2[8] = 'images/j10.gif'
image2[9] = 'images/j11.gif'
image2[10] = 'images/j12.gif'
image2[11] = 'images/j13.gif'


index = Math.floor(Math.random() * image.length); 
index2 = Math.floor(Math.random() * image2.length); 
index3 = Math.floor(Math.random() * image3.length); 
index4 = Math.floor(Math.random() * image4.length); 

function joe_image(){
   document.mypic.src=image[index];
}
function julia_image(){
   document.mypic.src=image2[index2];
}
function return_image(){
document.mypic.src=("images/graphic.gif")
}
