// <on load>

var SWFsArray = new Array();
var currContent = "defaultContent";
var opaqueParams = {wmode:"opaque",bgcolor:"#000000",menu:"false"}
var contentHeight = 1000;
//<navs>
SWFsArray["header"] = {filePath:"header.swf",divName:"header",width:980,height:163,className:"header",params:opaqueParams};
//</navs>
//<contents>

//</contents>

var headerHeight = SWFsArray["header"].height;
var overallHeight = 0;

// </on load>


function initPage(){
	
	setLoader("");
	exitTransitionMode();
	embedSWF(SWFsArray["header"],0);
	/*document.getElementById("content").className = "content";
	document.getElementById("content").style.top = headerHeight;
	document.getElementById("content").style.height = contentHeight+"px";*/
	/*document.getElementById("footerCloser").className = "loaderTop";
	document.getElementById("footerCloser").style.top = contentHeight+headerHeight;
	document.getElementById("headerOpener").className = "loaderTop";
	document.getElementById("headerOpener").style.top = headerHeight;

	placeFooter(contentHeight +headerHeight+40);*/
}



function stepInit(step){
	switch(step){
		case "header":
		break;
		default:break;
		
	}
}

function changeContent(newContent){
	changeCurrContent(newContent);
	enterTransitionMode(SWFsArray[currContent].height);	
	embedSWF(SWFsArray[currContent],headerHeight);
}

function enterTransitionMode(contentHeight){
	showLoader(contentHeight);
	//placeFooter(contentHeight+headerHeight);
	overallHeight = contentHeight+headerHeight
}

function exitTransitionMode(){
	hideLoader();
}

function backToMainPage(){
	navigate("home",{})
}

function changeCurrContent(newContent){
	currContent =newContent;
}