//REPLACE L, G, K, Y, P, W, R, //change all function names function loadxy34() { //next line, omit var and it becomes a global array (use xy=[ not var xy=[ ) xy = [ ["",0,0] ,["3401ICJ3540/0310KT WG",260,421] ,["3401ICJ3540/0310KT Y&W",367,470] ,["3401ICJ3540/0310KT P&W",246,296] ,["3402ICG2621P0310KT WG",135,248] ,["3402ICG2621E0510KT WG",90,318] ,["3402ICJ3468/0310KT WG",94,399] ,["3402ICG2712P0210KT PK&W",236,377] ,["3402ICJ3413/0310KT PK&W",217,464] ,["3402ICJ3422/0310KT PK&W",214,568] ,["3402JVJ3522 10KT PINK",346,423] ,["3402ICJ3462/0210KT PINK",345,534] ,["3402ICG2532P0310KT W&PK",530,129] ,["3402ICG2536P0410KT W&PK",621,85] ,["3402ICG2736P0310KT W&PK",707,134] ,["3402G2538/P 10KT W&PK",798,224] ,["3402JVJ3423 10KT PINK",530,238] ,["3402JVJ3218 10KT W&PK",596,315] ,["3402JVJ3282 10KT PINK",735,324] ,["3402ICJ3283/0210KT WG",774,279] ,["3402ICG2726P0210KT PK&W",568,459] ,["3402ICG2509E0510KT W&PK",666,443] ,["3402ICG2279P0210KT PK&W",526,556] ,["3403ICG2441P0210KT W/Y/P",226,168] ,["3403G2613/P 10KT YELL",316,213] ,["3403ICG2395P0310KT WG",377,129] ,["3403ICG2117P0310KT PINK",117,430] ,["3403ICG2079P0610KT W&PK",183,387] ,["3403G2291/P 10KT W&PK",256,343] ,["3403ICG2811E0510KT WG",369,290] ,["3403G2507/P 10KT PINK",229,489] ,["3403JVJ3341 10KT PINK",356,396] ,["3403JVJ3417 10KT YELL",342,502] ,["3403G2571 10KT W&PK",197,607] ,["3403JVJ3363 10KT W&PK",361,596] ,["3403JVJ3501/5014KT WG",541,118] ,["3403JVJ3499/5014KT WG",632,61] ,["3403ICJ3235/0310KT WG",792,38] ,["3403ICJ3235/W 10KT WG",805,86] ,["3403ICJ3248/0410KT WG",790,129] ,["3403ICJ3248/W 10KT WG",800,171] ,["3403ICJ3236/0310KT WG",797,229] ,["3403ICJ3236/W 10KT WG",784,269] ,["3403JVJ908 10KT YELL",643,235] ,["3403JVJ908/W 10KT YELL",675,297] ,["3403JVJ3317MRG10KT PINK",550,360] ,["3403JVJ3479MRG14KT PINK",671,403] ,["3403JVJ3384PTZ10KT PINK",807,450] ,["3403JVJ3440PTZ10KT WG",661,511] ,["3403JVJ3443/S 14KT WG",539,580] ,["3404ICG2572E0510KT PINK",261,100] ,["3404ICG2702P0210KT PINK",365,102] ,["3404JVJ3395/PK10KT PINK",207,189] ,["3404ICG2807P0410KT PINK",114,359] ,["3404ICG2807E0510KT PINK",213,314] ,["3404G2763/P 10KT PINK",324,279] ,["3404G2763/E 10KT PINK",362,354] ,["3404ICJ3627/0210KT PINK",250,398] ,["3404JVJ3284 10KT PINK",95,428] ,["3404JVJ3194 10KT WG",112,462] ,["3404JVJ3047 10KT YELL",116,512] ,["3404G2743/E 10KT W&PK",184,584] ,["3404G2743/P 10KT W&PK",266,520] ,["3404ICJ3350/0210KT PINK",306,615] ,["3404ICJ3350/0210KT WG",361,546] ,["3404ICJ3350/0210KT YELL",413,533] ,["3404G2727P/OP 10KT PINK",551,122] ,["3404G2750P/R 10KT WG",631,88] ,["3404JVJ3472/R 10KT WG",735,79] ,["3404JVJ3445/OP10KT PINK",543,206] ,["3404JVJ3312RBL10KT YELL",628,263] ,["3404JVJ3164RHG10KT WG",704,313] ,["3404ICG2722P0210KT W&PK",501,512] ,["3404ICG1977P0510KT WG",595,592] ,["3404ICG1334P0810KT WG",662,543] ,["3404ICG2692P0510KT WG",753,527] ,["3404ICG1775P1010KT W&PK",821,463] ,["3405G2819/P 10KT PINK",288,210] ,["3405G2819/E 10KT PINK",333,314] ,["3405JVJ3424 10KT PINK",312,442] ,["3405JVJ3552 10KT PINK",146,263] ,["3405ICJ3517/0210KT WG",142,425] ]; } function xy34(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; loadxy34(); 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) } }