// Maximizar Ventana

window.moveTo(0,0);
if (document.all) {top.window.resizeTo(screen.availWidth,screen.availHeight);}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;}}

/* Clic derecho JS 1.0 */

var aviso="Copyright 2006 Salon Marron Glace";
function clic(e) { if (document.all) { if (event.button == 2) {alert(aviso);return false;}}
if (document.layers) {if (e.which == 3) {alert(aviso);return false;}}}
if (document.layers) {document.captureEvents(Event.MOUSEDOWN);}
document.onmousedown=clic;

function disableselect(e){return false}
function reEnable(){return true}
//if IE4+
document.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar){document.onmousedown=disableselect
document.onclick=reEnable}

/* Scroll en Barra de Estado */

message = "* SALON MARRON GLACE, la calidez de un lugar donde reunirte con los tuyos *^" +
"^"
scrollSpeed = 20
lineDelay = 2000
text = ""
function scrollText(pos) {if (message.charAt(pos) != '^') {
text = text + message.charAt(pos); status = text; pauze  = scrollSpeed}
else {pauze = lineDelay; text   = ""
if (pos == message.length-1) pos = -1}
pos++; setTimeout("scrollText('"+pos+"')",pauze)}

/* Auto tamaņo ventana */

function autosize(tam){
var cont = 1; if (cont){for (x=1;x<tam;x++){window.parent.resizeBy(4,3); cont = 0;}}}
