//REPLACE L, G, K, Y, P, W, R, //change all function names function loadxy59() { //next line, omit var and it becomes a global array (use xy=[ not var xy=[ ) xy = [ ["",0,0] ,["5901ICG3226P0210KT YELL",347,171] ,["5902JVJ3841/TZ10KT WG",106,119] ,["5902G3195P/TZ 10KT WG",189,61] ,["5902G3195E/TZ 10KT WG",298,72] ,["5902G3212P/TZ 10KT WG",387,92] ,["5902G3209/P 10KT PINK",101,203] ,["5902FIG3225P0210KT PINK",203,190] ,["5902JVJ3758 10KT PINK",142,276] ,["5902ICG2927P0210KT YELL",353,255] ,["5902G2538/P 10KT W&PK",357,427] ,["5902G2913P/BT 10KT WG",64,448] ,["5902G2913E/BT 10KT WG",133,443] ,["5902G3028P/PTZ10KT YELL",220,462] ,["5902JVJ3694/BT10KT WG",134,535] ,["5902JVJ3694PTZ10KT YELL",129,570] ,["5902JVJ3694/AM10KT WG",127,614] ,["5902G3222/P 10KT WG",267,574] ,["5902ICG3137P0210KT YELL",778,63] ,["5902G3232P/WH 10KT YELL",535,260] ,["5902G2291/P 10KT W&PK",535,422] ,["5902G3108PPTZ 10KT YELL",520,557] ,["5902JVJ3656/GA10KT YELL",629,602] ,["5903ICJ3236/0310KT WG",86,27] ,["5903ICJ3236/W 10KT WG",100,76] ,["5903ICJ3235/0310KT WG",220,39] ,["5903ICJ3235/W 10KT WG",228,99] ,["5903ICJ3248/0410KT WG",364,70] ,["5903ICJ3248/W 10KT WG",360,126] ,["5903ICJ3580/3014KT W&PK",360,237] ,["5903JVJ908 10KT YELL",98,422] ,["5903JVJ908/W 10KT YELL",183,463] ,["5903ICJ3644/7014KT Y&W",361,404] ,["5903ICJ3747/3014KT YELL",98,544] ,["5903ICJ3477/0914KT WG",222,594] ,["5903ICJ3785/2010KT YELL",351,543] ,["5903JVJ3536 10KT YELL",528,51] ,["5903JVJ3536 10KT WG",536,86] ,["5903JVJ3536 10KT PINK",557,118] ,["5903G3227/P 10KT W/Y/P",683,80] ,["5903G3153/E 10KT WG",817,74] ,["5903JVJ3196 10KT YELL",724,159] ,["5903JVJ3194 10KT WG",777,202] ,["5903ICJ3350/0210KT PINK",755,257] ,["5903JVJ3725 10KT PK&W",539,240] ,["5903JVJ3728 10KT YELL",539,420] ,["5903G3218/BRC 10KT YELL",568,545] ,["5903G3151/E 10KT YELL",601,607] ,["5903G3151/P 10KT YELL",679,571] ,["5903G3142/P 10KT YELL",723,464] ,["5903G2852/E 10KT YELL",799,454] ,["5903ICJ3818/0210KT YELL",796,546] ,["5904ICG2629P0210KT PK&W",88,62] ,["5904ICG3064P0210KT PINK",199,66] ,["5904ICG2931P0210KT PK&W",280,65] ,["5904G2860/E 10KT PINK",373,66] ,["5904ICG3007E0510KT PINK",81,148] ,["5904ICJ3627/0210KT PINK",174,157] ,["5904JVJ3284 10KT PINK",112,231] ,["5904JVJ2194 10KT YELL",111,352] ,["5904G3085/E 10KT YELL",77,444] ,["5904G3122/P 10KT YELL",164,431] ,["5904JVJ3782 10KT WG",120,524] ,["5904JVJ1599 10KT WG",112,594] ,["5904JVJ3760 10KT YELL",358,236] ,["5904JVJ3781 10KT YELL",357,405] ,["5904ICG3034P0510KT W&PK",697,86] ,["5904ICG2897P1410KT PINK",764,53] ,["5904ICG3066P0510KT W&PK",771,131] ,["5904ICG3082P0510KT W&PK",838,92] ,["5904JVJ3756 10KT W&Y",544,240] ,["5904ICJ3793/0210KT YELL",539,406] ,["5904ICG3116P0210KT W&Y",672,406] ,["5904ICG3095P0210KT YELL",757,383] ,["5904ICG2924P0210KT YELL",837,407] ,["5904ICG3117P0210KT YELL",541,583] ,["5904ICG3134P0210KT YELL",622,578] ,["5904ICG3134E0410KT YELL",715,577] ,["5904G3013E/WH 10KT YELL",813,581] ,["5905FJ125-8 10KT WG",73,100] ,["5905FG104P-7 10KT WG",164,47] ,["5905FJ131-8 10KT YELL",156,143] ,["5905FJ101-5 10KT WG",241,103] ,["5905FG102P-4 10KT W&Y",330,67] ,["5905FG103P-7 10KT WG",398,118] ,["5905Natali 10KT YELL",115,400] ,["5905Monet 10KT WG",266,405] ,["5905Rose 10KT WG",374,396] ,["5905Rose 10KT PINK",173,475] ,["5905FJ141-C 10KT WG",271,474] ,["5905FJ143-A 10KT YELL",379,454] ]; } function xy59(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; loadxy59(); 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) } }