//REPLACE L, G, K, Y, P, W, R, //change all function names function loadxy32() { //next line, omit var and it becomes a global array (use xy=[ not var xy=[ ) xy = [ ["",0,0] ,["3201CH2473EPTZ10KT PINK",189,122] ,["3201CH3313/PTZ10KT PINK",156,407] ,["3201CH2473PPTZ10KT PINK",612,437] ,["3203CH2576/E 10KT YELL",674,141] ,["3203CH2576/P 10KT YELL",558,266] ,["3203CH2248/E 10KT YELL",836,219] ,["3203CH2248/P 10KT YELL",767,356] ,["3204CH2472/P 10KT WG",114,183] ,["3204CH2472/E 10KT WG",237,134] ,["3204CH2498/P 10KT WG",369,209] ,["3204CH2498/E 10KT WG",368,339] ,["3204CH2589/P 10KT WG",80,321] ,["3204CH2589/E 10KT WG",202,336] ,["3205CH2634/P 10KT WG",593,165] ,["3205CH2634/E 10KT WG",617,326] ,["3205CH2470/P 10KT WG",821,87] ,["3205CH2470/E 10KT WG",828,177] ,["3205CH3308 10KT WG",829,303] ,["3206CH2630/E 10KT YELL",126,106] ,["3206FIG2631E0510KT PINK",305,138] ,["3206CH2574/P 10KT PINK",64,246] ,["3206CH2574/E 10KT PINK",134,338] ,["3206CH3309 10KT PINK",330,292] ,["3207CH3250/R 10KT YELL",590,102] ,["3207CH2492P/R 10KT YELL",706,136] ,["3207CH2492E/R 10KT YELL",651,210] ,["3207CH3250/AM 10KT YELL",668,308] ,["3207CH2492P/AM10KT YELL",540,299] ,["3207CH2492E/AM10KT YELL",628,388] ,["3207CH2492P/WT10KT YELL",886,250] ,["3207CH2492E/WT10KT YELL",817,174] ,["3208CH2499/P 10KT WG",136,210] ,["3208CH2499/E 10KT WG",132,338] ,["3208CH2500/P 10KT WG",357,269] ,["3208CH2500/E 10KT WG",267,121] ,["3208CH2510E/S 10KT WG",326,355] ,["3209CH104 10KT WG",785,110] ,["3209CH105 10KT YELL",649,266] ,["3210CH2494/P 10KT PINK",88,155] ,["3210CH2494/E 10KT PINK",198,130] ,["3210CH2495/P 10KT YELL",337,137] ,["3210CH2495/E 10KT YELL",321,255] ,["3210CH2748/P 10KT PINK",78,276] ,["3210CH2748/E 10KT PINK",122,362] ,["3210CH2491/E 10KT YELL",280,361] ,["3210CH2491/P 10KT YELL",401,362] ,["3211FB108B/AM 10KT YELL",216,150] ,["3211FB107B/PTZ10KT YELL",192,455] ,["3211FB113B/R 10KT WG",580,264] ]; } function xy32(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/zoom)*675; //y=y/zoom; x=x/1.46; y=y/1.38; loadxy32(); 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) } }