var Page = new Object();
Page.width;
Page.height;
Page.top;
Page.getPageCenterX = function ()
{
var fWidth;
var fHeight;       
if(document.all)
{
fWidth  = document.body.clientWidth;
fHeight = document.body.clientHeight;
}
else if(document.getElementById &&!document.all)
{
fWidth = innerWidth;
fHeight = innerHeight;
}
else if(document.getElementById)
{
fWidth = innerWidth;
fHeight = innerHeight;        
}
else if (is.op)
{
fWidth = innerWidth;
fHeight = innerHeight;        
}
else if (document.layers)
{
fWidth = window.innerWidth;
fHeight = window.innerHeight;        
}
Page.width = fWidth;
Page.height = fHeight;
Page.top = window.document.body.scrollTop;
}

function showPreloader(div)
{   
Page.getPageCenterX();
$('#loading').show();
$('#loading').css('top' ,(Page.top + Page.height/3)-100);
$('#loading').css('left',Page.width/3);   
}
function hidePreloader()
{
$('#loading').hide();
}
