//REPLACE L, G, K, Y, P, W, R, //change all function names function loadxy75() { //next line, omit var and it becomes a global array (use xy=[ not var xy=[ ) xy = [ ["",0,0] ,["7501ICG1924E0610KT W&PK",236,463] ,["7501ICG1924E0610KT W&PK",295,525] ,["7501ICG1924P0310KT W&PK",352,428] ,["7502ICJ2768/2014KT WG",171,275] ,["7502ICG1928E1014KT WG",314,282] ,["7502ICG1928P1014KT WG",242,331] ,["7502ICJ2728/0310KT PINK",129,124] ,["7502G1739EMRG 10KT PINK",293,130] ,["7502G1739PMRG 10KT PINK",386,166] ,["7502ICG1924E0510KT W&PK",130,593] ,["7502ICG1924P0310KT W&PK",175,557] ,["7502ICG1823E2014KT WG",302,460] ,["7502ICG1823P1014KT WG",314,516] ,["7502ICG1823P1014KT WG",391,506] ,["7502G1276/P 10KT W&PK",554,164] ,["7502GEM580 10KT WG",617,130] ,["7502G1401/P 10KT W&PK",708,175] ,["7502ICG1670P0410KT W&PK",787,174] ,["7502G1592P/PK 10KT WG",864,194] ,["7502G1592P/PK 10KT WG",866,111] ,["7502ICG1684E0510KT W&PK",831,322] ,["7502ICG1684P0310KT W&PK",775,385] ,["7502ICJ2723/0410KT WG",766,600] ,["7502ICG1710P0410KT WG",685,570] ,["7502ICG1710E0610KT WG",578,558] ,["7502G1474/P 10KT YELL",882,435] ,["7502G1442/BR 10KT PINK",854,515] ,["7503ICG1892P2010KT WG",108,164] ,["7503ICG1884P1510KT YELL",180,215] ,["7503ICG1843P2010KT WG",258,243] ,["7503ICG1745P1110KT WG",327,198] ,["7503ICG1869P0510KT WG",399,182] ,["7503ICG1894P1810KT PINK",378,379] ,["7503ICG1849P1910KT WG",138,567] ,["7503ICG1854P2010KT PINK",231,556] ,["7503ICG1848P1910KT YELL",302,588] ,["7503ICG1850P1910KT WG",364,569] ,["7503ICG1889P1810KT PINK",765,178] ,["7503ICG1887P2010KT YELL",820,219] ,["7503ICG1867P0710KT WG",868,178] ,["7504G1831P/10 10KT WG",403,297] ,["7504G1821E/BN 10KT YELL",123,319] ,["7504G1821P/BN 10KT YELL",197,336] ,["7504G1915P/BL 10KT WG",262,341] ,["7504G1915E/BL 10KT WG",331,363] ,["7504JVJ1968/BK10KT WG",92,556] ,["7504G1830P/BK 10KT WG",223,522] ,["7504ICJ2731/0410KT WG",162,612] ,["7504G1707P/BK 10KT WG",93,540] ,["7504GEM994P/BK10KT WG",333,583] ,["7504ICG1746P0310KT PINK",396,547] ,["7504G1813P/FY 14W/18Y",561,177] ,["7504G1696P/FY 14W/18Y",616,209] ,["7504ICJ2763/0410KT YELL",728,97] ,["7504ICG1774E0610KT YELL",796,122] ,["7504ICG1774P0410KT YELL",865,127] ,["7504JVJ2025/0014KT WG",604,368] ,["7504ICJ2784/0410KT WG",720,307] ,["7504ICG1713E0610KT WG",831,300] ,["7504JVJ1825 10KT YELL",566,518] ,["7504JVJ1599 10KT PINK",615,491] ,["7504JVJ1730 10KT W&Y",673,471] ,["7504ICJ2721/0510KT WG",736,576] ,["7504JVJ1918 10KT W&PK",585,603] ,["7504JVJ2467 10KT W&Y",658,594] ,["7504JVJ2132 10KT W&PK",841,443] ,["7504ICJ2722/0510KT WG",795,526] ,["7505GEM892P/AQ10KT WG",89,153] ,["7505G1194P/AQ 10KT WG",199,166] ,["7505JVJ1742/AQ10KT WG",111,278] ,["7505G1587E/PTZ10KT PINK",323,117] ,["7505G1587P/PTZ10KT PINK",398,190] ,["7505JVJ2552PTZ10KT PINK",307,251] ,["7505ICJ2717/0410KT PK&W",146,377] ,["7505ICJ2740/0410KT PINK",242,385] ,["7505ICJ2702/0210KT W&PK",332,390] ]; } function xy75(book) { //xy75(7502) book is actually the spread winsize(); var x,y; x=mouse_x-document.getElementById("div620t1").offsetLeft-document.getElementById("flyer_sprd").offsetLeft; x=x/document.getElementById("flyer_ndx").width*230; //ok to use flyer_ndx becuase that was how it was scaled y=((mouse_y-document.getElementById("div620").offsetTop)/winW*1280); //use winW*1280 instead of winH*752 because scaled by width var zoom = document.documentElement.clientWidth / window.innerWidth; y=y/zoom; loadxy75(); var minx; minx=0; for (i=0; i0) { ItemDetail(xy[minx][0].substr(4,10),xy[minx][0].substr(14,10),"1","","",""); //item,karat,canedit("Y" for yes) } }