function init(){
	pops();
}


function pops(){

	var enlaces = document.getElementsByTagName('a');

	for (var i=0; i < enlaces.length ; i++)
		{
			if(enlaces[i].className == "reference"){
				enlaces[i].onclick = function(){return popitup(this.href, "480", "400", "yes", "no");}
			}

		/*	if(enlaces[i].className == "btn-enlarge"){
				enlaces[i].onclick = function(){return popitup(this.href, "800", "600", "yes", "yes");}
			}*/
		if(enlaces[i].className == "miscelanea"){
				enlaces[i].onclick = function(){return popitup(this.href, "800", "600", "yes", "no");}
			}
		if(enlaces[i].className == "miscelanea2"){
				enlaces[i].onclick = function(){return popitup(this.href, "500", "600", "yes", "no");}
			}
		if(enlaces[i].className == "applicazione"){
				//enlaces[i].onclick = function(){return popitup(this.href, "800", "700", "no", "no");}
				//está en js_index
			}
		}
}

function popitup(url, width, height, scroll, resiz){
 referencia = window.open(url,'','scrollbars='+scroll+',menubar=no,height='+height+',width='+width+',resizable='+resiz+',toolbar=no,left=200,top=200,location=no,status=no');
	if (window.focus) {referencia.focus()}
	return false;
}