/* Copyright c 2006 Fairwind Inc. All Rights Reserved. このスクリプトコードは、有限会社フェアウインドに著作権があり 法律により保護されています。 このスクリプトの無断複製や再配布はこれを禁じます。 */ Char_Pix = 10 ; var UrlData = new Array(4) ; var GetPoint = new Array() ; var GoodsLength = goods_data.length - 1 ; var GetNum = 0 ; while(GetNum < goods_ad_list_num) { Point = Math.floor(Math.random()*GoodsLength) ; PointFLG = "OFF" ; for (i = 0 ; i < goods_ad_list_num ; i++) { if (GetPoint[i] == Point) { PointFLG = "OFF" ; break ; } else { PointFLG = "ON" ; } } if (PointFLG == "ON") { GetPoint.push(Point) ; GetNum++ ; } } var color_border = goods_color_border.toUpperCase() ; var color_bg = goods_color_bg.toUpperCase() ; if (color_border == color_bg) { border_width = 0 ; } else { border_width = 1 ; } document.open(); document.write('') ; if (goods_ad_table == 1) { for (i = 0 ; i < goods_ad_list_num ; i++) { UrlData = goods_data[GetPoint[i]].split(",") ; var HeightPix = goods_ad_height / goods_ad_list_num ; if (goods_ad_width < (Char_Pix * UrlData[3].length)) { var UrlData_3 = UrlData[3].substring(0,(goods_ad_width/Char_Pix)) ; } else { var UrlData_3 = UrlData[3] ; } document.write('') ; } document.write('
'); document.write('
') ; document.write(''+UrlData[0]+'
') ; document.write('') ; document.write(UrlData[1]+'
') ; document.write('') ; document.write(UrlData_3+'
') ; document.write('
') ; } else { document.write('') ; for (i = 0 ; i < goods_ad_list_num ; i++) { UrlData = goods_data[GetPoint[i]].split(",") ; var WidthPix = goods_ad_width / goods_ad_list_num ; if (WidthPix < (Char_Pix * UrlData[3].length)) { var UrlData_3 = UrlData[3].substring(0,(WidthPix/Char_Pix)) ; } else { var UrlData_3 = UrlData[3] ; } document.write(''); document.write('
') ; document.write(''+UrlData[0]+'
') ; document.write('') ; document.write(UrlData[1]+'
') ; document.write('') ; document.write(UrlData_3+'
') ; document.write('') ; } document.write('') ; } document.close();