Event.observe(window, 'load', function() {
    $$('a[rel="external"]').each(function(link){
        if(link.readAttribute('href') != '' && link.readAttribute('href') != '#'){
            link.writeAttribute('target','_blank');
        }
    });
});

var font = {
  src: '/wp-content/themes/nthmedia/sifr3.swf'
};
sIFR.activate(font);


sIFR.replace(font, {
  selector: '.zand_achtergrond h1, .tekst_achtergrond h1, div.post h1, div.page h1',
    css: [
      '.sIFR-root { background-color: #f9f3e7; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #000000; }'
      ,'a:hover { color: #000000; }'
    ],
    filters: {
  		DropShadow: {
 		distance: 1,
   		color: '#a4a4a4',
    	strength: 1 	
	  	}
	}

});

sIFR.replace(font, {
  selector: '.tekst_achtergrond h2, div.post h2, div.page h2',
    css: [
      '.sIFR-root { background-color: #f9f3e7; }'
      ,'a { text-decoration: none; }'
      ,'a:link { color: #000000; }'
      ,'a:hover { color: #000000; }'
    ]
    
});

sIFR.replace(font, {
  selector: '.groene_achtergrond h1, #linkerkolom #recent-posts h3',
    css: {
      '.sIFR-root': { 'background-color': '#b2c546' }
    },
    filters: {
  		DropShadow: {
 		distance: 1,
   		color: '#748514',
    	strength: 1	
	  	}
	}
});

sIFR.replace(font, {
  selector: '.blauwe_achtergrond h1, #navigatie h1',
    css: {
      '.sIFR-root': { 'background-color': '#82d3ec' }
    },
    filters: {
  		DropShadow: {
 		distance: 1,
   		color: '#4fa4be',
    	strength: 1 	
	  	}
	}
});

sIFR.replace(font, {
  selector: '#recente_projecten h1, h3.widgettitle, .comments h2, #secondary h2'
});
