function getId(id){
    if(!document.getElementById){
        _id = document.all[id];
    }else{
        _id = document.getElementById(id);
    }
    return _id;
}

function height(id)
{
	h=document.getElementById(id).offsetHeight; 
	return h;
}

function initloader(){
    var preLoader = getId('preloader');
    var loading = getId('loading');
    var content = getId('content');
    if (preLoader && loading){
        preLoader.style.display = "none";
        loading.style.display = "none";
        content.style.display = "block";
        document.body.style.overflow="auto";
        
    } 
}




function loading(){
    var preLoader = getId('preloader');
    var loading = getId('loading');
    //var content = getId('content');
    var w=document.body.offsetWidth;
    
    if (preLoader && loading){
        preLoader.style.display = 'none';
    //    content.style.height = "100%";
        msg = "<table width="+w+" height=100% cellpadding=0 cellspacing=0 border=0><tr><td width=100% height=100% valign=top align=left border=0 style='background-color:#000000;filter:alpha(opacity=50);-moz-opacity:.50;opacity:.50;'><table width=1000 height=100% cellpadding=0 cellspacing=0 b order=0><tr><td align=center valign=middle width=1000 height=100%><center><img src='http://www.jozsa.hu/img/loading4.gif' border=0></center></td></tr></table></td></tr></table>";
        loading.innerHTML = msg;
    }
}

/**************************************
» Jonas Raoni Soares Silva
» http://www.joninhas.ath.cx
**************************************/

shuffle = function(o){ //v1.0
	for(var j, x, i = o.length; i; j = parseInt(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x);
	return o;
};


