  //<[CDATA[


function sIFRStart(){
	  var cronospro = { 
		src: 'js/sifr_cronospro.swf'
		,ratios:[6, 1.2, 9, 1.25, 18, 1.19, 26, 1.17, 27, 1.16, 32, 1.17, 46, 1.16, 47, 1.15, 53, 1.16, 54, 1.15, 59, 1.16, 61, 1.15, 62, 1.16, 68, 1.15, 71, 1.16, 81, 1.15, 82, 1.16, 1.15]   
	};
	  var cronospro_semibold = {
		src: 'js/sifr_cronospro_semibold.swf'
		,ratios:[12, 1.2, 20, 1.17, 22, 1.15, 28, 1.16, 50, 1.15, 51, 1.14, 56, 1.15, 58, 1.14, 63, 1.15, 65, 1.14, 69, 1.15, 72, 1.14, 73, 1.15, 79, 1.14, 80, 1.15, 1.14]   
	};
	  sIFR.useStyleCheck = true;
	  sIFR.activate(cronospro, cronospro_semibold);
	//  sIFR.debug.ratios({ src: 'js/sifr_cronospro_semibold.swf', selector: 'h1' });
	
	
		
		
	  sIFR.replace(cronospro, {
		selector: '.uutinenselite h4'
		, wmode: 'transparent'
		,css: [
		  '.sIFR-root { color:#FFFFFF; text-align: left; font-weight: bold; font-size:18px;}'
		  ,'a { text-decoration: none; }'
		  ,'a:link { color: #FFFFFF; }'
		  ,'a:hover { color: #FFB000; }'
		]
	  });
	
	
	
		sIFR.replace(cronospro, {
		selector: '.referenssiAsiakasSelite h4'
		, wmode: 'transparent'
		,css: [
		  '.sIFR-root { color:#FFFFFF; text-align: left; font-weight: bold; leading:-12; font-size:18px;}'
		  ,'a { text-decoration: none; }'
		  ,'a:link { color: #FFB000; }'
		  ,'a:hover { color: #CCCCCC; }'
		]
	  });
		 
	  sIFR.replace(cronospro, {
		selector: '.inSpotlightParagraphInner h4'
		, wmode: 'transparent'
		,css: [
		  '.sIFR-root { color:#4567B1; text-align: left; font-weight: bold; leading:-12; font-size:18px;}'
		  ,'a { text-decoration: none; }'
		  ,'a:link { color: #4567B1; }'
		  ,'a:hover { color: #4567B1; }'
		]
	  });
	  sIFR.replace(cronospro, {
		selector: '.latestNewsTopInner h4'
		, wmode: 'transparent'
		,css: [
		  '.sIFR-root { color:#FFB000; text-align: left; font-weight: bold; leading:-12; font-size:18px;}'
		  ,'a { text-decoration: none; }'
		  ,'a:link { color: #4567B1; }'
		  ,'a:hover { color: #4567B1; }'
		]
	  });
	
	
	sIFR.replace(cronospro_semibold, {
		selector: 'h1.semibold'
		, wmode: 'transparent'
		,css: [
		  '.sIFR-root { text-align: right; font-weight: bold; color:#cbd3e2; font-size:15px;}'
		  ,'a { text-decoration: none; }'
		  ,'a:link { color: #FFB000; }'
		  ,'a:hover { color: #CCCCCC; }'
		]
	  });
	
	  sIFR.replace(cronospro, {
		selector: 'h1.uutinen'
		, wmode: 'transparent'
		,css: [
		  '.sIFR-root { text-align: left; font-weight: bold; color:#ffffff; font-size:24px;}'
		  ,'a { text-decoration: none; }'
		  ,'a:link { color: #FFB000; }'
		  ,'a:hover { color: #CCCCCC; }'
		]
	  });
	
	  sIFR.replace(cronospro, {
		selector: 'h1'
		, wmode: 'transparent'
		,css: [
		  '.sIFR-root { text-align: left; font-weight: bold; color:#ffffff;}'
		  ,'a { text-decoration: none; }'
		  ,'a:link { color: #FFB000; }'
		  ,'a:hover { color: #CCCCCC; }'
		]
	  });
	
	  sIFR.replace(cronospro, {
		selector: 'h2'
		, wmode: 'transparent'
		,css: [
		  '.sIFR-root { color:#FFB000; text-align: left; font-weight: bold; leading:-12;}'
		  ,'a { text-decoration: none; }'
		  ,'a:link { color: #FFB000; }'
		  ,'a:hover { color: #CCCCCC; }'
		]
	  });
	
	  sIFR.replace(cronospro, {
		selector: '.userCommentsInner h3'
		, wmode: 'transparent'
		,css: [
		  '.sIFR-root { color:#FFFFFF; text-align: left; font-weight: bold; leading:-12; font-size:18px;}'
		  ,'a { text-decoration: none; }'
		  ,'a:link { color: #FFB000; }'
		  ,'a:hover { color: #CCCCCC; }'
		]
	  });
	  
	  
	  sIFR.replace(cronospro, {
		selector: '.kokeileItseTop h3'
		, wmode: 'transparent'
		,css: [
		  '.sIFR-root { color:#FFFFFF; text-align: left; font-weight: bold; leading:-12; font-size:24px;}'
		  ,'a { text-decoration: none; }'
		  ,'a:link { color: #FFB000; }'
		  ,'a:hover { color: #CCCCCC; }'
		]
	  });
	
	
	  sIFR.replace(cronospro, {
		selector: 'h3'
		, wmode: 'transparent'
		,css: [
		  '.sIFR-root { color:#FFFFFF; text-align: left; font-weight: bold; leading:-12;}'
		  ,'a { text-decoration: none; }'
		  ,'a:link { color: #FFB000; }'
		  ,'a:hover { color: #CCCCCC; }'
		]
	  });
	
	
	  sIFR.replace(cronospro, {
		selector: 'h5.tehtya'
		, wmode: 'transparent'
		,css: [
		  '.sIFR-root { color:#000000; text-align: left; font-weight: bold; leading:-12;}'
		  ,'a { text-decoration: none; }'
		  ,'a:link { color: #FFB000; }'
		  ,'a:hover { color: #FFB000; }'
		]
	  });
	
	
	
	sIFR.replace(cronospro, {
		selector: '.subnaviLeftInner h4'
		, wmode: 'transparent'
		,css: [
		  '.sIFR-root { color:#FFB000; text-align: left; font-weight: bold; leading:-12; font-size:16px;}'
		  ,'a { text-decoration: none; }'
		  ,'a:link { color: #FFB000; }'
		  ,'a:hover { color: #FFB000; }'
		]
	  });
	
	
	
	  sIFR.replace(cronospro, {
		selector: 'h5#pullquote'
		,css: 'em { font-style: normal; color: #660000; }'
		,selectable: false
	  });
	  
	  sIFR.replace(cronospro, {
		selector: 'h3.sidebox'
		,css: {
		  '.sIFR-root': {  }
		}
	  });
	  
	  sIFR.replace(cronospro, {
		selector: 'h4.subhead'
		,css: {
		  '.sIFR-root': { 'color': '#660000', 'letter-spacing': -1.5, 'text-transform': 'capitalize' }
		}
		,filters: {
		  DropShadow: {
			knockout: true
			,distance: 1
			,color: '#330000'
			,strength: 2
		  }
		}
	  
	  }
	);

}

//// Ajax - content

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 ){
				$(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() {
					
				}
			});
		});
		}
	}
}
 
if (sIFR.ua.transparencySupport == true){
	sIFRStart();
}

  //]]>

