/*
 * Proyecto 83 - http://proyecto83.com
 * Copyright (C) 2007 Emilio Mariscal
 * 
 * == BEGIN LICENSE ==
 * 
 * Licensed under the terms of any of the following licenses at your
 * choice:
 * 
 *  - GNU General Public License Version 2 or later (the "GPL")
 *    http://www.gnu.org/licenses/gpl.html
 * 
 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
 *    http://www.gnu.org/licenses/lgpl.html
 * 
 * == END LICENSE ==
 * 
 * 	File Name  :
 *
 * 	efectosvisuales.js
 *
 * File Authors :
 * 		Emilio Mariscal ( emi420@gmail.com )
 */
 	
function cargarEfectosVisuales() {

	var menu_links = document.getElementById('menu-links'); 
	var menu = document.getElementById('menu-links'); 
	var menu_links_divs = menu_links.getElementsByTagName('div') ;
	var menu_divs = menu.getElementsByTagName('div') ;
	
	for( var i = 0 ; i < menu_links_divs.length ; i++ ) {
		menu_links_divs[i].onmouseover = function() {
			var item_index = this.id.substr( this.id.indexOf('-'), this.id.length ) ;
			var objItem = document.getElementById('item' + item_index )
			if( objItem.className == 'item' )
				objItem.className = 'item selected' ;
		}
		menu_links_divs[i].onmouseout = function() {
			var item_index = this.id.substr( this.id.indexOf('-'), this.id.length ) ;
						var objItem = document.getElementById('item' + item_index )
			if( objItem.className == 'item selected' )
				objItem.className = 'item' ;
		}
	}

}

window.onload = function() {
	cargarEfectosVisuales() ;
}
