var tags = new Array( 'div','td','tr','p','b','table','strong','emphasis','a','h1','h2','h3','h4','h5','h6','pre','sub','sup','i','th','cp','ul','ol','li','dt','dd');
var pixelArray =  new Array('10','12','16','20','24','30','40');
var emArray =  new Array('0.7','0.9','1.0','1.5','2.0','2.5','3');
var initSize = 1;

function cambiarTamTex(bloque,inc,unit) {
	if (!document.getElementById) 
		return;
	var size = initSize;
	size += inc;
	if (size < 0 ) {size = 0;}
	if (size > 6 ) {size = 6;}
	initSize = size;
	bloque = document.getElementById(bloque);
	for (i = 0 ; i < tags.length ; i++ ) {
		tagsa = bloque.getElementsByTagName(tags[i]);
	for (k = 0 ; k < tagsa.length ; k++) 
		tagsa[k].style.fontSize = (unit=='px') ? pixelArray[size]+unit: emArray[size]+unit;
	}
}


function imprimirNota(ide){
	if(document.getElementById){
		var win = window.open('','imprimir','');
		win.document.open();
		win.document.write('<html><head><title>Prensa - www.epatagonia.gov.ar</title><link href="css/general.css" rel="stylesheet" type="text/css"></head><body onLoad="window.print()">');
		win.document.write('<h3>Prensa - Subsecretaria de Turismo de Santa Cruz</h3><br><div><div class="sit-pcon-i sit-not">');
		win.document.write(document.getElementById(ide).innerHTML);
		win.document.write('</div></div><hr><p>&copy; 2004-2007 Subsecretaria de Turismo de Santa Cruz - www.epatagonia.gov.ar</p></body></html>');
		win.document.close();
	}
}

function addUrlAFavoritos(tit){
	if (navigator.appName=="Netscape") {
        window.sidebar.addPanel(tit,window.location.href,""); 
    }else{
        window.external.AddFavorite(window.location.href,tit);
    }
}

function setPaginaInicio(a){
	a.style.behavior="url(#default#homepage)";
    a.setHomePage(window.location.href);
}