//REPLACE L, G, K, Y, P, W, R, //change all function names function loadxy67() { //next line, omit var and it becomes a global array (use xy=[ not var xy=[ ) xy = [ ["",0,0] ,["6701JVJ3918 10KT W&Y",137,485] ,["6701G3352/E 10KT YELL",125,364] ,["6701G3352/P 10KT YELL",141,122] ,["6702ICJ3940/0910KT W&PK",171,355] ,["6702ICJ3922/0910KT W&PK",281,390] ,["6702FIG3387P0310KT PINK",277,517] ,["6702JVJ3894 10KT PINK",334,604] ,["6702G3285/P 10KT YELL",519,332] ,["6702G3380/P 10KT YELL",617,340] ,["6702G3310/E 10KT YELL",709,322] ,["6702G3310/P 10KT YELL",816,329] ,["6702JVJ3904 10KT YELL",761,407] ,["6702G3027/E 10KT YELL",535,545] ,["6702G3027/P 10KT YELL",623,557] ,["6702JVJ3699 10KT YELL",546,612] ,["6702G3352/E 10KT YELL",756,515] ,["6702G3352/P 10KT YELL",835,538] ,["6702JVJ3918 10KT W&Y",756,607] ,["6703ICG3172P0210KT W&Y",101,338] ,["6703G3251/P 10KT YELL",214,340] ,["6703G3233P/WH 10KT YELL",347,322] ,["6703G3234/P 10KT PK&W",340,402] ,["6703ICG2705P0210KT YELL",351,461] ,["6703GEM580 10KT YELL",64,567] ,["6703G3302/P 10KT W&PK",142,579] ,["6703GEM804 10KT YELL",217,569] ,["6703JVJ3746 10KT WG",354,524] ,["6703JVJ737 10KT YELL",349,599] ,["6703G3281E/WH 10KT YELL",612,88] ,["6703G3281P/WH 10KT YELL",759,102] ,["6703G3048P/WH 10KT WG",520,226] ,["6703G3048E/WH 10KT WG",620,214] ,["6703JVJ3982/WH10KT YELL",564,327] ,["6703G3365E/WH 10KT YELL",713,322] ,["6703G3365P/WH 10KT YELL",812,351] ,["6703G3229E/WH 10KT YELL",579,505] ,["6703G3013E/WH 10KT YELL",733,502] ,["6703JVJ3897/WH10KT YELL",648,601] ,["6704G3268/P 10KT YELL",217,94] ,["6704G3019/E 10KT YELL",347,89] ,["6704JVJ3728 10KT YELL",124,170] ,["6704G3156 10KT YELL",209,272] ,["6704JVJ3945 10KT YELL",320,179] ,["6704JVJ3917 10KT WG",134,400] ,["6704JVJ3947 10KT WG",135,462] ,["6704JVJ3506 10KT WG",127,524] ,["6704JVJ3949 10KT WG",127,601] ,["6704G3342/E 10KT WG",302,395] ,["6704G3342/P 10KT WG",375,417] ,["6704G2674E/05 10KT WG",299,510] ,["6704G2674E/10 10KT WG",9999,9999] ,["6704G2674E/15 10KT WG",9999,9999] ,["6704G2674E/20 10KT WG",9999,9999] ,["6704G3216E/E 10KT YELL",587,67] ,["6704G3216P/E 10KT YELL",519,72] ,["6704JVJ3863/E 10KT YELL",527,163] ,["6704JVJ3407/E 10KT YELL",673,119] ,["6704JVJ3898/E 10KT YELL",796,67] ,["6704JVJ3957 10KT Y&W",544,298] ,["6704JVJ3967 10KT W&Y",669,255] ,["6704G3147/B 10KT YELL",628,380] ,["6704JVJ3812 10KT YELL",788,321] ,["6705ICG1159E1514KT WG",86,166] ,["6705ICG1159E2014KT WG",9999,9999] ,["6705ICG1159E2514KT WG",9999,9999] ,["6705ICG1159E3014KT WG",9999,9999] ,["6705ICG1159E4014KT WG",9999,9999] ,["6705ICG1159E5014KT WG",9999,9999] ,["6705ICG1160P1014KT WG",71,72] ,["6705ICG1160P1514KT WG",9999,9999] ,["6705ICG1160P2014KT WG",9999,9999] ,["6705ICG1160P2514KT WG",9999,9999] ,["6705ICG1160P3014KT WG",9999,9999] ,["6705ICG1160P5014KT WG",9999,9999] ,["6705ICG2719E1514KT WG",329,166] ,["6705ICG2719E2014KT WG",9999,9999] ,["6705ICG2719E2514KT WG",9999,9999] ,["6705ICG2719E3014KT WG",9999,9999] ,["6705ICG2719E4014KT WG",9999,9999] ,["6705ICG2719E5014KT WG",9999,9999] ,["6705ICG2719P1014KT WG",222,75] ,["6705ICG2719P1514KT WG",9999,9999] ,["6705ICG2719P2014KT WG",9999,9999] ,["6705ICG2719P2514KT WG",9999,9999] ,["6705ICG2719P3014KT WG",9999,9999] ,["6705ICG2719P5014KT WG",9999,9999] ,["6705ICG1147E1514KT WG",207,175] ,["6705ICG1147E2014KT WG",9999,9999] ,["6705ICG1147E2514KT WG",9999,9999] ,["6705ICG1147E3014KT WG",9999,9999] ,["6705ICG1147E4014KT WG",9999,9999] ,["6705ICG1147E5014KT WG",9999,9999] ,["6705ICG1148P1014KT WG",147,89] ,["6705ICG1148P1514KT WG",9999,9999] ,["6705ICG1148P2014KT WG",9999,9999] ,["6705ICG1148P2514KT WG",9999,9999] ,["6705ICG1148P3014KT WG",9999,9999] ,["6705ICG1148P5014KT WG",9999,9999] ,["6705ICJ3912/5014KT Y&W",102,294] ,["6705JVJ3300/1010KT WG",271,300] ,["6705JVJ3300/1510KT WG",9999,9999] ,["6705JVJ3300/2010KT WG",9999,9999] ,["6705JVJ3300/1010KT YELL",362,327] ,["6705JVJ3300/1510KT YELL",9999,9999] ,["6705JVJ3300/2010KT YELL",9999,9999] ,["6705JVJ3300/2514KT YELL",9999,9999] ,["6705JVJ3300/3314KT YELL",9999,9999] ,["6705JVJ3300/5014KT YELL",9999,9999] ,["6705JVJ3300/7514KT YELL",9999,9999] ,["6705JVJ3300/0014KT YELL",9999,9999] ,["6705ICJ3820/5014KT Y&W",769,44] ,["6705ICJ3907/5014KT WG",772,117] ,["6705ICJ3507/6014KT WG",771,189] ,["6705ICJ3663/3014KT W&Y",777,268] ,["6705ICJ3956/3014KT W&Y",766,353] ,["6705ICJ3732/7014KT Y&W",556,357] ,["6705ICJ3752/5014KT WG",667,418] ,["6705ICJ3752/W 14KT WG",666,479] ,["6705ICJ3099/3014KT WG",555,494] ,["6705ICJ3644/7014KT Y&W",682,542] ,["6705ICJ3571/5014KT WG",568,596] ,["6706G3232P/WH 10KT PINK",99,62] ,["6706G3227/P 10KT W/Y/P",232,76] ,["6706G3209/P 10KT PINK",357,60] ,["6706G2860/E 10KT PINK",105,131] ,["6706JVJ3914 10KT WYP",234,161] ,["6706G3341/P 10KT YWP",367,206] ,["6706G3306/E 10KT PK&W",140,329] ,["6706G3306/P 10KT PK&W",230,328] ,["6706JVJ3916 10KT PK&W",343,331] ,["6706ICG3376PWT10KT YELL",83,449] ,["6706ICJ3972WTZ10KT YELL",184,440] ,["6706ICG2079P0610KT W&PK",89,586] ,["6706ICG2079E0610KT W&PK",155,566] ,["6706G3353/P 10KT WG",244,559] ,["6706JVJ1730 10KT W&PK",333,603] ,["6706ICJ3235/0310KT WG",660,240] ,["6706ICJ3235/W 10KT WG",664,293] ,["6706ICJ3236/0310KT WG",524,276] ,["6706ICJ3236/W 10KT WG",536,328] ,["6706ICJ3248/0410KT WG",815,253] ,["6706ICJ3248/W 10KT WG",811,316] ,["6706ICJ3825/0510KT Y&W",661,335] ,["6706ICJ3825/W 10KT Y&W",670,390] ,["6706JVJ908 10KT YELL",736,447] ,["6706JVJ908/W 10KT YELL",697,504] ,["6706ICJ3959/3014KT YELL",537,579] ,["6706ICJ3785/2010KT YELL",664,575] ,["6706ICJ3747/3014KT YELL",790,586] ,["6707G3222/P 10KT WG",64,297] ,["6707ICG3243P0310KT YELL",150,308] ,["6707FIG3347P0210KT WG",232,334] ,["6707G3286P/AQ 10KT WG",319,316] ,["6707ICG2945PBT10KT WG",393,294] ,["6707FIG3364P0610KT Y&W",76,430] ,["6707FIG3364E1210KT WG",147,435] ,["6707G3346/E 10KT Y&W",293,496] ,["6707JVJ3958 10KT Y&W",237,569] ,["6707JVJ3737 10KT Y&W",104,588] ,["6707ICG3127P0210KT YELL",388,510] ,["6707JVJ3206 10KT Y&W",370,606] ,["6707G3351E/MRG10KT PINK",551,97] ,["6707G3351P/MRG10KT PINK",640,78] ,["6707JVJ3946MRG10KT PINK",605,172] ,["6707ICG3313E0410KT PINK",739,77] ,["6707ICG3313P0210KT PINK",824,104] ,["6707ICJ3925MRG10KT PINK",753,169] ,["6707G3244P/PTZ10KT YELL",741,271] ,["6707JVJ3938PTZ10KT YELL",645,341] ,["6707G3362P/PTZ10KT YELL",755,378] ,["6707G3373E/GA 10KT YELL",555,520] ,["6707G3373P/GA 10KT YELL",634,544] ,["6707JVJ3948/GA10KT YELL",570,601] ,["6707G3154P/MTZ10KT YELL",727,517] ,["6707G3154E/MTZ10KT YELL",800,509] ,["6707JVJ3667MTZ10KT YELL",766,590] ,["6708JVJ3886 10KT YELL",130,121] ,["6708G3298/P 10KT YELL",228,81] ,["6708ICJ3517/0210KT YELL",350,102] ,["6708ICJ3908/0210KT PINK",339,210] ,["6708JVJ3853 10KT PINK",327,468] ,["6708JVJ3927 10KT PINK",335,271] ,["6708JVJ3970 10KT PK&W",334,362] ,["6708JVJ3284 10KT PINK",143,308] ,["6708JVJ3189/W 10KT PINK",139,350] ,["6708JVJ3910 10KT WG",145,399] ,["6708JVJ3047 10KT WG",141,445] ,["6708JVJ3194 10KT WG",139,500] ,["6708JVJ3509 10KT YELL",142,565] ,["6708JVJ3143 10KT YELL",142,620] ,["6708WB224/G 10KT W&Y",536,53] ,["6708JVJ3533/G 10KT WG",535,126] ,["6708WB458 10KT W&Y",538,197] ,["6708WB449/G 10KT WG",679,60] ,["6708JVJ3059 10KT W&Y",818,77] ,["6708JVJ404/SL 10KT WG",592,270] ,["6708JVJ3199/SS10KT WG",739,264] ,["6708JVJ3875/OXSILVER",529,366] ,["6708JVJ3836PBK10KT WG",671,358] ,["6708JVJ3182/OXSIL/10Y",806,358] ,["6709ICG2692P0510KT WG",101,325] ,["6709FIG3385P1410KT WG",177,310] ,["6709ICG3372P1410KT YELL",264,316] ,["6709ICG2891P0510KT YELL",340,327] ,["6709ICG2897P1410KT PINK",106,487] ,["6709ICG3066P0510KT W&PK",188,488] ,["6709ICG3034P0510KT W&PK",272,486] ,["6709ICG3084P0510KT W&Y",354,485] ,["6709ICG2995P0510KT YELL",99,598] ,["6709ICG3308P0910KT WG",179,596] ,["6709JVJ3196 10KT YELL",548,41] ,["6709JVJ3536 10KT WG",572,83] ,["6709ICJ3732/W 10KT PINK",567,128] ,["6709ICG3282P0210KT YELL",674,85] ,["6709ICG3287P0210KT PINK",742,110] ,["6709ICG3288P0210KT WG",814,85] ,["6709ICJ3913/0910KT PINK",635,218] ,["6709ICJ3913/1110KT YELL",741,175] ,["6709ICJ3913/1410KT WG",781,246] ,["6709ICJ3749/1010KT WG",565,391] ,["6709ICJ3749/1010KT YELL",550,429] ,["6709ICJ3749/1010KT PINK",569,465] ,["6709G1200E/25 10KT WG",720,426] ,["6709G1200E/50 10KT WG",9999,9999] ,["6709G1200E/75 10KT WG",9999,9999] ,["6709G1200E/00 10KT WG",9999,9999] ,["6709JVJ2181/1210KT PINK",551,549] ,["6709JVJ2181/2510KT WG",9999,9999] ,["6709JVJ2181/3310KT YELL",656,565] ,["6709JVJ2181/5010KT WG",9999,9999] ,["6709JVJ2181/7510KT WG",9999,9999] ,["6709JVJ2181/0010KT WG",787,563] ,["6710G3309B/GA 10KT YELL",190,58] ,["6710JVJ3939/GA10KT YELL",169,144] ,["6710G3309E/GA 10KT YELL",295,120] ,["6710G3309P/GA 10KT YELL",358,64] ,["6710JVJ3694WTZ10KT YELL",302,263] ,["6710JVJ3694/AQ10KT WG",366,294] ,["6710JVJ3694/AM10KT PINK",306,340] ,["6710G2741P/BT SILVER",271,419] ,["6710G2539P/R 10KT YELL",202,420] ,["6710G3028P/AM 10KT YELL",99,509] ,["6710G3028E/AM 10KT YELL",174,517] ,["6710JVJ3478/AM10KT YELL",153,585] ,["6710G2913E/RHG10KT WG",291,513] ,["6710G2913P/RHG10KT WG",368,530] ,["6710JVJ3688RHG10KT WG",295,579] ,["6710JVJ3823/R 10KT YELL",552,155] ,["6710G3196P/R 10KT YELL",581,71] ,["6710G3370P/R 10KT YELL",668,82] ,["6710G3370E/R 10KT YELL",749,68] ,["6710JVJ3955/R 10KT YELL",778,146] ,["6710G3303E/S 10KT WG",539,306] ,["6710G3303P/S 10KT WG",623,313] ,["6710JVJ3911/S 10KT WG",565,376] ,["6710ICG3305POP10KT YELL",723,313] ,["6710ICG3305EOP10KT YELL",806,295] ,["6710FIJ3845/OP10KT YELL",771,375] ,["6711ICJ3961/0210KT YELL",227,57] ,["6711ICJ3962/0210KT YELL",235,130] ,["6711ICJ3963/0210KT YELL",226,297] ,["6711ICJ3964/0210KT YELL",228,371] ,["6711ICJ3965/0210KT YELL",231,446] ]; } //for mouseover on flyer for price function xyp67(book) { var x,y; var zoom = document.documentElement.clientWidth / window.innerWidth; x=(mouse_x/zoom)-(document.getElementById("div621").offsetLeft/zoom); //mobile version shifts first page of flyer when showing spreads if (flyershown.substr(2,2)=="01") { if (isMobileDevice) { x=x; }else{ x=x-parseInt(document.getElementById("div621").style.width)/2; } }else{ if (isMobileDevice) { if (isOdd(Number(flyershown.substr(2,2)))) { x=x+parseInt(document.getElementById("div621").style.width); } } } //if (flyershown.substr(2,2)=="01") { x=x-parseInt(document.getElementById("div621").style.width)/2; } x=x/0.95; x=x/(document.getElementById("flyer_ndx").width/zoom)*230; //ok to use flyer_ndx becuase that was how it was scaled y=mouse_y-document.getElementById("div620").offsetTop; y=y/(parseInt(document.getElementById("div621").style.height))*675; y=y/zoom; var minx=0; var fs=flyershown; if (isMobileDevice) { fs=Number(flyershown.substr(2,2)); fs=Math.floor(fs/2)+1; fs="0"+fs; fs=flyershown.substr(0,2)+fs.substr(fs.length-2,2); //need to convert pages to spreads } for (i=0; i0) { update_price(xy[minx][0].substr(4,10),xy[minx][0].substr(14,10)); var xypr=document.getElementById("i8").innerHTML.split(';')[1]; //everything after the first ; xypr=xypr+"<"; xypr=xypr.substring(0, xypr.indexOf("<")); //everything before the first < document.getElementById("flyer_overlay_txt").innerHTML = "
$"+xypr+"
"+"click for details
" y=xy[minx][2]*zoom; //y=y*(document.getElementById("flyer_spread").height)/675; y=y*(parseInt(document.getElementById("div621").style.height))/675; y=y+document.getElementById("div620").offsetTop; x=xy[minx][1]*(document.getElementById("flyer_ndx").width/zoom)/230; x=x+(document.getElementById("div621").offsetLeft/zoom); if (flyershown.substr(2,2)=="01") { x=x+parseInt(document.getElementById("div621").style.width)/2; } x=x*0.95; //entire spread reduced to 95% to show flip effect x=x+30; //move over beside image //if too close to right side, show at left //else show on right //x=x-25-50; if (x<0) { x=0; } //y=y-25; if (y<0) { y=0; } document.getElementById("flyer_overlay").style.left=x+"px"; document.getElementById("flyer_overlay").style.top=y+"px"; document.getElementById("flyer_overlay").style.display = "block"; }else{ document.getElementById("flyer_overlay").style.display = "none"; } //alert("done overlay"); } //calls ItemDetail from touch position on flyer function xy67(book) { //alert('book='+book); var x,y; var zoom = document.documentElement.clientWidth / window.innerWidth; x=(mouse_x/zoom)-(document.getElementById("div621").offsetLeft/zoom); //mobile version shifts first page of flyer when showing spreads if (flyershown.substr(2,2)=="01") { if (isMobileDevice) { x=x; }else{ x=x-parseInt(document.getElementById("div621").style.width)/2; } }else{ if (isMobileDevice) { if (isOdd(Number(flyershown.substr(2,2)))) { x=x+parseInt(document.getElementById("div621").style.width); } } } //if (flyershown.substr(2,2)=="01") { x=x-parseInt(document.getElementById("div621").style.width)/2; } x=x/0.95; y=mouse_y-document.getElementById("div620").offsetTop; x=x/(document.getElementById("flyer_ndx").width/zoom)*230; //ok to use flyer_ndx becuase that was how it was scaled y=y/(parseInt(document.getElementById("div621").style.height))*675; y=y/zoom; var minx=0; var fs=flyershown; if (isMobileDevice) { fs=Number(flyershown.substr(2,2)); fs=Math.floor(fs/2)+1; fs="0"+fs; fs=flyershown.substr(0,2)+fs.substr(fs.length-2,2); //need to convert pages to spreads } for (i=0; i0) { ItemDetail(xy[minx][0].substr(4,10),xy[minx][0].substr(14,10),"","1","","","","FLYER",""); // item, karat", colour,qty,sz,desc,price,tab,row) } }