jQuery.noConflict();
(function($) {
$(function(){
	if($('body').is('#newsPage')) {
		Cufon.replace($('#newsPage #submenu a'), { hover:true });
	}
	var windowHeight=$(window).height();
	var contentHeight=$('#container_box').height();
	var paddingTop=((windowHeight-contentHeight)/2)-10;
	if ((contentHeight < windowHeight) && (windowHeight-contentHeight > 50)) { $('#container_box').css('padding-top',paddingTop); };
	if($('#newsPage').length) $('#newsPage #newslist').jScrollPane({scrollbarWidth:12});
	$("input[type=file]").filestyle({
	    image: "http://www.kiveld.nl/fileadmin/images/browse.gif",
	    imageheight : 21,
	    imagewidth : 50,
	    width : 368
	});
	$('div.content input[type=submit]').addClass('submitType');
	$('#menu li').each(function() { if($(this).text().length < 8) { $(this).find('a').css('padding-right','34px').end().css('margin-right','-11px'); } });
	$('#menu li ul').addClass('hide');
	if(($.browser.msie) && ($.browser.version <=6)) {
		 $('#menu li').hoverIntent( {
											over: function() { $(this).addClass('over') },
											out: function() {  $(this).removeClass('over'); }
											});

	}
});

})(jQuery);

function fixSafari()
{
    $('#menu li ul').removeClass('hide');
    $('#menu li ul').addClass('show');
}

function menuHover(obj)
{
	obj.className = 'menuHover';
}
function menuUnhover(obj)
{
	obj.className = 'menuUnhover';
}
