// USERJS FILE FOR OPERA 8
// url:		http://*.nuon.* is fixed with adjustments to:
//		- http://*.nuon.*/bottombar.jsp
//		- http://*.nuon.*/sitewide/contact 
// problem:	bar at the bottom is partly invisible; contact page is messy in Opera (and Firefox)
// author:	scipio
// last update: 2005-08-08


if (window.location.href.match(/http:\/\/\w+\.nuon\.\w{2,3}\//)){
	if (window.location.href.indexOf('bottombar.jsp')>-1){ 
		window.opera.addEventListener(
			'AfterEventListener.load',
			function(){var s=document.getElementById('searchform'); if(s) {s.style='margin:0'; s=s.parentNode; if (s.nodeName=='TD') s.style='margin:0; background:#330275;'; s=document.body; s.style='padding:0;height:23px;margin:0;'}},
			false);}
	if (window.location.href.indexOf('sitewide/contact')>-1){
		window.opera.addEventListener(
			'AfterEventListener.load',
			function(){var s=document.getElementsByTagName('div'); for (var i=0,si;si=s[i];i++){if (si.className=='tableheader') si.style='width:522px; padding-left: 8px;'}; s=document.getElementsByTagName('td'); for (var i=0,si;si=s[i];i++){if (si.className=='tablecell') si.style='float: none; width: 50%;';}},
			false);}
	opera.postError(location.hostname+' has been modified by UserJS.');
}
