function getSuitableWidth(w){
	if (w>1150) return '100%';if (w>930)  return '100%';if (w>700)  return 763;	return 763;
}
function adjustTableWidth(){
	var screen_w = document.body.clientWidth;
	var  sw=getSuitableWidth(screen_w);
	table1.width = sw;
}
function closeLayer(objName){
var obj=FP_getObjectByID(objName)
if(obj.style.visibility=="visible") obj.style.visibility="hidden";
}
function openLayer(objName){
var obj=FP_getObjectByID(objName)
if(obj.style.visibility=="hidden") obj.style.visibility="visible";
}
function overChange(obj){
if(!obj.className=="td-over"){}else{obj.className="td-over";}
}
function outChange(obj){
if(!obj.className=="td-out"){}else{obj.className="td-out";}
}
function FP_getObjectByID(id,o) {//v1.0
 var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
 else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
 if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
 for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
 f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
 for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
 return null;
}
function buyNow(name){
alert("Buy "+name);
}
function download(name){
alert("Download "+name);
}