
function pd_bigprice(style,scale,color,tle,price,kk){
var str="<p style='margin-top:-"+(scale*40)+"px;' align=right>";
str+="<OBJECT classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 WIDTH="+60*scale+" HEIGHT="+60*scale+"><param name='FlashVars' value='price="+price+"&c="+color+"&tle="+tle+"'><PARAM NAME=movie VALUE=http://www.bookuu.com/images/pd_050704_bigprice"+style+".swf> <PARAM NAME=menu VALUE=false>  <PARAM NAME=wmode VALUE=transparent><embed src=http://www.bookuu.com/images/pd_050704_bigprice"+style+".swf width="+60*scale+" height="+60*scale+" type=application/x-shockwave-flash wmode=transparent FlashVars='price="+price+"&c="+color+"&tle="+tle+"'/></OBJECT>"
str+="</p>";
document.write(str)
}

function PD_rebate(style,scale,color,tle,bokuprice,price){
//return;

var rebate=(100*Number(bokuprice)/Number(price))+0.5;
var style_height=new Array(0,27,60,60,60,60,60)
if(rebate<10)rebate=10
var str="<p style='margin-top:-"+(scale*style_height[style]/2)+"px;' align=right>";
str+="<OBJECT classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 WIDTH="+60*scale+" HEIGHT="+style_height[style]*scale+"><param name='FlashVars' value='price="+rebate+"&c="+color+"&tle="+tle+"'><PARAM NAME=movie VALUE=http://www.bookuu.com/images/pd_050704_rebate"+style+".swf> <PARAM NAME=menu VALUE=false>  <PARAM NAME=wmode VALUE=transparent><embed src=http://www.bookuu.com/images/pd_050704_rebate"+style+".swf width="+60*scale+" height="+style_height[style]*scale+" type=application/x-shockwave-flash wmode=transparent menu=false  FlashVars='price="+rebate+"&c="+color+"&tle="+tle+"'/></OBJECT>"
str+="</p>";
document.write(str)
}

function PD_rebate_txt(bokuprice,price){
var rebate=(100*Number(bokuprice)/Number(price))+0.5;
var str="";
if(rebate<10)rebate=10
str=rebate.toString().substring(0,2)
document.write((Number(str)/10)*10)
}

function PD_save(bokuprice,price){
	var lngMoney=Number(price)-Number(bokuprice);
	if(isNaN(lngMoney)){return;}
	lngMoney = lngMoney + 0.001
	lngMoney = lngMoney.toString()
	var lngArray=lngMoney.split(".")
	document.write(lngArray[0]+"."+lngArray[1].substr(0,2))
}

function PD_cube(style,width,height,pic,prodid,shape,uid){
   var fo = new FlashObject("http://www.bookuu.com/images/pd_060722_shape"+style+".swf", "", width, height, "7", "#000000");
   // var fo = new FlashObject("/help/fhb_041018_map.swf", "", width, height, "7", "#000000");
   fo.addParam("wmode", "transparent");
   fo.addParam("menu", "false");
   fo.addParam("SCALE", "exactfit");
   fo.addParam("flashVars", "uid="+uid+"&pic="+pic+"&prodid="+prodid+"&shape="+shape);
   fo.write("cube"+prodid);
  // alert(document.all("cube"+prodid).innerHTML)
}