<!--//--><![CDATA[//><!--
startList = function() {
	if (document.getElementById) {
		//navRoot = document.getElementById("topnavId");
		navRoot = $($("topnavId"));
		if (navRoot){
			if (navRoot.getElementsByTagName('li')) {
				for (var i = 0; (node = navRoot.getElementsByTagName('li')[i]); i++) {
					node.onmouseover=function() {
						this.className+=" over";
	
					}
					node.onmouseout=function() {
						this.className=this.className.replace("over", "");
					}
				}
			}
		}
	}
}
window.addEvent('domready', function() {
	startList();

});
sIFRStart();
function sIFRStart(){
	

	var myriadprobold = {
		src: 'templates/js/myriadprobold.swf'
		,ratios: []
	};
	
	var myriadprosemi = {
		src: 'templates/js/myriadprosemi.swf'
		,ratios: []
	};
	sIFR.delayCSS  = true;
	// sIFR.domains = ['zerust.fi'] // Don't check for domains in this demo
	sIFR.activate(myriadprobold, myriadprosemi);
	
	sIFR.replace(myriadprosemi, {
		selector: '.pageHeader h1'
		,css: [
		  '.sIFR-root { text-align:left; font-weight:bold; font-size:40px; color:#000000; }'
		  ,'a { text-decoration: none; }'
		  ,'a:link { color: #000000; }'
		  ,'a:hover { color: #CCCCCC; }'
		]
		,wmode: 'transparent'
	});
	sIFR.replace(myriadprosemi, {
		selector: '.extrarightMenusifr'
		,css: [
		  '.sIFR-root { text-align:left; font-weight:bold; font-size:22px; color:#f4e32b; width:200px; }'
		  ,'a { text-decoration: none; color: #f4e32b; }'
		  ,'a:link { color: #f4e32b; text-decoration: underline; }'
		  ,'a:hover { color: #f4e32b; text-decoration: underline; }'
		]
		,wmode: 'transparent'
	});
	
	sIFR.replace(myriadprobold, {
		selector: '.componentheading h1'
		,css: [
		  '.sIFR-root { text-align:left; font-weight: bold; color:#000000; font-size:22px;}'
		  ,'a { text-decoration: none; }'
		  ,'a:link { color: #000000; }'
		  ,'a:hover { color: #000000; }'
		]
		,wmode: 'transparent'
	});
	sIFR.replace(myriadprobold, {
		selector: '.contentpaneopeninner h1'
		,css: [
		  '.sIFR-root { text-align:left; font-weight: bold; color:#000000; }'
		  ,'a { text-decoration: none; }'
		  ,'a:link { color: #000000; }'
		  ,'a:hover { color: #CCCCCC; }'
		]
		,wmode: 'transparent'
	});
	sIFR.replace(myriadprobold, {
		selector: '.fileListColumn h1'
		,css: [
		  '.sIFR-root { text-align:left; font-weight: bold; color:#000000; }'
		  ,'a { text-decoration: none; }'
		  ,'a:link { color: #000000; }'
		  ,'a:hover { color: #CCCCCC; }'
		]
		,wmode: 'transparent'
	});
	
	sIFR.replace(myriadprobold, {
		selector: 'h2.xmas'
		,css: [
		  '.sIFR-root { text-align:center; font-size:18px ;font-weight: bold; color:#990000; }'
		  ,'a { text-decoration: none; }'
		  ,'a:link { color: #000000; }'
		  ,'a:hover { color: #CCCCCC; }'
		]
		,wmode: 'transparent'
	});
	
		sIFR.replace(myriadprobold, {
		selector: 'h2'
		,css: [
		  '.sIFR-root { text-align:left; font-size:18px ;font-weight: bold; color:#4A4A4C; }'
		  ,'a { text-decoration: none; }'
		  ,'a:link { color: #000000; }'
		  ,'a:hover { color: #CCCCCC; }'
		]
		,wmode: 'transparent'
	});
	

}

function ajaxContent(url){
	/* our ajax istance */
	/*
	alert(url);	
	*/
	var realDynamicContent = $($('realDynamicContent'));
	var ajax = new Ajax(url, { 
		update: realDynamicContent,
		evalScripts: true, 
		method: 'get'
	});
	ajax.request(url);
}
function ajaxContentCustom(url,id){
	/* our ajax istance */
	/*
	alert(url);	
	*/
	var realDynamicContent = $($(id));
	var ajax = new Ajax(url, { 
		update: realDynamicContent,
		evalScripts: true, 
		method: 'get'
	});
	ajax.request();
}
function activateAjaxForm(formId , contentId){
	if ( $(formId) ) {
		var act = ( $(formId).action );
		
		if (act){
			alreadyAjaxed = act.match("ajax");
			if (!alreadyAjaxed ){
				if (act.match('[?]') ){
					$(formId).action = act+"&ajax=ajax";
				}else{
					$(formId).action = act+"?ajax=ajax";
				}
			}
		}
		//alert(act)
		if (!alreadyAjaxed ){
	
		$(formId).addEvent('submit', function(e) {
			new Event(e).stop();
			var contentDiv = $(contentId);
			var submitButton = $("submitButton");
			if (submitButton){
				submitButton.disabled = true;
				submitButton.value = "Lähetetään...";
				submitButton.addClass("formSent");
			}
			this.send({
				evalScripts: true,
				update: contentDiv,
				onComplete: function() {
					
				}
			});
		});
		}
	}
}


//--><!]]>
