function initObjects()
{
	try {
		if (SWFObject && document.getElementById("flash")) {
			var toptext = new SWFObject("public/swf/rotate.swf", "flash", "476", "144", "7", "");
			toptext.addParam("wmode", "opaque");
			toptext.addParam("wmode", "transparent");
			toptext.write("flash");
		}
	}
	catch(e){}
}




function show(close_id, className1, className2) {
	var close = document.getElementById(close_id);
	
	if (close.className == className1) {
		close.className = className2;
	}else { 
		close.className = className1;
	}
};

$(document).ready(function(){
	
	$('#menu A,.left-column UL A').click(function(){
		var anchors = $(this).attr('href').split('#');
		if (anchors.length == 3) { //Sub Drop
			$('#'+anchors[1]).attr('class','drop-block');
			location.hash = anchors[2];
		}else if (anchors.length == 2) {
			$('#'+anchors[1]).attr('class','drop-block');
		}
	});
	
	$('.menu').hover(
		  function () {
			$(this).css("z-index", 101);
		  },
		  function () {
			$(this).css("z-index", 2);
		    }
	);
	$('#menu').hover(
		  function () {
			$(this).css("z-index", 101);
		  },
		  function () {
			$(this).css("z-index", 2);
		    }
	);
	$('#wrapper').hover(
		  function () {
			$(this).css("z-index", 10);
		  },
		  function () {
			$(this).css("z-index", 1);
		    }
	);


});

