function turnonreviewtab() {
	
	var wrapper = document.getElementById("itemDataTabs");
	if(wrapper){
		try {document.getElementById("tabDetails").className = "itemTabLinkOffnew";} catch(e){}
		try {document.getElementById("tabShipping").className = "itemTabLinkOffnew";} catch(e){}
		try {document.getElementById("tabDescription").className = "itemTabLinkOffnew";} catch(e){}
		try {document.getElementById("tabNutrition").className = "itemTabLinkOffnew";} catch(e){}
		try {document.getElementById("tabReviews").className = "itemTabLinkOnnew";} catch(e){}
		try {document.getElementById("tabQandA").className = "itemTabLinkOffnew";} catch(e){}
		
		document.getElementById("tabDetailsContent").style.display = "none";
		document.getElementById("tabReviewsContent").style.display = "block";
	}
}



function expandImage(imgLoc,imgH,imgW)
  {
imgH = imgH * 1; imgW = imgW * 1;
var X = window.screen.availHeight;
var Y = window.screen.availWidth;
X = X - 100;  Y = Y - 50;
if(X > (imgH + 90))	
{ X = (imgH + 90); }
if(Y > (imgW + 40))	
{ Y = (imgW + 40); }
if(Y<210){	Y = 210;	}
  var popWin = window.open('','','toolbar=0, location=0,status=0,menubar=0,resizable=0,scrollbars=1,width='+Y+',height=' + X);
  popWin.document.open();
  popWin.document.write('<ht'+'ml><he'+'ad><ti'+'tle>Pure Formulas</tit'+'le></he'+'ad><bo'+'dy>');
  popWin.document.write('<img alt="loading expanded image... please wait..." name=mainImage s' + 'rc='+imgLoc+' border=0>');
  popWin.document.write('<br><br><font face=arial,helvetica size=2><b><center><a href="javascript:window.close()"><b><font color=15325A>Close Window</a>');
popWin.document.write('</bo');
popWin.document.write('dy></ht');
popWin.document.write('ml>');
  popWin.document.close();
  popWin.moveTo(50,50);
  }

function showimagerotator()
{
document.getElementById("fb_container").style.visibility = 'visible';

}

var onloadList = new Array();
function doWindowOnload() {
	for(var i=0;i<onloadList.length;i++) {
			onloadList[i]();
	}
}
function windowOnload(f){
	if(typeof window.onload=='function') onloadList.push(window.onload);
	window.onload = null;
	onloadList.push(f);
}
   function showDetail(imgURL)
   {
    document.getElementById('divDetail').innerHTML = "<table class=detail><tr><td align=center><img border=0 src=" + imgURL + "><br><br><a href=javascript:hideDetail();>Hide</a></td></tr></table>";
   }
   function hideDetail()
   {
    document.getElementById('divDetail').innerHTML = "";
   }

