// JavaScript Document
// Scripts that are only on Product Page

function resizeTopTips()
{
	
	spaceTop	=	$('productLeftTopTips').offsetTop;
	totalHeight1	=	$('content_right').offsetHeight;	//	Height of right Nav
	totalHeight2	=	$('content_center').offsetHeight;	//	Height of Content
	if(totalHeight1>totalHeight2) {		//	Checks which is greater and uses that as the max height
		totalHeight	=	totalHeight1
	} else {
		totalHeight	=	totalHeight2
	}
	if (document.all)
	{
		newTopTipsHeight	=	(totalHeight-spaceTop)-35;
	} else {
		newTopTipsHeight	=	(totalHeight-spaceTop);
	}
//	alert(newTopTipsHeight+"\n"+spaceTop);
	if(newTopTipsHeight>200)
	{
		$('productLeftTopTips').style.height	=	'';
		$('productLeftTopTips').style.overflow	=	'';
		$('productLeftTopTips').style.visibility	=	'visible';
		$('productLeftTopTipsContent').style.height	=	newTopTipsHeight+'px';
//		$('productLeftTopTipsContent').style.height	=	newTopTipsHeight+'px';
	}
}

function linkedProdsDisp()
{
	if ($('leftProductContent')) {
		if($('leftProductContent').childNodes.length>1)
		{
			$('leftProductContent').style.display	=	'block';
		}
	}
}

function resizeTopTen(centerId)
{
//	If Central Content Id is not 'content_center' then this needs to be passed in
	centerId = (null == centerId) ? 'content_center':centerId;
	spaceTop	=	$('productLeftTop10').offsetTop;
	totalHeight1	=	$('content_left').offsetHeight;		//	Height of Left Nav
	totalHeight2	=	$(centerId).offsetHeight;	//	Height of Content
	if(totalHeight1>totalHeight2) {		//	Checks which is greater and uses that as the max height
		totalHeight	=	totalHeight1
	} else {
		totalHeight	=	totalHeight2
	}

	if(document.all) {
		newTopTenHeight	=	(totalHeight-spaceTop)+195;
	} else {
		newTopTenHeight	=	(totalHeight-spaceTop)+195;
	}

//	alert(totalHeight+"\n"+totalHeight1+"\n"+totalHeight2+"\n"+spaceTop+"\n"+newTopTenHeight);
	//alert(totalHeight+"\n"+spaceTop+"\n"+newTopTenHeight);
	if(newTopTenHeight>200)
	{
		//alert(1);
		$('productLeftTop10').style.height	=	'';
		$('productLeftTop10').style.overflow	=	'';
		$('productLeftTop10').style.visibility	=	'visible';
		$('productLeftTop10Content').style.height	=	newTopTenHeight+'px';
	}
}