//Aumentar y reducir el tamaño del texto


function changeFontSize (node_div_id, value, stylesheet_id) 
{
	node_div = $(node_div_id);
	for (i = 0; i < node_div.childNodes.length; i++)
	{
		node = node_div.childNodes[i];
		if (node.nodeName == 'LI' || node.nodeName == 'P')
		{
			
			if (value == '+')
				CONTENT_FONT_SIZE [stylesheet_id] = CONTENT_FONT_SIZE [stylesheet_id] * 1.05;
			else 
				CONTENT_FONT_SIZE [stylesheet_id] = CONTENT_FONT_SIZE [stylesheet_id] * .95;
			node.style.fontSize = CONTENT_FONT_SIZE [stylesheet_id] + CONTENT_FONT_MESS [stylesheet_id];
		}
	}
}


  //Activacion de los submenus en IE

	function startList (id_node)
	{
		if (document.all&&document.getElementById) {
			navRoot = document.getElementById(id_node);
			for (i=0; i<navRoot.childNodes.length; i++) {
				node = navRoot.childNodes[i];
				if (node.nodeName=="LI") {
					node.onmouseover=function() {
						this.className+=" over";
						selects = document.getElementsByTagName('select');
						for(i = 0; i < selects.length; i++) {
							selects[i].style.visibility = 'hidden';
						}
					}

					node.onmouseout=function() {
						this.className=this.className.replace(" over", "");
						selects = document.getElementsByTagName('select');
						for(i = 0; i < selects.length; i++) {
							selects[i].style.visibility = 'visible';
						}
					}
				}
			}
		}
	}

// Inicio de los javascripts
function init ()
{
  startList ('nav')
}

Event.observe (window, 'load', init, false);

function set_photo_blog (photo, classCSS)
{
	if (tinyMCE)
	tinyMCE.execCommand('mceInsertContent',false,'<img class="' + classCSS + '" src="' + photo  + '" />');
}

function input_search (input, text, current_event, inactive_class)
{
	if (current_event == 'focus')
	{
		if (input.value == text)
		{
			input.value = '';
			input.className = '';
		}
	}
	else if (current_event == 'blur')
	{
		if (input.value == '')
		{
			input.value = text;
			input.className = inactive_class;
		}
	}
}