// JavaScript Document
function $(id) { return document.getElementById(id); }
function addLoadEvent(func){
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function(){
			oldonload();
			func();
		}
	}
}

/*added by robin*/
init_tab();
function init_tab() {
	jQuery(function() {
		jQuery(".tab_panel .tab_item").mouseover(function(){
			jQuery(this).parent().children(".selected").removeClass("selected");
			jQuery(this).addClass("selected");

			jQuery(this).parent().parent().children(".tab_content").addClass("hide");
			jQuery("#" + jQuery(this).attr("id") + "_content").removeClass("hide");
		});
	});
}
