$(document).ready(function(){



	if($.browser.msie){

		// Fix User menu first tab
		$('#user_menu li:first-child').addClass('first');
		//---
		// Fix Tabs in Types Menu --
		$('#types_menu td:first-child a>span').addClass('firstmenutab');
		$('#types_menu td:last-child a>span').addClass('lastmenutab');
		//---
	}
  if($.browser.safari){

		// Fix User menu first tab
		$('#user_menu li:first-child').addClass('first');
		//---
		// Fix Tabs in Types Menu --
		$('#types_menu td:first-child a>span').addClass('firstmenutab');
		$('#types_menu td:last-child a>span').addClass('lastmenutab');
		//---
    	$('.text-block4').css({
  										     		'margin-top':'685px'
  										     	});
      $('.text-block8').css({
  										     		'top':'-680px'
  										     	});
      $('.text-block6').css({
  										     		'margin-top':'695px'
  										     	});
      $('.text-block10').css({
  										     		'top':'-690px'
  										     	});
$('.text-block11').css({
  										     		'margin-top':'685px'
  										     	});
$('.text-block12').css({
  										     		'top':'-680px'
  										     	});
	}
   if (navigator.userAgent.toLowerCase().indexOf('chrome') > -1) {
    	$('.text-block4').css({
  										     		'margin-top':'715px'
  										     	});
      $('.text-block8').css({
  										     		'top':'-710px'
  										     	});
                            $('.text-block6').css({
  										     		'margin-top':'720px'
  										     	});
      $('.text-block10').css({
  										     		'top':'-715px'
  										     	});
$('.text-block11').css({
  										     		'margin-top':'705px'
  										     	});
$('.text-block12').css({
  										     		'top':'-700px'
  										     	});
	}
 if($.browser.mozilla && ($.browser.version == '1.9.0.6')) {
    	$('.text-block4').css({
  										     		'margin-top':'690px'
  										     	});
      $('.text-block8').css({
  										     		'top':'-685px'
  										     	});
	}
   if($.browser.mozilla && ($.browser.version == '1.9.0.6')) {
    	$('.text-block6').css({
  										     		'margin-top':'700px'
  										     	});
      $('.text-block10').css({
  										     		'top':'-695px'
  										     	});
	}

});


var cssFix = function(){
  var u = navigator.userAgent.toLowerCase(),
  addClass = function(el,val){
    if(!el.className) {
      el.className = val;
    } else {
      var newCl = el.className;
      newCl+=(" "+val);
      el.className = newCl;
    }
  },
  is = function(t){return (u.indexOf(t)!=-1)};
  addClass(document.getElementsByTagName('html')[0],[
    (!(/opera|webtv/i.test(u))&&/msie (\d)/.test(u))?('ie ie'+RegExp.$1)
      :is('firefox/2')?'gecko ff2'
      :is('firefox/3')?'gecko ff3'
      :is('gecko/')?'gecko'
      :is('opera/9')?'opera opera9':/opera (\d)/.test(u)?'opera opera'+RegExp.$1
      :is('konqueror')?'konqueror'
      :is('applewebkit/')?'webkit safari'
      :is('mozilla/')?'gecko':'',
    (is('x11')||is('linux'))?' linux'
      :is('mac')?' mac'
      :is('win')?' win':''
  ].join(" "));
}();
/*
alert (navigator.userAgent.toLowerCase());

var is_chrome = fals
e, chrome_version = false;
if (navigator.userAgent.toLowerCase().indexOf('chrome') > -1) {
	is_chrome = true;
	chrome_version = navigator.userAgent.replace(/^.*Chrome\/([\d\.]+).*$/i, '$1')
}

alert (is_chrome);

*/
