//REPLACE L, G, K, Y, P, W, R, //change all function names function loadxy70() { //next line, omit var and it becomes a global array (use xy=[ not var xy=[ ) xy = [ ["",0,0] ,["7001G3373P/AM 10KT YELL",117,138] ,["7001G3373E/AM 10KT YELL",108,355] ,["7001JVJ3948/AM10KT YELL",125,481] ,["7002G2538/P 10KT W&PK",98,75] ,["7002ICG2079P0610KT W&PK",57,213] ,["7002ICG2079E0610KT W&PK",131,246] ,["7002ICJ3922/0910KT W&PK",91,371] ,["7002ICJ3940/0910KT W&PK",92,435] ,["7002JVJ3756 10KT W&PK",93,509] ,["7002JVJ1730 10KT W&PK",90,587] ,["7002G3519PPTZ 10KT PINK",529,114] ,["7002G3412P/MRG10KT PINK",596,167] ,["7002G3413P/RHG10KT PINK",672,129] ,["7002JVJ4008RHG10KT PINK",740,200] ,["7002G3353/P 10KT WG",768,104] ,["7002ICG3287P0210KT WG",837,85] ,["7002JVJ3284 10KT PINK",574,255] ,["7002ICJ3908/0210KT PINK",573,316] ,["7002ICJ3732/W 10KT PINK",568,375] ,["7002JVJ3998 10KT PINK",572,434] ,["7002G3232P/WH 10KT PINK",541,572] ,["7002G3408P/PK 10KT PINK",678,606] ,["7003G3422PPTZ 10KT YELL",93,128] ,["7003G3362P/PTZ10KT YELL",191,118] ,["7003G3383E/PTZ10KT YELL",320,100] ,["7003G3383P/PTZ10KT YELL",391,71] ,["7003JVJ4042PTZ10KT YELL",179,215] ,["7003ICG3258E0510KT PINK",327,213] ,["7003JVJ4032/PS10KT YELL",95,349] ,["7003G3155/E 10KT YELL",217,351] ,["7003JVJ4031/PS10KT YELL",350,338] ,["7003G3358/P 10KT YELL",75,564] ,["7003ICG3117P0210KT YELL",205,500] ,["7003G3360/P 10KT YELL",343,470] ,["7003G3285/P 10KT YELL",345,561] ,["7003G2860/E 10KT YELL",519,59] ,["7003G3209/P 10KT YELL",639,82] ,["7003JVJ3699 10KT YELL",527,133] ,["7003JVJ3781 10KT YELL",624,185] ,["7003JVJ2194 10KT YELL",803,58] ,["7003JVJ3782 10KT WG",796,140] ,["7003ICJ3964/0210KT YELL",802,218] ,["7003ICJ3793/0210KT YELL",802,299] ,["7003JVJ3958 10KT Y&W",798,391] ,["7003JVJ3758 10KT WG",791,482] ,["7003JVJ3760 10KT YELL",793,578] ,["7004ICJ3235/0310KT WG",96,43] ,["7004ICJ3235/W 10KT WG",99,88] ,["7004ICJ3248/0410KT WG",104,136] ,["7004ICJ3248/W 10KT WG",92,190] ,["7004ICJ3236/0310KT WG",98,239] ,["7004ICJ3236/W 10KT WG",111,290] ,["7004JVJ908 10KT YELL",76,362] ,["7004JVJ908/W 10KT YELL",120,418] ,["7004ICJ3825/0510KT Y&W",96,464] ,["7004ICJ3825/W 10KT Y&W",109,506] ,["7004ICJ3913/0910KT PINK",292,57] ,["7004ICJ3913/1110KT YELL",349,115] ,["7004ICJ3913/1410KT WG",312,174] ,["7004G3150/E 10KT YELL",539,105] ,["7004ICJ3477/0910KT YELL",648,92] ,["7004G1710/P 10KT YELL",805,88] ,["7004ICJ4036/0910KT YELL",567,225] ,["7004JVJ3917 10KT YELL",636,162] ,["7004ICJ3052/0610KT WG",802,202] ,["7004ICJ3052/W 10KT YELL",805,254] ,["7004ICG3034P0510KT W&Y",528,420] ,["7004ICG3401P1410KT YELL",598,426] ,["7004ICG3421P1110KT YELL",669,428] ,["7004ICG2891P0510KT YELL",734,441] ,["7004ICG3372P1410KT YELL",798,417] ,["7004ICG1846P1810KT WG",524,549] ,["7004ICG2897P1410KT WG",584,584] ,["7004ICG3400P1410KT YELL",692,568] ,["7004ICG3084P0510KT W&Y",777,571] ,["7005G3220E/PTZ10KT PINK",344,202] ,["7005G2333P/R 10KT PINK",322,343] ,["7005JVJ3158/R 10KT PINK",190,413] ]; } //for mouseover on flyer for price function xyp70(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 xy70(book) { //alert('book='+book); // if (mouse_down_x>0) { // if ((mouse_down_x-mouse_x)>20) { // flyerpg("N"); // return; // } // if ((mouse_down_x-mouse_x)<(-20)) { // flyerpg("P"); // return; // } // } 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) } }