//new design by Ilie Pandia
window.addEvent("domready", function (event) {

	//setup document
	var docWidth = 800;
	
	//put the wrapper around the body
	var body = $(document.body).get('html');
	$(document.body).set( 'html', "<div id='container'><div id='container2'>" + body + "</div></div>" );
	
	//reset the document background :)
	document.body.background = '';

	//make sure we don't screw up even if a browser does not fit!
	try{
		//banish the Arial font
		var arElements = document.getElementsByTagName('*');
		for (var i = arElements.length - 1; i >= 0; i--) {
			var elm = arElements[i];
			var style = getComputedStyle(elm, '');
			if( style.fontFamily.toString().toLowerCase().indexOf( 'arial' ) >= 0 )
				elm.style.fontFamily = style.fontFamily.replace(/arial/i, '');
			//remove all the font face referececes from the site
			if( (elm.tagName == 'FONT') || (elm.tagName == 'font') )
			{
				elm.face = '';
			}
		}
	}
	catch(err){}
	
	try{
		//after messing up with layout I have to reposition the window
		//console.debug( 'here1' );
		//console.debug( window.location );
		if( window.location.href.indexOf( '#' ) > 0 )
		{
			//console.debug( 'done jump' );
			window.location.href = window.location.href;
		}
		//console.debug( 'here' );
	}
	catch( err ){}
	
});

