var j = jQuery.noConflict();
j(function(){
	j('#header .menu > li').hoverIntent({
		sensitivity: 3,
		interval: 250,
		timeout: 0,
		over: function(){
			j('#header .menu > li > div').hide();
			j('div', this).show();
		}, 
		out: function(){
			j('#header .menu > li > div').hide();
		}
	});
	
	j('a[rel="external"]').attr('target', '_blank');
	
	j('#news_gallery img.thumb').click(function(){
		source = j(this).attr('src');
		source = source.substr(0, source.length - 9);
		j('#news_gallery_image').attr('src', source + 'large.jpg');
		j('#news_gallery_title').text(j(this).attr('title'));
	});
	
	j('form.filter select').change(function(){
		j(this).parents('form').submit();
	});
});

function pausecomp(millis)
{
	var date = new Date();
	var curDate = null;
	
	do
	{
		curDate = new Date();
	}
	while (curDate - date < millis);
}