jQ=jQuery.noConflict();
jQ(function() {
	jQ('.latestNews li:first').addClass('firstLi');
	giveHeight();
	jQ(window).resize(function() { giveHeight() });
	jQ('#submenu li li li:last-child').addClass('lastLi');
	if(jQ('body').is('#print')) jQ('html').css('background','#ffffff')
	jQ('#actualLang a').click(function() { jQ('#language ul').slideToggle(); }).blur(function() { jQ('#language ul').slideUp(); }); 
	jQ('#submenu>li').addClass('primary');
	jQ('.right p.bodytext:has("b"):first').addClass('descr_text');
	jQ('#list li:last').addClass('lastLi');
	jQ('.pickBox:empty').remove();
});
	
	function giveHeight() { 
		var otherHeight=jQ('#header').height();
		var wHeight=jQ(window).height();
		var rest=wHeight-otherHeight;
		jQ('#content').height('auto');
		var contentHeight=jQ('#content').height();
		var bothH=otherHeight+contentHeight;
		if(bothH < wHeight) jQ('#content').height(rest);
		else { jQ('#content').height('auto') }
	}
	
	function PrintLink() {		
		var url = document.location.href; 
		var newurl = url;
		if ( url.indexOf("?") > -1 ) newurl = newurl+'&typeP=1';
		else  newurl = newurl+'?typeP=1';
		window.open(newurl,'PrintPage','scrollbars=1,width=810,height=500,resizable=no');
	}