// Button & Menu Options ---------------------------------//

//Time before menus auto-hide
	var menu_pause = 250; 

//Show sub-menus for current section( 0=no, 1=yes)
	var section_subs = 0;

// Menu Direction up|center (default is down)
	var menu_dir = "";


//Other button definitions
//"btn_name,menu_name(|menu_direction),section_id,img_src,img_src_on"
var otherBtns = new Array(
	"ql_btn,ql_menu,0,uploaded/images/ql_btn.gif,uploaded/images/ql_btn.gif"
);


// List other images that need to be pre-loaded
var otherImages = new Array();

var rN = Math.round(Math.random() * 4);
var flashCheck;

//other JS functions to run onLoad
function loadJS(){
	if (pageid==1) {
		createStories();
		getThumbs();
		swapMulti(rN);
		flashCheck = setInterval( function(){document.photos.SetVariable("swapControl",rN);}, 500);
	};
}

function getThumbs () {
	divs = document.getElementsByTagName('div');
	for (var i=0; i < divs.length; i++) {
		if (divs[i].className=="thumbs") {
			thumbs=divs[i];
		};
	};

	imgs = thumbs.getElementsByTagName('img');
	for (var i=0; i < imgs.length; i++) {
		imgs[i].num = i;
		imgs[i].onclick = function(){
			stopTimer();
			swapMulti(this.num);
			document.photos.SetVariable("swapControl",this.num);
			clearInterval(flashCheck);
		}
	};
}