/*
$Id: fixes.js,v 1.1 2008/11/18 11:23:32 max Exp $
vim: set ts=2 sw=2 sts=2 et:
*/

/*
  Position:absolute elements will not move when window is resized if a sibling contains float elements and a clear:both element
  https://bugzilla.mozilla.org/show_bug.cgi?id=442542
  FireFox 3.0+
*/
if (navigator.userAgent.toLowerCase().search(/firefox\/(3\.\d+)/i) != -1 && typeof(window.$) != 'undefined') {
  $.event.add(
    window,
    'resize',
    function() {
      var h = document.getElementById('header');
      if (!h || $(h).css('position') != 'absolute')
        return;

      document.getElementById('header').style.position = 'static';
      setTimeout(
        function() {
          document.getElementById('header').style.position = 'absolute';
        },
      20);
    }
  );
}


    var Sys = {}; 
	var ua = navigator.userAgent.toLowerCase(); 
	if (window.ActiveXObject) 
		Sys.ie = ua.match(/msie ([\d.]+)/)[1] 
	else if (document.getBoxObjectFor) 
		Sys.firefox = ua.match(/firefox\/([\d.]+)/)[1] 
	else if (window.MessageEvent && !document.getBoxObjectFor) 
		Sys.chrome = ua.match(/chrome\/([\d.]+)/)[1] 
	else if (window.opera) 
		Sys.opera = ua.match(/opera.([\d.]+)/)[1] 
	else if (window.openDatabase) 
		Sys.safari = ua.match(/version\/([\d.]+)/)[1]; 
	
	if (Sys.ie === "8.0"){
		$(document).ready(function(){
			$(".title .line .dialog-hr").each(function(){
				$(this).css('margin-top','12px');
			});
			$(".bottom .line .dialog-hr").each(function(){
				$(this).css('margin-top','28px');
			});
		});	
	}



