var CloudComparativo = {}CloudComparativo.Select = function(Id){	if(document.getElementById("CloudComparativo").style.display == "none")	{		black_cover_show(1);		document.getElementById("CloudComparativo").style.display = "block"		center("CloudComparativo","body");		var MarginTop = document.getElementById("CloudComparativo").style.marginTop;		MarginTop = MarginTop.replace("px","");		MarginTop = Number(MarginTop) - 100;		document.getElementById("CloudComparativo").style.marginTop = MarginTop +"px";			}	for(i=1;i<=4;i++)	{		if(document.getElementById("CloudLink_"+i))			document.getElementById("CloudLink_"+i).className = "item";				if(document.getElementById("CloudContent_"+i))			document.getElementById("CloudContent_"+i).style.display = "none";	}		document.getElementById("CloudLink_"+Id).className = "itemAct";	document.getElementById("CloudContent_"+Id).style.display = "block";	document.getElementById("CloudContentBottom").style.display = "block";}CloudComparativo.CloseIt = function(){	black_cover_show(0);	document.getElementById("CloudComparativo").style.display="none";}function black_cover_show(Status){	if(Status == "1")	{		H = getWindowHeight();		if(H<1200) H = 1200;		document.getElementById("black_cover").style.height	= H  +"px";		document.getElementById("black_cover").style.display = "block";		document.getElementById("body").style.height = H+"px";		document.getElementById("body").style.overflow="hidden";	}	else if(Status =="0")	{		document.getElementById("black_cover").style.display = "none";		document.getElementById("body").style.height = "auto";		document.getElementById("body").style.overflow="auto";			}		}function getWindowHeight(){	 var windowHeight = 0;	 if (typeof(window.innerHeight) == 'number') {		windowHeight = window.innerHeight;	 }	 else {		if (document.documentElement && document.documentElement.clientHeight) {		   windowHeight = document.documentElement.clientHeight;		}		else {		   if (document.body && document.body.clientHeight) {			  windowHeight = document.body.clientHeight;		   }		}	 }	 return windowHeight;  }    function coords_gcenter_margin(Id,From){	WidthFrom = document.getElementById(From).offsetWidth;	WidthId = document.getElementById(Id).offsetWidth;		Result = Number(WidthFrom) - Number(WidthId);		Result = Result/2;	document.getElementById(Id).style.marginLeft = Result + "px";}function bottom_it(Id){	if(document.getElementById("addrealty"))	{	if(document.getElementById("addrealty").style.marginLeft > 0)		document.getElementById("footer").style.marginTop = '300px';	}}function normal_it(Id){	document.getElementById("footer").style.marginTop = '-100px';}function position($Type,$Object){	$Left=$Object.offsetLeft;    $Top=$Object.offsetTop;    for (var parent = $Object.offsetParent; parent; parent = parent.offsetParent)    {        $Left += parent.offsetLeft;        $Top += parent.offsetTop;    }    if($Type=="Left")	return $Left;    if($Type=="Top") return $Top;}function locateit($Container,$Left,$Top){	if($Top) $Container.style.marginTop=$Top+"px";    if($Left)    {    	$Container.style.marginLeft=$Left+"px";    }}function widthmaker(){	$Width=document.getElementById("body").offsetWidth;		$Width2=$Width*(25/100);	$Width=$Width*(35/100);	if(document.getElementById("widthmaker")) document.getElementById("widthmaker").style.width=$Width+"px";	if(document.getElementById("widthmaker2")) document.getElementById("widthmaker2").style.width=$Width2+"px";}function coords_xCenter(coordsInput_Id){	objectWidth = document.getElementById(coordsInput_Id).style.width;	bodyWidth = document.getElementById("body").offsetWidth;	if(objectWidth.match('%'))	{		objectWidth = Number(objectWidth.replace('%',""));		objectWidth = bodyWidth * (objectWidth / 100);	}	else	{		objectWidth = objectWidth.replace("px","");	}			x = Math.round((bodyWidth - objectWidth) / 2);		return x + ";" + objectWidth + ";" + bodyWidth;}function center(Id,From){	centerTop(Id,From);		centerLeft(Id,From);	}center_correct_cLeft=0;center_correct_cTop=0;function center_correct(Id,From,cLeft,cTop){	center_correct_cLeft=cLeft;	center_correct_cTop=cTop;	centerTop(Id,From);		centerLeft(Id,From);	center_correct_cLeft=0;	center_correct_cTop=0;	}function centerTop(Id,From){	HeighthFrom = getWindowHeight();	HeighthFrom = Number(HeighthFrom);	scrtop=document.documentElement.scrollTop;			if(scrtop=="0") 		scrtop=document.body.scrollTop;		HeighthFrom = HeighthFrom /2;		HeightId = document.getElementById(Id).offsetHeight;	HeightId = HeightId /2;		HResult = Number(HeighthFrom) - Number(HeightId);		Itog = HResult + scrtop - 20;	Itog=Itog+center_correct_cTop	if(Itog <20) Itog = 20 + scrtop;	Itog = Itog;	document.getElementById(Id).style.marginTop = Itog + "px";	}function centerLeft(Id,From){	WidthFrom = document.getElementById(From).offsetWidth;	WidthId = document.getElementById(Id).offsetWidth;		Result = Number(WidthFrom) - Number(WidthId);		Result = Result/2;	Result=Result+center_correct_cLeft	document.getElementById(Id).style.marginLeft = Result + "px";	}function getWindowHeight(){	 var windowHeight = 0;	 if (typeof(window.innerHeight) == 'number') {		windowHeight = window.innerHeight;	 }	 else {		if (document.documentElement && document.documentElement.clientHeight) {		   windowHeight = document.documentElement.clientHeight;		}		else {		   if (document.body && document.body.clientHeight) {			  windowHeight = document.body.clientHeight;		   }		}	 }	 return windowHeight;  }    function getPosition(e) {    e = e || window.event;    var cursor = {x:0, y:0};    if (e.pageX || e.pageY) {        cursor.x = e.pageX;        cursor.y = e.pageY;    }     else {        var de = document.documentElement;        var b = document.body;        cursor.x = e.clientX +             (de.scrollLeft || b.scrollLeft) - (de.clientLeft || 0);        cursor.y = e.clientY +             (de.scrollTop || b.scrollTop) - (de.clientTop || 0);    }	    return cursor;}    
