function showm(ce, but, cl){
     if(but){
             document.getElementById(but).className  = cl;
     }
     document.getElementById(ce).style.display = 'block';
}
function interactive_tool(){
     window.open('http://lalivemarriott.com/presentation/main.html','welcome','width=1000,height=650,menubar=no,status=no,location=no,toolbar=no,scrollbars=no')
     if(location.href == 'http://lalivemarriott.com/' || location.href == 'http://www.lalivemarriott.com/' || location.href == 'http://lalivemarriott.com' || location.href == 'http://lalivemarriott.com'){
        var p = new SWFObject("http://www.lalivemarriott.com/Flash/la2.swf", "LA Live", "980", "466", "7", "");p.addParam("quality", "high");p.addParam("wmode", "transparent");p.write("homepageflash");
     }
}
function hidem(ce, but, cl){
     if(but){
             document.getElementById(but).className  = cl;
     }
     document.getElementById(ce).style.display = 'none';

}
function openpopup(poplink, popwidth, popheight){
         popleft = (screen.width /2) - (popwidth / 2);
         poptop = (screen.height /2) - (popheight / 2);
         window.open(poplink ,'popup','resizable=no,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,width='+popwidth+',height='+popheight+',top='+poptop+',left='+popleft);
}
function changesp(div, link){
     if (document.getElementById(div).style.display == '' || document.getElementById(div).style.display == 'none'){
          document.getElementById(div).style.display = 'block';
          document.getElementById(link).className = 'spcl';
          document.getElementById(link).innerHTML = '(hide details)';
     }else{
          document.getElementById(div).style.display = 'none';
          document.getElementById(link).className = 'spop';
          document.getElementById(link).innerHTML = '(show details)';
     }
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function init() {
    if (arguments.callee.done) return;
    arguments.callee.done = true;
    if (_timer) clearInterval(_timer);
};

if (document.addEventListener) {
    document.addEventListener("DOMContentLoaded", init, false);
}
if (/WebKit/i.test(navigator.userAgent)) { // sniff
    var _timer = setInterval(function() {
        if (/loaded|complete/.test(document.readyState)) {
            init(); // call the onload handler
        }
    }, 10);
}
window.onload = function() {
  try {document.execCommand("BackgroundImageCache", false, true);} catch(err) {}
  init();
}
