	function tab(pestana,panel)
	{
		pst 	= document.getElementById(pestana);
		pnl 	= document.getElementById(panel);
		psts	= document.getElementById('tabs').getElementsByTagName('li');
		pnls	= document.getElementById('paneles').getElementsByTagName('div');
		
		// eliminamos las clases de las pestañas
		for(i=0; i< psts.length; i++)
		{
			psts[i].className = '';
		}
		
		// Añadimos la clase "actual" a la pestaña activa
		pst.className = 'actual';
		
		// eliminamos las clases de las pestañas
		for(i=0; i< pnls.length; i++)
		{
			pnls[i].style.display = 'none';
		}
		
		// Añadimos la clase "actual" a la pestaña activa
		pnl.style.display = 'block';
	}
	function tamFuente (nivel, elem) { 
var elemento = document.getElementById(elem) 
    elemento.className = "nivel"+nivel; 
} 

function showNews()
	{
		document.getElementById("marq_noticias").style.display = 'block';
		document.getElementById("marq_comentarios").style.display = 'none';
		document.getElementById("enlace_marq_noticias").style.color = '#821475';
		document.getElementById("enlace_marq_comentarios").style.color = 'black';
	}
	function showComments()
	{
		document.getElementById("marq_noticias").style.display = 'none';
		document.getElementById("marq_comentarios").style.display = 'block';
		document.getElementById("enlace_marq_noticias").style.color = 'black';
		document.getElementById("enlace_marq_comentarios").style.color = '#821475';
	}
	
	function lanzar_pagina(pagina, w, h) {
        window.open(pagina,"NEWWIND","height="+h+",width="+w+",left=200,top=200,scrollbars=yes");
    }
    function fbs_click() 
	{u=location.href;
	 t=document.title;
	 window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;
	 }
	 
	 function cOn(td){
if(document.getElementById||(document.all && !(document.getElementById))){
td.style.background="fondo_menu1.jpg";
}
}
function cOut(td){
if(document.getElementById||(document.all && !(document.getElementById))){
td.style.background="fondo_menu.jpg";
}
}

function submitBusquedaExacta() { document.form1.exactitud.value='exacta'; document.form1.submit(); }
function submitBusquedaAprox() { document.form1.exactitud.value='aprox'; document.form1.submit(); }

var url="http://www.cordobainformacion.com" 
var titulo="CordobaInformacion.com - Lee hoy las noticias de mañana"
function agregar(){
if (document.all)
window.external.AddFavorite(url,titulo)
}

$(document).ready(function(){
$("a.jQueryBookmark").click(function(e){
        e.preventDefault(); // this will prevent the anchor tag from going the user off to the link
        var bookmarkUrl = this.href;
        var bookmarkTitle = this.title;
 
        if (window.sidebar) { // For Mozilla Firefox Bookmark
                window.sidebar.addPanel(bookmarkTitle, bookmarkUrl,"");
        } else if( window.external || document.all) { // For IE Favorite
                window.external.AddFavorite( bookmarkUrl, bookmarkTitle);
        } else if(window.opera) { // For Opera Browsers
                $("a.jQueryBookmark").attr("href",bookmarkUrl);
                $("a.jQueryBookmark").attr("title",bookmarkTitle);
                $("a.jQueryBookmark").attr("rel","sidebar");
        } else { // for other browsers which does not support
                 alert('Su navegador no permite esta funcion');
                 return false;
        }
});
});

function expandCode(id){
	var parent = document.getElementById(id);

	if (parent.style.display === 'block' || parent.style.display === ''){
		parent.style.display = 'none';
	} else {
		parent.style.display = 'block';
	}
}




function noexpandCode(id){
	var parent = document.getElementById(id);


		parent.style.display = 'none';

}


function preCarga() { 
if (!document.images) return; 
var ar = new Array(); 
var arguments = preload.arguments; 
for (var i = 0; i < arguments.length; i++) { 
ar[i] = new Image(); 
ar[i].src = arguments[i]; 
} 
} 

