// JavaScript Document


function derecha(e) {
if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)){
alert('CopyrightŪ PORTOFEM.')
return false;
}

else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2)){
alert('CopyrightŪ PORTOFEM.')
}
}
//document.onmousedown=derecha

function pongoflash(peli,ancho,alto,transp){

	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0' width='"+ancho+"' height='"+alto+"'>");
	document.write("<param name='movie' value='"+peli+"' />");
	document.write("<param name='quality' value='high' />");
	if(transp == 1) {
		document.write("<param name='wmode' value='transparent' />");
		document.write("<embed src='"+peli+"' wmode='transparent' quality='high' pluginspage='http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='"+ancho+"' height='"+alto+"'></embed>");
	} else {
		document.write("<embed src='"+peli+"' quality='high' pluginspage='http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='"+ancho+"' height='"+alto+"'></embed>");		
	}
	document.write("</object>");
}

function popforms(url){
	alto = screen.Height;
	ancho = screen.Width;
	posx = (ancho - 800) / 2;
	posy = (alto - 450) / 2;
	window.open(url,"","width=800, scrollbars=yes, toolbars=no, statusbar=no, left="+posx+", height=450,top="+posy+"");
}

function abrochat() {
	alto = screen.Height;
	ancho = screen.Width;
	posx = (ancho - 210) / 2;
	posy = (alto - 300) / 2;
	
	window.open("http://www.portofem.com/custom/chat.html","chat","width=210, height=300, top="+posy+", left="+posx+",scrollbars=no, statusbar=no")
}
function abrositio() {
	destino = "http://www.portofem.com/home.html"
	nombre="portofem"
	if (! window.focus){
		return true
	};
	var href;
	if (typeof(destino) == 'string'){
	   href=destino;
	}else{
		href=destino.href;
		window.open(href, nombre, 'type=fullWindow,fullscreen,scrollbars=yes, toolbar=yes');
	}
}
