/////////////////////
// showObject
/////////////////////
function showObject(obj) {
	if (obj) {
		if (document.getElementById) {
			// DOM
			obj.style.visibility="visible";
			obj.style.display="block";
		}
		else if (document.all) {
			// ie4
			obj.style.visibility="visible";
			obj.style.display="block";
		}
		else {
			// nn4
			obj.visibility="show";
		}
	}
}


/////////////////////
// getObjectPositionX
/////////////////////
function getObjectPositionX(obj) {
	var is = new BrowserCheck();
	if (is.ns && is.v<5) {
		return obj.x;
	}
	else {
		x = 0;
		if (is.v>=5) {
			while (obj.tagName != 'BODY') {
				x += obj.offsetLeft;
				obj = obj.offsetParent;
			}
		}
		else {
			while (obj.tagName != 'BODY') {
				if (obj.tagName == 'TABLE' || obj.tagName == 'TD') {
					x += obj.offsetLeft;
				}
				obj = obj.parentElement;
			}
		}
		
		return x;
	}
}


/////////////////////
// getObjectPositionY
/////////////////////
function getObjectPositionY(obj) {
	var is = new BrowserCheck();
	if (is.ns && is.v<5) {
		return obj.y;
	}       
	else {
		y = 0;
		if (is.v>=5) {
			while (obj.tagName != 'BODY') {
				y = obj.offsetTop + y;
				obj = obj.offsetParent;
			}
		}
		else {
			while (obj.tagName != 'BODY') {
				if (obj.tagName == 'TABLE' || obj.tagName == 'TD') {
					y += obj.offsetTop;
				}
				obj = obj.parentElement;
			}
		}
		
		//if (is.ns) y -= 14;
		return y;
	}
}


/////////////////////
// setObjectPositionX
/////////////////////
function setObjectPositionX(obj,X) {
	if (document.layers) {
		// nn
		obj.left = X;
	}
	else {
		// ie
		obj.style.left = X;
	}
}

/////////////////////
// setObjectPositionY
/////////////////////
function setObjectPositionY(obj,Y) {
	if (document.layers) {
		// nn
		obj.top = Y;
	}
	else {
		// ie
		obj.style.top = Y;
	}
}

function popupNewsletter() {
	width = 380;
	height = 480;
	leftPos = 0;
	topPos = 0;
	if (screen) {
		leftPos = parseInt( (screen.width - width) / 2 );
		topPos = parseInt( (screen.height - height) / 2 );
	}
	window.open ('http://popups.75cl.com/page1.htm?origine='+location.hostname,'CONTACT','height='+height+',width='+width+',left='+leftPos+',top='+topPos);
}

function popupSommelier() {
	width = 420;
	height = 480;
	leftPos = 0;
	topPos = 0;
	if (screen) {
		leftPos = parseInt( (screen.width - width) / 2 );
		topPos = parseInt( (screen.height - height) / 2 );
	}
	window.open ('http://popups.75cl.com/page42.htm?objet=1&origine='+location.hostname,'CONTACT','height='+height+',width='+width+',left='+leftPos+',top='+topPos);
}

function popupBigWindow(targetURL) {
	width = 800;
	height = 500;
	leftPos = 20;
	topPos = 20;
	if (screen) {
		height = parseInt( (screen.height - 80) );
	}
	window.open (targetURL,'','height='+height+',width='+width+',left='+leftPos+',top='+topPos+',resizable=1,toolbar=1,scrollbars=1,location=1,directories=1,menubar=1,scrolling=1,status=1');
}
