var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = 'images/juanhome0.jpg'
theImages[1] = 'images/juanhome1.jpg'
theImages[2] = 'images/juanhome2.jpg'
theImages[3] = 'images/juanhome3.jpg'
theImages[4] = 'images/juanhome4.jpg'
theImages[5] = 'images/juanhome5.jpg'
theImages[6] = 'images/juanhome6.jpg'
theImages[7] = 'images/juanhome7.jpg'
theImages[8] = 'images/juanhome8.jpg'
theImages[9] = 'images/juanhome9.jpg'
theImages[10] = 'images/juanhome10.jpg'
theImages[11] = 'images/juanhome11.jpg'

// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}


function clearform(which){if(which.value=="Enter code")
which.value=''
}
function clearform2(which){if(which.value=="Enter code")
which.value=''
}

function preload_img()
{ 
  var img_list = preload_img.arguments;
  if (document.preloadlist == null) 
    document.preloadlist = new Array();
  var top = document.preloadlist.length;
  for (var i=0; i < img_list.length; i++) {
    document.preloadlist[top+i] = new Image;
    document.preloadlist[top+i].src = img_list[i+1];
  } 
}


function change_img_src(name, nsdoc, rpath, preload)
{ 
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img) {
    img.altsrc = img.src;
    img.src    = rpath;
  } 
}

function restore_img_src(name, nsdoc)
{
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img && img.altsrc) {
    img.src    = img.altsrc;
    img.altsrc = null;
  } 
}





function popImage( imgName, imgCaption) {imgWidth=0
imgHeight=0
textColor="#bbbbbb"
bgColor="#424242"
	if(imgWidth<=100)imgWidth=400
		if(imgHeight<=100)imgHeight=400
		winHeight=imgHeight+20;
		w = window.open('','Demo','toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,copyhistory=no,width='+imgWidth+',height='+winHeight);
		w.document.write( "<html><head><title>"+imgCaption+"</title>" );
		w.document.write( "<STYLE TYPE='text/css'>" );
		w.document.write( "A {font-family: verdana; font-size: 10px; color: "+textColor+"; text-decoration : none;}" );
		w.document.write( "A:Visited {font-family: verdana;font-size: 10px; color: "+textColor+"; }" );
		w.document.write( "A:Active { font-family: verdana; font-size: 10px; color: "+textColor+"; }" );
		w.document.write( "A:Hover { font-family: verdana; font-size: 10px; color: 'yellow'; }" );
		w.document.write( "IMG {border-color : "+textColor+";}" );
		w.document.write( "BODY { font-family: verdana; font-size : 10px; font-weight: normal; color : "+textColor+"; background-color : "+bgColor+"; }" );
		w.document.write( "</STYLE>" );
		w.document.write( "<script language='JavaScript'>\n");
		w.document.write( "IE5=NN4=NN6=false\n");
		w.document.write( "if(document.all)IE5=true;\n");
		w.document.write( "else if(document.getElementById)NN6=true\n");
		w.document.write( "else if(document.layers)NN4=true\n");
		w.document.write( "function autoSize() {\n");
		w.document.write( "	if(IE5) self.resizeTo(document.images[0].width+10,document.images[0].height+31+20)\n");
		w.document.write( "	else if(NN6) self.sizeToContent()\n");
		w.document.write( "	else top.window.resizeTo(document.images[0].width,document.images[0].height+20)\n");
		w.document.write( "	self.focus()\n");
		w.document.write( "}\n</scr");
		w.document.write( "ipt>\n");
		w.document.write( "</head><body bgcolor="+bgColor+" leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onLoad=" );
		w.document.write( "'javascript:autoSize();self.focus();norightclick(e);' >" );
		
		w.document.write("<p align='center'><font size=2 face=Verdana color=red>  Loading ...</font></p>");
		w.document.write("<span style='left: 0; top: 0; position: absolute; z-index: 1'>");
		w.document.write( "<table cellpadding=0 cellspacing=0 border=0 bgcolor="+bgColor+"><tr><td colspan=3><img src='"+imgName+"' border=0 alt='"+imgCaption+"'></td></tr>" );
		w.document.write( "<tr><td align='left' width='33%'>&nbsp;<a>&copy; KwStuff</a></td>" );
		w.document.write( "<td align='center' width='33%'><font color='#90CCFD'><a>"+imgCaption+"</a></font></td>" );
		w.document.write( "<td align='right' width='33%'><a href='javascript:top.window.close();'>Close window</a>&nbsp;</td></tr>" );
		w.document.write( "</table></body></html>" );
		w.document.close();
}


function load(file,target) {
    if (target != '')
        target.window.location.href = file;
    else
        window.location.href = file;
}


function open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{ toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  w=window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
  w.focus();
}


function statusScroll() {
  if ( !overLink ) {
    defaultStatus = scrollText.substring(scrollPos++) +scrollText;
    if ( scrollPos==scrollText.length ) scrollPos=0;
  };
  scrollHand = setTimeout("statusScroll();",100);
  return true;
}; //end statusScroll()


if (window.Event) 
document.captureEvents(Event.MOUSEUP); 

function nocontextmenu() 
{ 
event.cancelBubble = true 
event.returnValue = false; 

return false; 
} 

function norightclick(e) 
{ 
if (window.Event) 
{ 
if (e.which == 2 || e.which == 3) 
return false; 
} 
else 
if (event.button == 2 || event.button == 3) 
{ 
event.cancelBubble = true 
event.returnValue = false; 
return false; 
} 
} 
if (document.layers) { 
document.captureEvents(Event.MOUSEDOWN); 
} 
document.oncontextmenu = nocontextmenu; 
document.onmousedown = norightclick; 
document.onmouseup = norightclick; 






































