//------------------------------------------------------------------------------
// BookMark Site
//------------------------------------------------------------------------------
function bookmarksite(){
	if (window.sidebar){							// firefox
		window.sidebar.addPanel("El Panorama Diario", "http://www.elpanoramadiario.com/", "");
	}
	else if(window.opera && window.print){			// opera
		var elem = document.createElement('a');
		elem.setAttribute('href','http://www.elpanoramadiario.com/');
		elem.setAttribute('title','El Panorama Diario');
		elem.setAttribute('rel','sidebar');
		elem.click();
	} 
	else if(document.all)							// ie
		window.external.AddFavorite('http://www.elpanoramadiario.com/', 'El Panorama Diario');
}



//------------------------------------------------------------------------------
//  Font Sizer
//------------------------------------------------------------------------------
var tgs = new Array( 'p','font','span');  													//Specify affected tags. Add or remove from list:
var szs = new Array( 'xx-small','x-small','small','medium','large','x-large','xx-large' );	//Specify spectrum of different font sizes:
var startSz = 2;
function textsizer( trgt,inc ) {
	if (!document.getElementById) return
	var d = document, cEl = null, sz = startSz, i, j, cTags;
	sz += inc;
	if ( sz < 0 ) sz = 0;
	if ( sz > 6 ) sz = 6;
	startSz = sz;
	if ( !( cEl = d.getElementById( trgt ) ) ) cEl = d.getElementsByTagName( trgt )[ 0 ];
	cEl.style.fontSize = szs[ sz ];
	for ( i = 0 ; i < tgs.length ; i++ ) {
		cTags = cEl.getElementsByTagName( tgs[ i ] );
		for ( j = 0 ; j < cTags.length ; j++ ) cTags[ j ].style.fontSize = szs[ sz ];
	}
}


//------------------------------------------------------------------------------
//  E M A I L   P A G E 
//------------------------------------------------------------------------------
function mailpage(){
	mail_str = '<a href="mailto:?subject=Articulo interesante - ' + document.title;
	mail_str += '&body=Encontre un articulo interesante: ' + document.title + '.';
	mail_str += ' Se puede leer en ' + location.href + '"';	
	mail_str += ' onmouseover="window.status=\'Enviar esta página\'; return true;" onmouseout="window.status=\'\';">Enviar esta página</a>';
	document.write(mail_str);
}

//------------------------------------------------------------------------------
//  H I D E / S H O W  
//------------------------------------------------------------------------------
function justshow(x) {
	document.getElementById(x).style.display = 'inline';
}
function justhide(x) {
	document.getElementById(x).style.display = 'none';
}
function showhide(x) {
	document.getElementById(x).style.visibility = (document.getElementById(x).style.visibility=='visible') ? 'collapse' : 'visible';
}

