// Homepage Sliders, works with ypSlideOutMenus.js
// menuID, direction, left, top, width, height
	var menus = [new ypSlideOutMenu("menu1", "right", 192, 150, 250, 470)]
	var menus = [new ypSlideOutMenu("menu2", "right", 192, 150, 409, 470)]
	var menus = [new ypSlideOutMenu("menu3", "right", 192, 150, 601, 470)]
	ypSlideOutMenu.writeCSS();

function toggleBtn (el, status) { 
    var yale = (status == 1) ? "visible" : "hidden";
    if (document.getElementById(el)!==null) {
    	document.getElementById(el).style.visibility = yale;
    }
}

// RANDOM SPLASH IMAGE
var n = 1; // default image
var r = 8; // total number of images minus 1
	if (document.images) {
		n = (Math.round(Math.random()*r) + 1);
	} 
	function randomPhoto() {
		document.write('<img src="resources/homepage/pic' + n + '.jpg" width="768" height="470" border="0" alt="" \/>');
	}
	function randomStyles() {
		document.write('<style type="text/css">body.home #nav { background-image: url(resources/homepage/nav' + n + '.jpg); }<\/style>');
	}
	function randomCaption() {
		caption.loadContent('resources/homepage/cap' + n + '.html');
	}

randomStyles();
