function browserCheck(stu,pid){
	if(navigator.appVersion.indexOf("MSIE") != -1){
		document.write('<link href="https://www.jewelers-services.com/skins/'+stu+'/'+pid+'/css/ieFix.css" type="text/css" rel="stylesheet" title="ieFix">');
	}
}
browserCheck(document.getElementsByTagName("meta").item(1).content,document.getElementsByTagName("meta").item(2).content);
function showHide(w){
	d=document;
	if(d.getElementById){
		x = d.getElementById(w);
		if (x.style.display=='none'){
			x.style.display='';
		}
		else{
			x.style.display='none';
		}
	}
}
rnd.today = new Date();
rnd.seed = rnd.today.getTime();
function rnd() {
	rnd.seed = (rnd.seed*9301+49297) % 233280;
	return rnd.seed/(233280.0);
}
function rand(number){
	return Math.ceil(rnd()*number);
}
function advert(pp,t,s,a,ss){
	ads = new Array();
	ads[0] = '<a href="/js.js/'+a+'/2/'+ss+'/1/Charms"><img border="0" src="https://www.jewelers-services.com/skins/'+t+'/'+s+'/images/ad2/tile1.gif"></a>';
	ads[1] = '<a href="/js.js/'+a+'/2/'+ss+'/1/Earrings/"><img border="0" src="https://www.jewelers-services.com/skins/'+t+'/'+s+'/images/ad2/tile2.gif"></a>';
	ads[2] = '<a href="/js.js/'+a+'/2/'+ss+'/1/Rings"><img border="0" src="https://www.jewelers-services.com/skins/'+t+'/'+s+'/images/ad2/tile3.gif"></a>';
	ads[3] = '<a href="/js.js/'+a+'/2/'+ss+'/1/Necklaces_&_Chains"><img border="0" src="https://www.jewelers-services.com/skins/'+t+'/'+s+'/images/ad2/tile4.gif"></a>';
	ads[4] = '<a href="/js.js/'+a+'/2/'+ss+'/1/Bracelets"><img border="0" src="https://www.jewelers-services.com/skins/'+t+'/'+s+'/images/ad2/tile5.gif"></a>';
	ad='';
	tNow = new Date();tMon = tNow.getMonth();tDat = tNow.getDate();
	if(tMon==1  && tDat>=1 && (tMon == 1  && tDat <=11)){ 
		if(pp == '99' || pp == '1' || pp == '14'){
			r=rand(ads.length)-1;
			ad+=ads[r];
		}
		else{
			ad+='<a href="javascript:GoPage(14)"><img border="0" src="https://www.jewelers-services.com/skins/'+t+'/'+s+'/images/ad2/vday.gif"></a>';
		}
	}
	else{
		r=rand(ads.length)-1;
		ad+=ads[r];
	}
	document.write(ad);
}
function qpWhere(x,y){
	alert(x+" | "+y);
}
function checkUpdate(){
	d = document;
	r = d.getElementsByName("remove");
	if(r.length !=0){
		d.getElementById("continueShopping").style.margin='5px 5px 0px 5px';
		d.getElementById("bagrow").style.visibility='visible';
		d.getElementById("updates").style.visibility='visible';
		d.getElementById("estfreight").style.visibility='visible';
	}
	else{
		d.getElementById("prodtotal").style.border='0px solid';
		d.getElementById("proceedTo").style.margin='-100px';
		d.getElementById("goCheckOut").style.display='none';
		d.getElementById("freighttotal").style.display='none';
		d.getElementById("subtotal").style.display='none';
	}
}
function checkMe(ghj){
	d=document;
	if(ghj !=''){
		document.write(ghj);
		d.getElementById("sugg").style.display='';
		d.getElementById("suggh").style.display='';
	}
}
function round(number,x){
	x = (!x ? 2 : x);{return Math.round(number*Math.pow(10,x))/Math.pow(10,x);}
}
function cent(a){
	a-=0;return (a == Math.floor(a)) ? a + '.00':((a*10==Math.floor(a*10))? a+'0':a);
}
/*function calcFreight(x){
	if(x==8.25){z = 'Included';document.write(z);}
	else{z = x-8.25;z = round(z);z = cent(z);document.write("$ "+z);}
}*/
function isTax(x){
	if(x !='.00'){document.write('<div id="taxtotal">Ohio Tax: $'+x+'</div>');}
}	
function MM_swapImgRestore() {
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() {
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) {
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() {
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}