//REPLACE L, G, K, Y, P, W, R, //change all function names function loadxy24() { //next line, omit var and it becomes a global array (use xy=[ not var xy=[ ) xy = [ ["",0,0] ,["2401G2522/P 10KT WG",166,265] ,["2401G2521/P 10KT WG",291,272] ,["2401JVJ3336 10KT Y&W",235,394] ,["2402ICJ3334/0814KT WG",91,62] ,["2402ICG2117P0310KT PINK",100,250] ,["2402ICG2117P0310KT PINK",67,391] ,["2402ICG2441P0210KT W/Y/P",196,325] ,["2402ICG2441P0210KT W/Y/P",257,230] ,["2402G2615/P 10KT PINK",321,325] ,["2402ICG2614P0310KT WG",379,274] ,["2402ICJ3283/0210KT WG",77,497] ,["2402JVJ3282 10KT PINK",110,529] ,["2402ICG2279P0210KT PK&W",206,554] ,["2402ICG2079E0610KT W&PK",296,538] ,["2402ICG2079P0610KT W&PK",369,475] ,["2402ICG2532P0310KT W&PK",529,276] ,["2402ICG2534P0310KT Y&W",628,231] ,["2402ICG2536P0410KT W&PK",710,289] ,["2402ICG2293P0310KT W&PK",809,261] ,["2402ICJ3179/0310KT PK&W",801,367] ,["2402ICG2509E0510KT W&PK",791,504] ,["2402ICJ3251/0310KT W&PK",676,540] ,["2402ICJ2887/0410KT W&PK",610,601] ,["2402ICJ2886/0410KT W&PK",518,533] ,["2403ICG2557P0410KT YELL",101,300] ,["2403ICG2357P0914KT WG",209,280] ,["2403ICJ3235/0310KT WG",337,273] ,["2403ICJ3236/0310KT WG",357,364] ,["2403ICJ3248/0410KT WG",315,432] ,["2403JVJ908 10KT YELL",126,409] ,["2403JVJ908/W 10KT YELL",161,472] ,["2403G2514 10KT WG",246,606] ,["2403JVJ3310/AQ10KT WG",103,63] ,["2403JVJ3169MRG14KT PINK",295,54] ,["2403JVJ3327 10KT YELL",550,257] ,["2403JVJ3326 10KT WG",643,309] ,["2403JVJ3331/0010KT WG",707,237] ,["2403JVJ3301 10KT YELL",795,269] ,["2403ICG1334P0810KT WG",568,479] ,["2403ICG2508P/R10KT YELL",647,501] ,["2403ICG2511P3010KT PINK",725,570] ,["2403ICG1775P1010KT W&PK",798,531] ,["2404G2538/P 10KT W&PK",120,78] ,["2404G2550/P 10KT PK&W",71,274] ,["2404G2550/E 10KT PK&W",161,236] ,["2404JVJ3318 10KT PK&W",179,313] ,["2404ICG2395P0310KT WG",281,345] ,["2404ICG2395P0310KT WG",308,237] ,["2404JVJ3194 10KT YELL",373,318] ,["2404JVJ3047 10KT PINK",368,406] ,["2404JVJ3284 10KT PINK",364,480] ,["2404G2571 10KT W&PK",150,422] ,["2404G2571 10KT W&PK",202,477] ,["2404G2184E/MRG10KT PINK",200,579] ,["2404G2184P/MRG10KT PINK",98,572] ,["2404JVJ3317MRG10KT PINK",328,583] ,["2404G2567/PX3 10KT W/Y/P",539,48] ,["2404G2567/PX3 10KT W/Y/P",564,86] ,["2404G2567/PX3 10KT W/Y/P",623,76] ,["2404G2291/P 10KT W&PK",529,250] ,["2404G2507/P 10KT WG",643,251] ,["2404G2533/P 10KT PINK",775,249] ,["2404JVJ3218 10KT W&PK",569,339] ,["2404JVJ3285 10KT PINK",704,317] ,["2404JVJ1730 10KT W&PK",793,350] ,["2404ICG2572E0510KT PINK",581,438] ,["2404ICG2543P0210KT YELL",521,588] ,["2404ICJ3273/0310KT YELL",623,546] ,["2404G2457E/OP 10KT PINK",753,493] ,["2404G2457P/OP 10KT PINK",834,538] ,["2404JVJ3216/OP10KT PINK",748,593] ,["2405JVJ3312RBL10KT YELL",312,252] ,["2405JVJ3293/GA10KT YELL",171,369] ,["2405ICG2611E0510KT PINK",289,388] ,["2405FIJ3333/0310KT W&PK",170,235] ]; } function xy24(book) { //xy77(7702) book is actually the spread //alert(book); var x,y; var zoom = document.documentElement.clientWidth / window.innerWidth; x=(mouse_x/zoom)-(document.getElementById("div620t1").offsetLeft/zoom)-(document.getElementById("flyer_sprd").offsetLeft/zoom); 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/(document.getElementById("flyer_spread").height)*675; y=y/zoom; loadxy24(); var minx; minx=0; 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) } }