//REPLACE L, G, K, Y, P, W, R, //change all function names function loadxy14() { //next line, omit var and it becomes a global array (use xy=[ not var xy=[ ) xy = [ ["",0,0] ,["1401ICG2293P0310KT W&PK",103,209] ,["1401ICJ3074/0310KT W&PK",116,452] ,["1402G2424/E 10KT YELL",70,107] ,["1402G2424/P 10KT YELL",151,109] ,["1402JVJ3132 10KT YELL",114,157] ,["1402G2422/P 10KT WG",215,93] ,["1402ICG2396P0310KT YELL",303,276] ,["1402ICG2396E0510KT YELL",290,345] ,["1402ICJ3173/0310KT YELL",326,399] ,["1402ICG2202E0510KT YELL",393,72] ,["1402ICG2173P0310KT YELL",283,96] ,["1402ICJ3181/0710KT Y&W",220,162] ,["1402ICJ3113/0310KT YELL",341,170] ,["1402ICG2353/0210KT WG",125,583] ,["1402ICG2352/0210KT WG",313,548] ,["1402JVJ3146 10KT WG",424,608] ,["1403ICG2403P0310KT PINK",69,274] ,["1403ICG2117P0310KT PINK",148,305] ,["1403ICG2117P0310KT PINK",193,94] ,["1403ICG2417P0310KT PINK",277,141] ,["1403ICG2412P0210KT PINK",351,116] ,["1403ICG2421P0210KT WG",422,211] ,["1403G2370/P 10KT W&Y",189,532] ,["1403ICJ3013/0210KT W&Y",202,607] ,["1403JVJ3155 10KT W&Y",84,570] ,["1403ICG2390E0510KT W&PK",349,492] ,["1403ICJ2886/0410KT W&PK",303,579] ,["1403ICJ2887/0410KT W&PK",364,609] ,["1403G2291/P 10KT W&PK",441,554] ,["1404G2358/P 10KT PINK",83,104] ,["1404ICG2279P0210KT PK&W",177,175] ,["1404ICG2120P0410KT WG",244,118] ,["1404G2409P/RU 10KT WG",341,108] ,["1404G2333P/R 10KT PINK",438,148] ,["1404JVJ3158/R 10KT PINK",409,208] ,["1404JVJ2394 10KT W&Y",63,307] ,["1404JVJ1825 10KT YELL",120,308] ,["1404JVJ3064 10KT YELL",153,306] ,["1404JVJ3047 10KT PINK",181,301] ,["1404JVJ2460/S 10KT WG",205,302] ,["1404JVJ1599 10KT PINK",234,299] ,["1404JVJ3143 10KT PINK",269,298] ,["1404JVJ3051/S 10KT WG",294,303] ,["1404JVJ3061 10KT WG",325,305] ,["1404JVJ3187 10KT WG",363,302] ,["1404JVJ3194 10KT WG",406,312] ,["1404JVJ3196 10KT YELL",446,310] ,["1404ICJ3172/0310KT WG",87,554] ,["1404ICG2427E0610KT WG",83,475] ,["1404ICG2427P0310KT WG",155,500] ,["1404ICG2414E0510KT WG",237,480] ,["1404ICJ3130/0210KT W&PK",196,569] ,["1404G2295/P 10KT PINK",358,499] ,["1404G2296 10KT PINK",404,605] ,["1405ICG1775P1010KT W&PK",65,180] ,["1405ICG2098P1010KT W&PK",109,240] ,["1405ICG2244P1610KT WG",180,195] ,["1405SCG2388P0310KT WG",283,226] ,["1405SCG2388E0510KT WG",334,188] ,["1405SCJ3128/0210KT WG",435,208] ,["1405SCG2419P0310KT WG",438,120] ,["1405ICJ3026/1110KT WG",395,357] ,["1405ICJ3026/W 10KT WG",391,414] ,["1405JVJ2025/0014KT YELL",290,444] ,["1405JVJ2025W3214KT YELL",311,509] ,["1405ICJ3083/2614KT WG",402,536] ,["1405ICJ3083/W 14KT WG",380,589] ,["1406ICG2010P0210KT WG",67,104] ,["1406ICG2196P0210KT WG",131,114] ,["1406ICG2428P0410KT WG",203,84] ,["1406JVJ3120 10KT W&PK",245,181] ,["1406ICG2405P0310KT PK&W",321,101] ,["1406ICG2405E0610KT PK&W",416,105] ,["1406ICJ3179/0310KT PK&W",380,182] ,["1406ICG2395P0310KT WG",318,319] ,["1406ICG2441P0210KT W/Y/P",430,316] ,["1406G2188P/WH 10KT WG",56,544] ,["1406G2188E/WH 10KT WG",136,513] ,["1406ICJ2991/0510KT PINK",215,597] ,["1406ICG2176P0210KT PINK",291,546] ,["1406G2184P/MRG10KT PINK",382,525] ,["1406G2190P/MRG10KT PINK",454,569] ,["1407ICG2336P0410KT Y&W",78,94] ,["1407ICG2336P0410KT Y&W",91,270] ,["1407G2371/P 10KT WG",176,89] ,["1407JVJ2948 10KT WG",174,152] ,["1407JVJ3125 10KT WG",439,395] ,["1407JVJ3137 10KT WG",273,183] ,["1407G2372/P 10KT PINK",305,95] ,["1407JVJ2933 10KT PINK",402,168] ,["1407ICG2410P0210KT YELL",173,281] ,["1407ICG2410P0210KT YELL",259,284] ,["1407ICG2410P0210KT YELL",222,356] ,["1407ICG2410P0210KT YELL",229,446] ,["1407G2330/E 10KT Y&W",355,265] ,["1407G2330/P 10KT Y&W",433,310] ,["1407JVJ3086 10KT Y&W",345,350] ,["1407ICG2426P0210KT WG",63,532] ,["1407G2394/P 10KT W/P/Y",117,523] ,["1407ICJ2914/0210KT WG",298,493] ,["1407ICJ3049/W 10KT WG",219,541] ,["1407ICJ3049/0810KT PINK",187,566] ,["1407ICJ3049/0810KT PINK",262,572] ,["1407G2366 10KT WG",392,613] ,["1407G2366 10KT WG",420,513] ,["1408JVJ3166MRG14KT PINK",99,208] ,["1408JVJ3166/W 14KT PINK",94,257] ,["1408JVJ3180MRG14KT PINK",181,102] ,["1408JVJ3168MRG14KT PINK",262,130] ,["1408JVJ3189MRG14KT PINK",201,288] ,["1408JVJ3189/W 14KT PINK",168,338] ]; } function xy14(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; loadxy14(); 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) } }