if(typeof jQuery != 'undefined')
	var $j = jQuery.noConflict();
//////////////////////////////
// ACTIVATE INNER PAGE
//////////////////////////////
function activate_inner_page(){
	var menu		=		'div#global div#content div#menu ';
	
	// MENU
	$j(menu+'img').each(function(){
		var img_id		=		$j(this).attr('id');
		
		if(img_id!='menu3_img' && img_id!='empty')
			img_over(this,'gif');
	})
	
	// Menu 3
	var menu3a	=	document.getElementById('menu3a');
	var menu3b	=	document.getElementById('menu3b');
	
	// Rollover
	menu3a.onmouseover=function(){
		$j(menu3b).css('display', 'block');
	}
	menu3b.onmouseover=function(){
		$j(this).css('display', 'block');
	}
	// Rollout
	menu3b.onmouseout=function(){
		$j(this).css('display', 'none');
	}
}

//////////////////////////////
// IMAGE ROLLOVER
//////////////////////////////
function img_over(img,ext){
	// Image source
	var img_src		=		$j(img).attr('src');
	
	if(typeof img_src == 'undefined')
		return false;
	
	if(img_src.indexOf('-o.' + ext) == -1){
		var over_img	=	img_src.replace('.' + ext, '-o.' + ext);
		var out_img		=	img_src;
		
		// Roll over
		$j(img).mouseover(function(){
			$j(this).attr('src', over_img);
		})
		// Roll out
		$j(img).mouseout(function(){
			$j(this).attr('src', out_img);
		})
	}
}
