$(document).ready(function() {
	//
	$('a[rel=_blank]').live('click', function(){
		this.target = "_blank";
	});


	//
	if (($.browser.webkit)){
		$('html').addClass('webkit');
	}

	//
	if (($.browser.opera)){
		$('html').addClass('opera');
	}
	
	//
	if (($.browser.msie)) {
		$('html').addClass('ie');
	}

	//
	if (($.browser.msie) && ($.browser.version <= "8.0")){
		// CSS3PIE
		var CSS3PIE_selectors = [
			'#header',
			'#header form input',
			'#content .logotypes',
			'.shortinfo'
		];
		$( CSS3PIE_selectors.join(',') ).each(function() {
			PIE.attach(this);
		});
	}

	//
	if (($.browser.msie) && ($.browser.version == "8.0")){
	}

	//
	if (($.browser.msie) && ($.browser.version == "7.0")){
	}
	
	$(".iframe").fancybox({
		'width'				: '50%',
		'height'			: '60%',
        'autoScale'     	: true,
        'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe'
	});
	
	// 
	if ( $('body.sub .menu > li') ) {
		$('body.sub .menu > li').mouseenter(function() {
			var $this = $(this);
			
			if ( this.timeOut ) {
				clearTimeout( this.timeOut );
			}
			
			$this.addClass('hover');
			$('ul.subMenu', $this).addClass('hover');
		}).mouseleave( function() {
			var $this = $(this);
			
			this.timeOut = setTimeout( function() { $this.removeClass('hover'); $('ul.subMenu', $this).removeClass('hover') }, 50);
		});
	}
});

$(window).load(function() {
});
