//REPLACE L, G, K, Y, P, W, R, //change all function names function loadxy73() { //alert("loadxy73() "); //next line, omit var and it becomes a global array (use xy=[ not var xy=[ ) xy = [ ["",0,0] ,["7301G3516P/AQ 10KT WG",112,118] ,["7301G3516E/AQ 10KT WG",112,230] ,["7301JVJ4006/AQ10KT WG",143,431] ,["7302G3373P/AM 10KT YELL",110,80] ,["7302G3373E/AM 10KT YELL",111,148] ,["7302JVJ3948/AM10KT YELL",113,219] ,["7302ICG3496P0310KT YELL",227,388] ,["7302JVJ3909 10KT YELL",117,505] ,["7302JVJ3917 10KT YELL",118,583] ,["7302ICJ4036/0910KT YELL",339,496] ,["7302G3408P/WH 10KT YELL",755,94] ,["7302G3285/P 10KT YELL",702,246] ,["7302G3509/E 10KT YELL",751,438] ,["7302G3509/P 10KT YELL",833,441] ,["7302JVJ3970 10KT Y&W",773,574] ,["7303G3232P/WH 10KT PINK",84,90] ,["7303G3302/P 10KT W&PK",178,89] ,["7303GEM580 10KT YELL",56,242] ,["7303GEM804 10KT YELL",158,238] ,["7303ICG3172P0210KT W&Y",181,410] ,["7303JVJ3746 10KT WG",113,538] ,["7303JVJ737 10KT YELL",112,600] ,["7303G3234/P 10KT PK&W",334,66] ,["7303ICG2705P0210KT YELL",339,125] ,["7303G3233P/WH 10KT YELL",332,212] ,["7303ICG3127P0210KT YELL",509,98] ,["7303ICG3127E0410KT YELL",604,67] ,["7303G3383E/PTZ10KT YELL",739,70] ,["7303G3383P/PTZ10KT YELL",832,118] ,["7303JVJ4042PTZ10KT YELL",663,208] ,["7303ICJ3961/0210KT YELL",560,358] ,["7303ICJ3962/0210KT YELL",559,426] ,["7303ICJ3965/0210KT YELL",556,481] ,["7303ICJ3963/0210KT YELL",554,544] ,["7303ICJ3964/0210KT YELL",550,606] ,["7303G3422EPTZ 10KT YELL",737,417] ,["7303G3422PPTZ 10KT YELL",833,415] ,["7303JVJ4030PTZ10KT YELL",765,571] ,["7304G3358/P 10KT YELL",118,103] ,["7304ICJ3517/0210KT YELL",117,189] ,["7304G3019/E 10KT YELL",232,353] ,["7304G3306/P 10KT Y&W",67,504] ,["7304G3306/E 10KT Y&W",155,512] ,["7304JVJ3916 10KT Y&W",122,591] ,["7304G3352/E 10KT YELL",303,113] ,["7304G3352/P 10KT YELL",387,91] ,["7304JVJ3918 10KT W&Y",345,207] ,["7304JVJ3206 10KT Y&W",747,49] ,["7304JVJ3737 10KT Y&W",808,125] ,["7304G3380/P 10KT YELL",697,250] ,["7304G3310/P 10KT YELL",520,397] ,["7304G3310/E 10KT YELL",523,471] ,["7304ICG3387P0310KT YELL",610,441] ,["7304ICG3229EWH10KT YELL",560,568] ,["7304JVJ4081 10KT Y&W",772,383] ,["7304JVJ3957 10KT Y&W",779,521] ,["7304JVJ3967 10KT W&Y",777,596] ,["7305JVJ3051/S 10KT WG",111,50] ,["7305JVJ2460/S 10KT WG",114,123] ,["7305JVJ3969/S 10KT WG",118,212] ,["7305ICG3484PSA10KT WG",205,391] ,["7305ICJ3046/S 10KT WG",110,515] ,["7305JVJ3063/S 10KT WG",122,580] ,["7305G1200P/13 10KT WG",279,102] ,["7305G1200E/25 10KT WG",383,101] ,["7305JVJ2181/1210KT WG",335,188] ,["7305ICJ3236/0310KT WG",551,34] ,["7305ICJ3236/W 10KT WG",569,73] ,["7305ICJ3248/0410KT WG",560,121] ,["7305ICJ3248/W 10KT WG",551,167] ,["7305JVJ908 10KT YELL",686,277] ,["7305JVJ908/W 10KT YELL",654,336] ,["7305ICJ3235/0310KT WG",553,458] ,["7305ICJ3235/W 10KT WG",551,507] ,["7305ICJ3825/0510KT Y&W",549,554] ,["7305ICJ3825/W 10KT Y&W",563,610] ,["7305G2674E/05 10KT WG",733,70] ,["7305G3150/E 10KT YELL",815,173] ,["7305ICJ3913/0910KT WG",778,441] ,["7305ICJ3913/1110KT YELL",779,545] ,["7305ICJ3913/1410KT WG",778,609] ,["7306ICG1159E1514KT WG",70,133] ,["7306ICG1160P1014KT WG",52,59] ,["7306ICG1147E1514KT WG",172,141] ,["7306ICG1148P1014KT WG",118,65] ,["7306ICG2719E1514KT WG",103,221] ,["7306ICG2719P1014KT WG",199,62] ,["7306ICJ4083/5010KT Y&W",227,376] ,["7306JVJ3300/1010KT WG",77,513] ,["7306JVJ3300/2514KT YELL",167,541] ,["7306ICJ3912/5014KT Y&W",324,65] ,["7306ICJ3907/5010KT YELL",340,138] ,["7306ICJ3732/7014KT Y&W",338,214] ,["7306ICJ3956/3014KT W&Y",339,524] ,["7306ICJ3785/2010KT YELL",341,592] ,["7306ICJ3994/7014KT Y&W",554,401] ,["7306ICJ3713/5014KT WG",775,77] ,["7306FB104P/75 14KT YELL",701,250] ,["7306ICJ3571/5014KT WG",769,387] ,["7306ICJ3644/7014KT Y&W",774,497] ,["7306ICJ3099/5014KT WG",772,587] ,["7307G3519PPTZ 10KT PINK",55,73] ,["7307G3412P/MRG10KT PINK",116,127] ,["7307G3413P/RHG10KT PINK",179,87] ,["7307ICG3482P0210KT PINK",191,326] ,["7307JVJ4008RHG10KT PINK",110,429] ,["7307JVJ4016MRG10KT PINK",107,507] ,["7307JVJ4040PTZ10KT PINK",107,592] ,["7307JVJ3938PTZ10KT PINK",332,442] ,["7307G3209/P 10KT WG",528,75] ,["7307G3353/P 10KT WG",612,125] ,["7307G3153/E 10KT WG",523,182] ,["7307ICG2945P0210KT WG",809,69] ,["7307JVJ4019/AQ10KT WG",772,148] ,["7307G3126P/MTZ10KT WG",680,314] ,["7307JVJ3914 10KT WYP",549,443] ,["7307JVJ4007 10KT WG",556,511] ,["7307JVJ4014 10KT YELL",551,595] ,["7307G3154E/MTZ10KT YELL",743,479] ,["7307G3154P/MTZ10KT YELL",835,471] ,["7307JVJ3667MTZ10KT YELL",769,596] ,["7308G3365E/WH 10KT YELL",86,80] ,["7308G3365P/WH 10KT YELL",187,95] ,["7308JVJ3982/WH10KT YELL",117,226] ,["7308G3281P/WH 10KT YELL",227,393] ,["7308G3428P/WH 10KT YELL",88,501] ,["7308JVJ4035/WH10KT YELL",107,584] ,["7308ICG3427PWH10KT YELL",276,96] ,["7308ICG3427EWH10KT YELL",371,90] ,["7308G3013E/WH 10KT YELL",339,203] ,["7308ICG3414EWH10KT YELL",304,533] ,["7308ICG3414PWH10KT YELL",395,547] ,["7308ICG2079P0610KT W&PK",510,100] ,["7308ICG2079E0610KT W&PK",592,93] ,["7308ICJ3940/0910KT W&PK",768,54] ,["7308ICJ3922/0910KT W&PK",786,124] ,["7308JVJ1730 10KT W&PK",772,197] ,["7308ICJ3749/1010KT WG",695,305] ,["7308ICJ3749/1010KT YELL",688,344] ,["7308ICJ3749/1010KT PINK",687,382] ,["7308JVJ4078 10KT WG",782,480] ,["7308JVJ3509 10KT YELL",779,541] ,["7308JVJ3536 10KT WG",783,614] ,["7309WB224G/SL SIL/10Y",108,43] ,["7309WB458 10KT W&Y",117,125] ,["7309JVJ3059 10KT W&Y",112,213] ,["7309G2004 SIL/10Y",209,358] ,["7309JVJ3836PBK10KT WG",124,477] ,["7309JVJ3875/OXSILVER",125,578] ,["7309JVJ3182/OXSIL/10Y",359,394] ,["7309JVJ404/SL 10KT WG",350,491] ,["7309ICG2692P0510KT WG",829,352] ,["7309ICG2995P0510KT YELL",728,564] ,["7309ICG3421P1110KT YELL",667,414] ,["7309ICG3084P0510KT W&Y",830,576] ,["7309ICG2897P1410KT WG",832,462] ,["7309ICG3372P1410KT YELL",712,156] ,["7309ICG2891P0510KT YELL",771,203] ,["7309ICG3401P1410KT YELL",835,151] ,["7309JVJ3143 10KT YELL",550,46] ,["7309JVJ3047 10KT WG",550,96] ,["7309JVJ4076 10KT YELL",550,147] ,["7309JVJ3194 10KT WG",550,211] ,["7309JVJ3196 10KT YELL",550,282] ,["7309JVJ3947 10KT YELL",550,516] ,["7309ICJ4039/0210KT YELL",550,583] ,["7310G3370P/R 10KT YELL",64,78] ,["7310G3370E/R 10KT YELL",150,73] ,["7310JVJ3955/R 10KT YELL",114,215] ,["7310ICG3498POP10KT WG",190,373] ,["7310ICG3498EOP10KT WG",261,363] ,["7310G3436P/OP 10KT YELL",115,518] ,["7310JVJ4027/OP10KT YELL",118,599] ,["7310ICG3376PWT10KT YELL",299,105] ,["7310ICG3388PWT10KT YELL",386,125] ,["7310JVJ4034 10KT YELL",336,231] ,["7310G3216P/BT 10KT WG",510,87] ,["7310GEM879E/BT10KT WG",592,89] ,["7310JVJ4025/BT10KT WG",563,170] ,["7310JVJ3694/BT10KT WG",568,247] ,["7310G3028P/AM 10KT YELL",710,80] ,["7310G2913P/PTZ10KT WG",773,73] ,["7310G3309P/R 10KT YELL",840,86] ,["7310JVJ3478/AM10KT YELL",772,253] ,["7310JVJ3688PTZ10KT WG",777,316] ,["7310JVJ3939/R 10KT YELL",780,397] ,["7310G2539P/PTZ10KT YELL",659,548] ,["7310G2741P/BT SILVER",733,548] ,["7311G3155/E 10KT YELL",93,200] ,["7311G3147/B 10KT YELL",287,198] ,["7311G3156 10KT YELL",215,277] ,["7311JVJ3998 10KT YELL",176,346] ,["7311JVJ3945 10KT YELL",301,376] ]; //alert("ok1"); } //for mouseover on flyer for price function xyp73(book) { //alert("xyp73(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 xy73(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) } }