// RANDOM LOADER

function randomLoader() {
randomTotal = 46;
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');
}



// RANDOM INDEX

function resize() {
	resizeTo(w,h);
}

function move() {
	x=(screen.width-w)/2;
	y=(screen.height-h)/2;
	moveTo(x,y);
}


function popHome() {
url = '../home.html';
leftHOME = (screen.width-900)/2;
topHOME = (screen.height-725)/2;
arg = 'top='+topHOME+',left='+leftHOME+',width=900,height=625,scrollbars=1,resizable=1,menubar=1,toolbar=1,status=1,location=1,directories=0';
window.open (url,'OEUFWORLD',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') {
 	return ((window.innerHeight-h)/2);
 		} else {
 		return ((document.body.clientHeight-h)/2);
	}
}

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

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 popBcatalogue(bunny) {
url = bunny;
arg = 'width=400,height=530,left='+((screen.width-500)/2)+', top='+((screen.height-550)/2)+',scrollbars=0,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0';
window.open (url,'OEUFWORLD_CATALOGUE',arg);
}

function popCurrent(hare) {
url = hare;
arg = 'width=400,height=520,left='+((screen.width-700)/2)+', top='+((screen.height-550)/2)+',scrollbars=1,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0';
window.open (url,'OEUFWORLD_CURRENTRANGE',arg);
}

function popLinks() {
url = 'links.html';
window.open (url,'OEUF_LINKS','height=594,width=380,scrollbars=0,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0,top=100,left=90');
}

function popStockists() {
url = 'stockists.html';
window.open (url,'OEUF_STOCKISTS','height=536,width=394,scrollbars=0,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0,top=60,left=110');
}

// 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';
}


//////////////////////// CAMOVER ////////////////////////

function camOver(overDIV) {
	shower = overDIV;
	if(document.getElementById) {
		document.getElementById(shower).style.visibility = 'visible';
	} else if(document.layers) {
		document.layers[shower].style.visibility = 'visible';
	} else {
		document.all[shower].style.visibility = 'visible';
	}
}

function camOut(outDIV) {
	hider = outDIV;
	if(document.getElementById) {
		document.getElementById(hider).style.visibility = 'hidden';
	} else if(document.layers) {
		document.layers[hider].style.visibility = 'hidden';
	} else {	
		document.all[hider].style.visibility = 'hidden';
	}
}

//////////////////////// CAMOVER END ////////////////////////






