if (BrowserDetect.browser != "Safari") {

if (document.body.clientWidth) {
	width_available  = document.body.clientWidth;
	height_available = document.body.clientHeight;
} else {
	width_available  = window.innerWidth;
	height_available = window.innerHeight;
}
window.onresize = function() {

	if (document.body.clientWidth) {
		width_available  = document.body.clientWidth;
		height_available = document.body.clientHeight;
	} else {
		width_available  = window.innerWidth;
		height_available = window.innerHeight;
	}

        current_width			= document.getElementById('totalWidth');
        current_height			= document.getElementById('totalHeight');

	if (current_width.value		!= width_available ||
            current_height.value 	!= height_available  ) {

		document.location.href	= document.location.href;

		current_width.value	= width_available;
		current_height.value	= height_available;
	}
}

leftHeight	= height_available - 388;
barTop 		= Math.round(0.42 * leftHeight);
topbarTop 	= barTop - 65;

document.write("<style type='text/css'> 					");

if (height_available < 520) {
	barTop 		= Math.round(0.52 * 132);
	topbarTop 	= barTop - 65;
	document.write("body 	{ height:  520px; } 		");
}
if (width_available < 996) {
	document.write("body 	{ width:  996px; } 		");
}
document.write("	#topBar { top: " + topbarTop 	+ "px; } 		");
document.write("	#bar 	{ top: " + barTop 	+ "px; } 		");
document.write("</style>");

}