// JavaScript Document
/*
Script made by Martial Boissonneault © 2001-2003 http://getElementById.com/
This script may be used and changed freely as long as this msg is intact
Visit http://getElementById.com/ for more free scripts and tutorials.
*/
// Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/

timerID = null;
var active = 0;

function ChangePage(num){
    	if(document.getElementById){
    		obj[active].style.visibility = "hidden";
    		active = num;
    		obj[active].style.top = 0;
    		obj[active].style.visibility = "visible";
    	}
}
    
function ScrollUp(speed){
    	if(document.getElementById){
    		if(parseInt(obj[active].style.top) < 0){
    			obj[active].style.top = parseInt(obj[active].style.top) + speed + "px";
		}
    		timerID = setTimeout("ScrollUp("+speed+")",30);
    	}
}

function ScrollDown(speed){
    	if(document.getElementById){                        
    		if(parseInt(obj[active].style.top) > document.getElementById('cont').offsetHeight - obj[active].offsetHeight){ 
    			obj[active].style.top = parseInt(obj[active].style.top) - speed + "px";
		}
    		timerID = setTimeout("ScrollDown("+speed+")",30);
    	}
}

function ScrollStop(){
    	if(document.getElementById){
    		clearTimeout(timerID);
    	}
}

function ScrollPageInit() {
    	if(document.getElementById){
    		obj = document.getElementById("cont").getElementsByTagName("div");
    		obj['page1'].style.visibility = "visible";
    		obj['page1'].style.top = 0;	
    	}	
    	if(document.addEventListener){
    		for(i=0;i<cont.getElementsByTagName('a').length;i++){
    			cont.getElementsByTagName('a')[i].style.position = "relative";
		}
    	}
}

var name = "";
function cred(name){
if(document.all){
     document.getElementById('credits').innerText = "Photo of Nina By " + name;
} else{
    document.getElementById('credits').textContent = "Photo of Nina By " + name;
}

}

function tickle(){
if (navigator.userAgent.indexOf('Safari')!=-1) {
var elt = document.getElementById("art");
elt.style.height = (elt.height - 1) + "px";
elt.style.height = (elt.height + 1) + "px";
}
}

function noRightClick() {
if (event.button==2) {
alert('You may not right mouse click this page.')
}
}
document.onmousedown=noRightClick