/* Zbox stylez */
function changeheight(){
	if (window.innerHeight && window.scrollMaxY) {
		var yWithScroll = window.innerHeight + window.scrollMaxY;
		var lightBoxOverlayHeight = yWithScroll;
	} else {
		var yWithScroll = document.body.scrollHeight;
		var yHeight = document.body.clientHeight;
		var lightBoxOverlayHeight = yWithScroll + yHeight;
	}
	e = MM_findObj("lightBoxOverlay");
	e.style.height = lightBoxOverlayHeight + 'px';
}
function showLB(containerId){
	obj = MM_findObj(containerId);
	if (!obj) return;
	obj.style.display = 'block';
	changeheight();
	hideSelectBoxes();
	playVideo();
}
function showLBMain(containerId){
	obj = MM_findObj(containerId);
	if (!obj) return;
	obj.style.display = 'block';

	var whatsTheWidth = (obj.offsetWidth)/2;
	obj.style.marginLeft = '-' + whatsTheWidth + 'px';
	
	/*var whatsTheHeight = (obj.offsetHeight)/2;
	obj.style.marginTop = '-' + whatsTheHeight + 'px';*/

	showLB('lightBoxOverlay');
}
function hideLB(containerId){
	obj2 = MM_findObj(containerId)
	if (!obj2) return;
	obj2.style.display = 'none';
}
function hideAll(){;
	hideLB('lightBoxVideo');
	hideLB('lightBoxOverlay');
	swfobject.removeSWF('flashVideo')
	showSelectBoxes();
}
function hideSelectBoxes(){
	if (window.innerHeight && window.scrollMaxY) {
		return false;
	} else {
		obj = MM_findObj('ucSearchBox_ddlProductCategories');
		if (!obj) return;
		obj.style.visibility = 'hidden';
		obj2 = MM_findObj('ucSearchBox_ddlPriceRange');
		if (!obj2) return;
		obj2.style.visibility = 'hidden';
	}
}
function showSelectBoxes(){
	if (window.innerHeight && window.scrollMaxY) {
		return false;
	} else {
		obj = MM_findObj('ucSearchBox_ddlProductCategories');
		if (!obj) return;
		obj.style.visibility = 'visible';
		obj2 = MM_findObj('ucSearchBox_ddlPriceRange');
		if (!obj2) return;
		obj2.style.visibility = 'visible';
	}
}