// global variables
//
var isMozilla;
var objDiv = null;
var originalDivHTML = "";
var DivID = "";
var over = false;

// dinamically add a div to 
// dim all the page
function buildDimmerDiv()
{
	document.write('<div id="dimmer" style=" display:none;position:absolute; left:0px; top:0px; width:' + document.body.clientWidth + 'px; height:' + document.body.clientHeight + 'px; background-color:#CCCCCC; filter:alpha(Opacity=75);-moz-opacity:.75;opacity:.75; overflow:auto"></div>');
	window.onresize = Resized;
}

function displayFloatingDiv(divId,w,h) 
{   
     //This code is added by gourav on 13th aug 2008
	 var height = document.body.clientHeight + 7250;
     document.getElementById('dimmer').style.height=height + 'px';
     document.getElementById('dimmer').style.width=document.body.clientWidth + 'px';
    //end
	document.getElementById('dimmer').style.visibility = "visible";
	document.getElementById('dimmer').style.display = '';
	
    document.getElementById(divId).style.left = w + 'px';
    
    document.getElementById(divId).style.top = h + 'px';
	
	document.getElementById(divId).style.visibility = "visible";
	document.getElementById(divId).style.display = "block";
}

function hiddenFloatingDiv(divId) 
{
	document.getElementById(divId).style.visibility='hidden';
	document.getElementById(divId).style.display = "none";
	document.getElementById('dimmer').style.visibility = 'hidden';
	document.getElementById('dimmer').style.display = "none";
}

function Resized(){
document.getElementById('dimmer').style.height=document.body.clientHeight + 'px';
document.getElementById('dimmer').style.width=document.body.clientWidth + 'px';


}

function showRegisterLoginWindow()
{

    displayFloatingDiv('divRegisterLogin',(screen.width/3),(screen.height/12));
   
}

function hideRegisterLoginWindow() 
{
    hiddenFloatingDiv('divRegisterLogin');
}


buildDimmerDiv();