function positionMeasurementsBox()
	{
		var box = document.getElementById("ddMeasurementsId");
		// var img = document.getElementById("measurementsDDImageId");
		clientHeight = document.body.clientHeight;
		clientWidth = document.body.clientWidth;
		newTop = clientHeight - (parseInt(box.style.height)/2+(clientHeight)/2);
		newLeft = clientWidth - (parseInt(box.style.width)/2 +(clientWidth)/2);
		
		if(newTop<0)
			newTop = 0;
		box.style.top = newTop+"px";
		
		if(newLeft<0)
			newLeft = 0;
		box.style.left = newLeft+"px";
	}
function positionMorePicturesBox()
	{
		var box = document.getElementById("whatsNewBoxId");
		clientHeight = document.body.clientHeight;
		clientWidth = document.body.clientWidth;
		newTop = clientHeight - (parseInt(box.style.height)/2+(clientHeight)/2);
		newLeft = clientWidth - (parseInt(box.style.width)/2 +(clientWidth)/2);
		
		if(newTop<0)
			newTop = 0;
			box.style.top = newTop+"px";
			
		if(newLeft<0)
			newLeft = 0;
			box.style.left = newLeft+"px";
	}
function showOrNotMeasurements()
	{
		divDD = document.getElementById("ddMeasurementsId");
		if(divDD.style.display=="none")
			{
				positionMeasurementsBox();
				divDD.style.display="";
			}
		else			
			divDD.style.display="none";
	}

$(document).ready(function()
	{
		//Component Whats new!!!!!! ---------------------------------------------------
		$("#uniqueSizeLI").click(showOrNotMeasurements);
		$("#uniqueSizeLI").click(showOrNotMeasurements);
		$("#ddMeasurementsCloseId").click(showOrNotMeasurements);
		$("#ddMeasurementsCloseId").click(showOrNotMeasurements);
		
		history.navigationMode = 'compatible';
	});