//REPLACE L, G, K, Y, P, W, R, //change all function names function loadxy63() { //next line, omit var and it becomes a global array (use xy=[ not var xy=[ ) xy = [ ["",0,0] ,["6301G3310/P 10KT YELL",132,115] ,["6301G3310/E 10KT YELL",130,317] ,["6301JVJ3904 10KT YELL",141,461] ,["6302G3268/P 10KT YELL",133,104] ,["6302G3191/E 10KT WG",261,74] ,["6302G3191/P 10KT WG",365,77] ,["6302JVJ3829 10KT WG",299,145] ,["6302FIJ3515/0510KT WG",347,251] ,["6302ICJ3920/AQ10KT WG",332,361] ,["6302G3244P/PTZ10KT YELL",109,491] ,["6302G3244E/PTZ10KT YELL",231,486] ,["6302JVJ3938PTZ10KT YELL",345,569] ,["6302ICG3293P0210KT WG",558,94] ,["6302JVJ3051/S 10KT WG",552,438] ,["6302JVJ3063/S 10KT WG",559,506] ,["6302JVJ3856/S 10KT WG",558,586] ,["6302G3220E/PTZ10KT PINK",726,101] ,["6302G3220P/PTZ10KT PINK",813,83] ,["6302G3237P/LLQ10KT WG",718,493] ,["6302JVJ3874LLQ10KT WG",796,563] ,["6303G3267/E 10KT PINK",81,53] ,["6303JVJ3809 10KT PINK",154,99] ,["6303ICJ3350/0210KT PINK",120,154] ,["6303JVJ3853 10KT PINK",123,530] ,["6303G3269/E 10KT PINK",344,66] ,["6303JVJ3895 10KT PINK",345,157] ,["6303JVJ3890 10KT WG",338,315] ,["6303JVJ3893 10KT WG",346,388] ,["6303JVJ3892 10KT YELL",341,483] ,["6303JVJ3664 10KT YELL",342,572] ,["6303ICG3283P0210KT WG",650,70] ,["6303ICG3283E0410KT WG",701,149] ,["6303G3291/P 10KT WG",804,83] ,["6303JVJ3917 10KT WG",541,251] ,["6303ICJ3908/0210KT PINK",548,325] ,["6303JVJ3909 10KT YELL",571,412] ,["6303ICG3263P0210KT WG",763,253] ,["6303ICG3263E0510KT WG",776,351] ,["6303JVJ3902 10KT WG",728,418] ,["6303G3306/P 10KT PK&W",538,564] ,["6303G3306/E 10KT PK&W",640,545] ,["6303JVJ3916 10KT PINK",777,581] ,["6304ICG3255P0210KT YELL",102,77] ,["6304ICG3255E0510KT YELL",114,147] ,["6304G3285/P 10KT YELL",232,99] ,["6304G3290/P 10KT YELL",354,96] ,["6304G2674E/05 10KT YELL",107,250] ,["6304G3155/E 10KT YELL",220,242] ,["6304G3020/E 10KT YELL",352,263] ,["6304G3027/P 10KT YELL",105,390] ,["6304G3027/E 10KT YELL",200,381] ,["6304JVJ3699 10KT YELL",335,391] ,["6304G3156 10KT YELL",157,591] ,["6304JVJ3918 10KT W&Y",311,504] ,["6304JVJ3846 10KT YELL",358,586] ,["6304G3019/E 10KT YELL",529,87] ,["6304G3150/E 10KT WG",538,203] ,["6304G3013E/WH 10KT YELL",535,378] ,["6304G3153/E 10KT WG",534,503] ,["6304G2383E10 10KT YELL",697,109] ,["6304G2654E/24 10KT YELL",799,89] ,["6304JVJ3885 10KT WG",795,490] ,["6304JVJ3886 10KT YELL",689,540] ,["6304JVJ3884 10KT WG",778,595] ,["6305G2538/P 10KT W&PK",81,69] ,["6305G3209/P 10KT PINK",191,70] ,["6305G2860/E 10KT PINK",84,496] ,["6305JVJ1730 10KT W&PK",114,608] ,["6305JVJ3756 10KT W&PK",164,542] ,["6305G2184P/MRG10KT PINK",352,68] ,["6305G2184E/MRG10KT PINK",356,153] ,["6305ICJ3940/0910KT W&PK",350,274] ,["6305FIJ3922/0910KT W&PK",354,355] ,["6305ICG2079E0610KT W&PK",323,478] ,["6305ICG2079P0610KT W&PK",403,491] ,["6305ICJ2886/0410KT W&PK",345,580] ,["6305ICG2629P0210KT PK&W",537,85] ,["6305ICG3225P0210KT PINK",630,106] ,["6305G2291/P 10KT W&PK",713,66] ,["6305JVJ3725 10KT PK&W",803,120] ,["6305G3059/E 10KT WG",541,240] ,["6305G3151/P 10KT WG",662,255] ,["6305G3151/E 10KT WG",770,252] ,["6305JVJ3923 10KT WG",542,302] ,["6305ICJ3787/0210KT WG",625,390] ,["6305ICJ3517/0210KT WG",779,371] ,["6305JVJ3919 10KT WG",555,589] ,["6305G3206/P 10KT YELL",678,497] ,["6305JVJ3794 10KT YELL",688,584] ,["6305JVJ3808 10KT YELL",796,545] ,["6306G3048P/WH 10KT WG",79,105] ,["6306G3048E/WH 10KT WG",175,66] ,["6306JVJ3857/WH10KT WG",214,140] ,["6306G3281E/PK 10KT PINK",96,253] ,["6306G3281P/PK 10KT PINK",239,280] ,["6306G2930P/PK 10KT PINK",378,275] ,["6306G2930E/PK 10KT PINK",360,355] ,["6306JVJ3395/PK10KT PINK",113,378] ,["6306JVJ3676/PK10KT PINK",258,388] ,["6306ICG3229EWH10KT YELL",121,484] ,["6306JVJ3897/WH10KT YELL",146,574] ,["6306G3262P/WH 10KT YELL",241,489] ,["6306G3262E/WH 10KT YELL",341,497] ,["6306JVJ3900/WH10KT YELL",314,579] ,["6306G3284P/WH 10KT PINK",509,89] ,["6306G3284E/WH 10KT PINK",587,103] ,["6306G3227/P 10KT W/Y/P",556,385] ,["6306JVJ1599 10KT PINK",555,462] ,["6306JVJ3782 10KT WG",554,527] ,["6306JVJ2194 10KT YELL",556,600] ,["6306G3122/P 10KT YELL",727,66] ,["6306G3085/E 10KT YELL",735,148] ,["6306ICG3226P0210KT YELL",820,107] ,["6306ICG3134P0210KT YELL",723,520] ,["6306ICG3134E0410KT YELL",809,522] ,["6306JVJ3781 10KT YELL",781,603] ,["6307ICG3282P0210KT YELL",55,99] ,["6307ICG3287P0210KT PINK",125,131] ,["6307ICG3288P0210KT WG",201,104] ,["6307JVJ3910 10KT YELL",108,461] ,["6307JVJ3910 10KT PINK",124,525] ,["6307JVJ3910 10KT WG",148,547] ,["6307ICJ3732/W 10KT PINK",347,44] ,["6307JVJ3284 10KT PINK",344,97] ,["6307JVJ3189/W 10KT PINK",341,157] ,["6307JVJ3194 10KT WG",345,231] ,["6307JVJ3047 10KT WG",344,337] ,["6307JVJ3536 10KT WG",341,396] ,["6307JVJ3143 10KT YELL",345,459] ,["6307JVJ3509 10KT YELL",344,523] ,["6307JVJ3196 10KT YELL",349,596] ,["6307G2651/E 10KT WG",648,102] ,["6307JVJ3064 10KT WG",755,125] ,["6307JVJ3728 10KT PINK",798,63] ,["6307JVJ3552 10KT PINK",539,355] ,["6307JVJ3894 10KT PINK",662,292] ,["6307JVJ3927 10KT PINK",786,241] ,["6307JVJ3769 10KT PINK",774,353] ,["6307JVJ3719 10KT WG",533,438] ,["6307JVJ3719 10KT PINK",530,473] ,["6307JVJ3719 10KT YELL",539,514] ,["6307JVJ3255 10KT PINK",551,586] ,["6307JVJ3188/W 10KT PINK",662,521] ,["6307JVJ3169/W 10KT PINK",775,462] ,["6307ICJ3749/1010KT WG",800,546] ,["6307ICJ3749/1010KT PINK",779,585] ,["6307ICJ3749/1010KT YELL",776,620] ,["6308ICG1160P1014KT WG",69,80] ,["6308ICG1148P1014KT WG",141,101] ,["6308ICG2719P1014KT WG",225,91] ,["6308ICG1159E0014KT WG",95,176] ,["6308ICG1147E0014KT WG",206,169] ,["6308ICG2719E0014KT WG",316,167] ,["6308ICJ3774/5014KT WG",117,260] ,["6308ICJ3907/5014KT WG",330,265] ,["6308ICJ3507/6014KT WG",121,370] ,["6308ICJ3580/3014KT W&PK",334,368] ,["6308ICJ3912/5014KT Y&W",78,557] ,["6308ICJ3732/7014KT Y&W",272,607] ,["6308ICJ3644/7014KT Y&W",553,63] ,["6308ICJ3571/5014KT WG",555,162] ,["6308ICJ3606/5014KT WG",555,313] ,["6308ICJ3099/3014KT WG",555,403] ,["6308ICJ3663/3014KT W&Y",555,500] ,["6308ICJ3204/4514KT WG",555,601] ,["6308JVJ3300/0014KT WG",710,116] ,["6308JVJ3300/0014KT YELL",804,142] ,["6308ICJ3820/5014KT Y&W",743,523] ,["6308ICJ3752/5014KT WG",775,592] ,["6308ICJ3752/W 14KT WG",766,639] ,["6309ICJ3913/0910KT PINK",111,101] ,["6309ICJ3913/1110KT YELL",164,147] ,["6309ICJ3913/1410KT WG",120,199] ,["6309JVJ2025/0014KT YELL",156,517] ,["6309ICJ3747/3014KT YELL",103,592] ,["6309ICJ3477/0914KT YELL",350,80] ,["6309ICJ3785/2010KT WG",349,176] ,["6309ICG3038E0510KT YELL",348,363] ,["6309ICJ3334/0814KT Y&W",342,446] ,["6309JVJ908 10KT YELL",329,534] ,["6309JVJ908/W 10KT YELL",373,585] ,["6309ICJ3236/0310KT WG",528,108] ,["6309ICJ3236/W 10KT WG",541,149] ,["6309ICJ3235/0310KT WG",667,44] ,["6309ICJ3235/W 10KT WG",660,96] ,["6309ICJ3248/0410KT WG",797,104] ,["6309ICJ3248/W 10KT WG",796,152] ,["6309ICJ3825/0510KT Y&W",666,157] ,["6309ICJ3825/W 10KT Y&W",672,217] ,["6309ICG2621P0510KT WG",527,332] ,["6309ICG2621E0510KT WG",627,354] ,["6309ICJ3468/0310KT WG",780,300] ,["6309ICJ3468/W 10KT WG",775,354] ,["6309JVJ2181/1210KT PINK",537,519] ,["6309JVJ2181/3310KT YELL",651,547] ,["6309JVJ2181/0010KT WG",777,533] ,["6310G3154PRHG 10KT PINK",81,80] ,["6310G3154ERHG 10KT PINK",166,64] ,["6310ICG3258E0510KT PINK",81,153] ,["6310G2905P/PTZ10KT PINK",69,525] ,["6310JVJ3685PTZ10KT PINK",121,603] ,["6310ICG3245E0510KT PINK",172,507] ,["6310G3025P/PS 10KT PINK",354,75] ,["6310G3025E/PS 10KT PINK",352,146] ,["6310JVJ3735/PS10KT PINK",349,231] ,["6310ICG3313P0210KT PINK",306,481] ,["6310ICG3313E0410KT PINK",380,500] ,["6310ICJ3925MRG10KT PINK",352,589] ,["6310G2946P/S 10KT WG",534,63] ,["6310G3222/P 10KT WG",665,64] ,["6310ICG2945PBT10KT WG",799,70] ,["6310ICG3243P0310KT YELL",698,166] ,["6310JVJ3647/AM10KT YELL",802,178] ,["6310G3195P/TZ 10KT WG",535,287] ,["6310G3195E/TZ 10KT WG",621,315] ,["6310JVJ3841/TZ10KT WG",550,397] ,["6310ICJ3644/TZ14KT WG",726,376] ,["6310G3212P/TZ 10KT WG",809,319] ,["6310JVJ3221MTZ10KT WG",568,605] ,["6310G3126P/MTZ10KT WG",596,522] ,["6310G3103P/MTZ10KT YELL",692,507] ,["6310JVJ3667MTZ10KT YELL",751,596] ,["6311ICJ3589/PD10KT WG",139,129] ,["6311JVJ3570/CT10KT YELL",296,122] ,["6311G3001PCTY 10KT YELL",380,86] ,["6311ICG3190P0210KT WG",97,255] ,["6311ICJ3838/0210KT WG",101,351] ,["6311ICG3208P0210KT YELL",225,254] ,["6311ICG3208E0510KT YELL",354,256] ,["6311ICJ3883/0210KT YELL",339,357] ,["6311ICJ3757/0310KT YELL",219,409] ,["6311JVJ3812 10KT WG",216,503] ,["6311JVJ3837 10KT YELL",360,519] ,["6311G3147/B 10KT YELL",229,591] ,["6311ICG3078P0210KT W&Y",525,129] ,["6311JVJ3914 10KT WYP",528,284] ,["6311JVJ3737 10KT Y&W",524,371] ,["6311JVJ3206 10KT Y&W",529,455] ,["6311JVJ3343 10KT YELL",529,564] ,["6311G3298/P 10KT YELL",703,81] ,["6311G2852/E 10KT YELL",805,68] ,["6311JVJ3889 10KT YELL",792,147] ,["6311ICG3185P0210KT YELL",677,505] ,["6311ICG3185E0510KT YELL",773,510] ,["6312GEM580 10KT YELL",78,101] ,["6312G3302/P 10KT W&PK",147,130] ,["6312G3251/P 10KT YELL",227,92] ,["6312G2177P/AM SIL/10Y",301,134] ,["6312G3286P/AQ 10KT WG",366,98] ,["6312ICG3127P0210KT YELL",89,281] ,["6312ICG3279P0210KT YELL",274,272] ,["6312ICG2811E0510KT WG",100,375] ,["6312ICJ3174/0510KT W&Y",333,374] ,["6312ICG3081P0210KT W&Y",179,373] ,["6312ICG3305POP10KT YELL",240,504] ,["6312ICG3305EOP10KT YELL",331,491] ,["6312FIJ3845/OP10KT YELL",232,589] ,["6312JVJ3796/OP10KT YELL",361,579] ,["6312G3234/P 10KT PK&W",544,78] ,["6312G3232P/WH 10KT PINK",539,177] ,["6312G3233P/WH 10KT YELL",538,268] ,["6312GEM804 10KT YELL",539,440] ,["6312JVJ3746 10KT WG",576,514] ,["6312JVJ737 10KT YELL",533,585] ,["6312G2862/P 10KT W&PK",697,90] ,["6312G3170/P 10KT PINK",769,89] ,["6312G3177P/WH 10KT PINK",837,108] ,["6312JVJ3694/AQ10KT WG",769,526] ,["6312JVJ3694/GA10KT YELL",769,565] ,["6312JVJ3694/AM10KT WG",765,609] ,["6313JVJ3199/SS10KT WG",103,127] ,["6313JVJ404/SL 10KT WG",179,65] ,["6313JVJ3875/0XSILVER",80,539] ,["6313JVJ3836PBK10KT WG",191,497] ,["6313JVJ3182/OXSIL/10Y",187,587] ,["6313WB224/G 10KT Y&W",341,83] ,["6313WB458 10KT W&Y",355,158] ,["6313G2004 SIL/10Y",351,321] ,["6313JVJ3059 10KT W&Y",352,419] ,["6313JVJ3533/G 10KT WG",356,507] ,["6313WB449/G 10KT WG",353,589] ,["6313JVJ3911/S 10KT WG",557,138] ,["6313G3303E/S 10KT WG",696,126] ,["6313G3303P/S 10KT WG",788,83] ,["6313G3216P/E 10KT YELL",512,269] ,["6313G3216E/E 10KT YELL",583,255] ,["6313JVJ3863/E 10KT YELL",537,355] ,["6313G3188E/E 10KT YELL",710,253] ,["6313G3188P/E 10KT YELL",812,272] ,["6313JVJ3601/E 10KT YELL",658,386] ,["6313JVJ3898/E 10KT WG",785,355] ,["6313JVJ3823/R 10KT YELL",565,548] ,["6313G3277P/GA 10KT YELL",663,517] ,["6313JVJ3656/GA10KT YELL",781,567] ,["6313JVJ3671/R 10KT WG",673,612] ,["6314ICG2995P0510KT YELL",92,101] ,["6314ICG3308P0910KT WG",167,132] ,["6314ICG3005P0410KT YELL",130,544] ,["6314ICG2692P0510KT WG",314,88] ,["6314ICG2891P0510KT YELL",384,106] ,["6314ICG2129P0510KT WG",334,199] ,["6314ICG3066P0510KT W&PK",301,430] ,["6314ICG3084P0510KT W&Y",387,469] ,["6314ICG3034P0510KT W&PK",302,545] ,["6314ICG2897P1410KT PINK",381,593] ,["6314FG103P-7 10KT WG",513,86] ,["6314FJ125-8 10KT WG",595,141] ,["6314FJ141-C 10KT WG",748,140] ,["6314FG167 10KT WG",814,77] ,["6314G3196P/GA 10KT YELL",729,276] ,["6314G3051E/E 10KT YELL",805,258] ,["6314G3028P/AM 10KT YELL",513,383] ,["6314G3028E/AM 10KT YELL",585,377] ,["6314JVJ3478/AM10KT YELL",577,431] ,["6314G2913E/RHG10KT WG",736,374] ,["6314G2913P/RHG10KT WG",813,373] ,["6314JVJ3688RHG10KT WG",766,434] ,["6314G2539P/GA 10KT YELL",665,611] ,["6314G3311P/S 10KT WG",741,615] ,["6314G2741P/BT SILVER",816,587] ,["6315G3309P/GA 10KT YELL",132,205] ,["6315G3339P/GA 10KT YELL",52,201] ,["6315G3339P/GA 10KT YELL",130,276] ,["6315G3339P/GA 10KT YELL",206,210] ,["6315G3309E/GA 10KT YELL",368,383] ,["6315G3309B/GA 10KT YELL",87,417] ,["6315G3309B/GA 10KT YELL",221,377] ,["6315JVJ3939/GA10KT YELL",291,436] ]; } //for mouseover on flyer for price function xyp63(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 xy63(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) } }