// RANDOM LOADER

function randomLoader() {
randomTotal = 37;
url = 'randomIndex/index'+ Math.ceil(Math.random()*randomTotal) +'.html';
window.open (url,'WELCOME','scrollbars=0,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0,top=0');
self.close();
}



// RANDOM INDEX

function move() {
	moveTo(10,10);
}

function resize() {
	resizeTo((screen.width-25),(screen.height-25));
}

function pop(url) {
w = screen.width-56;
h = screen.height-100;
arg = 'top=12,left=14,width='+w+',height='+h+',scrollbars=1,resizable=1,menubar=0,toolbar=0,status=0,location=0,directories=0';
window.open (url,'Gareth_McConnell',arg);
}



// OEUFWORLD HOME

function sticky(state) {
	if(document.getElementById) {
		document.getElementById('sticky').style.visibility = (state);
	} else if(document.layers) {
		document.layers.sticky.style.visibility = (state);
	} else {
		document.all.sticky.style.visibility = (state);
	}
}
	
function yPosition(h) {
	browser = navigator.appName;
	if (browser == 'Netscape') {
 	ypos = ((window.innerHeight-h)/2.5);
 		} else {
 		ypos =  ((document.body.clientHeight-h)/2.5);
	}
	if (ypos<6) {
 		return (6);
	} else {
		return (ypos);
	}
}

function xPosition(w) {
	browser = navigator.appName;
	if (browser == 'Netscape') {
 	xpos = ((window.innerWidth-w)/2);
 		} else {
 		xpos = ((document.body.clientWidth-w)/2);
	}
	if (xpos<10) {
 		return (10);
	} else {
		return (xpos);
	}	
}

function linkOver(imgNAME,imgSRC) {
	if(document.getElementById) {
		document.getElementById(imgNAME).src = imgSRC;
	} else if(document.layers) {
		document.layers(imgNAME).src = imgSRC;
	} else {
		document.all(imgNAME).src = imgSRC;
	}	
}

function popMovie(bunny) {
	url = bunny;
	arg = 'width=428,height=344,left='+((screen.width-428)/3)+', top='+((screen.height-344)/3.5)+',scrollbars=0,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0';
	window.open (url,'movie',arg);
}


// BACK CACTALOGUE

function cataloguePic() {
	browser = navigator.appName;
	if (browser == 'Netscape') {
 	return (window.innerHeight-500);
 		} else {
 		return (document.body.clientHeight-500);
	}
}

var ataloguePic = 1;
var picMax = 34;
var imgToUpdate = 'catPic';

function next() {
	ataloguePic += 1	
	if (ataloguePic == (picMax+1)) {
		ataloguePic = 1;
	}
	myImg = document.images[imgToUpdate];
	myImg.src = 'catalogue2/'+ ataloguePic +'.gif';	
}

function back() {
	ataloguePic -= 1
	if (ataloguePic == 0) {
		ataloguePic = picMax;
	}
	myImg = document.images[imgToUpdate];
	myImg.src = 'catalogue2/'+ ataloguePic +'.gif';
}




