$(document).ready(function () {
	// Flash
	$('#top_swf').flash({
		//codebase: 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
		pluginspage: 'http://www.macromedia.com/go/getflashplayer',
		src: 'flash/index.swf',
		width: 940,
		height: 300,
		play: true,
		loop: true,
		quality: 'autohigh',
		bgcolor: '#ffffff',
		wmode: 'transparent',
		devicefont: false,
		allowFullScreen: false,
		allowScriptAccess: 'sameDomain',
		id: 'top_swf',
		name: 'top_swf',
		movie: 'flash/index.swf',
		menu: true
	});

	// Tabs
//	$('#news_box').tabs();
	$('#quick_access').tabs({cookie: {}});

	// Tab Image
/*
	$('ul#news_tab li img').click(function(){
		$('ul#news_tab li img').each(function(i){
			if ($(this).attr("src")){
				$(this).attr("src", $(this).attr("src").replace("_on.", "_off."));
			}
		});
		$(this).attr("src", $(this).attr("src").replace("_off.", "_on."));
	});
*/

	// Rollover Image
	$('ul#subjects_menu li img').each(function(){
		if ($(this).attr("src")){
			$(this).hover(
				function() { $(this).attr("src", $(this).attr("src").replace("_off.", "_on.")); },
				function() { $(this).attr("src", $(this).attr("src").replace("_on.", "_off.")); }
			);
		}
	});
});
