var oldImgDiv = 'view1';

 function showReviews()
 {
  document.getElementById('div_reviews').style.display = 'inline';
 }
 function hideReviews()
 {
  document.getElementById('div_reviews').style.display = 'none';
 }
 function toggleMenu(mID)
 {
  var menuID = "menu_" + mID;
  var mObj = document.getElementById(menuID);
  if(mObj.className=="hidDiv")
  {
    mObj.className="shownDiv";
    var lID = "ln-"+mID;
   document.getElementById(lID).className=mID+"2";
  }
  else
  {
    mObj.className="hidDiv";
    var lID = "ln-"+mID;
   document.getElementById(lID).className=mID+"1";
  }
  document.body.focus();
 }
 function switchImage(divID)
 {
  document.getElementById(oldImgDiv).style.display = 'none';
  document.getElementById(divID).style.display  =  'inline';
  oldImgDiv = divID;
 }

function showSizing()
{
 document.getElementById('div_sizinginfo').style.display = 'inline';
}

function hideSizing()
{
 document.getElementById('div_sizinginfo').style.display = 'none';
}

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>Titanium Jewelry</tit'+'le></he'+'ad><bo'+'dy>');
	popWin.document.write('<img alt="loading expanded image... please wait..." name=mainImage src='+imgLoc+' border=0>');
	popWin.document.write('<br><br><font face=verdana,arial,helvetica size=2><b><center><a href="javascript:window.close()"><b><font color=cccccc>Close Window</a>');
  	popWin.document.write('</body></html>');
  	popWin.document.close();
  	popWin.moveTo(50,50);
  }

function showInteractive(vCode,vConfig,popH,popW)
{
 if(!popH)
 { popH = 580; }
 if(!popW)
 { popW = 510; }
 vCode = "http://s7d3.scene7.com/s7ondemand/zoom/flasht_zoom.jsp?company=YatesAndCo&sku="+vCode+"&config="+vConfig+"&zoomheight="+popH+"&zoomwidth="+popW;
 var iPop = window.open(vCode, 'iPop', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width='+ popW +',height=' + popH);
 iPop.focus();
}

function showSpinset(vCode,vConfig,popH,popW)
{
 if(!popH)
 { popH = 450; }
 if(!popW)
 { popW = 530; }

 vCode = "http://s7d3.scene7.com/s7ondemand/spin/flash_spin.jsp?company=YatesAndCo&sku=" + vCode + "&config=" + vConfig + "&zoomheight=" + popH + "&zoomwidth=" + popW;
 var sPop = window.open(vCode, 'sPop', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width='+popW+',height='+popH);
 sPop.focus();
}

function popUp(popURL)
{
 var pPop = window.open(popURL, 'pPop', 'toolbar=0,location=0,statusbar=0,menubar=0,resizable=1,width=600,height=600');
 pPop.focus(); 
}
