\n'); } function openParentDivLayer(type, subtype, url, width, height){ var divLayer = window.parent.document.getElementById('generic-div-layer'); var iframe = window.parent.document.getElementById('generic-iframe'); if(divLayer != null && iframe != null){ iframe.src = url; iframe.width = width; iframe.height = height; divLayer.className = 'div-layer div-layer-' + type; divLayer.className = subtype != null ? divLayer.className + ' div-layer-' + type + '-' + subtype : divLayer.className; divLayer.style.display='block'; } } function openJuegaGratis(url,ancho,alto) { var ifrmJuego = window.parent.document.getElementById('ifrmJuego'); if(ifrmJuego !=null){ ifrmJuego.src = url; ifrmJuego.width = ancho; ifrmJuego.height = alto; } var divJuego = window.parent.document.getElementById('juegaGratis'); if(divJuego != null){ divJuego.style.display='block'; } } function openECommerce( aURL, aWinName) { var wOpen; var sOptions; sOptions = 'directories=no,status=yes,toolbar=no,menubar=no,scrollbars=yes'; sOptions = sOptions + ',resizable=yes,location=no,maximize=yes'; sOptions = sOptions + ',width=' + (screen.availWidth - 12).toString(); sOptions = sOptions + ',height=' + (screen.availHeight - 122).toString(); sOptions = sOptions + ',screenX=0,screenY=0,left=0,top=0'; wOpen = window.open( '', aWinName, sOptions ); wOpen.location = aURL; wOpen.focus(); wOpen.moveTo( 0, 0 ); wOpen.resizeTo( screen.availWidth, screen.availHeight ); return wOpen; }