var vy = (vy)? vy:0;
/* This initializes the rest of the Javascript functions */
function init() {
	if(typeof(getOffset)!="undefined") by = getOffset();
	if(typeof(opening)=="undefined")flow();
	if(initVar==0) initBg();
	if(typeof(initForm)!="undefined")initForm();
	if(typeof(initIndex)!="undefined")initIndex();
	if(vy) setTimeout('slideInit()',8000);
	}

/* this sets the positions of the layers on the page */
function flow() {
	var px = Math.floor((getWinWidth()/2)+vx);
		if(px%2 == 0) px++;
	var ox = Math.ceil((getWinWidth()/2)+hx);
		if(ox%2 == 0) ox++;
	bbk.move("vBox",px,vy);
	bbk.move("hBox",ox,hy);
	bbk.show('vBox',true);
	bbk.show('hBox',true);
	if(by){
		bbk.move("bBox",px,by);
		bbk.show('bBox',true);
		}
	if(typeof(initIndex)!="undefined") {
		bbk.move('iBox',ox,hy);
		bbk.move('tBox',ox+80,hy+60);
		bbk.move('pBox',(getWinWidth()/2)-300,100);
		bbk.move('wBox',(getWinWidth()/2)-360,100);

		}
	}

/* This sets the background images for the div tags*/
function initBg () {
	bbk.setBgImage('vBox','graphics/' + vBG);
	bbk.setBgImage('hBox','graphics/' + hBG);
	if(by) {
		bbk.setBgImage('bBox','graphics/' + vBG);
		}
	initVar=1;
}

/* This updates the pages when the browser window is resized */
function resizeFix() {
	if(n4) history.go(0);
	flow();
	}