/*---------------------------------------------------------------------
	General file to call event functions (onload, onresize)
-----------------------------------------------------------------------*/

function initPage() {
	//InitMenuDropdowns();
	initRollovers();
	//InitHexControls();
	//InitDatePickerControls();
	//MoveCaseStudyInfo();
}

function MoveCaseStudyInfo() {
	if (!document.getElementById) return;
		var oCaseStudyTitle = document.getElementById("CaseStudyTitle");
		var oURL = document.getElementById("URL");
		var oSideNav = document.getElementById("SideNav");
		var oNav = document.getElementById("Nav");
		
		if (oCaseStudyTitle) {
			oCaseStudyH3 = document.createElement("h3");
			oCaseStudyH3Text = document.createTextNode(oCaseStudyTitle.childNodes.item(0).data);
			oCaseStudyH3.appendChild(oCaseStudyH3Text);
			oSideNav.insertBefore(oCaseStudyH3,oNav);
		}
		
		if (oURL) {
			oCaseStudyPURL = document.createElement("p");
			oCaseStudyPURL.setAttribute("id","SideNavURL");
			oCaseStudyAURL = document.createElement("a");
			oCaseStudyAURL.setAttribute("href",oURL.getAttribute('href'));
			oCaseStudyAURL.setAttribute("target","_blank");
			oCaseStudyAText = document.createTextNode(oURL.getAttribute('href'));
			oCaseStudyAURL.appendChild(oCaseStudyAText);
			oCaseStudyPURL.appendChild(oCaseStudyAURL);
			oSideNav.appendChild(oCaseStudyPURL);
		}

}


function resizeWindow() {
	//InitMenuDropdownReadjust();
}

window.onload = initPage;
//window.onresize = resizeWindow;
