// JavaScript Document Edit Profile POPUP Position and Height 

function showMapPOPUP() 
{
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
	edycjaprofilu=true;
  	EUPHeight = document.getElementById("MapView").clientHeight;
	EUPWidth = document.getElementById("MapView").clientWidth;
	document.getElementById("MapView").style.height = EUPHeight +"px" ;
	document.getElementById("bgBlend").style.visibility = "visible";
	document.getElementById("bgBlend").style.height = document.getElementById('mainContent').offsetHeight+"px";
	document.getElementById("MapView").style.visibility = "visible";
	document.getElementById("MapView").style.marginLeft = (((myWidth-EUPWidth)/2)-120)+"px";
	document.getElementById("MapView").style.marginTop =  ((myHeight-EUPHeight)/2)+"px";
	//alert(myWidth);
	
}
function showRecallPOPUP() 
{
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
	edycjaprofilu=true;
  	EUPHeight = document.getElementById("RecallPopup").clientHeight;
	EUPWidth = document.getElementById("RecallPopup").clientWidth;
	document.getElementById("RecallPopup").style.height = EUPHeight +"px";
	document.getElementById("bgBlend").style.visibility = "visible";
	document.getElementById("RecallPopup").style.visibility = "visible";
	document.getElementById("bgBlend").style.height = document.getElementById('mainContent').offsetHeight+"px";
	document.getElementById("RecallPopup").style.marginLeft = ((myWidth-EUPWidth)/2)+"px";
	document.getElementById("RecallPopup").style.marginTop =  ((myHeight-EUPHeight)/2)+"px";
	//alert(document.getElementById('mainContent').offsetHeight);
	
}
function showApplyPOPUP() 
{
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
	edycjaprofilu=true;
  	EUPHeight = document.getElementById("ApplyPopup").clientHeight;
	EUPWidth = document.getElementById("ApplyPopup").clientWidth;
	document.getElementById("ApplyPopup").style.height = EUPHeight +"px" ;
	document.getElementById("bgBlendApply").style.visibility = "visible";
	document.getElementById("ApplyPopup").style.visibility = "visible";
	document.getElementById("bgBlendApply").style.height = document.getElementById('mainContent').offsetHeight+"px";
	document.getElementById("ApplyPopup").style.marginLeft = ((myWidth-EUPWidth)/2)+"px";
	document.getElementById("ApplyPopup").style.marginTop =  ((myHeight-EUPHeight)/2)+"px";
	//alert(myWidth);
	
}
function showSenttoFriendPOPUP() 
{
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
	edycjaprofilu=true;
  	EUPHeight = document.getElementById("SentToFriendPopup").clientHeight;
	EUPWidth = document.getElementById("SentToFriendPopup").clientWidth;
	document.getElementById("SentToFriendPopup").style.height = EUPHeight +"px" ;
	document.getElementById("bgBlend").style.visibility = "visible";
	document.getElementById("SentToFriendPopup").style.visibility = "visible";
	document.getElementById("SentToFriendPopup").style.marginLeft = ((myWidth-EUPWidth)/2)+"px";
	document.getElementById("SentToFriendPopup").style.marginTop =  ((myHeight-EUPHeight)/2)+"px";
	//alert(myWidth);
	
}

function showLoginPOPUP() 
{
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
	edycjaprofilu=true;
  	EUPHeight = document.getElementById("LoginPopup").clientHeight;
	EUPWidth = document.getElementById("LoginPopup").clientWidth;
	document.getElementById("LoginPopup").style.height = EUPHeight +"px" ;
	document.getElementById("bgBlend").style.visibility = "visible";
	document.getElementById("LoginPopup").style.visibility = "visible";
	document.getElementById("LoginPopup").style.marginLeft = ((myWidth-EUPWidth)/2)+"px";
	document.getElementById("LoginPopup").style.marginTop =  ((myHeight-EUPHeight)/2)+"px";
	//alert(myWidth);
	
}

function hideMapPOPUP() 
{
	document.getElementById("bgBlend").style.visibility = "hidden";
	document.getElementById("MapView").style.visibility = "hidden";
}
function hideRecallPOPUP() 
{
	document.getElementById("bgBlend").style.visibility = "hidden";
	document.getElementById("RecallPopup").style.visibility = "hidden";
}
function hideApplyPOPUP() 
{
	document.getElementById("bgBlend").style.visibility = "hidden";
	document.getElementById("ApplyPopup").style.visibility = "hidden";
}
function hideSentToFriendPOPUP() 
{
	document.getElementById("bgBlend").style.visibility = "hidden";
	document.getElementById("SentToFriendPopup").style.visibility = "hidden";
}

function hideLoginPOPUP() 
{
	document.getElementById("bgBlend").style.visibility = "hidden";
	document.getElementById("LoginPopup").style.visibility = "hidden";
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}



