$(document).ready(function()
	{
		var flashfile = $('meta[name=flashfile]').attr('content');
		var flashx = $('meta[name=flashx]').attr('content');
		var flashy = $('meta[name=flashy]').attr('content');
		
		$('#head').flash(
        { src: flashfile,
          width: flashx,
          height:flashy },
        { version: 8 });
		
		// hide navigation from unpaged items
		var navi = $('div.navigation').html();
		if( navi != null && navi.length <= 12)
		{
			$('div.navigation').css('display','none');
		}
		
		// external links in new windows
		$("a[rel=external]").click(function()
			{
				window.open(this.href);
				return false;
			});
		
		// news ticker
		if($('ul#listticker').length > 0)
		{
			var options = {
				newsList: '#listticker',
				startDelay: 10,
				placeHolder1: ' '
			}
			
			$().newsTicker(options);
		}
		
		// feature list
		if($('#featureItems').length > 0)
		{
			$('#featureItems').scrollable().autoscroll({autoplay: true});
		}
	});