var tooltip, registration, interactiveMap;
function init() {

	if (typeof sIFR == "function") {
		sIFR.replaceElement("#main-column ul.links li", named({sFlashSrc: PATH + "/media/_common/siemensslab.swf", sColor:"#3333333", sHoverColor:"#990000", sWmode:"transparent"}));
		sIFR.replaceElement("#main-column div h4.title", named({sFlashSrc: PATH + "/media/_common/siemensslab.swf", sColor:"#3333333", sWmode:"transparent"}));
		sIFR.replaceElement("h3.title", named({sFlashSrc: PATH + "/media/_common/siemensslab.swf", sColor:"#FFFFFF", sWmode:"transparent"}));
		sIFR.replaceElement("h3.subtitle", named({sFlashSrc: PATH + "/media/_common/siemensslab.swf", sColor:"#FFFFFF", sWmode:"transparent"}));
		sIFR.replaceElement("h3.title2", named({sFlashSrc: PATH + "/media/_common/siemensslab.swf", sColor:"#FFFFFF", sWmode:"transparent"}));
		sIFR.replaceElement("h3.title3", named({sFlashSrc: PATH + "/media/_common/siemensslab.swf", sColor:"#FFFFFF", sWmode:"transparent"}));
		sIFR.replaceElement("h3.page-title", named({sFlashSrc: PATH + "/media/_common/siemensslab.swf", sColor:"#333333", sWmode:"transparent"}));
		sIFR.replaceElement("h4.page-subtitle", named({sFlashSrc: PATH + "/media/_common/siemensslab.swf", sColor:"#999999", sWmode:"transparent"}));
		sIFR.replaceElement("p.text", named({sFlashSrc: PATH + "/media/_common/siemensslab.swf", sColor:"#4C4C4C", sWmode:"transparent"}));
		//sIFR.replaceElement("h4.right-title", named({sFlashSrc: PATH + "/media/_common/siemensslab.swf", sColor:"#4C4C4C", sWmode:"transparent"}));
	}

	if ($("#footer").length > 0)
	    setFooterPosition();

	if ($("#defaultLayout").length > 0)
		fixWidth();
		
	$("#lightBoxFlash").show();
}

window.onload = function() {
        init();
	if (typeof(InteractiveMap) != "undefined") {
	    interactiveMap = new InteractiveMap();
	    interactiveMap.addEvents();
	}

	if (typeof(Registration) != "undefined") {
	    registration = new Registration();
	}

	if (typeof(Tooltip) != "undefined") {
	    tooltip = new Tooltip();
	    tooltip.setupTooltip();
	}

	if (typeof(findYourWay) != "undefined") {
	    fyw = new findYourWay();
	}
}

window.onresize = function() {
    if ($("#footer").length > 0)
		setFooterPosition();
    if ($("#defaultLayout").length > 0)
	fixWidth();
}
