var disturbance = {
  src: 'http://www.eyeline-magazine.nl/fileadmin/sifr/disturbance.swf'
};

var scala = {
  src: 'http://www.eyeline-magazine.nl/fileadmin/sifr/scala.swf'
};

sIFR.debugMode = false;
sIFR.delayCSS  = false;
sIFR.activate(scala, disturbance);



sIFR.replace(disturbance, {
  wmode:'transparent'
  ,selector: 'h1'
  ,css: [
  '.sIFR-root { text-align:left;letter-spacing:-1.5; color:#666666; }'
  ]
  });
sIFR.replace(scala, {
  wmode:'transparent'
  ,selector: 'h2'
  ,css: [
  '.sIFR-root { text-align:left;letter-spacing:-1.5; color:#5F7FB7;height:30; }'
  ]
  });
			
function makestyle(selector, declaration) {
	// test for IE
	declaration = declaration+";visibility: hidden;"
	var ua = navigator.userAgent.toLowerCase();
	var isIE = (/msie/.test(ua)) && !(/opera/.test(ua)) && (/win/.test(ua));

	// create the style node for all browsers
	var style_node = document.createElement("style");
	style_node.setAttribute("type", "text/css");
	style_node.setAttribute("media", "screen"); 

	// append a rule for good browsers
	if (!isIE) style_node.appendChild(document.createTextNode(selector + " {" + declaration + "}"));

	// append the style node
	document.getElementsByTagName("head")[0].appendChild(style_node);

	// use alternative methods for IE
	if (isIE && document.styleSheets && document.styleSheets.length > 0) {
		var last_style_node = document.styleSheets[document.styleSheets.length - 1];
		if (typeof(last_style_node.addRule) == "object") last_style_node.addRule(selector, declaration);
	}
};

function objStyler(newsUID,headerColor,headerSize,headerFont)
	{
	myString = "";
	myString = newsUID,headerColor,headerSize,headerFont;
	sifrObjects.push(myString);
	}
	
function buildSifrs()
	{
	for ( i = 0 ; i < sifrObjects.length; i++)
		{
		subjes = sifrObjects[i].split(',')
		if (subjes[3] == 'scala')
			{
			sIFR.replace(scala, {
				wmode:'transparent'
				,selector: '#header'+subjes[0]
				,css: [
				'.sIFR-root { text-align:left;letter-spacing:-1.5; color: '+subjes[1]+'; }'
				]
				});
			}
		if (subjes[3] == 'disturbance')
			{
			sIFR.replace(disturbance, {
				wmode:'transparent'
				,selector: '#header'+subjes[0]
				,css: [
				'.sIFR-root { text-align:left;letter-spacing:-1.5; color: '+subjes[1]+'; }'
				]
				});
			}
		}
	}
	
//createCSS('a','color:green');
