//REPLACE L, G, K, Y, P, W, R, //change all function names function loadxy75() { //next line, omit var and it becomes a global array (use xy=[ not var xy=[ ) xy = [ ["",0,0] ,["7501ICJ4109/E 10KT YELL",315,317] ,["7501ICJ4109/R 10KT YELL",310,412] ,["7501ICJ4109/S 10KT WG",314,500] ,["7502G3510P/R 10KT W&Y",357,110] ,["7502JVJ2848/R 14KT Y&W",337,227] ,["7502JVJ4007 10KT WG",125,587] ,["7502ICG3534P0410KT YELL",225,547] ,["7502JVJ4081 10KT Y&W",337,593] ,["7502G3370P/R 10KT YELL",512,93] ,["7502G3370E/R 10KT YELL",599,104] ,["7502JVJ3955/R 10KT YELL",560,171] ,["7502JVJ4023/R 10KT YELL",770,159] ,["7502ICJ4100/0910KT WG",529,345] ,["7502ICJ4100/1110KT PINK",653,351] ,["7502ICJ4100/1410KT YELL",783,381] ,["7503G3285/P 10KT YELL",85,124] ,["7503G3380/P 10KT YELL",185,116] ,["7503G3358/P 10KT YELL",282,124] ,["7503G3535/P 10KT W&Y",381,124] ,["7503JVJ4013 10KT YELL",104,378] ,["7503JVJ3917 10KT YELL",225,334] ,["7503JVJ4014 10KT YELL",357,377] ,["7503JVJ3945 10KT YELL",120,554] ,["7503G3509/P 10KT YELL",269,540] ,["7503G3509/E 10KT YELL",354,542] ,["7503G3505P/PTZ10KT YELL",558,80] ,["7503JVJ4111PTZ10KT PINK",558,178] ,["7503JVJ4042PTZ10KT YELL",561,279] ,["7503G3306/P 10KT Y&W",525,564] ,["7503G3306/E 10KT Y&W",614,554] ,["7503G3422PPTZ 10KT YELL",790,391] ,["7503G3422EPTZ 10KT YELL",781,499] ,["7503JVJ4030PTZ10KT YELL",783,594] ,["7504ICJ3961/0210KT YELL",338,54] ,["7504ICJ3962/0210KT YELL",338,130] ,["7504ICJ3963/0210KT YELL",347,191] ,["7504ICJ3964/0210KT YELL",342,251] ,["7504ICJ3965/0210KT YELL",344,326] ,["7504JVJ3206 10KT Y&W",129,433] ,["7504JVJ3737 10KT Y&W",135,502] ,["7504JVJ3957 10KT Y&W",126,591] ,["7504ICG3426P0910KT YELL",291,574] ,["7504ICG3517P1410KT YELL",372,589] ,["7504JVJ3979/E 10KT YELL",560,88] ,["7504JVJ3898/E 10KT YELL",581,170] ,["7504G3549E/E 10KT YELL",581,88] ,["7504JVJ4093/E 10KT YELL",777,116] ,["7504G3310/P 10KT YELL",528,344] ,["7504G3310/E 10KT YELL",647,326] ,["7504JVJ3904 10KT YELL",786,375] ,["7504G3508E/R 10KT YELL",570,560] ,["7504G3508P/R 10KT YELL",699,517] ,["7504JVJ3988/R 10KT YELL",781,587] ,["7505FIG3414EWH10KT YELL",90,97] ,["7505ICG3414PWH10KT YELL",190,95] ,["7505ICJ4004/WH10KT YELL",126,188] ,["7505G3281P/WH 10KT YELL",331,82] ,["7505G3281E/WH 10KT YELL",333,170] ,["7505G3365P/WH 10KT YELL",77,313] ,["7505G3365E/WH 10KT YELL",183,309] ,["7505JVJ3982/WH10KT YELL",321,382] ,["7505G3048P/WH 10KT WG",64,542] ,["7505G3048E/WH 10KT WG",163,526] ,["7505ICG3427EWH10KT WG",295,536] ,["7505ICG3427PWH10KT WG",393,571] ,["7505ICG3496P0310KT YELL",790,106] ,["7505JVJ3889 10KT YELL",786,205] ,["7505ICJ3517/0210KT YELL",789,296] ,["7505JVJ3967 10KT W&Y",561,400] ,["7505JVJ3970 10KT Y&W",565,487] ,["7505JVJ3918 10KT W&Y",572,580] ,["7505G3352/E 10KT YELL",734,556] ,["7505G3352/P 10KT YELL",821,560] ,["7506JVJ3509 10KT WG",348,65] ,["7506JVJ3536 10KT WG",339,143] ,["7506JVJ3998 10KT WG",337,219] ,["7506JVJ4078 10KT WG",354,287] ,["7506G3154P/MTZ10KT YELL",118,387] ,["7506G3154E/MTZ10KT YELL",112,482] ,["7506JVJ3667MTZ10KT YELL",125,568] ,["7506G3483E/BT 10KT YELL",331,482] ,["7506JVJ4101/BT10KT YELL",334,571] ,["7506G3516P/AQ 10KT WG",541,79] ,["7506G3516E/AQ 10KT WG",674,86] ,["7506JVJ4006/AQ10KT WG",796,145] ,["7506FIG3520EBT10KT YELL",541,375] ,["7506ICG3520PBT10KT YELL",674,337] ,["7506FIJ4074/BT10KT YELL",794,378] ,["7506JVJ4042/AQ10KT WG",544,515] ,["7506JVJ4019/AQ10KT WG",678,565] ,["7506ICG2945P0210KT WG",793,525] ,["7507JVJ3910 10KT WG",93,56] ,["7507JVJ3194 10KT WG",238,43] ,["7507JVJ3047 10KT WG",377,56] ,["7507G3147/B 10KT YELL",232,122] ,["7507JVJ3143 10KT YELL",83,171] ,["7507JVJ4076 10KT YELL",229,197] ,["7507JVJ3196 10KT YELL",368,178] ,["7507JVJ3699 10KT YELL",116,368] ,["7507G3027/P 10KT YELL",234,314] ,["7507G3027/E 10KT YELL",345,316] ,["7507G3526/P 10KT YELL",138,524] ,["7507JVJ4071 10KT WG",335,557] ,["7507JVJ4071 10KT PINK",330,601] ,["7507JVJ4071 10KT YELL",332,508] ,["7507G3019/E 10KT YELL",787,92] ,["7507G3013E/WH 10KT YELL",791,221] ,["7507G3155/E 10KT YELL",799,335] ,["7507G2651/E 10KT WG",795,455] ,["7507G3153/E 10KT WG",527,587] ,["7507G2383E10 10KT YELL",662,564] ,["7507G2674E/10 10KT WG",803,569] ,["7508ICJ3732/7014KT Y&W",339,60] ,["7508ICJ3644/7018KT Y&W",339,162] ,["7508ICJ3956/3014KT W&Y",341,276] ,["7508ICJ4083/5014KT Y&W",337,372] ,["7508ICJ3912/5014KT Y&W",134,542] ,["7508ICJ3994/7014KT Y&W",321,540] ,["7508ICG3484P/S10KT WG",581,78] ,["7508JVJ3063/S 10KT WG",576,156] ,["7508JVJ3051/S 10KT WG",773,35] ,["7508JVJ2460/S 10KT WG",771,90] ,["7508JVJ3969/S 10KT WG",770,139] ,["7508ICJ3046/S 10KT WG",772,204] ,["7508ICJ3571/5014KT WG",541,386] ,["7508ICJ3713/5014KT WG",673,335] ,["7508FIJ3099/5018KT WG",805,316] ,["7508FIG1160P1014KT WG",497,528] ,["7508FIG1148P1014KT WG",579,523] ,["7508FIG2719P1014KT WG",654,521] ,["7508FIG1159E1514KT WG",527,614] ,["7508FIG1147E1514KT WG",643,613] ,["7508FIG2719E1514KT WG",768,597] ,["7509ICJ3913/0910KT WG",112,56] ,["7509ICJ3913/1110KT YELL",111,114] ,["7509ICJ3913/1410KT WG",116,178] ,["7509JVJ3300/0014KT WG",279,71] ,["7509JVJ3300/0014KT YELL",372,111] ,["7509ICJ4036/0910KT YELL",101,350] ,["7509ICJ3825/0510KT Y&W",227,343] ,["7509ICJ3825/W 10KT WG",231,399] ,["7509ICJ3785/2010KT YELL",370,347] ,["7509ICJ3236/0310KT WG",80,486] ,["7509ICJ3236/W 10KT WG",97,554] ,["7509ICJ3235/0310KT WG",231,481] ,["7509ICJ3235/W 10KT WG",230,545] ,["7509ICJ3248/0410KT WG",354,568] ,["7509ICJ3248/W 10KT WG",341,609] ,["7509JVJ908 10KT YELL",771,67] ,["7509JVJ908/W 10KT YELL",818,122] ,["7509ICJ3334/0814KT WG",801,206] ,["7509G1200E/00 14KT WG",608,388] ,["7509G1200P/50 14KT WG",731,386] ,["7509JVJ2181/5014KT PINK",524,590] ,["7509JVJ2181/7514KT YELL",673,582] ,["7509JVJ2181/0014KT WG",803,585] ,["7510G3341/P 10KT YWP",337,110] ,["7510JVJ3914 10KT WYP",344,232] ,["7510ICJ3749/1010KT WG",342,303] ,["7510ICJ3749/1010KT YELL",341,338] ,["7510ICJ3749/1010KT PINK",343,382] ,["7510G3398/E 10KT YELL",109,417] ,["7510JVJ4032/PS10KT PINK",121,495] ,["7510JVJ4031/PS10KT YELL",107,582] ,["7510G3156 10KT WG",320,572] ,["7510G3492P/OP 10KT YELL",534,134] ,["7510G3492E/OP 10KT YELL",626,107] ,["7510JVJ4098/OP10KT YELL",770,133] ,["7510ICG3388PWT10KT YELL",518,368] ,["7510ICG3376PWT10KT YELL",587,332] ,["7510ICJ3972WTZ10KT YELL",702,373] ,["7510ICG3498POP10KT WG",512,517] ,["7510ICG3498EOP10KT WG",603,512] ,["7510ICJ4079/OP10KT WG",583,589] ,["7510G3436P/OP 10KT PINK",781,510] ,["7510JVJ4027/OP10KT PINK",770,597] ,["7511ICG2079P0610KT W&PK",67,125] ,["7511ICG2079E0610KT W&PK",149,128] ,["7511G3353/P 10KT WG",243,107] ,["7511G3209/P 10KT PINK",349,76] ,["7511JVJ1730 10KT W&PK",345,179] ,["7511G3383E/PTZ10KT YELL",117,368] ,["7511G3383P/PTZ10KT YELL",223,343] ,["7511ICG3482P0210KT PINK",344,333] ,["7511G2538/P 10KT W&PK",98,529] ,["7511ICJ3940/0910KT W&PK",213,555] ,["7511ICJ3922/0910KT W&PK",358,558] ,["7511ICJ3732/W 14KT PINK",777,64] ,["7511JVJ3284 10KT PINK",787,129] ,["7511JVJ3189/W 14KT PINK",783,197] ,["7511G3519PPTZ 10KT PINK",588,463] ,["7511G3412P/MRG10KT PINK",667,486] ,["7511G3413P/RHG10KT PINK",762,463] ,["7511JVJ4040PTZ10KT PINK",534,563] ,["7511JVJ4016MRG10KT PINK",658,590] ,["7511JVJ4008RHG10KT PINK",793,565] ,["7512ICG3543P0510KT YELL",298,125] ,["7512ICG3550PGA10KT YELL",375,147] ,["7512FIJ4115/GA10KT YELL",377,189] ,["7512ICG3127P0210KT YELL",131,392] ,["7512ICG3127E0410KT YELL",122,487] ,["7512ICJ4096/0210KT YELL",124,574] ,["7512ICG3396PAM10KT WG",269,527] ,["7512G3177P/WH 10KT WG",355,469] ,["7512G3170/P 10KT W&Y",345,590] ,["7512ICG2891P0510KT YELL",493,167] ,["7512ICG2995P0510KT YELL",575,172] ,["7512ICG3401P1410KT YELL",658,169] ,["7512ICG3372P1410KT YELL",748,170] ,["7512ICG3421P1110KT YELL",832,171] ,["7512ICG3400P1410KT WG",508,357] ,["7512ICG2692P0510KT WG",584,375] ,["7512ICG1846P1810KT WG",660,358] ,["7512ICG2129P0510KT WG",759,378] ,["7512ICG3308P0910KT WG",825,363] ,["7512ICG3525P0910KT W&PK",523,581] ,["7512ICG3034P0510KT W&PK",617,581] ,["7512ICG3084P0510KT W&Y",703,584] ,["7512ICG2897P1410KT WG",790,588] ,["7513JVJ704/GA 10KT YELL",102,101] ,["7513JVJ3199/SS10KT WG",232,151] ,["7513JVJ404/SS 10KT WG",349,85] ,["7513JVJ3059 10KT W&Y",117,361] ,["7513G2004 SIL/10Y",306,360] ,["7513JVJ2413/SLSIL/10Y",92,567] ,["7513JVJ1721 SIL/10Y",234,508] ,["7513JVJ3182/OXSIL/10Y",365,583] ,["7513WB458 10KT W&PK",560,324] ,["7513JVJ3533/G 10KT WG",563,394] ,["7513WB312/G 10KT Y&W",563,462] ,["7513WB449/G 10KT WG",560,529] ,["7513WB224/G 10KT Y&W",562,609] ,["7513JVJ3836PBK10KT WG",778,101] ,["7513JVJ3875/0XSILVER",785,211] ,["7513ICG1759/BKSILVER",753,464] ,["7513JVJ1968/BK10KT WG",765,582] ,["7514G3233P/WH 10KT YELL",338,97] ,["7514ICG2705P0210KT YELL",330,176] ,["7514G3491/P 10KT YELL",336,252] ,["7514G3531/P 10KT WG",334,344] ,["7514G3545/P 10KT Y&W",120,460] ,["7514JVJ4108 10KT YELL",229,524] ,["7514JVJ737 10KT YELL",115,606] ,["7514JVJ3746 10KT YELL",345,595] ,["7514G3028P/AM 10KT YELL",567,90] ,["7514JVJ3478/AM10KT YELL",521,169] ,["7514G2913P/PTZ10KT WG",659,91] ,["7514JVJ3688/PT10KT WG",661,167] ,["7514G3309P/GA 10KT YELL",743,78] ,["7514JVJ3939/GA10KT YELL",799,170] ,["7514GEM879E/BT10KT WG",529,364] ,["7514JVJ3694/BT10KT WG",642,393] ,["7514JVJ4025/BT10KT WG",792,390] ,["7514G2539P/R 10KT YELL",572,522] ,["7514G2741P/BT SILVER",643,562] ,["7514G3216P/E 10KT YELL",741,524] ,["7514G3216E/E 10KT YELL",813,508] ,["7514JVJ3863/E 10KT YELL",788,593] ,["7515G3530P/WH 10KT YELL",140,170] ,["7515G3530E/WH 10KT YELL",277,154] ,["7515JVJ4099/WH10KT YELL",228,365]]; } //for mouseover on flyer for price function xyp75(book) { //alert("xyp75(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 (isMobileDevice) { alert("aaaa"); } 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 xy75(book) { var x,y; var zoom = document.documentElement.clientWidth / window.innerWidth; //alert(zoom); x=(mouse_x/zoom)-(document.getElementById("div621").offsetLeft/zoom); //alert(mouse_x+" | "+zoom+" | "+document.getElementById("div621").offsetLeft); //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; } } //alert(x); //alert(document.getElementById("div621").style.width); //874 844 //alert(x); //if (flyershown.substr(2,2)=="01") { x=x-parseInt(document.getElementById("div621").style.width)/2; } //alert(document.getElementById("flyer_ndx").width); //1 for mobile if (isMobileDevice) { x=x-parseInt(document.getElementById("div621").offsetLeft/zoom); //85 x=x/parseInt(document.getElementById("div621").style.width)*470; if (flyershown.substr(2,2)=="01") { x=x; }else{ if (isOdd(Number(flyershown.substr(2,2)))) { x=x+470; } } }else{ 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 } //alert(flyershown+" | "+fs); //alert(xy.length); 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) } } function xy75old(book) { //xy75(7502) book is actually the spread winsize(); var x,y; x=mouse_x-document.getElementById("div620t1").offsetLeft-document.getElementById("flyer_sprd").offsetLeft; x=x/document.getElementById("flyer_ndx").width*230; //ok to use flyer_ndx becuase that was how it was scaled y=((mouse_y-document.getElementById("div620").offsetTop)/winW*1280); //use winW*1280 instead of winH*752 because scaled by width var zoom = document.documentElement.clientWidth / window.innerWidth; y=y/zoom; loadxy75(); var minx; minx=0; for (i=0; i0) { ItemDetail(xy[minx][0].substr(4,10),xy[minx][0].substr(14,10),"1","","",""); //item,karat,canedit("Y" for yes) } }