var ns4=document.layers?1:0
var ie=document.all?1:0
var ns6=document.getElementById&&!document.all?1:0
var low_res=(screen.width<1024||screen.height<768);

function call(addr)
{
  window.open(addr,"","toolbar=no,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=900,height=600");
}

function callhelp(addr,w,h,resize)
{
	window.open("http://www.tongyiukee.com/"+addr,"","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable="+resize+",width="+w+",height="+h);
}

function callitem(addr)
{
  var session = Math.round(Math.random() * 100000000);
	window.open(addr,"tyk_item"+session,"toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,width=850,height=580");
}

function call3d(code)
{
	var session = Math.round(Math.random() * 100000000);
	window.open("/disp_3d.cgi?code="+code,"tyk_3d"+session,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=350,height=350");
}

function click() {
  if (event.button == 2)
  {alert('湯耀記首飾有限公司 ＜網站第五版＞\nTong Yiu Kee Jewellery Co. Ltd. <Website v5.0>  ')}
}
document.onmousedown = click;
