//no click
function click(e){if (document.all) if (event.button == 2) return false;if
(document.layers) if (e.which == 3) return false;}
function click2(){event.returnValue=false;return false;}if (document.layers)
document.captureEvents(Event.MOUSEDOWN);document.onmousedown=click;document.oncontextmenu=click2;
// no select 
function disableselect(e){
return false
} 
function reEnable(){
return true
} 
document.onselectstart=new Function ("return false") 
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
// status
defaultStatus = '?';
// popup
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=408,height=416');");
}

function popUpPanoramico(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=508,height=332');");
}

function popUpNews(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=470,height=600');");
}

self.onError=null;
if ( top.location != location ) { top.location.href = location.href; }



function openNewWindow(URLtoOpen, windowName, windowFeatures)
{ 
  newWindow=window.open(URLtoOpen, windowName, windowFeatures);
 /*foto = new Image();
 foto.src =(URLtoOpen);
  newWindow.document.write("<html><body topmargin=0 leftmargin=0>");
  newWindow.document.write("<img src="&URLtoOpen&" alt="" border=0>");
 newWindow.document.write("</body></html>");*/
}


/*function newWindow(img, titulo, ancho, alto) {
		myWindow = window.open(img, titulo, "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0");
		myWindow.document.write("<html> <body>");
		myWindow.document.write("<img src="+img+">");
		myWindow.document.write("</body> </html>");
		myWindow.resizeTo(ancho, alto);
}*/
