var hasInnerText;
var http_root = "http://fugato.ca/";

function $(text) {
         return document.getElementById(text);
}

function init() {
         var container = $('container');
         if ((screen.width>=1024)) {
            container.className = "big";
         } else {
           container.className = "small";
         }
         document.body.style.visibility="visible";
}

function showPopupLink() {
         $('playerPopupLink').visiblity='visible';
}

function playerPopup() {
         window.open(http_root+'src/includes/3rdparty/neolao/player.html', 'player', 'left=100, top=100, menubar=no, toolbar=no, location=no, status=no, scrollbars=no, width=410, height=360, resizable=yes')
}

function changeFonts(){
         $("right").style.fontFamily = $("family").value;
         $("right").style.letterSpacing = $("spacing").value;
         $("right").style.fontSize = $("size").value;
         $("right").style.lineHeight = $("lineheight").value;
}

function genuineInnerText () {
         if ( document.getElementsByTagName("body").item(0).innerText == undefined ) hasInnerText = false;
            else hasInnerText = true;
}

function l2k_reload( ) {
         l2k_refresh(document.location);
}

function l2k_refresh( url ) {
         document.location=url;
}

function l2k_pluralizer ( sample, mode ) {
         switch ( mode ) {
                default:
                        if( 1 == sample ) return '';
                            else return 's';
                break;
         }
}

