//This script is copyright 2006 by William S. Smith and may not be used, copied, or changed by anyone
// without purchasing a license.  (Copyright does not apply to the Disable right click portion of
// the script).  You may not include or refer to this script from any web page without license.

<!--

//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// --> 

//
//   BEGINNING OF COPYRIGHTED PORTION OF SCRIPT
//

function startup() {
		preLoad[0] = new Image();
		preLoad[0].src = Pix[0];
		nextpic();
	}


function nextpic() {
	if (preLoad[current].complete)
		{
		document.picalbum.desc.value = Pix[current+1];
 	        document.images.baby.src = preLoad[current].src;
		Pixnbr = current;
		if (current < Pix.length-3)
	    	{current += 3;}
	 	else 
	    	{current = 0; LoadCpt = 1;}

		if (LoadCpt == 0)
		   {
		   preLoad[current] = new Image();
		   preLoad[current].src = Pix[current];
        	   }

	if (Pix[Pixnbr+2] == 2) {
		document.images.baby.height = 650;
		timeout = setTimeout('shrinkpic()',chgtime);
		}
	if (Pix[Pixnbr+2] == 1) {
		document.images.baby.height = 500;
		timeout = setTimeout('growpic()',chgtime);
		}
	if (Pix[Pixnbr+2] == 0) {
		document.images.baby.height = 450;
		timeout = setTimeout('nextpic()',3000);
		}			
	    	}    
		   
	else {timeout = setTimeout('nextpic()',chgtime);}
	}

function growpic() {
	if (document.images.baby.height < 700)
		{document.images.baby.height += chgrate;
		timeout = setTimeout('growpic()',chgtime);
		}
	else {nextpic();}
	}


function shrinkpic() {
	if (document.images.baby.height > 450)
		{document.images.baby.height -= chgrate;
		timeout = setTimeout('shrinkpic()',chgtime);
		}
	else {nextpic();}
	}


function manual() {
   clearTimeout(timeout);
   }

function whoto(add_email1,add_where,add_desc) {
	document.write('<a HREF="mailto:'+add_email1+'@'+add_where+'">'+add_desc+'</a>\n');
	}