// Agregar a Favoritos
function bookmarksite(title, url){
	if (document.all)
		window.external.AddFavorite(url, title);
	else if (window.sidebar)
		window.sidebar.addPanel(title, url, "")
}

// MM Open PopUp
function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}

// Chau Mouse Click Derecho
function derecha(e) {
	if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)){
		alert('Daniel Villella Brokers de Seguros e Inversiones')
		return false;
	}
	else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2)){
		alert('Daniel Villella Brokers de Seguros e Inversiones')
	}
}

document.onmousedown=derecha

// Jump Menu
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

// Foto Popup autoajustable
function viewPic(img) {
	picfile=new Image(); picfile.src=(img); fileCheck(img); 
	}

function fileCheck(img) {
	if((picfile.width!=0)&&(picfile.height!=0)) {
		makeWindow(img); }
	else {
		funzione="fileCheck('"+img+"')"; intervallo=setTimeout(funzione,10); 
	}
}

function makeWindow(img) {
	ht=picfile.height+30; wd=picfile.width+20; 
	var args="height="+ht+",innerHeight="+ht;
	args+=",width="+wd+",innerWidth="+wd;
	if (window.screen) { 
		var avht=screen.availHeight; var avwd=screen.availWidth;
		var xcen=(avwd-wd)/2; var ycen=(avht-ht)/2;
		args+=",left="+xcen+",screenX="+xcen;
		args+=",top="+ycen+",screenY="+ycen+",resizable=yes";
	}
	return window.open(img,'',args);
}

