jQuery.noConflict();

jQuery(function($) { 

	//IE6 hover
	if ($.browser.msie) {
		if ($.browser.version <= 6) {
			jQuery('#nav .sub').hover(
				function(){ this.id = 'hover'; },
				function(){ this.id = ''; }
			);
		}
	}
	
	jQuery('#nav li:last-child').addClass('last-child');
	
	//Page Teaser fix
	jQuery('.tx-jppageteaser-pi1').parent('#content-inner').attr('id','');
	
	//Link overlay
	jQuery('#content .tx-jppageteaser-pi1 .box').each(function(){
		$box = $(this);
		$a = $('a:last', $box);
		$a.clone().empty().addClass('overlay').appendTo($box);
		$box.hover(
		  function(){ jQuery(this).addClass('hover') },
		  function(){ jQuery(this).removeClass('hover') }
		);
	});
	
});
