From d0911a04958a04042da02a334ccc528dae79cc17 Mon Sep 17 00:00:00 2001 From: zsloan Date: Fri, 27 Mar 2015 20:28:51 +0000 Subject: Removed everything from 'web' directory except genofiles and renamed the directory to 'genotype_files' --- web/javascript/colorSel.js | 53 - web/javascript/correlationMatrix.js | 453 --------- web/javascript/dhtml.js | 319 ------ web/javascript/footer.js | 46 - web/javascript/header.js | 62 -- web/javascript/jquery-1.5.2.min.js | 16 - web/javascript/jquery-ui-1.8.12.custom.min.js | 783 -------------- web/javascript/jqueryFunction.js | 1092 -------------------- web/javascript/menu_items.js | 109 -- web/javascript/menu_new.js | 396 -------- web/javascript/menu_tpl.js | 89 -- web/javascript/networkGraph.js | 115 --- web/javascript/searchtip.js | 64 -- web/javascript/selectDatasetMenu.js | 1183 ---------------------- web/javascript/sortTrait.js | 344 ------- web/javascript/svg.js | 326 ------ web/javascript/tabbed_pages.js | 32 - web/javascript/tablesorter.js | 1005 ------------------ web/javascript/thickbox.js | 319 ------ web/javascript/webqtl.js | 1350 ------------------------- 20 files changed, 8156 deletions(-) delete mode 100755 web/javascript/colorSel.js delete mode 100755 web/javascript/correlationMatrix.js delete mode 100755 web/javascript/dhtml.js delete mode 100755 web/javascript/footer.js delete mode 100755 web/javascript/header.js delete mode 100755 web/javascript/jquery-1.5.2.min.js delete mode 100755 web/javascript/jquery-ui-1.8.12.custom.min.js delete mode 100755 web/javascript/jqueryFunction.js delete mode 100755 web/javascript/menu_items.js delete mode 100755 web/javascript/menu_new.js delete mode 100755 web/javascript/menu_tpl.js delete mode 100755 web/javascript/networkGraph.js delete mode 100755 web/javascript/searchtip.js delete mode 100644 web/javascript/selectDatasetMenu.js delete mode 100755 web/javascript/sortTrait.js delete mode 100755 web/javascript/svg.js delete mode 100755 web/javascript/tabbed_pages.js delete mode 100755 web/javascript/tablesorter.js delete mode 100755 web/javascript/thickbox.js delete mode 100755 web/javascript/webqtl.js (limited to 'web/javascript') diff --git a/web/javascript/colorSel.js b/web/javascript/colorSel.js deleted file mode 100755 index 65f06fa7..00000000 --- a/web/javascript/colorSel.js +++ /dev/null @@ -1,53 +0,0 @@ -_colors = [['f0f8ff', 'aliceblue'], ['faebd7', 'antiquewhite'], ['ffefdb', 'antiquewhite1'], ['eedfcc', 'antiquewhite2'], ['cdc0b0', 'antiquewhite3'], ['8b8378', 'antiquewhite4'], ['7fffd4', 'aquamarine'], ['7fffd4', 'aquamarine1'], ['76eec6', 'aquamarine2'], ['66cdaa', 'aquamarine3'], ['458b74', 'aquamarine4'], ['f0ffff', 'azure'], ['f0ffff', 'azure1'], ['e0eeee', 'azure2'], ['c1cdcd', 'azure3'], ['838b8b', 'azure4'], ['f5f5dc', 'beige'], ['ffe4c4', 'bisque'], ['ffe4c4', 'bisque1'], ['eed5b7', 'bisque2'], ['cdb79e', 'bisque3'], ['8b7d6b', 'bisque4'], ['000000', 'black'], ['ffebcd', 'blanchedalmond'], ['0000ff', 'blue'], ['0000ff', 'blue1'], ['0000ee', 'blue2'], ['0000cd', 'blue3'], ['00008b', 'blue4'], ['8a2be2', 'blueviolet'], ['a52a2a', 'brown'], ['ff4040', 'brown1'], ['ee3b3b', 'brown2'], ['cd3333', 'brown3'], ['8b2323', 'brown4'], ['deb887', 'burlywood'], ['ffd39b', 'burlywood1'], ['eec591', 'burlywood2'], ['cdaa7d', 'burlywood3'], ['8b7355', 'burlywood4'], ['5f9ea0', 'cadetblue'], ['98f5ff', 'cadetblue1'], ['8ee5ee', 'cadetblue2'], ['7ac5cd', 'cadetblue3'], ['53868b', 'cadetblue4'], ['7fff00', 'chartreuse'], ['7fff00', 'chartreuse1'], ['76ee00', 'chartreuse2'], ['66cd00', 'chartreuse3'], ['458b00', 'chartreuse4'], ['d2691e', 'chocolate'], ['ff7f24', 'chocolate1'], ['ee7621', 'chocolate2'], ['cd661d', 'chocolate3'], ['8b4513', 'chocolate4'], ['ff7f50', 'coral'], ['ff7256', 'coral1'], ['ee6a50', 'coral2'], ['cd5b45', 'coral3'], ['8b3e2f', 'coral4'], ['6495ed', 'cornflowerblue'], ['fff8dc', 'cornsilk'], ['fff8dc', 'cornsilk1'], ['eee8cd', 'cornsilk2'], ['cdc8b1', 'cornsilk3'], ['8b8878', 'cornsilk4'], ['dc143c', 'crimson'], ['00ffff', 'cyan'], ['00ffff', 'cyan1'], ['00eeee', 'cyan2'], ['00cdcd', 'cyan3'], ['008b8b', 'cyan4'], ['b8860b', 'darkgoldenrod'], ['ffb90f', 'darkgoldenrod1'], ['eead0e', 'darkgoldenrod2'], ['cd950c', 'darkgoldenrod3'], ['8b6508', 'darkgoldenrod4'], ['006400', 'darkgreen'], ['bdb76b', 'darkkhaki'], ['556b2f', 'darkolivegreen'], ['caff70', 'darkolivegreen1'], ['bcee68', 'darkolivegreen2'], ['a2cd5a', 'darkolivegreen3'], ['6e8b3d', 'darkolivegreen4'], ['ff8c00', 'darkorange'], ['ff7f00', 'darkorange1'], ['ee7600', 'darkorange2'], ['cd6600', 'darkorange3'], ['8b4500', 'darkorange4'], ['9932cc', 'darkorchid'], ['bf3eff', 'darkorchid1'], ['b23aee', 'darkorchid2'], ['9a32cd', 'darkorchid3'], ['68228b', 'darkorchid4'], ['e9967a', 'darksalmon'], ['8fbc8f', 'darkseagreen'], ['c1ffc1', 'darkseagreen1'], ['b4eeb4', 'darkseagreen2'], ['9bcd9b', 'darkseagreen3'], ['698b69', 'darkseagreen4'], ['483d8b', 'darkslateblue'], ['2f4f4f', 'darkslategray'], ['97ffff', 'darkslategray1'], ['8deeee', 'darkslategray2'], ['79cdcd', 'darkslategray3'], ['528b8b', 'darkslategray4'], ['2f4f4f', 'darkslategrey'], ['00ced1', 'darkturquoise'], ['9400d3', 'darkviolet'], ['ff1493', 'deeppink'], ['ff1493', 'deeppink1'], ['ee1289', 'deeppink2'], ['cd1076', 'deeppink3'], ['8b0a50', 'deeppink4'], ['00bfff', 'deepskyblue'], ['00bfff', 'deepskyblue1'], ['00b2ee', 'deepskyblue2'], ['009acd', 'deepskyblue3'], ['00688b', 'deepskyblue4'], ['696969', 'dimgray'], ['696969', 'dimgrey'], ['1e90ff', 'dodgerblue'], ['1e90ff', 'dodgerblue1'], ['1c86ee', 'dodgerblue2'], ['1874cd', 'dodgerblue3'], ['104e8b', 'dodgerblue4'], ['b22222', 'firebrick'], ['ff3030', 'firebrick1'], ['ee2c2c', 'firebrick2'], ['cd2626', 'firebrick3'], ['8b1a1a', 'firebrick4'], ['fffaf0', 'floralwhite'], ['228b22', 'forestgreen'], ['dcdcdc', 'gainsboro'], ['f8f8ff', 'ghostwhite'], ['ffd700', 'gold'], ['ffd700', 'gold1'], ['eec900', 'gold2'], ['cdad00', 'gold3'], ['8b7500', 'gold4'], ['daa520', 'goldenrod'], ['ffc125', 'goldenrod1'], ['eeb422', 'goldenrod2'], ['cd9b1d', 'goldenrod3'], ['8b6914', 'goldenrod4'], ['c0c0c0', 'gray'], ['000000', 'gray0'], ['030303', 'gray1'], ['1a1a1a', 'gray10'], ['ffffff', 'gray100'], ['1c1c1c', 'gray11'], ['1f1f1f', 'gray12'], ['212121', 'gray13'], ['242424', 'gray14'], ['262626', 'gray15'], ['292929', 'gray16'], ['2b2b2b', 'gray17'], ['2e2e2e', 'gray18'], ['303030', 'gray19'], ['050505', 'gray2'], ['333333', 'gray20'], ['363636', 'gray21'], ['383838', 'gray22'], ['3b3b3b', 'gray23'], ['3d3d3d', 'gray24'], ['404040', 'gray25'], ['424242', 'gray26'], ['454545', 'gray27'], ['474747', 'gray28'], ['4a4a4a', 'gray29'], ['080808', 'gray3'], ['4d4d4d', 'gray30'], ['4f4f4f', 'gray31'], ['525252', 'gray32'], ['545454', 'gray33'], ['575757', 'gray34'], ['595959', 'gray35'], ['5c5c5c', 'gray36'], ['5e5e5e', 'gray37'], ['616161', 'gray38'], ['636363', 'gray39'], ['0a0a0a', 'gray4'], ['666666', 'gray40'], ['696969', 'gray41'], ['6b6b6b', 'gray42'], ['6e6e6e', 'gray43'], ['707070', 'gray44'], ['737373', 'gray45'], ['757575', 'gray46'], ['787878', 'gray47'], ['7a7a7a', 'gray48'], ['7d7d7d', 'gray49'], ['0d0d0d', 'gray5'], ['7f7f7f', 'gray50'], ['828282', 'gray51'], ['858585', 'gray52'], ['878787', 'gray53'], ['8a8a8a', 'gray54'], ['8c8c8c', 'gray55'], ['8f8f8f', 'gray56'], ['919191', 'gray57'], ['949494', 'gray58'], ['969696', 'gray59'], ['0f0f0f', 'gray6'], ['999999', 'gray60'], ['9c9c9c', 'gray61'], ['9e9e9e', 'gray62'], ['a1a1a1', 'gray63'], ['a3a3a3', 'gray64'], ['a6a6a6', 'gray65'], ['a8a8a8', 'gray66'], ['ababab', 'gray67'], ['adadad', 'gray68'], ['b0b0b0', 'gray69'], ['121212', 'gray7'], ['b3b3b3', 'gray70'], ['b5b5b5', 'gray71'], ['b8b8b8', 'gray72'], ['bababa', 'gray73'], ['bdbdbd', 'gray74'], ['bfbfbf', 'gray75'], ['c2c2c2', 'gray76'], ['c4c4c4', 'gray77'], ['c7c7c7', 'gray78'], ['c9c9c9', 'gray79'], ['141414', 'gray8'], ['cccccc', 'gray80'], ['cfcfcf', 'gray81'], ['d1d1d1', 'gray82'], ['d4d4d4', 'gray83'], ['d6d6d6', 'gray84'], ['d9d9d9', 'gray85'], ['dbdbdb', 'gray86'], ['dedede', 'gray87'], ['e0e0e0', 'gray88'], ['e3e3e3', 'gray89'], ['171717', 'gray9'], ['e5e5e5', 'gray90'], ['e8e8e8', 'gray91'], ['ebebeb', 'gray92'], ['ededed', 'gray93'], ['f0f0f0', 'gray94'], ['f2f2f2', 'gray95'], ['f5f5f5', 'gray96'], ['f7f7f7', 'gray97'], ['fafafa', 'gray98'], ['fcfcfc', 'gray99'], ['00ff00', 'green'], ['00ff00', 'green1'], ['00ee00', 'green2'], ['00cd00', 'green3'], ['008b00', 'green4'], ['adff2f', 'greenyellow'], ['c0c0c0', 'grey'], ['000000', 'grey0'], ['030303', 'grey1'], ['1a1a1a', 'grey10'], ['ffffff', 'grey100'], ['1c1c1c', 'grey11'], ['1f1f1f', 'grey12'], ['212121', 'grey13'], ['242424', 'grey14'], ['262626', 'grey15'], ['292929', 'grey16'], ['2b2b2b', 'grey17'], ['2e2e2e', 'grey18'], ['303030', 'grey19'], ['050505', 'grey2'], ['333333', 'grey20'], ['363636', 'grey21'], ['383838', 'grey22'], ['3b3b3b', 'grey23'], ['3d3d3d', 'grey24'], ['404040', 'grey25'], ['424242', 'grey26'], ['454545', 'grey27'], ['474747', 'grey28'], ['4a4a4a', 'grey29'], ['080808', 'grey3'], ['4d4d4d', 'grey30'], ['4f4f4f', 'grey31'], ['525252', 'grey32'], ['545454', 'grey33'], ['575757', 'grey34'], ['595959', 'grey35'], ['5c5c5c', 'grey36'], ['5e5e5e', 'grey37'], ['616161', 'grey38'], ['636363', 'grey39'], ['0a0a0a', 'grey4'], ['666666', 'grey40'], ['696969', 'grey41'], ['6b6b6b', 'grey42'], ['6e6e6e', 'grey43'], ['707070', 'grey44'], ['737373', 'grey45'], ['757575', 'grey46'], ['787878', 'grey47'], ['7a7a7a', 'grey48'], ['7d7d7d', 'grey49'], ['0d0d0d', 'grey5'], ['7f7f7f', 'grey50'], ['828282', 'grey51'], ['858585', 'grey52'], ['878787', 'grey53'], ['8a8a8a', 'grey54'], ['8c8c8c', 'grey55'], ['8f8f8f', 'grey56'], ['919191', 'grey57'], ['949494', 'grey58'], ['969696', 'grey59'], ['0f0f0f', 'grey6'], ['999999', 'grey60'], ['9c9c9c', 'grey61'], ['9e9e9e', 'grey62'], ['a1a1a1', 'grey63'], ['a3a3a3', 'grey64'], ['a6a6a6', 'grey65'], ['a8a8a8', 'grey66'], ['ababab', 'grey67'], ['adadad', 'grey68'], ['b0b0b0', 'grey69'], ['121212', 'grey7'], ['b3b3b3', 'grey70'], ['b5b5b5', 'grey71'], ['b8b8b8', 'grey72'], ['bababa', 'grey73'], ['bdbdbd', 'grey74'], ['bfbfbf', 'grey75'], ['c2c2c2', 'grey76'], ['c4c4c4', 'grey77'], ['c7c7c7', 'grey78'], ['c9c9c9', 'grey79'], ['141414', 'grey8'], ['cccccc', 'grey80'], ['cfcfcf', 'grey81'], ['d1d1d1', 'grey82'], ['d4d4d4', 'grey83'], ['d6d6d6', 'grey84'], ['d9d9d9', 'grey85'], ['dbdbdb', 'grey86'], ['dedede', 'grey87'], ['e0e0e0', 'grey88'], ['e3e3e3', 'grey89'], ['171717', 'grey9'], ['e5e5e5', 'grey90'], ['e8e8e8', 'grey91'], ['ebebeb', 'grey92'], ['ededed', 'grey93'], ['f0f0f0', 'grey94'], ['f2f2f2', 'grey95'], ['f5f5f5', 'grey96'], ['f7f7f7', 'grey97'], ['fafafa', 'grey98'], ['fcfcfc', 'grey99'], ['f0fff0', 'honeydew'], ['f0fff0', 'honeydew1'], ['e0eee0', 'honeydew2'], ['c1cdc1', 'honeydew3'], ['838b83', 'honeydew4'], ['ff69b4', 'hotpink'], ['ff6eb4', 'hotpink1'], ['ee6aa7', 'hotpink2'], ['cd6090', 'hotpink3'], ['8b3a62', 'hotpink4'], ['cd5c5c', 'indianred'], ['ff6a6a', 'indianred1'], ['ee6363', 'indianred2'], ['cd5555', 'indianred3'], ['8b3a3a', 'indianred4'], ['4b0082', 'indigo'], ['fffff0', 'ivory'], ['fffff0', 'ivory1'], ['eeeee0', 'ivory2'], ['cdcdc1', 'ivory3'], ['8b8b83', 'ivory4'], ['f0e68c', 'khaki'], ['fff68f', 'khaki1'], ['eee685', 'khaki2'], ['cdc673', 'khaki3'], ['8b864e', 'khaki4'], ['e6e6fa', 'lavender'], ['fff0f5', 'lavenderblush'], ['fff0f5', 'lavenderblush1'], ['eee0e5', 'lavenderblush2'], ['cdc1c5', 'lavenderblush3'], ['8b8386', 'lavenderblush4'], ['7cfc00', 'lawngreen'], ['fffacd', 'lemonchiffon'], ['fffacd', 'lemonchiffon1'], ['eee9bf', 'lemonchiffon2'], ['cdc9a5', 'lemonchiffon3'], ['8b8970', 'lemonchiffon4'], ['add8e6', 'lightblue'], ['bfefff', 'lightblue1'], ['b2dfee', 'lightblue2'], ['9ac0cd', 'lightblue3'], ['68838b', 'lightblue4'], ['f08080', 'lightcoral'], ['e0ffff', 'lightcyan'], ['e0ffff', 'lightcyan1'], ['d1eeee', 'lightcyan2'], ['b4cdcd', 'lightcyan3'], ['7a8b8b', 'lightcyan4'], ['eedd82', 'lightgoldenrod'], ['ffec8b', 'lightgoldenrod1'], ['eedc82', 'lightgoldenrod2'], ['cdbe70', 'lightgoldenrod3'], ['8b814c', 'lightgoldenrod4'], ['fafad2', 'lightgoldenrodyellow'], ['d3d3d3', 'lightgray'], ['d3d3d3', 'lightgrey'], ['ffb6c1', 'lightpink'], ['ffaeb9', 'lightpink1'], ['eea2ad', 'lightpink2'], ['cd8c95', 'lightpink3'], ['8b5f65', 'lightpink4'], ['ffa07a', 'lightsalmon'], ['ffa07a', 'lightsalmon1'], ['ee9572', 'lightsalmon2'], ['cd8162', 'lightsalmon3'], ['8b5742', 'lightsalmon4'], ['20b2aa', 'lightseagreen'], ['87cefa', 'lightskyblue'], ['b0e2ff', 'lightskyblue1'], ['a4d3ee', 'lightskyblue2'], ['8db6cd', 'lightskyblue3'], ['607b8b', 'lightskyblue4'], ['8470ff', 'lightslateblue'], ['778899', 'lightslategray'], ['778899', 'lightslategrey'], ['b0c4de', 'lightsteelblue'], ['cae1ff', 'lightsteelblue1'], ['bcd2ee', 'lightsteelblue2'], ['a2b5cd', 'lightsteelblue3'], ['6e7b8b', 'lightsteelblue4'], ['ffffe0', 'lightyellow'], ['ffffe0', 'lightyellow1'], ['eeeed1', 'lightyellow2'], ['cdcdb4', 'lightyellow3'], ['8b8b7a', 'lightyellow4'], ['32cd32', 'limegreen'], ['faf0e6', 'linen'], ['ff00ff', 'magenta'], ['ff00ff', 'magenta1'], ['ee00ee', 'magenta2'], ['cd00cd', 'magenta3'], ['8b008b', 'magenta4'], ['b03060', 'maroon'], ['ff34b3', 'maroon1'], ['ee30a7', 'maroon2'], ['cd2990', 'maroon3'], ['8b1c62', 'maroon4'], ['66cdaa', 'mediumaquamarine'], ['0000cd', 'mediumblue'], ['ba55d3', 'mediumorchid'], ['e066ff', 'mediumorchid1'], ['d15fee', 'mediumorchid2'], ['b452cd', 'mediumorchid3'], ['7a378b', 'mediumorchid4'], ['9370db', 'mediumpurple'], ['ab82ff', 'mediumpurple1'], ['9f79ee', 'mediumpurple2'], ['8968cd', 'mediumpurple3'], ['5d478b', 'mediumpurple4'], ['3cb371', 'mediumseagreen'], ['7b68ee', 'mediumslateblue'], ['00fa9a', 'mediumspringgreen'], ['48d1cc', 'mediumturquoise'], ['c71585', 'mediumvioletred'], ['191970', 'midnightblue'], ['f5fffa', 'mintcream'], ['ffe4e1', 'mistyrose'], ['ffe4e1', 'mistyrose1'], ['eed5d2', 'mistyrose2'], ['cdb7b5', 'mistyrose3'], ['8b7d7b', 'mistyrose4'], ['ffe4b5', 'moccasin'], ['ffdead', 'navajowhite'], ['ffdead', 'navajowhite1'], ['eecfa1', 'navajowhite2'], ['cdb38b', 'navajowhite3'], ['8b795e', 'navajowhite4'], ['000080', 'navy'], ['000080', 'navyblue'], ['fdf5e6', 'oldlace'], ['6b8e23', 'olivedrab'], ['c0ff3e', 'olivedrab1'], ['b3ee3a', 'olivedrab2'], ['9acd32', 'olivedrab3'], ['698b22', 'olivedrab4'], ['ffa500', 'orange'], ['ffa500', 'orange1'], ['ee9a00', 'orange2'], ['cd8500', 'orange3'], ['8b5a00', 'orange4'], ['ff4500', 'orangered'], ['ff4500', 'orangered1'], ['ee4000', 'orangered2'], ['cd3700', 'orangered3'], ['8b2500', 'orangered4'], ['da70d6', 'orchid'], ['ff83fa', 'orchid1'], ['ee7ae9', 'orchid2'], ['cd69c9', 'orchid3'], ['8b4789', 'orchid4'], ['eee8aa', 'palegoldenrod'], ['98fb98', 'palegreen'], ['9aff9a', 'palegreen1'], ['90ee90', 'palegreen2'], ['7ccd7c', 'palegreen3'], ['548b54', 'palegreen4'], ['afeeee', 'paleturquoise'], ['bbffff', 'paleturquoise1'], ['aeeeee', 'paleturquoise2'], ['96cdcd', 'paleturquoise3'], ['668b8b', 'paleturquoise4'], ['db7093', 'palevioletred'], ['ff82ab', 'palevioletred1'], ['ee799f', 'palevioletred2'], ['cd6889', 'palevioletred3'], ['8b475d', 'palevioletred4'], ['ffefd5', 'papayawhip'], ['ffdab9', 'peachpuff'], ['ffdab9', 'peachpuff1'], ['eecbad', 'peachpuff2'], ['cdaf95', 'peachpuff3'], ['8b7765', 'peachpuff4'], ['cd853f', 'peru'], ['ffc0cb', 'pink'], ['ffb5c5', 'pink1'], ['eea9b8', 'pink2'], ['cd919e', 'pink3'], ['8b636c', 'pink4'], ['dda0dd', 'plum'], ['ffbbff', 'plum1'], ['eeaeee', 'plum2'], ['cd96cd', 'plum3'], ['8b668b', 'plum4'], ['b0e0e6', 'powderblue'], ['a020f0', 'purple'], ['9b30ff', 'purple1'], ['912cee', 'purple2'], ['7d26cd', 'purple3'], ['551a8b', 'purple4'], ['ff0000', 'red'], ['ff0000', 'red1'], ['ee0000', 'red2'], ['cd0000', 'red3'], ['8b0000', 'red4'], ['bc8f8f', 'rosybrown'], ['ffc1c1', 'rosybrown1'], ['eeb4b4', 'rosybrown2'], ['cd9b9b', 'rosybrown3'], ['8b6969', 'rosybrown4'], ['4169e1', 'royalblue'], ['4876ff', 'royalblue1'], ['436eee', 'royalblue2'], ['3a5fcd', 'royalblue3'], ['27408b', 'royalblue4'], ['8b4513', 'saddlebrown'], ['fa8072', 'salmon'], ['ff8c69', 'salmon1'], ['ee8262', 'salmon2'], ['cd7054', 'salmon3'], ['8b4c39', 'salmon4'], ['f4a460', 'sandybrown'], ['2e8b57', 'seagreen'], ['54ff9f', 'seagreen1'], ['4eee94', 'seagreen2'], ['43cd80', 'seagreen3'], ['2e8b57', 'seagreen4'], ['fff5ee', 'seashell'], ['fff5ee', 'seashell1'], ['eee5de', 'seashell2'], ['cdc5bf', 'seashell3'], ['8b8682', 'seashell4'], ['a0522d', 'sienna'], ['ff8247', 'sienna1'], ['ee7942', 'sienna2'], ['cd6839', 'sienna3'], ['8b4726', 'sienna4'], ['87ceeb', 'skyblue'], ['87ceff', 'skyblue1'], ['7ec0ee', 'skyblue2'], ['6ca6cd', 'skyblue3'], ['4a708b', 'skyblue4'], ['6a5acd', 'slateblue'], ['836fff', 'slateblue1'], ['7a67ee', 'slateblue2'], ['6959cd', 'slateblue3'], ['473c8b', 'slateblue4'], ['708090', 'slategray'], ['c6e2ff', 'slategray1'], ['b9d3ee', 'slategray2'], ['9fb6cd', 'slategray3'], ['6c7b8b', 'slategray4'], ['708090', 'slategrey'], ['fffafa', 'snow'], ['fffafa', 'snow1'], ['eee9e9', 'snow2'], ['cdc9c9', 'snow3'], ['8b8989', 'snow4'], ['00ff7f', 'springgreen'], ['00ff7f', 'springgreen1'], ['00ee76', 'springgreen2'], ['00cd66', 'springgreen3'], ['008b45', 'springgreen4'], ['4682b4', 'steelblue'], ['63b8ff', 'steelblue1'], ['5cacee', 'steelblue2'], ['4f94cd', 'steelblue3'], ['36648b', 'steelblue4'], ['d2b48c', 'tan'], ['ffa54f', 'tan1'], ['ee9a49', 'tan2'], ['cd853f', 'tan3'], ['8b5a2b', 'tan4'], ['d8bfd8', 'thistle'], ['ffe1ff', 'thistle1'], ['eed2ee', 'thistle2'], ['cdb5cd', 'thistle3'], ['8b7b8b', 'thistle4'], ['ff6347', 'tomato'], ['ff6347', 'tomato1'], ['ee5c42', 'tomato2'], ['cd4f39', 'tomato3'], ['8b3626', 'tomato4'], ['fffffe', 'transparent'], ['40e0d0', 'turquoise'], ['00f5ff', 'turquoise1'], ['00e5ee', 'turquoise2'], ['00c5cd', 'turquoise3'], ['00868b', 'turquoise4'], ['ee82ee', 'violet'], ['d02090', 'violetred'], ['ff3e96', 'violetred1'], ['ee3a8c', 'violetred2'], ['cd3278', 'violetred3'], ['8b2252', 'violetred4'], ['f5deb3', 'wheat'], ['ffe7ba', 'wheat1'], ['eed8ae', 'wheat2'], ['cdba96', 'wheat3'], ['8b7e66', 'wheat4'], ['ffffff', 'white'], ['f5f5f5', 'whitesmoke'], ['ffff00', 'yellow'], ['ffff00', 'yellow1'], ['eeee00', 'yellow2'], ['cdcd00', 'yellow3'], ['8b8b00', 'yellow4'], ['9acd32', 'yellowgreen']]; - -function getRadioValue (radioButtonOrGroup) { - var value = null; - if (radioButtonOrGroup.length) { // group - for (var b = 0; b < radioButtonOrGroup.length; b++) - if (radioButtonOrGroup[b].checked) - value = radioButtonOrGroup[b].value; - } - else if (radioButtonOrGroup.checked) - value = radioButtonOrGroup.value; - return value; -} - -function chgBg(obj,color){ -if (document.all || document.getElementById) - obj.style.backgroundColor=color; -else if (document.layers) - obj.bgColor=color; -} - -function clickHandler (evt, img) { - if (window.event){ - offsetX = window.event.offsetX; - offsetY = window.event.offsetY; - } - else if (evt.target) { - var coords = {x: 0, y: 0 }; - var el = evt.target; - do { - coords.x += el.offsetLeft; - coords.y += el.offsetTop; - } - while ((el = el.offsetParent)) { - offsetX = evt.pageX - coords.x - 4; - offsetY = evt.pageY - coords.y - 5; - } - //alert(offsetX + ':' + offsetY); - } - i = 50*Math.floor(offsetY/6) + Math.floor(offsetX/8); - if (i < 0) {i =0;} - else if (i > 652) {i = 652;} - else {i = i +0;} - //alert("this is " + i + " : " + offsetX+ " : " +offsetY); - myColor = getRadioValue(document.showDatabase.colorS); - myCell = document.getElementById(myColor); - myColorName = document.showDatabase[myColor + 'Name']; - myColorHex = document.showDatabase[myColor + 'Color']; - myColorName.value = _colors[i][1]; - myColorHex.value = _colors[i][0]; - //alert(myColorName.value + ':' + myColorHex.value); - chgBg(myCell,_colors[i][0]); -} diff --git a/web/javascript/correlationMatrix.js b/web/javascript/correlationMatrix.js deleted file mode 100755 index d3ca195e..00000000 --- a/web/javascript/correlationMatrix.js +++ /dev/null @@ -1,453 +0,0 @@ - -/*For Tissue Correlation Page; Default Export Tissue Text*/ -function exportTissueText(items){ - var windowName = 'ExportTissueText'; - var newWindow = open("", windowName,"width=900,menubar=0,toolbar=1,resizable=1,status=1,scrollbars=1"); - var html = '
';
-	
-	for (i=0;i0) && (j>0)){
-				html += items[i][j].slice(0,items[i][j].indexOf('/'));}
-			else if (((i>0) && (j == 0)) || ((i == 0) && (j > 0))){
-				html += items[i][j].slice(0, items[i][j].indexOf('/'));
-				}
-				
-			else {
-				html += "Correlation";}
-			html += '\t';}
-		html += '\n';}
-	html += '
'; - - html += '

'; - - html += '
';
-	for (i=0;i0) && (j>0)){
-				html += items[i][j].slice(items[i][j].indexOf('/')+1, items[i][j].length);}
-			else if (((i>0) && (j == 0)) || ((i == 0) && (j > 0))){
-				html += items[i][j].slice(0, items[i][j].indexOf('/'));}
-			else {
-				html += 'P Value';}
-			html += '\t';}
-		html += '\n';}
-	html += '
'; - - newWindow.document.write(html); - newWindow.document.close(); - newWindow.focus();/**/ -} - -/*Export Tissue Text for long label*/ -function exportTissueVerboseText(items){ - var windowName = 'ExportVerboseText'; - var newWindow = open("", windowName,"width=900,menubar=0,toolbar=1,resizable=1,status=1,scrollbars=1"); - var html = '
';
-	
-	for (i=0;i0) && (j>0)){
-				html += items[i][j].slice(0,items[i][j].indexOf('/'));}
-			else if ((i>0) && (j == 0)){
-				position1 = items[i][j].indexOf('/') + 1;
-				position2 = items[i][j].indexOf('/', position1);
-				html += items[i][j].slice(position2 + 1, items[i][j].length);}
-			else if ((i == 0) && (j>0)){
-				html += items[i][j].slice(0, items[i][j].indexOf('/')) ;}
-			else {
-				html += "Correlation";}
-			html += '\t';}
-		html += '\n';}
-	html += '
'; - - html += '

'; - - html += '
';
-	for (i=0;i0) && (j>0)){
-				html += items[i][j].slice(items[i][j].indexOf('/')+1, items[i][j].length);}
-			else if ((i>0) && (j == 0)){
-				position1 = items[i][j].indexOf('/') + 1;
-				position2 = items[i][j].indexOf('/', position1) + 1;
-				html += items[i][j].slice(position2, items[i][j].length);}
-			else if ((i == 0) && (j>0)){
-				html += items[i][j].slice(0, items[i][j].indexOf('/'));}
-			else {
-				html += 'P Value';}
-			html += '\t';}
-		html += '\n';}
-	html += '
'; - - newWindow.document.write(html); - newWindow.document.close(); - newWindow.focus();/**/ -} - -/*For Tissue Correlation Page; Default Save function for results of symbol count =1*/ -function exportAllTissueText(items){ - var windowName = 'ExportTissueText'; - var newWindow = open("", windowName,"width=900,menubar=0,toolbar=1,resizable=1,status=1,scrollbars=1"); - var html = '
';
-	
-	for (i=0;i0) && (j>0)){
-				html += items[i][j].slice(0,items[i][j].indexOf('/'));}
-			else if (((i>0) && (j == 0)) || ((i == 0) && (j > 0))){
-				html += items[i][j].slice(0, items[i][j].indexOf('/'));
-				}
-				
-			else {
-				html += "Correlation";}
-			html += '\t';}
-		html += '\n';}
-	html += '
'; - - newWindow.document.write(html); - newWindow.document.close(); - newWindow.focus();/**/ -} - -/* Display Short Label for Tissue */ -function displayTissueShortName(){ - var geneSymbols = document.getElementsByName("Symbol"); - - var exportButton = document.getElementsByName("export")[0]; - var shortNameCheck = document.getElementById("shortName_1"); // to check if currently short - - if (shortNameCheck.style.display == 'none'){ - exportButton.value="Export"; - exportButton.onclick = function(){exportTissueText(allCorrelations);}; - } - else { - exportButton.value="Export"; - exportButton.onclick = function(){exportTissueText(allCorrelations);}; - } - - for (i=0; i < geneSymbols.length; i++){ - var shortName = document.getElementById("shortName_" + String(i)); - var verboseName = document.getElementById("verboseName_" + String(i)); - var verboseName2 = document.getElementById("verboseName2_" + String(i)); - var verboseName3 = document.getElementById("verboseName3_" + String(i)); - - - if (shortName.style.display == 'block') { - shortName.style.display = 'none'; - } - - else if (shortName.style.display == 'none') { - if (verboseName.style.display == 'block'){ - verboseName.style.display = 'none'; - verboseName2.style.display = 'none'; - verboseName3.style.display = 'none'; - } - shortName.style.display = 'block'; - } - } -} - -/* Display Long Label for Tissue */ -function displayTissueVerboseName(){ - var geneSymbols = document.getElementsByName("Symbol"); - - var exportButton = document.getElementsByName("export")[0]; - var verboseNameCheck = document.getElementById("verboseName_0"); // to check if currently verbose - - if (verboseNameCheck.style.display == 'none'){ - exportButton.value="Export"; - exportButton.onclick = function(){exportTissueVerboseText(allCorrelations);}; - } - else { - exportButton.value="Export"; - exportButton.onclick = function(){exportTissueText(allCorrelations);}; - } - - for (i=0; i < geneSymbols.length; i++){ - var verboseName = document.getElementById("verboseName_" + String(i)); - var verboseName2 = document.getElementById("verboseName2_" + String(i)); - var verboseName3 = document.getElementById("verboseName3_" + String(i)); - var shortName = document.getElementById("shortName_" + String(i)); - - - if (verboseName.style.display == 'block') { - verboseName.style.display = 'none'; - verboseName2.style.display = 'none'; - verboseName3.style.display = 'none'; - } - - else if (verboseName.style.display == 'none'){ - if (shortName.style.display == 'block'){ - shortName.style.display = 'none'; - } - verboseName.style.display = 'block'; - verboseName2.style.display = 'block'; - verboseName3.style.display = 'block'; - } - } - -} - -/* Info page for dataset of tissue correlation */ -function tissueDatasetInfo(thisForm,dataSetNames){ - var windowName = 'dataset_info'; - var Index = thisForm.selectedIndex; - var datasetName =dataSetNames[Index] - var page = '/dbdoc/' + datasetName + '.html'; - newWindow = open(page,windowName,"menubar=1,toolbar=1,location=1,resizable=1,status=1,scrollbars=1,directories=1,width=900"); - newWindow.focus() -} - - -/*for correlation matrix page*/ -/* Display Short Label in Correlation Matrix */ -function displayShortName(){ - var traitList = document.getElementsByName("traitList")[0].value.split("\t"); - var exportButton = document.getElementsByName("export")[0]; - var shortNameCheck = document.getElementById("shortName_1"); // to check if currently short - - if (shortNameCheck.style.display == 'none'){ - exportButton.value="Export"; - exportButton.onclick = function(){exportAbbreviationText(allCorrelations);}; - } - else { - exportButton.value="Export"; - exportButton.onclick = function(){exportText(allCorrelations);}; - } - - for (i=0; i < traitList.length; i++){ - var shortName = document.getElementById("shortName_" + String(i)); - var verboseName = document.getElementById("verboseName_" + String(i)); - var verboseName2 = document.getElementById("verboseName2_" + String(i)); - var verboseName3 = document.getElementById("verboseName3_" + String(i)); - - - if (shortName.style.display == 'block') { - shortName.style.display = 'none'; - } - - else if (shortName.style.display == 'none') { - if (verboseName.style.display == 'block'){ - verboseName.style.display = 'none'; - verboseName2.style.display = 'none'; - verboseName3.style.display = 'none'; - } - shortName.style.display = 'block'; - } - } -} - -/* Display Long Label in Correlation Matrix*/ -function displayVerboseName(){ - var traitList = document.getElementsByName("traitList")[0].value.split("\t"); - var exportButton = document.getElementsByName("export")[0]; - var verboseNameCheck = document.getElementById("verboseName_0"); // to check if currently verbose - - if (verboseNameCheck.style.display == 'none'){ - exportButton.value="Export"; - exportButton.onclick = function(){exportVerboseText(allCorrelations);}; - } - else { - exportButton.value="Export"; - exportButton.onclick = function(){exportText(allCorrelations);}; - } - - for (i=0; i < traitList.length; i++){ - var verboseName = document.getElementById("verboseName_" + String(i)); - var verboseName2 = document.getElementById("verboseName2_" + String(i)); - var verboseName3 = document.getElementById("verboseName3_" + String(i)); - var shortName = document.getElementById("shortName_" + String(i)); - - if (verboseName.style.display == 'block') { - verboseName.style.display = 'none'; - verboseName2.style.display = 'none'; - verboseName3.style.display = 'none'; - } - - else if (verboseName.style.display == 'none'){ - if (shortName.style.display == 'block'){ - shortName.style.display = 'none'; - } - verboseName.style.display = 'block'; - verboseName2.style.display = 'block'; - verboseName3.style.display = 'block'; - } - } - -} - -/*Export for long label in Correlation Matrix*/ -function exportVerboseText(items){ - var windowName = 'ExportVerboseText'; - var newWindow = open("", windowName,"width=900,menubar=0,toolbar=1,resizable=1,status=1,scrollbars=1"); - var html = '
';
-	
-	for (i=0;i0) && (j>0)){
-				html += items[i][j].slice(0,items[i][j].indexOf('/'));}
-			else if ((i>0) && (j == 0)){
-				position1 = items[i][j].indexOf('/') + 1;
-				position2 = items[i][j].indexOf('/', position1);
-				html += "Trait " + String(i) + ": " + items[i][j].slice(position2 + 1, items[i][j].length);}
-			else if ((i == 0) && (j>0)){
-				html += items[i][j];}
-			else {
-				html += "Correlation";}
-			html += '\t';}
-		html += '\n';}
-	html += '
'; - - html += '

'; - - html += '
';
-	for (i=0;i0) && (j>0)){
-				html += items[i][j].slice(items[i][j].indexOf('/')+1, items[i][j].length);}
-			else if ((i>0) && (j == 0)){
-				position1 = items[i][j].indexOf('/') + 1;
-				position2 = items[i][j].indexOf('/', position1) + 1;
-				html += "Trait " + String(i) + ": " + items[i][j].slice(position2, items[i][j].length);}
-			else if ((i == 0) && (j>0)){
-				html += items[i][j];}
-			else {
-				html += 'N';}
-			html += '\t';}
-		html += '\n';}
-	html += '
'; - - newWindow.document.write(html); - newWindow.document.close(); - newWindow.focus();/**/ -} - -/*Default Export for labels in Correlation Matrix*/ -function exportText(items){ - var windowName = 'ExportText'; - var newWindow = open("", windowName,"width=900,menubar=0,toolbar=1,resizable=1,status=1,scrollbars=1"); - var html = '
';
-	for (i=0;i0) && (j>0)){
-				html += items[i][j].slice(0,items[i][j].indexOf('/'));}
-			else if (((i>0) && (j == 0)) || ((i == 0) && (j > 0))){
-				html += items[i][j].slice(0, items[i][j].indexOf('/'));}
-			else {
-				html += "Correlation";}
-			html += '\t';}
-		html += '\n';}
-	html += '
'; - - html += '

'; - - html += '
';
-	for (i=0;i0) && (j>0)){
-				html += items[i][j].slice(items[i][j].indexOf('/')+1, items[i][j].length);}
-			else if (((i>0) && (j == 0)) || ((i == 0) && (j > 0))){
-				html += items[i][j].slice(0, items[i][j].indexOf('/'));}
-			else {
-				html += 'N';}
-			html += '\t';}
-		html += '\n';}
-	html += '
'; - - newWindow.document.write(html); - newWindow.document.close(); - newWindow.focus();/**/ -} - -/*Export for short label in Correlation Matrix*/ -function exportAbbreviationText(items){ - var windowName = 'ExportAbbreviationText'; - var newWindow = open("", windowName,"width=900,menubar=0,toolbar=1,resizable=1,status=1,scrollbars=1"); - var html = '
';
-	
-	for (i=0;i0) && (j>0)){
-				html += items[i][j].slice(0,items[i][j].indexOf('/'));}
-			else if ((i>0) && (j == 0)){
-				position1 = items[i][j].indexOf('/') + 1;
-				position2 = items[i][j].indexOf('/', position1);
-				html += "Trait " + String(i) + ": " + items[i][j].slice(position1, position2);}
-			else if ((i == 0) && (j>0)){
-				html += items[i][j];}
-			else {
-				html += "Correlation";}
-			html += '\t';}
-		html += '\n';}
-	html += '
'; - - html += '

'; - - html += '
';
-	for (i=0;i0) && (j>0)){
-				html += items[i][j].slice(items[i][j].indexOf('/')+1, items[i][j].length);}
-			else if ((i>0) && (j == 0)){
-				position1 = items[i][j].indexOf('/') + 1;
-				position2 = items[i][j].indexOf('/', position1);
-				html += "Trait " + String(i) + ": " + items[i][j].slice(position1, position2);}
-			else if ((i == 0) && (j>0)){
-				html += items[i][j];}
-			else {
-				html += 'N';}
-			html += '\t';}
-		html += '\n';}
-	html += '
'; - - newWindow.document.write(html); - newWindow.document.close(); - newWindow.focus();/**/ -} - -/*dynamic change formID for process bar display issue. Only Single symbol result page needs process bar*/ -function selectFormIdForTissueCorr(fmName){ - - var thisForm = getForm(fmName); - var geneSymbolStr =thisForm.geneSymbols.value; - var geneSymbolStrSplit =geneSymbolStr.split(/\n/);//delimiter is very important here - - len=geneSymbolStrSplit.length; - if (len==1){ - thisForm.FormID.value="dispTissueCorrelationResult"; - } - else{ - thisForm.FormID.value="dispMultiSymbolsResult"; - } - thisForm.submit() -} - -/*make default for dropdown menu in tissue correlation page*/ -function makeTissueCorrDefault(thisform){ - setCookie('cookieTest', 'cookieTest', 1); - var cookieTest = getCookie('cookieTest'); - delCookie('cookieTest'); - if (cookieTest){ - var defaultTissueDataset = thisform.tissueProbeSetFeezeId.value; - setCookie('defaultTissueDataset', defaultTissueDataset, 10); - alert("The current dataset is set to default."); - } - else{ - alert("You need to enable Cookies in your browser."); - } - -} - -/*set default selected value for tissue correlation dataset Id*/ -function getTissueCorrDefault(fmName){ - var thisForm = getForm(fmName); - if (getCookie('defaultTissueDataset')){ - thisForm.tissueProbeSetFeezeId.selectedIndex =(getCookie('defaultTissueDataset'))-1; - } - else{ - thisForm.tissueProbeSetFeezeId.selectedIndex =0; - } - -} diff --git a/web/javascript/dhtml.js b/web/javascript/dhtml.js deleted file mode 100755 index 52676ac8..00000000 --- a/web/javascript/dhtml.js +++ /dev/null @@ -1,319 +0,0 @@ -/** - * These are REALLY simple serialisation tools meant for simple Hash-like -objects in the for key=val - */ -var PrefUtils = { - deserialize:function(inStr){ - return eval('('+inStr+')'); - }, - serialize:function(inObj){ - var buf = '{'; - var cma = ''; - var quote = "'"; - for (i in inObj){ - if (typeof i == 'string'){ - buf += cma + quote + i + quote + " : " - + quote +inObj[i]+ quote; - cma = ','; - } - } - buf += '}'; - return buf; - }, - testCookie:function(){ - setCookie('cookieTest', 'cookieTest', 1); - var cookieTest = getCookie('cookieTest'); - delCookie('cookieTest'); - if (cookieTest) return true; - else return false; - }, - form2Cookie:function(thisForm, cookieName){ - if (!this.testCookie()){ - alert("You need to enable Cookie in your browser!"); - } - else{ - var pref = getCookie(cookieName); - var options = this.deserialize(pref); - if(!options){ - options = new Array(); - }/**/ - for( var x = 0; thisForm.elements[x]; x++ ) { - if( thisForm.elements[x].type ) { - var oE = thisForm.elements[x]; - var oT = oE.type.toLowerCase(); - if( oT == 'text' || oT == 'textarea' || oT == 'select-one' ) { - options[oE.name] = oE.value; - } - } - } - setCookie(cookieName, this.serialize(options), 10); - alert("Your preference has been saved."); - } - } -}; - -function updateInner(Id, str){ - document.getElementById(Id).innerHTML = str; -} - - -function popWindow(myId){ - if (!document.getElementById || !myId) return false; - else{ - var div = document.getElementById(myId); - if (!div){ - div = document.createElement("div"); - div.id = myId; - div.style.position = "absolute"; - div.style.top = "50%"; - div.style.left = "50%"; - div.style.width = "400px"; - div.style.height = "250px"; - div.style.margin = "-125px 0 0 -200px"; - div.style.border = "4px double #3366cc"; - div.style.padding = "0px"; - div.style.opacity = "0.99"; - div.style.backgroundColor = "#FFFFFF"; - div.style.fontSize = "60px"; - div.style.lineHeight = "60px"; - div.style.textAlign = "right"; - document.body.appendChild(div); - } - else{ - //alert("Layer already exists;") - } - xmlhttpPost('/webqtl/AJAX_pref.py', 'tab=assembly&divId='+myId, myId); - div.style.visibility = 'visible'; - } -} - -/*New added by NL*/ -/* -Used by PartialCorrTraitPage.py, CorrelationPage.py, -*/ -function xmlhttpPost(strURL, div, querystring) { - - var xmlHttpReq = false; - var self = this; - var lay = document.getElementById('warningLayer'); - if (lay != null) {lay.style.visibility = "visible";} - // Mozilla/Safari - if (window.XMLHttpRequest) { - self.xmlHttpReq = new XMLHttpRequest(); - } - // IE - else if (window.ActiveXObject) { - self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP"); - } - self.xmlHttpReq.open('POST', strURL, true); - self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); - self.xmlHttpReq.onreadystatechange = function() { - if (self.xmlHttpReq.readyState == 4) { - responseText = self.xmlHttpReq.responseText; - updatepage(div, responseText); - if (lay != null) lay.style.visibility = "hidden"; - } - } - self.xmlHttpReq.send(querystring); -} - -function updatepage(Id, str){ - document.getElementById(Id).innerHTML = str; -} -/* -Used by CorrelationPage.py, -elements: name,customizer, trait, filename, strainIds and vals are required by getquerystring function -*/ -function getquerystring(thisform) { - var db = thisform.customizer.value; - var dbname = thisform.databaseFull.value; - var form = thisform.name; - var trait = thisform.identification.value; - var file = thisform.filename.value; - var ids = thisform.strainIds.value; - var vals = thisform.vals.value; - qstr = 'cmd=addCorr&db=' + escape(db) + '&dbname=' + escape(dbname) + '&form=' + escape(form) + '&trait=' + escape(trait) + '&file=' + escape(file)+ '&ids=' + escape(ids) + '&vals=' + escape(vals); - // NOTE: no '?' before querystring - return qstr; -} - -/* -* Used by snpBrowserPage.py and AJAX_snpbrowser.py, -*/ -function xmlhttpPostSNP(strURL) { - var xmlHttpReq = false; - var self = this; - // Mozilla/Safari - if (window.XMLHttpRequest) { - self.xmlHttpReq = new XMLHttpRequest(); - } - // IE - else if (window.ActiveXObject) { - self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP"); - } - self.xmlHttpReq.open('POST', strURL, true); - self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); - self.xmlHttpReq.onreadystatechange = function() { - if (self.xmlHttpReq.readyState == 4) { - responseTextArray = self.xmlHttpReq.responseText.split("__split__"); - updatepage('menu_group', responseTextArray[0]); - updatepage('menu_s1', responseTextArray[1]); - updatepage('menu_s2', responseTextArray[2]); - updatepage('menu_s3', responseTextArray[3]); - } - } - self.xmlHttpReq.send(getquerystringSNP()); -} -/* -* used by snpBrowserPage.py, html elements:newSNPPadding, group, s1 and s2 are required -*/ -function getquerystringSNP() { - var form = document.newSNPPadding; - var group = form.group.value; - var s1 = form.s1.value; - var s2 = form.s2.value; - qstr = 'group=' + escape(group) + '&s1=' + escape(s1) + '&s2=' + escape(s2); - // NOTE: no '?' before querystring - return qstr; -} - - -/* -Used by CorrelationPage.py, element's Id named 'warningLayer' is required -*/ -function pageOffset() { - lay = document.getElementById('warningLayer'); - lay.style.top = document.body.scrollTop + 300; //document.body.clientWidth/2; - lay.style.left = (windowWidth() -250)/2; - setTimeout('pageOffset()',100); -} - -/* -* Used by CorrelationPage.py, -*/ -function windowWidth(){ - if (document.getElementById){ - - if (window.innerWidth) - return window.innerWidth; - if (document.documentElement&&document.documentElement.clientWidth) - return document.documentElement.clientWidth; - if (document.body.clientWidth) - return document.body.clientWidth; - } -} - -/* -* Used by PartialCorrInputPage.py, -*/ -function setAllAsTarget(thisForm, inputRadioNames){ - var radioArray = new Array(); - radioArray = inputRadioNames.split(','); - - for (var i = 0; i < radioArray.length; i++){ - radioElement = thisForm[radioArray[i]]; - - for (var j = 0; j < radioElement.length; j++){ - radioElement[j].checked = false; - value = radioElement[j].value; - if (value == "target"){ - radioElement[j].checked = true; - } - } - } -} - -/* -* Used by PartialCorrInputPage.py, -*/ -function setAllAsIgnore(thisForm, inputRadioNames){ - var radioArray = new Array(); - radioArray = inputRadioNames.split(','); - - for (var i = 0; i < radioArray.length; i++){ - radioElement = thisForm[radioArray[i]]; - - for (var j = 0; j < radioElement.length; j++){ - radioElement[j].checked = false; - value = radioElement[j].value; - if (value == "ignored"){ - radioElement[j].checked = true; - } - } - } -} - -/* -* moved from beta2.js -*/ -function checkUncheck(value, permCheck, bootCheck) { - if(value=="physic") { - permCheck.checked=true - bootCheck.checked=false - } else { - permCheck.checked=true - bootCheck.checked=true - } -} - -/* -updated by NL: 06-07-2010 -add new item at the top -*/ -function addToList(text, value, list) { - for (var j = list.length-1; j >=0; j--){ - list.options[j+1]= new Option(list.options[j].text,list.options[j].value); - } - list.options[0] = new Option(text, value) -} - -function removeFromList(index, list) { - list.options[index] = null - list.options[index].selected = true - if (list.length == 1) { - list.options[0].selected = true - } -} - -function swapOptions(index1, index2, list) { - text1 = list.options[index1].text - value1 = list.options[index1].value - text2 = list.options[index2].text - value2 = list.options[index2].value - list.options[index1] = new Option(text2, value2) - list.options[index2] = new Option(text1, value1) - list.options[index2].selected = true -} - -function selectAllElements(list) { - for(i=0; i' -ctext += 'Home' -ctext += '   |   ' -ctext += '' -ctext += 'Search' -ctext += '   |   ' -ctext += '' -ctext += 'Help' -ctext += '   |   ' -ctext += '' -ctext += '' -ctext += 'News' -ctext += '   |   ' -ctext += '' -ctext += '' -ctext += 'References' -ctext += '   |   ' -ctext += '' -ctext += 'Policies' -ctext += '   |   ' -ctext += '' -ctext += '' -ctext += 'Links' -ctext += '   |   ' -ctext += '' -ctext += '' -ctext += '   ' -ctext += '' -ctext += '' -ctext += '' -ctext += '' -document.write(ctext) \ No newline at end of file diff --git a/web/javascript/jquery-1.5.2.min.js b/web/javascript/jquery-1.5.2.min.js deleted file mode 100755 index d5636d70..00000000 --- a/web/javascript/jquery-1.5.2.min.js +++ /dev/null @@ -1,16 +0,0 @@ -/*! - * jQuery JavaScript Library v1.5.2 - * http://jquery.com/ - * - * Copyright 2011, John Resig - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * Includes Sizzle.js - * http://sizzlejs.com/ - * Copyright 2011, The Dojo Foundation - * Released under the MIT, BSD, and GPL Licenses. - * - * Date: Thu Mar 31 15:28:23 2011 -0400 - */ -(function(a,b){function ci(a){return d.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cf(a){if(!b_[a]){var b=d("<"+a+">").appendTo("body"),c=b.css("display");b.remove();if(c==="none"||c==="")c="block";b_[a]=c}return b_[a]}function ce(a,b){var c={};d.each(cd.concat.apply([],cd.slice(0,b)),function(){c[this]=a});return c}function b$(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function bZ(){try{return new a.XMLHttpRequest}catch(b){}}function bY(){d(a).unload(function(){for(var a in bW)bW[a](0,1)})}function bS(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var e=a.dataTypes,f={},g,h,i=e.length,j,k=e[0],l,m,n,o,p;for(g=1;g=0===c})}function P(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function H(a,b){return(a&&a!=="*"?a+".":"")+b.replace(t,"`").replace(u,"&")}function G(a){var b,c,e,f,g,h,i,j,k,l,m,n,o,p=[],q=[],s=d._data(this,"events");if(a.liveFired!==this&&s&&s.live&&!a.target.disabled&&(!a.button||a.type!=="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var t=s.live.slice(0);for(i=0;ic)break;a.currentTarget=f.elem,a.data=f.handleObj.data,a.handleObj=f.handleObj,o=f.handleObj.origHandler.apply(f.elem,arguments);if(o===!1||a.isPropagationStopped()){c=f.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function E(a,c,e){var f=d.extend({},e[0]);f.type=a,f.originalEvent={},f.liveFired=b,d.event.handle.call(c,f),f.isDefaultPrevented()&&e[0].preventDefault()}function y(){return!0}function x(){return!1}function i(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function h(a,c,e){if(e===b&&a.nodeType===1){e=a.getAttribute("data-"+c);if(typeof e==="string"){try{e=e==="true"?!0:e==="false"?!1:e==="null"?null:d.isNaN(e)?g.test(e)?d.parseJSON(e):e:parseFloat(e)}catch(f){}d.data(a,c,e)}else e=b}return e}var c=a.document,d=function(){function G(){if(!d.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(G,1);return}d.ready()}}var d=function(a,b){return new d.fn.init(a,b,g)},e=a.jQuery,f=a.$,g,h=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,i=/\S/,j=/^\s+/,k=/\s+$/,l=/\d/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=navigator.userAgent,w,x,y,z=Object.prototype.toString,A=Object.prototype.hasOwnProperty,B=Array.prototype.push,C=Array.prototype.slice,D=String.prototype.trim,E=Array.prototype.indexOf,F={};d.fn=d.prototype={constructor:d,init:function(a,e,f){var g,i,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!e&&c.body){this.context=c,this[0]=c.body,this.selector="body",this.length=1;return this}if(typeof a==="string"){g=h.exec(a);if(!g||!g[1]&&e)return!e||e.jquery?(e||f).find(a):this.constructor(e).find(a);if(g[1]){e=e instanceof d?e[0]:e,k=e?e.ownerDocument||e:c,j=m.exec(a),j?d.isPlainObject(e)?(a=[c.createElement(j[1])],d.fn.attr.call(a,e,!0)):a=[k.createElement(j[1])]:(j=d.buildFragment([g[1]],[k]),a=(j.cacheable?d.clone(j.fragment):j.fragment).childNodes);return d.merge(this,a)}i=c.getElementById(g[2]);if(i&&i.parentNode){if(i.id!==g[2])return f.find(a);this.length=1,this[0]=i}this.context=c,this.selector=a;return this}if(d.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return d.makeArray(a,this)},selector:"",jquery:"1.5.2",length:0,size:function(){return this.length},toArray:function(){return C.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var e=this.constructor();d.isArray(a)?B.apply(e,a):d.merge(e,a),e.prevObject=this,e.context=this.context,b==="find"?e.selector=this.selector+(this.selector?" ":"")+c:b&&(e.selector=this.selector+"."+b+"("+c+")");return e},each:function(a,b){return d.each(this,a,b)},ready:function(a){d.bindReady(),x.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(C.apply(this,arguments),"slice",C.call(arguments).join(","))},map:function(a){return this.pushStack(d.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:B,sort:[].sort,splice:[].splice},d.fn.init.prototype=d.fn,d.extend=d.fn.extend=function(){var a,c,e,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i==="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!=="object"&&!d.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;x.resolveWith(c,[d]),d.fn.trigger&&d(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!x){x=d._Deferred();if(c.readyState==="complete")return setTimeout(d.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",y,!1),a.addEventListener("load",d.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",y),a.attachEvent("onload",d.ready);var b=!1;try{b=a.frameElement==null}catch(e){}c.documentElement.doScroll&&b&&G()}}},isFunction:function(a){return d.type(a)==="function"},isArray:Array.isArray||function(a){return d.type(a)==="array"},isWindow:function(a){return a&&typeof a==="object"&&"setInterval"in a},isNaN:function(a){return a==null||!l.test(a)||isNaN(a)},type:function(a){return a==null?String(a):F[z.call(a)]||"object"},isPlainObject:function(a){if(!a||d.type(a)!=="object"||a.nodeType||d.isWindow(a))return!1;if(a.constructor&&!A.call(a,"constructor")&&!A.call(a.constructor.prototype,"isPrototypeOf"))return!1;var c;for(c in a){}return c===b||A.call(a,c)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!=="string"||!b)return null;b=d.trim(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return a.JSON&&a.JSON.parse?a.JSON.parse(b):(new Function("return "+b))();d.error("Invalid JSON: "+b)},parseXML:function(b,c,e){a.DOMParser?(e=new DOMParser,c=e.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b)),e=c.documentElement,(!e||!e.nodeName||e.nodeName==="parsererror")&&d.error("Invalid XML: "+b);return c},noop:function(){},globalEval:function(a){if(a&&i.test(a)){var b=c.head||c.getElementsByTagName("head")[0]||c.documentElement,e=c.createElement("script");d.support.scriptEval()?e.appendChild(c.createTextNode(a)):e.text=a,b.insertBefore(e,b.firstChild),b.removeChild(e)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,e){var f,g=0,h=a.length,i=h===b||d.isFunction(a);if(e){if(i){for(f in a)if(c.apply(a[f],e)===!1)break}else for(;g1?f.call(arguments,0):c,--g||h.resolveWith(h,f.call(b,0))}}var b=arguments,c=0,e=b.length,g=e,h=e<=1&&a&&d.isFunction(a.promise)?a:d.Deferred();if(e>1){for(;c
a";var e=b.getElementsByTagName("*"),f=b.getElementsByTagName("a")[0],g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=b.getElementsByTagName("input")[0];if(e&&e.length&&f){d.support={leadingWhitespace:b.firstChild.nodeType===3,tbody:!b.getElementsByTagName("tbody").length,htmlSerialize:!!b.getElementsByTagName("link").length,style:/red/.test(f.getAttribute("style")),hrefNormalized:f.getAttribute("href")==="/a",opacity:/^0.55$/.test(f.style.opacity),cssFloat:!!f.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,deleteExpando:!0,optDisabled:!1,checkClone:!1,noCloneEvent:!0,noCloneChecked:!0,boxModel:null,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableHiddenOffsets:!0,reliableMarginRight:!0},i.checked=!0,d.support.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,d.support.optDisabled=!h.disabled;var j=null;d.support.scriptEval=function(){if(j===null){var b=c.documentElement,e=c.createElement("script"),f="script"+d.now();try{e.appendChild(c.createTextNode("window."+f+"=1;"))}catch(g){}b.insertBefore(e,b.firstChild),a[f]?(j=!0,delete a[f]):j=!1,b.removeChild(e)}return j};try{delete b.test}catch(k){d.support.deleteExpando=!1}!b.addEventListener&&b.attachEvent&&b.fireEvent&&(b.attachEvent("onclick",function l(){d.support.noCloneEvent=!1,b.detachEvent("onclick",l)}),b.cloneNode(!0).fireEvent("onclick")),b=c.createElement("div"),b.innerHTML="";var m=c.createDocumentFragment();m.appendChild(b.firstChild),d.support.checkClone=m.cloneNode(!0).cloneNode(!0).lastChild.checked,d(function(){var a=c.createElement("div"),b=c.getElementsByTagName("body")[0];if(b){a.style.width=a.style.paddingLeft="1px",b.appendChild(a),d.boxModel=d.support.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,d.support.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="
",d.support.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="
t
";var e=a.getElementsByTagName("td");d.support.reliableHiddenOffsets=e[0].offsetHeight===0,e[0].style.display="",e[1].style.display="none",d.support.reliableHiddenOffsets=d.support.reliableHiddenOffsets&&e[0].offsetHeight===0,a.innerHTML="",c.defaultView&&c.defaultView.getComputedStyle&&(a.style.width="1px",a.style.marginRight="0",d.support.reliableMarginRight=(parseInt(c.defaultView.getComputedStyle(a,null).marginRight,10)||0)===0),b.removeChild(a).style.display="none",a=e=null}});var n=function(a){var b=c.createElement("div");a="on"+a;if(!b.attachEvent)return!0;var d=a in b;d||(b.setAttribute(a,"return;"),d=typeof b[a]==="function");return d};d.support.submitBubbles=n("submit"),d.support.changeBubbles=n("change"),b=e=f=null}}();var g=/^(?:\{.*\}|\[.*\])$/;d.extend({cache:{},uuid:0,expando:"jQuery"+(d.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?d.cache[a[d.expando]]:a[d.expando];return!!a&&!i(a)},data:function(a,c,e,f){if(d.acceptData(a)){var g=d.expando,h=typeof c==="string",i,j=a.nodeType,k=j?d.cache:a,l=j?a[d.expando]:a[d.expando]&&d.expando;if((!l||f&&l&&!k[l][g])&&h&&e===b)return;l||(j?a[d.expando]=l=++d.uuid:l=d.expando),k[l]||(k[l]={},j||(k[l].toJSON=d.noop));if(typeof c==="object"||typeof c==="function")f?k[l][g]=d.extend(k[l][g],c):k[l]=d.extend(k[l],c);i=k[l],f&&(i[g]||(i[g]={}),i=i[g]),e!==b&&(i[c]=e);if(c==="events"&&!i[c])return i[g]&&i[g].events;return h?i[c]:i}},removeData:function(b,c,e){if(d.acceptData(b)){var f=d.expando,g=b.nodeType,h=g?d.cache:b,j=g?b[d.expando]:d.expando;if(!h[j])return;if(c){var k=e?h[j][f]:h[j];if(k){delete k[c];if(!i(k))return}}if(e){delete h[j][f];if(!i(h[j]))return}var l=h[j][f];d.support.deleteExpando||h!=a?delete h[j]:h[j]=null,l?(h[j]={},g||(h[j].toJSON=d.noop),h[j][f]=l):g&&(d.support.deleteExpando?delete b[d.expando]:b.removeAttribute?b.removeAttribute(d.expando):b[d.expando]=null)}},_data:function(a,b,c){return d.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=d.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),d.fn.extend({data:function(a,c){var e=null;if(typeof a==="undefined"){if(this.length){e=d.data(this[0]);if(this[0].nodeType===1){var f=this[0].attributes,g;for(var i=0,j=f.length;i-1)return!0;return!1},val:function(a){if(!arguments.length){var c=this[0];if(c){if(d.nodeName(c,"option")){var e=c.attributes.value;return!e||e.specified?c.value:c.text}if(d.nodeName(c,"select")){var f=c.selectedIndex,g=[],h=c.options,i=c.type==="select-one";if(f<0)return null;for(var j=i?f:0,k=i?f+1:h.length;j=0;else if(d.nodeName(this,"select")){var f=d.makeArray(e);d("option",this).each(function(){this.selected=d.inArray(d(this).val(),f)>=0}),f.length||(this.selectedIndex=-1)}else this.value=e}})}}),d.extend({attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,e,f){if(!a||a.nodeType===3||a.nodeType===8||a.nodeType===2)return b;if(f&&c in d.attrFn)return d(a)[c](e);var g=a.nodeType!==1||!d.isXMLDoc(a),h=e!==b;c=g&&d.props[c]||c;if(a.nodeType===1){var i=m.test(c);if(c==="selected"&&!d.support.optSelected){var j=a.parentNode;j&&(j.selectedIndex,j.parentNode&&j.parentNode.selectedIndex)}if((c in a||a[c]!==b)&&g&&!i){h&&(c==="type"&&n.test(a.nodeName)&&a.parentNode&&d.error("type property can't be changed"),e===null?a.nodeType===1&&a.removeAttribute(c):a[c]=e);if(d.nodeName(a,"form")&&a.getAttributeNode(c))return a.getAttributeNode(c).nodeValue;if(c==="tabIndex"){var k=a.getAttributeNode("tabIndex");return k&&k.specified?k.value:o.test(a.nodeName)||p.test(a.nodeName)&&a.href?0:b}return a[c]}if(!d.support.style&&g&&c==="style"){h&&(a.style.cssText=""+e);return a.style.cssText}h&&a.setAttribute(c,""+e);if(!a.attributes[c]&&(a.hasAttribute&&!a.hasAttribute(c)))return b;var l=!d.support.hrefNormalized&&g&&i?a.getAttribute(c,2):a.getAttribute(c);return l===null?b:l}h&&(a[c]=e);return a[c]}});var r=/\.(.*)$/,s=/^(?:textarea|input|select)$/i,t=/\./g,u=/ /g,v=/[^\w\s.|`]/g,w=function(a){return a.replace(v,"\\$&")};d.event={add:function(c,e,f,g){if(c.nodeType!==3&&c.nodeType!==8){try{d.isWindow(c)&&(c!==a&&!c.frameElement)&&(c=a)}catch(h){}if(f===!1)f=x;else if(!f)return;var i,j;f.handler&&(i=f,f=i.handler),f.guid||(f.guid=d.guid++);var k=d._data(c);if(!k)return;var l=k.events,m=k.handle;l||(k.events=l={}),m||(k.handle=m=function(a){return typeof d!=="undefined"&&d.event.triggered!==a.type?d.event.handle.apply(m.elem,arguments):b}),m.elem=c,e=e.split(" ");var n,o=0,p;while(n=e[o++]){j=i?d.extend({},i):{handler:f,data:g},n.indexOf(".")>-1?(p=n.split("."),n=p.shift(),j.namespace=p.slice(0).sort().join(".")):(p=[],j.namespace=""),j.type=n,j.guid||(j.guid=f.guid);var q=l[n],r=d.event.special[n]||{};if(!q){q=l[n]=[];if(!r.setup||r.setup.call(c,g,p,m)===!1)c.addEventListener?c.addEventListener(n,m,!1):c.attachEvent&&c.attachEvent("on"+n,m)}r.add&&(r.add.call(c,j),j.handler.guid||(j.handler.guid=f.guid)),q.push(j),d.event.global[n]=!0}c=null}},global:{},remove:function(a,c,e,f){if(a.nodeType!==3&&a.nodeType!==8){e===!1&&(e=x);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=d.hasData(a)&&d._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(e=c.handler,c=c.type);if(!c||typeof c==="string"&&c.charAt(0)==="."){c=c||"";for(h in t)d.event.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")<0,m=[],l||(m=h.split("."),h=m.shift(),n=new RegExp("(^|\\.)"+d.map(m.slice(0).sort(),w).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!e){for(j=0;j=0&&(a.type=f=f.slice(0,-1),a.exclusive=!0),e||(a.stopPropagation(),d.event.global[f]&&d.each(d.cache,function(){var b=d.expando,e=this[b];e&&e.events&&e.events[f]&&d.event.trigger(a,c,e.handle.elem)}));if(!e||e.nodeType===3||e.nodeType===8)return b;a.result=b,a.target=e,c=d.makeArray(c),c.unshift(a)}a.currentTarget=e;var h=d._data(e,"handle");h&&h.apply(e,c);var i=e.parentNode||e.ownerDocument;try{e&&e.nodeName&&d.noData[e.nodeName.toLowerCase()]||e["on"+f]&&e["on"+f].apply(e,c)===!1&&(a.result=!1,a.preventDefault())}catch(j){}if(!a.isPropagationStopped()&&i)d.event.trigger(a,c,i,!0);else if(!a.isDefaultPrevented()){var k,l=a.target,m=f.replace(r,""),n=d.nodeName(l,"a")&&m==="click",o=d.event.special[m]||{};if((!o._default||o._default.call(e,a)===!1)&&!n&&!(l&&l.nodeName&&d.noData[l.nodeName.toLowerCase()])){try{l[m]&&(k=l["on"+m],k&&(l["on"+m]=null),d.event.triggered=a.type,l[m]())}catch(p){}k&&(l["on"+m]=k),d.event.triggered=b}}},handle:function(c){var e,f,g,h,i,j=[],k=d.makeArray(arguments);c=k[0]=d.event.fix(c||a.event),c.currentTarget=this,e=c.type.indexOf(".")<0&&!c.exclusive,e||(g=c.type.split("."),c.type=g.shift(),j=g.slice(0).sort(),h=new RegExp("(^|\\.)"+j.join("\\.(?:.*\\.)?")+"(\\.|$)")),c.namespace=c.namespace||j.join("."),i=d._data(this,"events"),f=(i||{})[c.type];if(i&&f){f=f.slice(0);for(var l=0,m=f.length;l-1?d.map(a.options,function(a){return a.selected}).join("-"):"":a.nodeName.toLowerCase()==="select"&&(c=a.selectedIndex);return c},D=function D(a){var c=a.target,e,f;if(s.test(c.nodeName)&&!c.readOnly){e=d._data(c,"_change_data"),f=C(c),(a.type!=="focusout"||c.type!=="radio")&&d._data(c,"_change_data",f);if(e===b||f===e)return;if(e!=null||f)a.type="change",a.liveFired=b,d.event.trigger(a,arguments[1],c)}};d.event.special.change={filters:{focusout:D,beforedeactivate:D,click:function(a){var b=a.target,c=b.type;(c==="radio"||c==="checkbox"||b.nodeName.toLowerCase()==="select")&&D.call(this,a)},keydown:function(a){var b=a.target,c=b.type;(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&D.call(this,a)},beforeactivate:function(a){var b=a.target;d._data(b,"_change_data",C(b))}},setup:function(a,b){if(this.type==="file")return!1;for(var c in B)d.event.add(this,c+".specialChange",B[c]);return s.test(this.nodeName)},teardown:function(a){d.event.remove(this,".specialChange");return s.test(this.nodeName)}},B=d.event.special.change.filters,B.focus=B.beforeactivate}c.addEventListener&&d.each({focus:"focusin",blur:"focusout"},function(a,b){function f(a){var c=d.event.fix(a);c.type=b,c.originalEvent={},d.event.trigger(c,null,c.target),c.isDefaultPrevented()&&a.preventDefault()}var e=0;d.event.special[b]={setup:function(){e++===0&&c.addEventListener(a,f,!0)},teardown:function(){--e===0&&c.removeEventListener(a,f,!0)}}}),d.each(["bind","one"],function(a,c){d.fn[c]=function(a,e,f){if(typeof a==="object"){for(var g in a)this[c](g,e,a[g],f);return this}if(d.isFunction(e)||e===!1)f=e,e=b;var h=c==="one"?d.proxy(f,function(a){d(this).unbind(a,h);return f.apply(this,arguments)}):f;if(a==="unload"&&c!=="one")this.one(a,e,f);else for(var i=0,j=this.length;i0?this.bind(b,a,c):this.trigger(b)},d.attrFn&&(d.attrFn[b]=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g0){j=i;break}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,f=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,e,g){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!=="string")return e;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],d);else{j=l.relative[x[0]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(f.call(n)==="[object Array]")if(u)if(d&&d.nodeType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&e.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&e.push(j[t]);else e.push.apply(e,n);else p(n,e);o&&(k(o,h,e,g),k.uniqueSort(e));return e};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e":function(a,b){var c,d=typeof b==="string",e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&k.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null,null,c);else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return"text"===c&&(b===c||b===null)},radio:function(a){return"radio"===a.type},checkbox:function(a){return"checkbox"===a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===a.type},submit:function(a){return"submit"===a.type},image:function(a){return"image"===a.type},reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||a.nodeName.toLowerCase()==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=l.setFilters[e];if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){return"\\"+(b-0+1)};for(var o in l.match)l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n));var p=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(f.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length==="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!=="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!=="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return p([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a))try{if(e||!l.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return k(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
";if(a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!=="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g0)for(var g=c;g0},closest:function(a,b){var c=[],e,f,g=this[0];if(d.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(e=0,f=a.length;e-1:d(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=N.test(a)?d(a,b||this.context):null;for(e=0,f=this.length;e-1:d.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b)break}}c=c.length>1?d.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a||typeof a==="string")return d.inArray(this[0],a?d(a):this.parent().children());return d.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a==="string"?d(a,b):d.makeArray(a),e=d.merge(this.get(),c);return this.pushStack(P(c[0])||P(e[0])?e:d.unique(e))},andSelf:function(){return this.add(this.prevObject)}}),d.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,b,c){return d.dir(a,"parentNode",c)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth(a,2,"previousSibling")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,b,c){return d.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return d.dir(a,"previousSibling",c)},siblings:function(a){return d.sibling(a.parentNode.firstChild,a)},children:function(a){return d.sibling(a.firstChild)},contents:function(a){return d.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:d.makeArray(a.childNodes)}},function(a,b){d.fn[a]=function(c,e){var f=d.map(this,b,c),g=M.call(arguments);I.test(a)||(e=c),e&&typeof e==="string"&&(f=d.filter(e,f)),f=this.length>1&&!O[a]?d.unique(f):f,(this.length>1||K.test(e))&&J.test(a)&&(f=f.reverse());return this.pushStack(f,a,g.join(","))}}),d.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?d.find.matchesSelector(b[0],a)?[b[0]]:[]:d.find.matches(a,b)},dir:function(a,c,e){var f=[],g=a[c];while(g&&g.nodeType!==9&&(e===b||g.nodeType!==1||!d(g).is(e)))g.nodeType===1&&f.push(g),g=g[c];return f},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var R=/ jQuery\d+="(?:\d+|null)"/g,S=/^\s+/,T=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,U=/<([\w:]+)/,V=/",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]};Z.optgroup=Z.option,Z.tbody=Z.tfoot=Z.colgroup=Z.caption=Z.thead,Z.th=Z.td,d.support.htmlSerialize||(Z._default=[1,"div
","
"]),d.fn.extend({text:function(a){if(d.isFunction(a))return this.each(function(b){var c=d(this);c.text(a.call(this,b,c.text()))});if(typeof a!=="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return d.text(this)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapAll(a.call(this,b))});if(this[0]){var b=d(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapInner(a.call(this,b))});return this.each(function(){var b=d(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){d(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=d(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,d(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,e;(e=this[c])!=null;c++)if(!a||d.filter(a,[e]).length)!b&&e.nodeType===1&&(d.cleanData(e.getElementsByTagName("*")),d.cleanData([e])),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&d.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return d.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(R,""):null;if(typeof a!=="string"||X.test(a)||!d.support.leadingWhitespace&&S.test(a)||Z[(U.exec(a)||["",""])[1].toLowerCase()])d.isFunction(a)?this.each(function(b){var c=d(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);else{a=a.replace(T,"<$1>");try{for(var c=0,e=this.length;c1&&l0?this.clone(!0):this).get();d(f[h])[b](j),e=e.concat(j)}return this.pushStack(e,a,f.selector)}}),d.extend({clone:function(a,b,c){var e=a.cloneNode(!0),f,g,h;if((!d.support.noCloneEvent||!d.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!d.isXMLDoc(a)){ba(a,e),f=bb(a),g=bb(e);for(h=0;f[h];++h)ba(f[h],g[h])}if(b){_(a,e);if(c){f=bb(a),g=bb(e);for(h=0;f[h];++h)_(f[h],g[h])}}return e},clean:function(a,b,e,f){b=b||c,typeof b.createElement==="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var g=[];for(var h=0,i;(i=a[h])!=null;h++){typeof i==="number"&&(i+="");if(!i)continue;if(typeof i!=="string"||W.test(i)){if(typeof i==="string"){i=i.replace(T,"<$1>");var j=(U.exec(i)||["",""])[1].toLowerCase(),k=Z[j]||Z._default,l=k[0],m=b.createElement("div");m.innerHTML=k[1]+i+k[2];while(l--)m=m.lastChild;if(!d.support.tbody){var n=V.test(i),o=j==="table"&&!n?m.firstChild&&m.firstChild.childNodes:k[1]===""&&!n?m.childNodes:[];for(var p=o.length-1;p>=0;--p)d.nodeName(o[p],"tbody")&&!o[p].childNodes.length&&o[p].parentNode.removeChild(o[p])}!d.support.leadingWhitespace&&S.test(i)&&m.insertBefore(b.createTextNode(S.exec(i)[0]),m.firstChild),i=m.childNodes}}else i=b.createTextNode(i);i.nodeType?g.push(i):g=d.merge(g,i)}if(e)for(h=0;g[h];h++)!f||!d.nodeName(g[h],"script")||g[h].type&&g[h].type.toLowerCase()!=="text/javascript"?(g[h].nodeType===1&&g.splice.apply(g,[h+1,0].concat(d.makeArray(g[h].getElementsByTagName("script")))),e.appendChild(g[h])):f.push(g[h].parentNode?g[h].parentNode.removeChild(g[h]):g[h]);return g},cleanData:function(a){var b,c,e=d.cache,f=d.expando,g=d.event.special,h=d.support.deleteExpando;for(var i=0,j;(j=a[i])!=null;i++){if(j.nodeName&&d.noData[j.nodeName.toLowerCase()])continue;c=j[d.expando];if(c){b=e[c]&&e[c][f];if(b&&b.events){for(var k in b.events)g[k]?d.event.remove(j,k):d.removeEvent(j,k,b.handle);b.handle&&(b.handle.elem=null)}h?delete j[d.expando]:j.removeAttribute&&j.removeAttribute(d.expando),delete e[c]}}}});var bd=/alpha\([^)]*\)/i,be=/opacity=([^)]*)/,bf=/-([a-z])/ig,bg=/([A-Z]|^ms)/g,bh=/^-?\d+(?:px)?$/i,bi=/^-?\d/,bj={position:"absolute",visibility:"hidden",display:"block"},bk=["Left","Right"],bl=["Top","Bottom"],bm,bn,bo,bp=function(a,b){return b.toUpperCase()};d.fn.css=function(a,c){if(arguments.length===2&&c===b)return this;return d.access(this,a,c,!0,function(a,c,e){return e!==b?d.style(a,c,e):d.css(a,c)})},d.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bm(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{zIndex:!0,fontWeight:!0,opacity:!0,zoom:!0,lineHeight:!0},cssProps:{"float":d.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,e,f){if(a&&a.nodeType!==3&&a.nodeType!==8&&a.style){var g,h=d.camelCase(c),i=a.style,j=d.cssHooks[h];c=d.cssProps[h]||h;if(e===b){if(j&&"get"in j&&(g=j.get(a,!1,f))!==b)return g;return i[c]}if(typeof e==="number"&&isNaN(e)||e==null)return;typeof e==="number"&&!d.cssNumber[h]&&(e+="px");if(!j||!("set"in j)||(e=j.set(a,e))!==b)try{i[c]=e}catch(k){}}},css:function(a,c,e){var f,g=d.camelCase(c),h=d.cssHooks[g];c=d.cssProps[g]||g;if(h&&"get"in h&&(f=h.get(a,!0,e))!==b)return f;if(bm)return bm(a,c,g)},swap:function(a,b,c){var d={};for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]},camelCase:function(a){return a.replace(bf,bp)}}),d.curCSS=d.css,d.each(["height","width"],function(a,b){d.cssHooks[b]={get:function(a,c,e){var f;if(c){a.offsetWidth!==0?f=bq(a,b,e):d.swap(a,bj,function(){f=bq(a,b,e)});if(f<=0){f=bm(a,b,b),f==="0px"&&bo&&(f=bo(a,b,b));if(f!=null)return f===""||f==="auto"?"0px":f}if(f<0||f==null){f=a.style[b];return f===""||f==="auto"?"0px":f}return typeof f==="string"?f:f+"px"}},set:function(a,b){if(!bh.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),d.support.opacity||(d.cssHooks.opacity={get:function(a,b){return be.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style;c.zoom=1;var e=d.isNaN(b)?"":"alpha(opacity="+b*100+")",f=c.filter||"";c.filter=bd.test(f)?f.replace(bd,e):c.filter+" "+e}}),d(function(){d.support.reliableMarginRight||(d.cssHooks.marginRight={get:function(a,b){var c;d.swap(a,{display:"inline-block"},function(){b?c=bm(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(bn=function(a,c,e){var f,g,h;e=e.replace(bg,"-$1").toLowerCase();if(!(g=a.ownerDocument.defaultView))return b;if(h=g.getComputedStyle(a,null))f=h.getPropertyValue(e),f===""&&!d.contains(a.ownerDocument.documentElement,a)&&(f=d.style(a,e));return f}),c.documentElement.currentStyle&&(bo=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bh.test(d)&&bi.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":d}),bm=bn||bo,d.expr&&d.expr.filters&&(d.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!d.support.reliableHiddenOffsets&&(a.style.display||d.css(a,"display"))==="none"},d.expr.filters.visible=function(a){return!d.expr.filters.hidden(a)});var br=/%20/g,bs=/\[\]$/,bt=/\r?\n/g,bu=/#.*$/,bv=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bw=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bx=/^(?:about|app|app\-storage|.+\-extension|file|widget):$/,by=/^(?:GET|HEAD)$/,bz=/^\/\//,bA=/\?/,bB=/)<[^<]*)*<\/script>/gi,bC=/^(?:select|textarea)/i,bD=/\s+/,bE=/([?&])_=[^&]*/,bF=/(^|\-)([a-z])/g,bG=function(a,b,c){return b+c.toUpperCase()},bH=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bI=d.fn.load,bJ={},bK={},bL,bM;try{bL=c.location.href}catch(bN){bL=c.createElement("a"),bL.href="",bL=bL.href}bM=bH.exec(bL.toLowerCase())||[],d.fn.extend({load:function(a,c,e){if(typeof a!=="string"&&bI)return bI.apply(this,arguments);if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var g=a.slice(f,a.length);a=a.slice(0,f)}var h="GET";c&&(d.isFunction(c)?(e=c,c=b):typeof c==="object"&&(c=d.param(c,d.ajaxSettings.traditional),h="POST"));var i=this;d.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?d("
").append(c.replace(bB,"")).find(g):c)),e&&i.each(e,[c,b,a])}});return this},serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?d.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bC.test(this.nodeName)||bw.test(this.type))}).map(function(a,b){var c=d(this).val();return c==null?null:d.isArray(c)?d.map(c,function(a,c){return{name:b.name,value:a.replace(bt,"\r\n")}}):{name:b.name,value:c.replace(bt,"\r\n")}}).get()}}),d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){d.fn[b]=function(a){return this.bind(b,a)}}),d.each(["get","post"],function(a,c){d[c]=function(a,e,f,g){d.isFunction(e)&&(g=g||f,f=e,e=b);return d.ajax({type:c,url:a,data:e,success:f,dataType:g})}}),d.extend({getScript:function(a,c){return d.get(a,b,c,"script")},getJSON:function(a,b,c){return d.get(a,b,c,"json")},ajaxSetup:function(a,b){b?d.extend(!0,a,d.ajaxSettings,b):(b=a,a=d.extend(!0,d.ajaxSettings,b));for(var c in {context:1,url:1})c in b?a[c]=b[c]:c in d.ajaxSettings&&(a[c]=d.ajaxSettings[c]);return a},ajaxSettings:{url:bL,isLocal:bx.test(bM[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":d.parseJSON,"text xml":d.parseXML}},ajaxPrefilter:bO(bJ),ajaxTransport:bO(bK),ajax:function(a,c){function v(a,c,l,n){if(r!==2){r=2,p&&clearTimeout(p),o=b,m=n||"",u.readyState=a?4:0;var q,t,v,w=l?bR(e,u,l):b,x,y;if(a>=200&&a<300||a===304){if(e.ifModified){if(x=u.getResponseHeader("Last-Modified"))d.lastModified[k]=x;if(y=u.getResponseHeader("Etag"))d.etag[k]=y}if(a===304)c="notmodified",q=!0;else try{t=bS(e,w),c="success",q=!0}catch(z){c="parsererror",v=z}}else{v=c;if(!c||a)c="error",a<0&&(a=0)}u.status=a,u.statusText=c,q?h.resolveWith(f,[t,c,u]):h.rejectWith(f,[u,c,v]),u.statusCode(j),j=b,s&&g.trigger("ajax"+(q?"Success":"Error"),[u,e,q?t:v]),i.resolveWith(f,[u,c]),s&&(g.trigger("ajaxComplete",[u,e]),--d.active||d.event.trigger("ajaxStop"))}}typeof a==="object"&&(c=a,a=b),c=c||{};var e=d.ajaxSetup({},c),f=e.context||e,g=f!==e&&(f.nodeType||f instanceof d)?d(f):d.event,h=d.Deferred(),i=d._Deferred(),j=e.statusCode||{},k,l={},m,n,o,p,q,r=0,s,t,u={readyState:0,setRequestHeader:function(a,b){r||(l[a.toLowerCase().replace(bF,bG)]=b);return this},getAllResponseHeaders:function(){return r===2?m:null},getResponseHeader:function(a){var c;if(r===2){if(!n){n={};while(c=bv.exec(m))n[c[1].toLowerCase()]=c[2]}c=n[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){r||(e.mimeType=a);return this},abort:function(a){a=a||"abort",o&&o.abort(a),v(0,a);return this}};h.promise(u),u.success=u.done,u.error=u.fail,u.complete=i.done,u.statusCode=function(a){if(a){var b;if(r<2)for(b in a)j[b]=[j[b],a[b]];else b=a[u.status],u.then(b,b)}return this},e.url=((a||e.url)+"").replace(bu,"").replace(bz,bM[1]+"//"),e.dataTypes=d.trim(e.dataType||"*").toLowerCase().split(bD),e.crossDomain==null&&(q=bH.exec(e.url.toLowerCase()),e.crossDomain=q&&(q[1]!=bM[1]||q[2]!=bM[2]||(q[3]||(q[1]==="http:"?80:443))!=(bM[3]||(bM[1]==="http:"?80:443)))),e.data&&e.processData&&typeof e.data!=="string"&&(e.data=d.param(e.data,e.traditional)),bP(bJ,e,c,u);if(r===2)return!1;s=e.global,e.type=e.type.toUpperCase(),e.hasContent=!by.test(e.type),s&&d.active++===0&&d.event.trigger("ajaxStart");if(!e.hasContent){e.data&&(e.url+=(bA.test(e.url)?"&":"?")+e.data),k=e.url;if(e.cache===!1){var w=d.now(),x=e.url.replace(bE,"$1_="+w);e.url=x+(x===e.url?(bA.test(e.url)?"&":"?")+"_="+w:"")}}if(e.data&&e.hasContent&&e.contentType!==!1||c.contentType)l["Content-Type"]=e.contentType;e.ifModified&&(k=k||e.url,d.lastModified[k]&&(l["If-Modified-Since"]=d.lastModified[k]),d.etag[k]&&(l["If-None-Match"]=d.etag[k])),l.Accept=e.dataTypes[0]&&e.accepts[e.dataTypes[0]]?e.accepts[e.dataTypes[0]]+(e.dataTypes[0]!=="*"?", */*; q=0.01":""):e.accepts["*"];for(t in e.headers)u.setRequestHeader(t,e.headers[t]);if(e.beforeSend&&(e.beforeSend.call(f,u,e)===!1||r===2)){u.abort();return!1}for(t in {success:1,error:1,complete:1})u[t](e[t]);o=bP(bK,e,c,u);if(o){u.readyState=1,s&&g.trigger("ajaxSend",[u,e]),e.async&&e.timeout>0&&(p=setTimeout(function(){u.abort("timeout")},e.timeout));try{r=1,o.send(l,v)}catch(y){status<2?v(-1,y):d.error(y)}}else v(-1,"No Transport");return u},param:function(a,c){var e=[],f=function(a,b){b=d.isFunction(b)?b():b,e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=d.ajaxSettings.traditional);if(d.isArray(a)||a.jquery&&!d.isPlainObject(a))d.each(a,function(){f(this.name,this.value)});else for(var g in a)bQ(g,a[g],c,f);return e.join("&").replace(br,"+")}}),d.extend({active:0,lastModified:{},etag:{}});var bT=d.now(),bU=/(\=)\?(&|$)|\?\?/i;d.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return d.expando+"_"+bT++}}),d.ajaxPrefilter("json jsonp",function(b,c,e){var f=typeof b.data==="string";if(b.dataTypes[0]==="jsonp"||c.jsonpCallback||c.jsonp!=null||b.jsonp!==!1&&(bU.test(b.url)||f&&bU.test(b.data))){var g,h=b.jsonpCallback=d.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2",m=function(){a[h]=i,g&&d.isFunction(i)&&a[h](g[0])};b.jsonp!==!1&&(j=j.replace(bU,l),b.url===j&&(f&&(k=k.replace(bU,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},e.then(m,m),b.converters["script json"]=function(){g||d.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){d.globalEval(a);return a}}}),d.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),d.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var bV=d.now(),bW,bX;d.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&bZ()||b$()}:bZ,bX=d.ajaxSettings.xhr(),d.support.ajax=!!bX,d.support.cors=bX&&"withCredentials"in bX,bX=b,d.support.ajax&&d.ajaxTransport(function(a){if(!a.crossDomain||d.support.cors){var c;return{send:function(e,f){var g=a.xhr(),h,i;a.username?g.open(a.type,a.url,a.async,a.username,a.password):g.open(a.type,a.url,a.async);if(a.xhrFields)for(i in a.xhrFields)g[i]=a.xhrFields[i];a.mimeType&&g.overrideMimeType&&g.overrideMimeType(a.mimeType),!a.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(i in e)g.setRequestHeader(i,e[i])}catch(j){}g.send(a.hasContent&&a.data||null),c=function(e,i){var j,k,l,m,n;try{if(c&&(i||g.readyState===4)){c=b,h&&(g.onreadystatechange=d.noop,delete bW[h]);if(i)g.readyState!==4&&g.abort();else{j=g.status,l=g.getAllResponseHeaders(),m={},n=g.responseXML,n&&n.documentElement&&(m.xml=n),m.text=g.responseText;try{k=g.statusText}catch(o){k=""}j||!a.isLocal||a.crossDomain?j===1223&&(j=204):j=m.text?200:404}}}catch(p){i||f(-1,p)}m&&f(j,k,m,l)},a.async&&g.readyState!==4?(bW||(bW={},bY()),h=bV++,g.onreadystatechange=bW[h]=c):c()},abort:function(){c&&c(0,1)}}}});var b_={},ca=/^(?:toggle|show|hide)$/,cb=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cc,cd=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];d.fn.extend({show:function(a,b,c){var e,f;if(a||a===0)return this.animate(ce("show",3),a,b,c);for(var g=0,h=this.length;g=0;a--)c[a].elem===this&&(b&&c[a](!0),c.splice(a,1))}),b||this.dequeue();return this}}),d.each({slideDown:ce("show",1),slideUp:ce("hide",1),slideToggle:ce("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){d.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),d.extend({speed:function(a,b,c){var e=a&&typeof a==="object"?d.extend({},a):{complete:c||!c&&b||d.isFunction(a)&&a,duration:a,easing:c&&b||b&&!d.isFunction(b)&&b};e.duration=d.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in d.fx.speeds?d.fx.speeds[e.duration]:d.fx.speeds._default,e.old=e.complete,e.complete=function(){e.queue!==!1&&d(this).dequeue(),d.isFunction(e.old)&&e.old.call(this)};return e},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig||(b.orig={})}}),d.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(d.fx.step[this.prop]||d.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=d.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,b,c){function g(a){return e.step(a)}var e=this,f=d.fx;this.startTime=d.now(),this.start=a,this.end=b,this.unit=c||this.unit||(d.cssNumber[this.prop]?"":"px"),this.now=this.start,this.pos=this.state=0,g.elem=this.elem,g()&&d.timers.push(g)&&!cc&&(cc=setInterval(f.tick,f.interval))},show:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop),this.options.show=!0,this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),d(this.elem).show()},hide:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b=d.now(),c=!0;if(a||b>=this.options.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),this.options.curAnim[this.prop]=!0;for(var e in this.options.curAnim)this.options.curAnim[e]!==!0&&(c=!1);if(c){if(this.options.overflow!=null&&!d.support.shrinkWrapBlocks){var f=this.elem,g=this.options;d.each(["","X","Y"],function(a,b){f.style["overflow"+b]=g.overflow[a]})}this.options.hide&&d(this.elem).hide();if(this.options.hide||this.options.show)for(var h in this.options.curAnim)d.style(this.elem,h,this.options.orig[h]);this.options.complete.call(this.elem)}return!1}var i=b-this.startTime;this.state=i/this.options.duration;var j=this.options.specialEasing&&this.options.specialEasing[this.prop],k=this.options.easing||(d.easing.swing?"swing":"linear");this.pos=d.easing[j||k](this.state,i,0,1,this.options.duration),this.now=this.start+(this.end-this.start)*this.pos,this.update();return!0}},d.extend(d.fx,{tick:function(){var a=d.timers;for(var b=0;b
";d.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),b.innerHTML=j,a.insertBefore(b,a.firstChild),e=b.firstChild,f=e.firstChild,h=e.nextSibling.firstChild.firstChild,this.doesNotAddBorder=f.offsetTop!==5,this.doesAddBorderForTableAndCells=h.offsetTop===5,f.style.position="fixed",f.style.top="20px",this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15,f.style.position=f.style.top="",e.style.overflow="hidden",e.style.position="relative",this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i,a.removeChild(b),d.offset.initialize=d.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;d.offset.initialize(),d.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(d.css(a,"marginTop"))||0,c+=parseFloat(d.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var e=d.css(a,"position");e==="static"&&(a.style.position="relative");var f=d(a),g=f.offset(),h=d.css(a,"top"),i=d.css(a,"left"),j=(e==="absolute"||e==="fixed")&&d.inArray("auto",[h,i])>-1,k={},l={},m,n;j&&(l=f.position()),m=j?l.top:parseInt(h,10)||0,n=j?l.left:parseInt(i,10)||0,d.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):f.css(k)}},d.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),e=ch.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(d.css(a,"marginTop"))||0,c.left-=parseFloat(d.css(a,"marginLeft"))||0,e.top+=parseFloat(d.css(b[0],"borderTopWidth"))||0,e.left+=parseFloat(d.css(b[0],"borderLeftWidth"))||0;return{top:c.top-e.top,left:c.left-e.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&(!ch.test(a.nodeName)&&d.css(a,"position")==="static"))a=a.offsetParent;return a})}}),d.each(["Left","Top"],function(a,c){var e="scroll"+c;d.fn[e]=function(c){var f=this[0],g;if(!f)return null;if(c!==b)return this.each(function(){g=ci(this),g?g.scrollTo(a?d(g).scrollLeft():c,a?c:d(g).scrollTop()):this[e]=c});g=ci(f);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:d.support.boxModel&&g.document.documentElement[e]||g.document.body[e]:f[e]}}),d.each(["Height","Width"],function(a,c){var e=c.toLowerCase();d.fn["inner"+c]=function(){return this[0]?parseFloat(d.css(this[0],e,"padding")):null},d.fn["outer"+c]=function(a){return this[0]?parseFloat(d.css(this[0],e,a?"margin":"border")):null},d.fn[e]=function(a){var f=this[0];if(!f)return a==null?null:this;if(d.isFunction(a))return this.each(function(b){var c=d(this);c[e](a.call(this,b,c[e]()))});if(d.isWindow(f)){var g=f.document.documentElement["client"+c];return f.document.compatMode==="CSS1Compat"&&g||f.document.body["client"+c]||g}if(f.nodeType===9)return Math.max(f.documentElement["client"+c],f.body["scroll"+c],f.documentElement["scroll"+c],f.body["offset"+c],f.documentElement["offset"+c]);if(a===b){var h=d.css(f,e),i=parseFloat(h);return d.isNaN(i)?h:i}return this.css(e,typeof a==="string"?a:a+"px")}}),a.jQuery=a.$=d})(window); \ No newline at end of file diff --git a/web/javascript/jquery-ui-1.8.12.custom.min.js b/web/javascript/jquery-ui-1.8.12.custom.min.js deleted file mode 100755 index 1b1c88f3..00000000 --- a/web/javascript/jquery-ui-1.8.12.custom.min.js +++ /dev/null @@ -1,783 +0,0 @@ -/*! - * jQuery UI 1.8.12 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI - */ -(function(c,j){function k(a){return!c(a).parents().andSelf().filter(function(){return c.curCSS(this,"visibility")==="hidden"||c.expr.filters.hidden(this)}).length}c.ui=c.ui||{};if(!c.ui.version){c.extend(c.ui,{version:"1.8.12",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106, -NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});c.fn.extend({_focus:c.fn.focus,focus:function(a,b){return typeof a==="number"?this.each(function(){var d=this;setTimeout(function(){c(d).focus();b&&b.call(d)},a)}):this._focus.apply(this,arguments)},scrollParent:function(){var a;a=c.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(c.curCSS(this, -"position",1))&&/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!a.length?c(document):a},zIndex:function(a){if(a!==j)return this.css("zIndex",a);if(this.length){a=c(this[0]);for(var b;a.length&&a[0]!==document;){b=a.css("position"); -if(b==="absolute"||b==="relative"||b==="fixed"){b=parseInt(a.css("zIndex"),10);if(!isNaN(b)&&b!==0)return b}a=a.parent()}}return 0},disableSelection:function(){return this.bind((c.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});c.each(["Width","Height"],function(a,b){function d(f,g,l,m){c.each(e,function(){g-=parseFloat(c.curCSS(f,"padding"+this,true))||0;if(l)g-=parseFloat(c.curCSS(f, -"border"+this+"Width",true))||0;if(m)g-=parseFloat(c.curCSS(f,"margin"+this,true))||0});return g}var e=b==="Width"?["Left","Right"]:["Top","Bottom"],h=b.toLowerCase(),i={innerWidth:c.fn.innerWidth,innerHeight:c.fn.innerHeight,outerWidth:c.fn.outerWidth,outerHeight:c.fn.outerHeight};c.fn["inner"+b]=function(f){if(f===j)return i["inner"+b].call(this);return this.each(function(){c(this).css(h,d(this,f)+"px")})};c.fn["outer"+b]=function(f,g){if(typeof f!=="number")return i["outer"+b].call(this,f);return this.each(function(){c(this).css(h, -d(this,f,true,g)+"px")})}});c.extend(c.expr[":"],{data:function(a,b,d){return!!c.data(a,d[3])},focusable:function(a){var b=a.nodeName.toLowerCase(),d=c.attr(a,"tabindex");if("area"===b){b=a.parentNode;d=b.name;if(!a.href||!d||b.nodeName.toLowerCase()!=="map")return false;a=c("img[usemap=#"+d+"]")[0];return!!a&&k(a)}return(/input|select|textarea|button|object/.test(b)?!a.disabled:"a"==b?a.href||!isNaN(d):!isNaN(d))&&k(a)},tabbable:function(a){var b=c.attr(a,"tabindex");return(isNaN(b)||b>=0)&&c(a).is(":focusable")}}); -c(function(){var a=document.body,b=a.appendChild(b=document.createElement("div"));c.extend(b.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});c.support.minHeight=b.offsetHeight===100;c.support.selectstart="onselectstart"in b;a.removeChild(b).style.display="none"});c.extend(c.ui,{plugin:{add:function(a,b,d){a=c.ui[a].prototype;for(var e in d){a.plugins[e]=a.plugins[e]||[];a.plugins[e].push([b,d[e]])}},call:function(a,b,d){if((b=a.plugins[b])&&a.element[0].parentNode)for(var e=0;e0)return true;a[b]=1;d=a[b]>0;a[b]=0;return d},isOverAxis:function(a,b,d){return a>b&&a=9)&&!a.button)return this._mouseUp(a);if(this._mouseStarted){this._mouseDrag(a);return a.preventDefault()}if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,a)!==false)?this._mouseDrag(a):this._mouseUp(a);return!this._mouseStarted},_mouseUp:function(a){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate); -if(this._mouseStarted){this._mouseStarted=false;a.target==this._mouseDownEvent.target&&b.data(a.target,this.widgetName+".preventClickEvent",true);this._mouseStop(a)}return false},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery); -;/* - * jQuery UI Position 1.8.12 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Position - */ -(function(c){c.ui=c.ui||{};var n=/left|center|right/,o=/top|center|bottom/,t=c.fn.position,u=c.fn.offset;c.fn.position=function(b){if(!b||!b.of)return t.apply(this,arguments);b=c.extend({},b);var a=c(b.of),d=a[0],g=(b.collision||"flip").split(" "),e=b.offset?b.offset.split(" "):[0,0],h,k,j;if(d.nodeType===9){h=a.width();k=a.height();j={top:0,left:0}}else if(d.setTimeout){h=a.width();k=a.height();j={top:a.scrollTop(),left:a.scrollLeft()}}else if(d.preventDefault){b.at="left top";h=k=0;j={top:b.of.pageY, -left:b.of.pageX}}else{h=a.outerWidth();k=a.outerHeight();j=a.offset()}c.each(["my","at"],function(){var f=(b[this]||"").split(" ");if(f.length===1)f=n.test(f[0])?f.concat(["center"]):o.test(f[0])?["center"].concat(f):["center","center"];f[0]=n.test(f[0])?f[0]:"center";f[1]=o.test(f[1])?f[1]:"center";b[this]=f});if(g.length===1)g[1]=g[0];e[0]=parseInt(e[0],10)||0;if(e.length===1)e[1]=e[0];e[1]=parseInt(e[1],10)||0;if(b.at[0]==="right")j.left+=h;else if(b.at[0]==="center")j.left+=h/2;if(b.at[1]==="bottom")j.top+= -k;else if(b.at[1]==="center")j.top+=k/2;j.left+=e[0];j.top+=e[1];return this.each(function(){var f=c(this),l=f.outerWidth(),m=f.outerHeight(),p=parseInt(c.curCSS(this,"marginLeft",true))||0,q=parseInt(c.curCSS(this,"marginTop",true))||0,v=l+p+(parseInt(c.curCSS(this,"marginRight",true))||0),w=m+q+(parseInt(c.curCSS(this,"marginBottom",true))||0),i=c.extend({},j),r;if(b.my[0]==="right")i.left-=l;else if(b.my[0]==="center")i.left-=l/2;if(b.my[1]==="bottom")i.top-=m;else if(b.my[1]==="center")i.top-= -m/2;i.left=Math.round(i.left);i.top=Math.round(i.top);r={left:i.left-p,top:i.top-q};c.each(["left","top"],function(s,x){c.ui.position[g[s]]&&c.ui.position[g[s]][x](i,{targetWidth:h,targetHeight:k,elemWidth:l,elemHeight:m,collisionPosition:r,collisionWidth:v,collisionHeight:w,offset:e,my:b.my,at:b.at})});c.fn.bgiframe&&f.bgiframe();f.offset(c.extend(i,{using:b.using}))})};c.ui.position={fit:{left:function(b,a){var d=c(window);d=a.collisionPosition.left+a.collisionWidth-d.width()-d.scrollLeft();b.left= -d>0?b.left-d:Math.max(b.left-a.collisionPosition.left,b.left)},top:function(b,a){var d=c(window);d=a.collisionPosition.top+a.collisionHeight-d.height()-d.scrollTop();b.top=d>0?b.top-d:Math.max(b.top-a.collisionPosition.top,b.top)}},flip:{left:function(b,a){if(a.at[0]!=="center"){var d=c(window);d=a.collisionPosition.left+a.collisionWidth-d.width()-d.scrollLeft();var g=a.my[0]==="left"?-a.elemWidth:a.my[0]==="right"?a.elemWidth:0,e=a.at[0]==="left"?a.targetWidth:-a.targetWidth,h=-2*a.offset[0];b.left+= -a.collisionPosition.left<0?g+e+h:d>0?g+e+h:0}},top:function(b,a){if(a.at[1]!=="center"){var d=c(window);d=a.collisionPosition.top+a.collisionHeight-d.height()-d.scrollTop();var g=a.my[1]==="top"?-a.elemHeight:a.my[1]==="bottom"?a.elemHeight:0,e=a.at[1]==="top"?a.targetHeight:-a.targetHeight,h=-2*a.offset[1];b.top+=a.collisionPosition.top<0?g+e+h:d>0?g+e+h:0}}}};if(!c.offset.setOffset){c.offset.setOffset=function(b,a){if(/static/.test(c.curCSS(b,"position")))b.style.position="relative";var d=c(b), -g=d.offset(),e=parseInt(c.curCSS(b,"top",true),10)||0,h=parseInt(c.curCSS(b,"left",true),10)||0;g={top:a.top-g.top+e,left:a.left-g.left+h};"using"in a?a.using.call(b,g):d.css(g)};c.fn.offset=function(b){var a=this[0];if(!a||!a.ownerDocument)return null;if(b)return this.each(function(){c.offset.setOffset(this,b)});return u.call(this)}}})(jQuery); -;/* - * jQuery UI Draggable 1.8.12 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Draggables - * - * Depends: - * jquery.ui.core.js - * jquery.ui.mouse.js - * jquery.ui.widget.js - */ -(function(d){d.widget("ui.draggable",d.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper== -"original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position="relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();return this}},_mouseCapture:function(a){var b= -this.options;if(this.helper||b.disabled||d(a.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(a);if(!this.handle)return false;return true},_mouseStart:function(a){var b=this.options;this.helper=this._createHelper(a);this._cacheHelperProportions();if(d.ui.ddmanager)d.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top- -this.margins.top,left:this.offset.left-this.margins.left};d.extend(this.offset,{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;b.cursorAt&&this._adjustOffsetFromHelper(b.cursorAt);b.containment&&this._setContainment();if(this._trigger("start",a)===false){this._clear();return false}this._cacheHelperProportions(); -d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,a);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(a,true);return true},_mouseDrag:function(a,b){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute");if(!b){b=this._uiHash();if(this._trigger("drag",a,b)===false){this._mouseUp({});return false}this.position=b.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis|| -this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";d.ui.ddmanager&&d.ui.ddmanager.drag(this,a);return false},_mouseStop:function(a){var b=false;if(d.ui.ddmanager&&!this.options.dropBehaviour)b=d.ui.ddmanager.drop(this,a);if(this.dropped){b=this.dropped;this.dropped=false}if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original")return false;if(this.options.revert=="invalid"&&!b||this.options.revert=="valid"&&b||this.options.revert===true||d.isFunction(this.options.revert)&& -this.options.revert.call(this.element,b)){var c=this;d(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){c._trigger("stop",a)!==false&&c._clear()})}else this._trigger("stop",a)!==false&&this._clear();return false},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(a){var b=!this.options.handle||!d(this.options.handle,this.element).length?true:false;d(this.options.handle,this.element).find("*").andSelf().each(function(){if(this== -a.target)b=true});return b},_createHelper:function(a){var b=this.options;a=d.isFunction(b.helper)?d(b.helper.apply(this.element[0],[a])):b.helper=="clone"?this.element.clone():this.element;a.parents("body").length||a.appendTo(b.appendTo=="parent"?this.element[0].parentNode:b.appendTo);a[0]!=this.element[0]&&!/(fixed|absolute)/.test(a.css("position"))&&a.css("position","absolute");return a},_adjustOffsetFromHelper:function(a){if(typeof a=="string")a=a.split(" ");if(d.isArray(a))a={left:+a[0],top:+a[1]|| -0};if("left"in a)this.offset.click.left=a.left+this.margins.left;if("right"in a)this.offset.click.left=this.helperProportions.width-a.right+this.margins.left;if("top"in a)this.offset.click.top=a.top+this.margins.top;if("bottom"in a)this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0], -this.offsetParent[0])){a.left+=this.scrollParent.scrollLeft();a.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&d.browser.msie)a={top:0,left:0};return{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.element.position();return{top:a.top- -(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(), -height:this.helper.outerHeight()}},_setContainment:function(){var a=this.options;if(a.containment=="parent")a.containment=this.helper[0].parentNode;if(a.containment=="document"||a.containment=="window")this.containment=[(a.containment=="document"?0:d(window).scrollLeft())-this.offset.relative.left-this.offset.parent.left,(a.containment=="document"?0:d(window).scrollTop())-this.offset.relative.top-this.offset.parent.top,(a.containment=="document"?0:d(window).scrollLeft())+d(a.containment=="document"? -document:window).width()-this.helperProportions.width-this.margins.left,(a.containment=="document"?0:d(window).scrollTop())+(d(a.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(a.containment)&&a.containment.constructor!=Array){var b=d(a.containment)[0];if(b){a=d(a.containment).offset();var c=d(b).css("overflow")!="hidden";this.containment=[a.left+(parseInt(d(b).css("borderLeftWidth"), -10)||0)+(parseInt(d(b).css("paddingLeft"),10)||0),a.top+(parseInt(d(b).css("borderTopWidth"),10)||0)+(parseInt(d(b).css("paddingTop"),10)||0),a.left+(c?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(d(b).css("borderLeftWidth"),10)||0)-(parseInt(d(b).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,a.top+(c?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(d(b).css("borderTopWidth"),10)||0)-(parseInt(d(b).css("paddingBottom"), -10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom]}}else if(a.containment.constructor==Array)this.containment=a.containment},_convertPositionTo:function(a,b){if(!b)b=this.position;a=a=="absolute"?1:-1;var c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(c[0].tagName);return{top:b.top+this.offset.relative.top*a+this.offset.parent.top*a-(d.browser.safari&& -d.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:c.scrollTop())*a),left:b.left+this.offset.relative.left*a+this.offset.parent.left*a-(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:c.scrollLeft())*a)}},_generatePosition:function(a){var b=this.options,c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0], -this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(c[0].tagName),e=a.pageX,g=a.pageY;if(this.originalPosition){if(this.containment){if(a.pageX-this.offset.click.leftthis.containment[2])e=this.containment[2]+this.offset.click.left;if(a.pageY-this.offset.click.top>this.containment[3])g= -this.containment[3]+this.offset.click.top}if(b.grid){g=this.originalPageY+Math.round((g-this.originalPageY)/b.grid[1])*b.grid[1];g=this.containment?!(g-this.offset.click.topthis.containment[3])?g:!(g-this.offset.click.topthis.containment[2])? -e:!(e-this.offset.click.left').css({width:this.offsetWidth+ -"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(d(this).offset()).appendTo("body")})},stop:function(){d("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});d.ui.plugin.add("draggable","opacity",{start:function(a,b){a=d(b.helper);b=d(this).data("draggable").options;if(a.css("opacity"))b._opacity=a.css("opacity");a.css("opacity",b.opacity)},stop:function(a,b){a=d(this).data("draggable").options;a._opacity&&d(b.helper).css("opacity", -a._opacity)}});d.ui.plugin.add("draggable","scroll",{start:function(){var a=d(this).data("draggable");if(a.scrollParent[0]!=document&&a.scrollParent[0].tagName!="HTML")a.overflowOffset=a.scrollParent.offset()},drag:function(a){var b=d(this).data("draggable"),c=b.options,f=false;if(b.scrollParent[0]!=document&&b.scrollParent[0].tagName!="HTML"){if(!c.axis||c.axis!="x")if(b.overflowOffset.top+b.scrollParent[0].offsetHeight-a.pageY=0;h--){var i=c.snapElements[h].left,k=i+c.snapElements[h].width,j=c.snapElements[h].top,l=j+c.snapElements[h].height;if(i-e=j&&f<=l||h>=j&&h<=l||fl)&&(e>= -i&&e<=k||g>=i&&g<=k||ek);default:return false}};d.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(a,b){var c=d.ui.ddmanager.droppables[a.options.scope]||[],e=b?b.type:null,g=(a.currentItem||a.element).find(":data(droppable)").andSelf(),f=0;a:for(;f').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(), -top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle= -this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=a.handles||(!e(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne", -nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all")this.handles="n,e,s,w,se,sw,ne,nw";var c=this.handles.split(",");this.handles={};for(var d=0;d');/sw|se|ne|nw/.test(f)&&g.css({zIndex:++a.zIndex});"se"==f&&g.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[f]=".ui-resizable-"+f;this.element.append(g)}}this._renderAxis=function(h){h=h||this.element;for(var i in this.handles){if(this.handles[i].constructor== -String)this.handles[i]=e(this.handles[i],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var j=e(this.handles[i],this.element),k=0;k=/sw|ne|nw|se|n|s/.test(i)?j.outerHeight():j.outerWidth();j=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join("");h.css(j,k);this._proportionallyResize()}e(this.handles[i])}};this._renderAxis(this.element);this._handles=e(".ui-resizable-handle",this.element).disableSelection(); -this._handles.mouseover(function(){if(!b.resizing){if(this.className)var h=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);b.axis=h&&h[1]?h[1]:"se"}});if(a.autoHide){this._handles.hide();e(this.element).addClass("ui-resizable-autohide").hover(function(){e(this).removeClass("ui-resizable-autohide");b._handles.show()},function(){if(!b.resizing){e(this).addClass("ui-resizable-autohide");b._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var b=function(c){e(c).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()}; -if(this.elementIsWrapper){b(this.element);var a=this.element;a.after(this.originalElement.css({position:a.css("position"),width:a.outerWidth(),height:a.outerHeight(),top:a.css("top"),left:a.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);b(this.originalElement);return this},_mouseCapture:function(b){var a=false;for(var c in this.handles)if(e(this.handles[c])[0]==b.target)a=true;return!this.options.disabled&&a},_mouseStart:function(b){var a=this.options,c=this.element.position(), -d=this.element;this.resizing=true;this.documentScroll={top:e(document).scrollTop(),left:e(document).scrollLeft()};if(d.is(".ui-draggable")||/absolute/.test(d.css("position")))d.css({position:"absolute",top:c.top,left:c.left});e.browser.opera&&/relative/.test(d.css("position"))&&d.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();c=m(this.helper.css("left"));var f=m(this.helper.css("top"));if(a.containment){c+=e(a.containment).scrollLeft()||0;f+=e(a.containment).scrollTop()||0}this.offset= -this.helper.offset();this.position={left:c,top:f};this.size=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalSize=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalPosition={left:c,top:f};this.sizeDiff={width:d.outerWidth()-d.width(),height:d.outerHeight()-d.height()};this.originalMousePosition={left:b.pageX,top:b.pageY};this.aspectRatio=typeof a.aspectRatio=="number"?a.aspectRatio: -this.originalSize.width/this.originalSize.height||1;a=e(".ui-resizable-"+this.axis).css("cursor");e("body").css("cursor",a=="auto"?this.axis+"-resize":a);d.addClass("ui-resizable-resizing");this._propagate("start",b);return true},_mouseDrag:function(b){var a=this.helper,c=this.originalMousePosition,d=this._change[this.axis];if(!d)return false;c=d.apply(this,[b,b.pageX-c.left||0,b.pageY-c.top||0]);if(this._aspectRatio||b.shiftKey)c=this._updateRatio(c,b);c=this._respectSize(c,b);this._propagate("resize", -b);a.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();this._updateCache(c);this._trigger("resize",b,this.ui());return false},_mouseStop:function(b){this.resizing=false;var a=this.options,c=this;if(this._helper){var d=this._proportionallyResizeElements,f=d.length&&/textarea/i.test(d[0].nodeName);d=f&&e.ui.hasScroll(d[0],"left")?0:c.sizeDiff.height; -f=f?0:c.sizeDiff.width;f={width:c.helper.width()-f,height:c.helper.height()-d};d=parseInt(c.element.css("left"),10)+(c.position.left-c.originalPosition.left)||null;var g=parseInt(c.element.css("top"),10)+(c.position.top-c.originalPosition.top)||null;a.animate||this.element.css(e.extend(f,{top:g,left:d}));c.helper.height(c.size.height);c.helper.width(c.size.width);this._helper&&!a.animate&&this._proportionallyResize()}e("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing"); -this._propagate("stop",b);this._helper&&this.helper.remove();return false},_updateCache:function(b){this.offset=this.helper.offset();if(l(b.left))this.position.left=b.left;if(l(b.top))this.position.top=b.top;if(l(b.height))this.size.height=b.height;if(l(b.width))this.size.width=b.width},_updateRatio:function(b){var a=this.position,c=this.size,d=this.axis;if(b.height)b.width=c.height*this.aspectRatio;else if(b.width)b.height=c.width/this.aspectRatio;if(d=="sw"){b.left=a.left+(c.width-b.width);b.top= -null}if(d=="nw"){b.top=a.top+(c.height-b.height);b.left=a.left+(c.width-b.width)}return b},_respectSize:function(b){var a=this.options,c=this.axis,d=l(b.width)&&a.maxWidth&&a.maxWidthb.width,h=l(b.height)&&a.minHeight&&a.minHeight>b.height;if(g)b.width=a.minWidth;if(h)b.height=a.minHeight;if(d)b.width=a.maxWidth;if(f)b.height=a.maxHeight;var i=this.originalPosition.left+this.originalSize.width,j=this.position.top+ -this.size.height,k=/sw|nw|w/.test(c);c=/nw|ne|n/.test(c);if(g&&k)b.left=i-a.minWidth;if(d&&k)b.left=i-a.maxWidth;if(h&&c)b.top=j-a.minHeight;if(f&&c)b.top=j-a.maxHeight;if((a=!b.width&&!b.height)&&!b.left&&b.top)b.top=null;else if(a&&!b.top&&b.left)b.left=null;return b},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var b=this.helper||this.element,a=0;a');var a=e.browser.msie&&e.browser.version<7,c=a?1:0;a=a?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+a,height:this.element.outerHeight()+a,position:"absolute",left:this.elementOffset.left-c+"px",top:this.elementOffset.top-c+"px",zIndex:++b.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(b, -a){return{width:this.originalSize.width+a}},w:function(b,a){return{left:this.originalPosition.left+a,width:this.originalSize.width-a}},n:function(b,a,c){return{top:this.originalPosition.top+c,height:this.originalSize.height-c}},s:function(b,a,c){return{height:this.originalSize.height+c}},se:function(b,a,c){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[b,a,c]))},sw:function(b,a,c){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[b,a, -c]))},ne:function(b,a,c){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[b,a,c]))},nw:function(b,a,c){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[b,a,c]))}},_propagate:function(b,a){e.ui.plugin.call(this,b,[a,this.ui()]);b!="resize"&&this._trigger(b,a,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize, -originalPosition:this.originalPosition}}});e.extend(e.ui.resizable,{version:"1.8.12"});e.ui.plugin.add("resizable","alsoResize",{start:function(){var b=e(this).data("resizable").options,a=function(c){e(c).each(function(){var d=e(this);d.data("resizable-alsoresize",{width:parseInt(d.width(),10),height:parseInt(d.height(),10),left:parseInt(d.css("left"),10),top:parseInt(d.css("top"),10),position:d.css("position")})})};if(typeof b.alsoResize=="object"&&!b.alsoResize.parentNode)if(b.alsoResize.length){b.alsoResize= -b.alsoResize[0];a(b.alsoResize)}else e.each(b.alsoResize,function(c){a(c)});else a(b.alsoResize)},resize:function(b,a){var c=e(this).data("resizable");b=c.options;var d=c.originalSize,f=c.originalPosition,g={height:c.size.height-d.height||0,width:c.size.width-d.width||0,top:c.position.top-f.top||0,left:c.position.left-f.left||0},h=function(i,j){e(i).each(function(){var k=e(this),q=e(this).data("resizable-alsoresize"),p={},r=j&&j.length?j:k.parents(a.originalElement[0]).length?["width","height"]:["width", -"height","top","left"];e.each(r,function(n,o){if((n=(q[o]||0)+(g[o]||0))&&n>=0)p[o]=n||null});if(e.browser.opera&&/relative/.test(k.css("position"))){c._revertToRelativePosition=true;k.css({position:"absolute",top:"auto",left:"auto"})}k.css(p)})};typeof b.alsoResize=="object"&&!b.alsoResize.nodeType?e.each(b.alsoResize,function(i,j){h(i,j)}):h(b.alsoResize)},stop:function(){var b=e(this).data("resizable"),a=b.options,c=function(d){e(d).each(function(){var f=e(this);f.css({position:f.data("resizable-alsoresize").position})})}; -if(b._revertToRelativePosition){b._revertToRelativePosition=false;typeof a.alsoResize=="object"&&!a.alsoResize.nodeType?e.each(a.alsoResize,function(d){c(d)}):c(a.alsoResize)}e(this).removeData("resizable-alsoresize")}});e.ui.plugin.add("resizable","animate",{stop:function(b){var a=e(this).data("resizable"),c=a.options,d=a._proportionallyResizeElements,f=d.length&&/textarea/i.test(d[0].nodeName),g=f&&e.ui.hasScroll(d[0],"left")?0:a.sizeDiff.height;f={width:a.size.width-(f?0:a.sizeDiff.width),height:a.size.height- -g};g=parseInt(a.element.css("left"),10)+(a.position.left-a.originalPosition.left)||null;var h=parseInt(a.element.css("top"),10)+(a.position.top-a.originalPosition.top)||null;a.element.animate(e.extend(f,h&&g?{top:h,left:g}:{}),{duration:c.animateDuration,easing:c.animateEasing,step:function(){var i={width:parseInt(a.element.css("width"),10),height:parseInt(a.element.css("height"),10),top:parseInt(a.element.css("top"),10),left:parseInt(a.element.css("left"),10)};d&&d.length&&e(d[0]).css({width:i.width, -height:i.height});a._updateCache(i);a._propagate("resize",b)}})}});e.ui.plugin.add("resizable","containment",{start:function(){var b=e(this).data("resizable"),a=b.element,c=b.options.containment;if(a=c instanceof e?c.get(0):/parent/.test(c)?a.parent().get(0):c){b.containerElement=e(a);if(/document/.test(c)||c==document){b.containerOffset={left:0,top:0};b.containerPosition={left:0,top:0};b.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}}else{var d= -e(a),f=[];e(["Top","Right","Left","Bottom"]).each(function(i,j){f[i]=m(d.css("padding"+j))});b.containerOffset=d.offset();b.containerPosition=d.position();b.containerSize={height:d.innerHeight()-f[3],width:d.innerWidth()-f[1]};c=b.containerOffset;var g=b.containerSize.height,h=b.containerSize.width;h=e.ui.hasScroll(a,"left")?a.scrollWidth:h;g=e.ui.hasScroll(a)?a.scrollHeight:g;b.parentData={element:a,left:c.left,top:c.top,width:h,height:g}}}},resize:function(b){var a=e(this).data("resizable"),c=a.options, -d=a.containerOffset,f=a.position;b=a._aspectRatio||b.shiftKey;var g={top:0,left:0},h=a.containerElement;if(h[0]!=document&&/static/.test(h.css("position")))g=d;if(f.left<(a._helper?d.left:0)){a.size.width+=a._helper?a.position.left-d.left:a.position.left-g.left;if(b)a.size.height=a.size.width/c.aspectRatio;a.position.left=c.helper?d.left:0}if(f.top<(a._helper?d.top:0)){a.size.height+=a._helper?a.position.top-d.top:a.position.top;if(b)a.size.width=a.size.height*c.aspectRatio;a.position.top=a._helper? -d.top:0}a.offset.left=a.parentData.left+a.position.left;a.offset.top=a.parentData.top+a.position.top;c=Math.abs((a._helper?a.offset.left-g.left:a.offset.left-g.left)+a.sizeDiff.width);d=Math.abs((a._helper?a.offset.top-g.top:a.offset.top-d.top)+a.sizeDiff.height);f=a.containerElement.get(0)==a.element.parent().get(0);g=/relative|absolute/.test(a.containerElement.css("position"));if(f&&g)c-=a.parentData.left;if(c+a.size.width>=a.parentData.width){a.size.width=a.parentData.width-c;if(b)a.size.height= -a.size.width/a.aspectRatio}if(d+a.size.height>=a.parentData.height){a.size.height=a.parentData.height-d;if(b)a.size.width=a.size.height*a.aspectRatio}},stop:function(){var b=e(this).data("resizable"),a=b.options,c=b.containerOffset,d=b.containerPosition,f=b.containerElement,g=e(b.helper),h=g.offset(),i=g.outerWidth()-b.sizeDiff.width;g=g.outerHeight()-b.sizeDiff.height;b._helper&&!a.animate&&/relative/.test(f.css("position"))&&e(this).css({left:h.left-d.left-c.left,width:i,height:g});b._helper&&!a.animate&& -/static/.test(f.css("position"))&&e(this).css({left:h.left-d.left-c.left,width:i,height:g})}});e.ui.plugin.add("resizable","ghost",{start:function(){var b=e(this).data("resizable"),a=b.options,c=b.size;b.ghost=b.originalElement.clone();b.ghost.css({opacity:0.25,display:"block",position:"relative",height:c.height,width:c.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof a.ghost=="string"?a.ghost:"");b.ghost.appendTo(b.helper)},resize:function(){var b=e(this).data("resizable"); -b.ghost&&b.ghost.css({position:"relative",height:b.size.height,width:b.size.width})},stop:function(){var b=e(this).data("resizable");b.ghost&&b.helper&&b.helper.get(0).removeChild(b.ghost.get(0))}});e.ui.plugin.add("resizable","grid",{resize:function(){var b=e(this).data("resizable"),a=b.options,c=b.size,d=b.originalSize,f=b.originalPosition,g=b.axis;a.grid=typeof a.grid=="number"?[a.grid,a.grid]:a.grid;var h=Math.round((c.width-d.width)/(a.grid[0]||1))*(a.grid[0]||1);a=Math.round((c.height-d.height)/ -(a.grid[1]||1))*(a.grid[1]||1);if(/^(se|s|e)$/.test(g)){b.size.width=d.width+h;b.size.height=d.height+a}else if(/^(ne)$/.test(g)){b.size.width=d.width+h;b.size.height=d.height+a;b.position.top=f.top-a}else{if(/^(sw)$/.test(g)){b.size.width=d.width+h;b.size.height=d.height+a}else{b.size.width=d.width+h;b.size.height=d.height+a;b.position.top=f.top-a}b.position.left=f.left-h}}});var m=function(b){return parseInt(b,10)||0},l=function(b){return!isNaN(parseInt(b,10))}})(jQuery); -;/* - * jQuery UI Selectable 1.8.12 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Selectables - * - * Depends: - * jquery.ui.core.js - * jquery.ui.mouse.js - * jquery.ui.widget.js - */ -(function(e){e.widget("ui.selectable",e.ui.mouse,{options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:function(){var c=this;this.element.addClass("ui-selectable");this.dragged=false;var f;this.refresh=function(){f=e(c.options.filter,c.element[0]);f.each(function(){var d=e(this),b=d.offset();e.data(this,"selectable-item",{element:this,$element:d,left:b.left,top:b.top,right:b.left+d.outerWidth(),bottom:b.top+d.outerHeight(),startselected:false,selected:d.hasClass("ui-selected"), -selecting:d.hasClass("ui-selecting"),unselecting:d.hasClass("ui-unselecting")})})};this.refresh();this.selectees=f.addClass("ui-selectee");this._mouseInit();this.helper=e("
")},destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy();return this},_mouseStart:function(c){var f=this;this.opos=[c.pageX, -c.pageY];if(!this.options.disabled){var d=this.options;this.selectees=e(d.filter,this.element[0]);this._trigger("start",c);e(d.appendTo).append(this.helper);this.helper.css({left:c.clientX,top:c.clientY,width:0,height:0});d.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each(function(){var b=e.data(this,"selectable-item");b.startselected=true;if(!c.metaKey){b.$element.removeClass("ui-selected");b.selected=false;b.$element.addClass("ui-unselecting");b.unselecting=true;f._trigger("unselecting", -c,{unselecting:b.element})}});e(c.target).parents().andSelf().each(function(){var b=e.data(this,"selectable-item");if(b){var g=!c.metaKey||!b.$element.hasClass("ui-selected");b.$element.removeClass(g?"ui-unselecting":"ui-selected").addClass(g?"ui-selecting":"ui-unselecting");b.unselecting=!g;b.selecting=g;(b.selected=g)?f._trigger("selecting",c,{selecting:b.element}):f._trigger("unselecting",c,{unselecting:b.element});return false}})}},_mouseDrag:function(c){var f=this;this.dragged=true;if(!this.options.disabled){var d= -this.options,b=this.opos[0],g=this.opos[1],h=c.pageX,i=c.pageY;if(b>h){var j=h;h=b;b=j}if(g>i){j=i;i=g;g=j}this.helper.css({left:b,top:g,width:h-b,height:i-g});this.selectees.each(function(){var a=e.data(this,"selectable-item");if(!(!a||a.element==f.element[0])){var k=false;if(d.tolerance=="touch")k=!(a.left>h||a.righti||a.bottomb&&a.rightg&&a.bottom *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1E3},_create:function(){this.containerCache={};this.element.addClass("ui-sortable"); -this.refresh();this.floating=this.items.length?/left|right/.test(this.items[0].item.css("float"))||/inline|table-cell/.test(this.items[0].item.css("display")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var a=this.items.length-1;a>=0;a--)this.items[a].item.removeData("sortable-item");return this},_setOption:function(a,b){if(a==="disabled"){this.options[a]= -b;this.widget()[b?"addClass":"removeClass"]("ui-sortable-disabled")}else d.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(a,b){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(a);var c=null,e=this;d(a.target).parents().each(function(){if(d.data(this,"sortable-item")==e){c=d(this);return false}});if(d.data(a.target,"sortable-item")==e)c=d(a.target);if(!c)return false;if(this.options.handle&&!b){var f=false; -d(this.options.handle,c).find("*").andSelf().each(function(){if(this==a.target)f=true});if(!f)return false}this.currentItem=c;this._removeCurrentsFromItems();return true},_mouseStart:function(a,b,c){b=this.options;var e=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(a);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left- -this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");d.extend(this.offset,{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;b.cursorAt&&this._adjustOffsetFromHelper(b.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]}; -this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();b.containment&&this._setContainment();if(b.cursor){if(d("body").css("cursor"))this._storedCursor=d("body").css("cursor");d("body").css("cursor",b.cursor)}if(b.opacity){if(this.helper.css("opacity"))this._storedOpacity=this.helper.css("opacity");this.helper.css("opacity",b.opacity)}if(b.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",b.zIndex)}if(this.scrollParent[0]!= -document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",a,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!c)for(c=this.containers.length-1;c>=0;c--)this.containers[c]._trigger("activate",a,e._uiHash(this));if(d.ui.ddmanager)d.ui.ddmanager.current=this;d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,a);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(a); -return true},_mouseDrag:function(a){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var b=this.options,c=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-a.pageY=0;b--){c=this.items[b];var e=c.item[0],f=this._intersectsWithPointer(c);if(f)if(e!=this.currentItem[0]&&this.placeholder[f==1?"next":"prev"]()[0]!=e&&!d.ui.contains(this.placeholder[0],e)&&(this.options.type=="semi-dynamic"?!d.ui.contains(this.element[0], -e):true)){this.direction=f==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(c))this._rearrange(a,c);else break;this._trigger("change",a,this._uiHash());break}}this._contactContainers(a);d.ui.ddmanager&&d.ui.ddmanager.drag(this,a);this._trigger("sort",a,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(a,b){if(a){d.ui.ddmanager&&!this.options.dropBehaviour&&d.ui.ddmanager.drop(this,a);if(this.options.revert){var c=this;b=c.placeholder.offset(); -c.reverting=true;d(this.helper).animate({left:b.left-this.offset.parent.left-c.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:b.top-this.offset.parent.top-c.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){c._clear(a)})}else this._clear(a,b);return false}},cancel:function(){var a=this;if(this.dragging){this._mouseUp({target:null});this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"): -this.currentItem.show();for(var b=this.containers.length-1;b>=0;b--){this.containers[b]._trigger("deactivate",null,a._uiHash(this));if(this.containers[b].containerCache.over){this.containers[b]._trigger("out",null,a._uiHash(this));this.containers[b].containerCache.over=0}}}if(this.placeholder){this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();d.extend(this,{helper:null, -dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?d(this.domPosition.prev).after(this.currentItem):d(this.domPosition.parent).prepend(this.currentItem)}return this},serialize:function(a){var b=this._getItemsAsjQuery(a&&a.connected),c=[];a=a||{};d(b).each(function(){var e=(d(a.item||this).attr(a.attribute||"id")||"").match(a.expression||/(.+)[-=_](.+)/);if(e)c.push((a.key||e[1]+"[]")+"="+(a.key&&a.expression?e[1]:e[2]))});!c.length&&a.key&&c.push(a.key+"=");return c.join("&")}, -toArray:function(a){var b=this._getItemsAsjQuery(a&&a.connected),c=[];a=a||{};b.each(function(){c.push(d(a.item||this).attr(a.attribute||"id")||"")});return c},_intersectsWith:function(a){var b=this.positionAbs.left,c=b+this.helperProportions.width,e=this.positionAbs.top,f=e+this.helperProportions.height,g=a.left,h=g+a.width,i=a.top,k=i+a.height,j=this.offset.click.top,l=this.offset.click.left;j=e+j>i&&e+jg&&b+la[this.floating?"width":"height"]?j:g0?"down":"up")},_getDragHorizontalDirection:function(){var a=this.positionAbs.left-this.lastPositionAbs.left;return a!=0&&(a>0?"right":"left")},refresh:function(a){this._refreshItems(a);this.refreshPositions();return this},_connectWith:function(){var a=this.options;return a.connectWith.constructor==String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(a){var b=[],c=[],e=this._connectWith(); -if(e&&a)for(a=e.length-1;a>=0;a--)for(var f=d(e[a]),g=f.length-1;g>=0;g--){var h=d.data(f[g],"sortable");if(h&&h!=this&&!h.options.disabled)c.push([d.isFunction(h.options.items)?h.options.items.call(h.element):d(h.options.items,h.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),h])}c.push([d.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):d(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"), -this]);for(a=c.length-1;a>=0;a--)c[a][0].each(function(){b.push(this)});return d(b)},_removeCurrentsFromItems:function(){for(var a=this.currentItem.find(":data(sortable-item)"),b=0;b=0;f--)for(var g=d(e[f]),h=g.length-1;h>=0;h--){var i=d.data(g[h],"sortable");if(i&&i!=this&&!i.options.disabled){c.push([d.isFunction(i.options.items)?i.options.items.call(i.element[0],a,{item:this.currentItem}):d(i.options.items,i.element),i]);this.containers.push(i)}}for(f=c.length-1;f>=0;f--){a=c[f][1];e=c[f][0];h=0;for(g=e.length;h=0;b--){var c=this.items[b];if(!(c.instance!=this.currentContainer&&this.currentContainer&&c.item[0]!=this.currentItem[0])){var e=this.options.toleranceElement?d(this.options.toleranceElement,c.item):c.item;if(!a){c.width=e.outerWidth();c.height=e.outerHeight()}e=e.offset();c.left=e.left;c.top=e.top}}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(b= -this.containers.length-1;b>=0;b--){e=this.containers[b].element.offset();this.containers[b].containerCache.left=e.left;this.containers[b].containerCache.top=e.top;this.containers[b].containerCache.width=this.containers[b].element.outerWidth();this.containers[b].containerCache.height=this.containers[b].element.outerHeight()}return this},_createPlaceholder:function(a){var b=a||this,c=b.options;if(!c.placeholder||c.placeholder.constructor==String){var e=c.placeholder;c.placeholder={element:function(){var f= -d(document.createElement(b.currentItem[0].nodeName)).addClass(e||b.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!e)f.style.visibility="hidden";return f},update:function(f,g){if(!(e&&!c.forcePlaceholderSize)){g.height()||g.height(b.currentItem.innerHeight()-parseInt(b.currentItem.css("paddingTop")||0,10)-parseInt(b.currentItem.css("paddingBottom")||0,10));g.width()||g.width(b.currentItem.innerWidth()-parseInt(b.currentItem.css("paddingLeft")||0,10)-parseInt(b.currentItem.css("paddingRight")|| -0,10))}}}}b.placeholder=d(c.placeholder.element.call(b.element,b.currentItem));b.currentItem.after(b.placeholder);c.placeholder.update(b,b.placeholder)},_contactContainers:function(a){for(var b=null,c=null,e=this.containers.length-1;e>=0;e--)if(!d.ui.contains(this.currentItem[0],this.containers[e].element[0]))if(this._intersectsWith(this.containers[e].containerCache)){if(!(b&&d.ui.contains(this.containers[e].element[0],b.element[0]))){b=this.containers[e];c=e}}else if(this.containers[e].containerCache.over){this.containers[e]._trigger("out", -a,this._uiHash(this));this.containers[e].containerCache.over=0}if(b)if(this.containers.length===1){this.containers[c]._trigger("over",a,this._uiHash(this));this.containers[c].containerCache.over=1}else if(this.currentContainer!=this.containers[c]){b=1E4;e=null;for(var f=this.positionAbs[this.containers[c].floating?"left":"top"],g=this.items.length-1;g>=0;g--)if(d.ui.contains(this.containers[c].element[0],this.items[g].item[0])){var h=this.items[g][this.containers[c].floating?"left":"top"];if(Math.abs(h- -f)this.containment[2])f=this.containment[2]+this.offset.click.left;if(a.pageY-this.offset.click.top>this.containment[3])g=this.containment[3]+this.offset.click.top}if(b.grid){g=this.originalPageY+Math.round((g- -this.originalPageY)/b.grid[1])*b.grid[1];g=this.containment?!(g-this.offset.click.topthis.containment[3])?g:!(g-this.offset.click.topthis.containment[2])?f:!(f-this.offset.click.left=0;e--)if(d.ui.contains(this.containers[e].element[0],this.currentItem[0])&&!b){c.push(function(f){return function(g){f._trigger("receive",g,this._uiHash(this))}}.call(this,this.containers[e]));c.push(function(f){return function(g){f._trigger("update",g,this._uiHash(this))}}.call(this,this.containers[e]))}}for(e=this.containers.length-1;e>=0;e--){b||c.push(function(f){return function(g){f._trigger("deactivate",g,this._uiHash(this))}}.call(this, -this.containers[e]));if(this.containers[e].containerCache.over){c.push(function(f){return function(g){f._trigger("out",g,this._uiHash(this))}}.call(this,this.containers[e]));this.containers[e].containerCache.over=0}}this._storedCursor&&d("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);if(this._storedZIndex)this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);this.dragging=false;if(this.cancelHelperRemoval){if(!b){this._trigger("beforeStop", -a,this._uiHash());for(e=0;e li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var a=this,b=a.options;a.running=0;a.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix"); -a.headers=a.element.find(b.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){b.disabled||c(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){b.disabled||c(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){b.disabled||c(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){b.disabled||c(this).removeClass("ui-state-focus")});a.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom"); -if(b.navigation){var d=a.element.find("a").filter(b.navigationFilter).eq(0);if(d.length){var h=d.closest(".ui-accordion-header");a.active=h.length?h:d.closest(".ui-accordion-content").prev()}}a.active=a._findActive(a.active||b.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");a.active.next().addClass("ui-accordion-content-active");a._createIcons();a.resize();a.element.attr("role","tablist");a.headers.attr("role","tab").bind("keydown.accordion", -function(f){return a._keydown(f)}).next().attr("role","tabpanel");a.headers.not(a.active||"").attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).next().hide();a.active.length?a.active.attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}):a.headers.eq(0).attr("tabIndex",0);c.browser.safari||a.headers.find("a").attr("tabIndex",-1);b.event&&a.headers.bind(b.event.split(" ").join(".accordion ")+".accordion",function(f){a._clickHandler.call(a,f,this);f.preventDefault()})},_createIcons:function(){var a= -this.options;if(a.icons){c("").addClass("ui-icon "+a.icons.header).prependTo(this.headers);this.active.children(".ui-icon").toggleClass(a.icons.header).toggleClass(a.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var a=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("tabIndex"); -this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var b=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");if(a.autoHeight||a.fillHeight)b.css("height","");return c.Widget.prototype.destroy.call(this)},_setOption:function(a,b){c.Widget.prototype._setOption.apply(this,arguments);a=="active"&&this.activate(b);if(a=="icons"){this._destroyIcons(); -b&&this._createIcons()}if(a=="disabled")this.headers.add(this.headers.next())[b?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(a){if(!(this.options.disabled||a.altKey||a.ctrlKey)){var b=c.ui.keyCode,d=this.headers.length,h=this.headers.index(a.target),f=false;switch(a.keyCode){case b.RIGHT:case b.DOWN:f=this.headers[(h+1)%d];break;case b.LEFT:case b.UP:f=this.headers[(h-1+d)%d];break;case b.SPACE:case b.ENTER:this._clickHandler({target:a.target},a.target); -a.preventDefault()}if(f){c(a.target).attr("tabIndex",-1);c(f).attr("tabIndex",0);f.focus();return false}return true}},resize:function(){var a=this.options,b;if(a.fillSpace){if(c.browser.msie){var d=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}b=this.element.parent().height();c.browser.msie&&this.element.parent().css("overflow",d);this.headers.each(function(){b-=c(this).outerHeight(true)});this.headers.next().each(function(){c(this).height(Math.max(0,b-c(this).innerHeight()+ -c(this).height()))}).css("overflow","auto")}else if(a.autoHeight){b=0;this.headers.next().each(function(){b=Math.max(b,c(this).height("").height())}).height(b)}return this},activate:function(a){this.options.active=a;a=this._findActive(a)[0];this._clickHandler({target:a},a);return this},_findActive:function(a){return a?typeof a==="number"?this.headers.filter(":eq("+a+")"):this.headers.not(this.headers.not(a)):a===false?c([]):this.headers.filter(":eq(0)")},_clickHandler:function(a,b){var d=this.options; -if(!d.disabled)if(a.target){a=c(a.currentTarget||b);b=a[0]===this.active[0];d.active=d.collapsible&&b?false:this.headers.index(a);if(!(this.running||!d.collapsible&&b)){var h=this.active;j=a.next();g=this.active.next();e={options:d,newHeader:b&&d.collapsible?c([]):a,oldHeader:this.active,newContent:b&&d.collapsible?c([]):j,oldContent:g};var f=this.headers.index(this.active[0])>this.headers.index(a[0]);this.active=b?c([]):a;this._toggle(j,g,e,b,f);h.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header); -if(!b){a.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(d.icons.header).addClass(d.icons.headerSelected);a.next().addClass("ui-accordion-content-active")}}}else if(d.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);this.active.next().addClass("ui-accordion-content-active");var g=this.active.next(), -e={options:d,newHeader:c([]),oldHeader:d.active,newContent:c([]),oldContent:g},j=this.active=c([]);this._toggle(j,g,e)}},_toggle:function(a,b,d,h,f){var g=this,e=g.options;g.toShow=a;g.toHide=b;g.data=d;var j=function(){if(g)return g._completed.apply(g,arguments)};g._trigger("changestart",null,g.data);g.running=b.size()===0?a.size():b.size();if(e.animated){d={};d=e.collapsible&&h?{toShow:c([]),toHide:b,complete:j,down:f,autoHeight:e.autoHeight||e.fillSpace}:{toShow:a,toHide:b,complete:j,down:f,autoHeight:e.autoHeight|| -e.fillSpace};if(!e.proxied)e.proxied=e.animated;if(!e.proxiedDuration)e.proxiedDuration=e.duration;e.animated=c.isFunction(e.proxied)?e.proxied(d):e.proxied;e.duration=c.isFunction(e.proxiedDuration)?e.proxiedDuration(d):e.proxiedDuration;h=c.ui.accordion.animations;var i=e.duration,k=e.animated;if(k&&!h[k]&&!c.easing[k])k="slide";h[k]||(h[k]=function(l){this.slide(l,{easing:k,duration:i||700})});h[k](d)}else{if(e.collapsible&&h)a.toggle();else{b.hide();a.show()}j(true)}b.prev().attr({"aria-expanded":"false", -"aria-selected":"false",tabIndex:-1}).blur();a.prev().attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}).focus()},_completed:function(a){this.running=a?0:--this.running;if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");if(this.toHide.length)this.toHide.parent()[0].className=this.toHide.parent()[0].className;this._trigger("change",null,this.data)}}});c.extend(c.ui.accordion,{version:"1.8.12", -animations:{slide:function(a,b){a=c.extend({easing:"swing",duration:300},a,b);if(a.toHide.size())if(a.toShow.size()){var d=a.toShow.css("overflow"),h=0,f={},g={},e;b=a.toShow;e=b[0].style.width;b.width(parseInt(b.parent().width(),10)-parseInt(b.css("paddingLeft"),10)-parseInt(b.css("paddingRight"),10)-(parseInt(b.css("borderLeftWidth"),10)||0)-(parseInt(b.css("borderRightWidth"),10)||0));c.each(["height","paddingTop","paddingBottom"],function(j,i){g[i]="hide";j=(""+c.css(a.toShow[0],i)).match(/^([\d+-.]+)(.*)$/); -f[i]={value:j[1],unit:j[2]||"px"}});a.toShow.css({height:0,overflow:"hidden"}).show();a.toHide.filter(":hidden").each(a.complete).end().filter(":visible").animate(g,{step:function(j,i){if(i.prop=="height")h=i.end-i.start===0?0:(i.now-i.start)/(i.end-i.start);a.toShow[0].style[i.prop]=h*f[i.prop].value+f[i.prop].unit},duration:a.duration,easing:a.easing,complete:function(){a.autoHeight||a.toShow.css("height","");a.toShow.css({width:e,overflow:d});a.complete()}})}else a.toHide.animate({height:"hide", -paddingTop:"hide",paddingBottom:"hide"},a);else a.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},a)},bounceslide:function(a){this.slide(a,{easing:a.down?"easeOutBounce":"swing",duration:a.down?1E3:200})}}})})(jQuery); -;/* - * jQuery UI Autocomplete 1.8.12 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Autocomplete - * - * Depends: - * jquery.ui.core.js - * jquery.ui.widget.js - * jquery.ui.position.js - */ -(function(d){var e=0;d.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:false,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var a=this,b=this.element[0].ownerDocument,g;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(c){if(!(a.options.disabled||a.element.attr("readonly"))){g= -false;var f=d.ui.keyCode;switch(c.keyCode){case f.PAGE_UP:a._move("previousPage",c);break;case f.PAGE_DOWN:a._move("nextPage",c);break;case f.UP:a._move("previous",c);c.preventDefault();break;case f.DOWN:a._move("next",c);c.preventDefault();break;case f.ENTER:case f.NUMPAD_ENTER:if(a.menu.active){g=true;c.preventDefault()}case f.TAB:if(!a.menu.active)return;a.menu.select(c);break;case f.ESCAPE:a.element.val(a.term);a.close(c);break;default:clearTimeout(a.searching);a.searching=setTimeout(function(){if(a.term!= -a.element.val()){a.selectedItem=null;a.search(null,c)}},a.options.delay);break}}}).bind("keypress.autocomplete",function(c){if(g){g=false;c.preventDefault()}}).bind("focus.autocomplete",function(){if(!a.options.disabled){a.selectedItem=null;a.previous=a.element.val()}}).bind("blur.autocomplete",function(c){if(!a.options.disabled){clearTimeout(a.searching);a.closing=setTimeout(function(){a.close(c);a._change(c)},150)}});this._initSource();this.response=function(){return a._response.apply(a,arguments)}; -this.menu=d("
    ").addClass("ui-autocomplete").appendTo(d(this.options.appendTo||"body",b)[0]).mousedown(function(c){var f=a.menu.element[0];d(c.target).closest(".ui-menu-item").length||setTimeout(function(){d(document).one("mousedown",function(h){h.target!==a.element[0]&&h.target!==f&&!d.ui.contains(f,h.target)&&a.close()})},1);setTimeout(function(){clearTimeout(a.closing)},13)}).menu({focus:function(c,f){f=f.item.data("item.autocomplete");false!==a._trigger("focus",c,{item:f})&&/^key/.test(c.originalEvent.type)&& -a.element.val(f.value)},selected:function(c,f){var h=f.item.data("item.autocomplete"),i=a.previous;if(a.element[0]!==b.activeElement){a.element.focus();a.previous=i;setTimeout(function(){a.previous=i;a.selectedItem=h},1)}false!==a._trigger("select",c,{item:h})&&a.element.val(h.value);a.term=a.element.val();a.close(c);a.selectedItem=h},blur:function(){a.menu.element.is(":visible")&&a.element.val()!==a.term&&a.element.val(a.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu"); -d.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");this.menu.element.remove();d.Widget.prototype.destroy.call(this)},_setOption:function(a,b){d.Widget.prototype._setOption.apply(this,arguments);a==="source"&&this._initSource();if(a==="appendTo")this.menu.element.appendTo(d(b||"body",this.element[0].ownerDocument)[0]);a==="disabled"&& -b&&this.xhr&&this.xhr.abort()},_initSource:function(){var a=this,b,g;if(d.isArray(this.options.source)){b=this.options.source;this.source=function(c,f){f(d.ui.autocomplete.filter(b,c.term))}}else if(typeof this.options.source==="string"){g=this.options.source;this.source=function(c,f){a.xhr&&a.xhr.abort();a.xhr=d.ajax({url:g,data:c,dataType:"json",autocompleteRequest:++e,success:function(h){this.autocompleteRequest===e&&f(h)},error:function(){this.autocompleteRequest===e&&f([])}})}}else this.source= -this.options.source},search:function(a,b){a=a!=null?a:this.element.val();this.term=this.element.val();if(a.length").data("item.autocomplete",b).append(d("").text(b.label)).appendTo(a)},_move:function(a,b){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(a)||this.menu.last()&&/^next/.test(a)){this.element.val(this.term);this.menu.deactivate()}else this.menu[a](b);else this.search(null,b)},widget:function(){return this.menu.element}});d.extend(d.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, -"\\$&")},filter:function(a,b){var g=new RegExp(d.ui.autocomplete.escapeRegex(b),"i");return d.grep(a,function(c){return g.test(c.label||c.value||c)})}})})(jQuery); -(function(d){d.widget("ui.menu",{_create:function(){var e=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(a){if(d(a.target).closest(".ui-menu-item a").length){a.preventDefault();e.select(a)}});this.refresh()},refresh:function(){var e=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex", --1).mouseenter(function(a){e.activate(a,d(this).parent())}).mouseleave(function(){e.deactivate()})},activate:function(e,a){this.deactivate();if(this.hasScroll()){var b=a.offset().top-this.element.offset().top,g=this.element.attr("scrollTop"),c=this.element.height();if(b<0)this.element.attr("scrollTop",g+b);else b>=c&&this.element.attr("scrollTop",g+b-c+a.height())}this.active=a.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",e,{item:a})}, -deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id");this._trigger("blur");this.active=null}},next:function(e){this.move("next",".ui-menu-item:first",e)},previous:function(e){this.move("prev",".ui-menu-item:last",e)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(e,a,b){if(this.active){e=this.active[e+"All"](".ui-menu-item").eq(0); -e.length?this.activate(b,e):this.activate(b,this.element.children(a))}else this.activate(b,this.element.children(a))},nextPage:function(e){if(this.hasScroll())if(!this.active||this.last())this.activate(e,this.element.children(".ui-menu-item:first"));else{var a=this.active.offset().top,b=this.element.height(),g=this.element.children(".ui-menu-item").filter(function(){var c=d(this).offset().top-a-b+d(this).height();return c<10&&c>-10});g.length||(g=this.element.children(".ui-menu-item:last"));this.activate(e, -g)}else this.activate(e,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))},previousPage:function(e){if(this.hasScroll())if(!this.active||this.first())this.activate(e,this.element.children(".ui-menu-item:last"));else{var a=this.active.offset().top,b=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var g=d(this).offset().top-a+b-d(this).height();return g<10&&g>-10});result.length||(result=this.element.children(".ui-menu-item:first")); -this.activate(e,result)}else this.activate(e,this.element.children(".ui-menu-item").filter(!this.active||this.first()?":last":":first"))},hasScroll:function(){return this.element.height()").addClass("ui-button-text").html(this.options.label).appendTo(b.empty()).text(),d=this.options.icons,f=d.primary&&d.secondary,e=[];if(d.primary||d.secondary){if(this.options.text)e.push("ui-button-text-icon"+(f?"s":d.primary?"-primary":"-secondary"));d.primary&&b.prepend("");d.secondary&&b.append("");if(!this.options.text){e.push(f?"ui-button-icons-only": -"ui-button-icon-only");this.hasTitle||b.attr("title",c)}}else e.push("ui-button-text-only");b.addClass(e.join(" "))}}});a.widget("ui.buttonset",{options:{items:":button, :submit, :reset, :checkbox, :radio, a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(b,c){b==="disabled"&&this.buttons.button("option",b,c);a.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass("ui-corner-left").end().filter(":last").addClass("ui-corner-right").end().end()}, -destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");a.Widget.prototype.destroy.call(this)}})})(jQuery); -;/* - * jQuery UI Dialog 1.8.12 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Dialog - * - * Depends: - * jquery.ui.core.js - * jquery.ui.widget.js - * jquery.ui.button.js - * jquery.ui.draggable.js - * jquery.ui.mouse.js - * jquery.ui.position.js - * jquery.ui.resizable.js - */ -(function(c,l){var m={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},n={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true},o=c.attrFn||{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true,click:true};c.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false, -position:{my:"center",at:"center",collision:"fit",using:function(a){var b=c(this).css(a).offset().top;b<0&&c(this).css("top",a.top-b)}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");if(typeof this.originalTitle!=="string")this.originalTitle="";this.options.title=this.options.title||this.originalTitle;var a=this,b=a.options,d=b.title||" ",e=c.ui.dialog.getTitleId(a.element),g=(a.uiDialog=c("
    ")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+ -b.dialogClass).css({zIndex:b.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(i){if(b.closeOnEscape&&i.keyCode&&i.keyCode===c.ui.keyCode.ESCAPE){a.close(i);i.preventDefault()}}).attr({role:"dialog","aria-labelledby":e}).mousedown(function(i){a.moveToTop(false,i)});a.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(g);var f=(a.uiDialogTitlebar=c("
    ")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(g), -h=c('').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){h.addClass("ui-state-hover")},function(){h.removeClass("ui-state-hover")}).focus(function(){h.addClass("ui-state-focus")}).blur(function(){h.removeClass("ui-state-focus")}).click(function(i){a.close(i);return false}).appendTo(f);(a.uiDialogTitlebarCloseText=c("")).addClass("ui-icon ui-icon-closethick").text(b.closeText).appendTo(h);c("").addClass("ui-dialog-title").attr("id", -e).html(d).prependTo(f);if(c.isFunction(b.beforeclose)&&!c.isFunction(b.beforeClose))b.beforeClose=b.beforeclose;f.find("*").add(f).disableSelection();b.draggable&&c.fn.draggable&&a._makeDraggable();b.resizable&&c.fn.resizable&&a._makeResizable();a._createButtons(b.buttons);a._isOpen=false;c.fn.bgiframe&&g.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){var a=this;a.overlay&&a.overlay.destroy();a.uiDialog.hide();a.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body"); -a.uiDialog.remove();a.originalTitle&&a.element.attr("title",a.originalTitle);return a},widget:function(){return this.uiDialog},close:function(a){var b=this,d,e;if(false!==b._trigger("beforeClose",a)){b.overlay&&b.overlay.destroy();b.uiDialog.unbind("keypress.ui-dialog");b._isOpen=false;if(b.options.hide)b.uiDialog.hide(b.options.hide,function(){b._trigger("close",a)});else{b.uiDialog.hide();b._trigger("close",a)}c.ui.dialog.overlay.resize();if(b.options.modal){d=0;c(".ui-dialog").each(function(){if(this!== -b.uiDialog[0]){e=c(this).css("z-index");isNaN(e)||(d=Math.max(d,e))}});c.ui.dialog.maxZ=d}return b}},isOpen:function(){return this._isOpen},moveToTop:function(a,b){var d=this,e=d.options;if(e.modal&&!a||!e.stack&&!e.modal)return d._trigger("focus",b);if(e.zIndex>c.ui.dialog.maxZ)c.ui.dialog.maxZ=e.zIndex;if(d.overlay){c.ui.dialog.maxZ+=1;d.overlay.$el.css("z-index",c.ui.dialog.overlay.maxZ=c.ui.dialog.maxZ)}a={scrollTop:d.element.attr("scrollTop"),scrollLeft:d.element.attr("scrollLeft")};c.ui.dialog.maxZ+= -1;d.uiDialog.css("z-index",c.ui.dialog.maxZ);d.element.attr(a);d._trigger("focus",b);return d},open:function(){if(!this._isOpen){var a=this,b=a.options,d=a.uiDialog;a.overlay=b.modal?new c.ui.dialog.overlay(a):null;a._size();a._position(b.position);d.show(b.show);a.moveToTop(true);b.modal&&d.bind("keypress.ui-dialog",function(e){if(e.keyCode===c.ui.keyCode.TAB){var g=c(":tabbable",this),f=g.filter(":first");g=g.filter(":last");if(e.target===g[0]&&!e.shiftKey){f.focus(1);return false}else if(e.target=== -f[0]&&e.shiftKey){g.focus(1);return false}}});c(a.element.find(":tabbable").get().concat(d.find(".ui-dialog-buttonpane :tabbable").get().concat(d.get()))).eq(0).focus();a._isOpen=true;a._trigger("open");return a}},_createButtons:function(a){var b=this,d=false,e=c("
    ").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),g=c("
    ").addClass("ui-dialog-buttonset").appendTo(e);b.uiDialog.find(".ui-dialog-buttonpane").remove();typeof a==="object"&&a!==null&&c.each(a, -function(){return!(d=true)});if(d){c.each(a,function(f,h){h=c.isFunction(h)?{click:h,text:f}:h;var i=c('').click(function(){h.click.apply(b.element[0],arguments)}).appendTo(g);c.each(h,function(j,k){if(j!=="click")j in o?i[j](k):i.attr(j,k)});c.fn.button&&i.button()});e.appendTo(b.uiDialog)}},_makeDraggable:function(){function a(f){return{position:f.position,offset:f.offset}}var b=this,d=b.options,e=c(document),g;b.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close", -handle:".ui-dialog-titlebar",containment:"document",start:function(f,h){g=d.height==="auto"?"auto":c(this).height();c(this).height(c(this).height()).addClass("ui-dialog-dragging");b._trigger("dragStart",f,a(h))},drag:function(f,h){b._trigger("drag",f,a(h))},stop:function(f,h){d.position=[h.position.left-e.scrollLeft(),h.position.top-e.scrollTop()];c(this).removeClass("ui-dialog-dragging").height(g);b._trigger("dragStop",f,a(h));c.ui.dialog.overlay.resize()}})},_makeResizable:function(a){function b(f){return{originalPosition:f.originalPosition, -originalSize:f.originalSize,position:f.position,size:f.size}}a=a===l?this.options.resizable:a;var d=this,e=d.options,g=d.uiDialog.css("position");a=typeof a==="string"?a:"n,e,s,w,se,sw,ne,nw";d.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:d.element,maxWidth:e.maxWidth,maxHeight:e.maxHeight,minWidth:e.minWidth,minHeight:d._minHeight(),handles:a,start:function(f,h){c(this).addClass("ui-dialog-resizing");d._trigger("resizeStart",f,b(h))},resize:function(f,h){d._trigger("resize", -f,b(h))},stop:function(f,h){c(this).removeClass("ui-dialog-resizing");e.height=c(this).height();e.width=c(this).width();d._trigger("resizeStop",f,b(h));c.ui.dialog.overlay.resize()}}).css("position",g).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var a=this.options;return a.height==="auto"?a.minHeight:Math.min(a.minHeight,a.height)},_position:function(a){var b=[],d=[0,0],e;if(a){if(typeof a==="string"||typeof a==="object"&&"0"in a){b=a.split?a.split(" "): -[a[0],a[1]];if(b.length===1)b[1]=b[0];c.each(["left","top"],function(g,f){if(+b[g]===b[g]){d[g]=b[g];b[g]=f}});a={my:b.join(" "),at:b.join(" "),offset:d.join(" ")}}a=c.extend({},c.ui.dialog.prototype.options.position,a)}else a=c.ui.dialog.prototype.options.position;(e=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(c.extend({of:window},a));e||this.uiDialog.hide()},_setOptions:function(a){var b=this,d={},e=false;c.each(a,function(g,f){b._setOption(g,f); -if(g in m)e=true;if(g in n)d[g]=f});e&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",d)},_setOption:function(a,b){var d=this,e=d.uiDialog;switch(a){case "beforeclose":a="beforeClose";break;case "buttons":d._createButtons(b);break;case "closeText":d.uiDialogTitlebarCloseText.text(""+b);break;case "dialogClass":e.removeClass(d.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+b);break;case "disabled":b?e.addClass("ui-dialog-disabled"): -e.removeClass("ui-dialog-disabled");break;case "draggable":var g=e.is(":data(draggable)");g&&!b&&e.draggable("destroy");!g&&b&&d._makeDraggable();break;case "position":d._position(b);break;case "resizable":(g=e.is(":data(resizable)"))&&!b&&e.resizable("destroy");g&&typeof b==="string"&&e.resizable("option","handles",b);!g&&b!==false&&d._makeResizable(b);break;case "title":c(".ui-dialog-title",d.uiDialogTitlebar).html(""+(b||" "));break}c.Widget.prototype._setOption.apply(d,arguments)},_size:function(){var a= -this.options,b,d,e=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});if(a.minWidth>a.width)a.width=a.minWidth;b=this.uiDialog.css({height:"auto",width:a.width}).height();d=Math.max(0,a.minHeight-b);if(a.height==="auto")if(c.support.minHeight)this.element.css({minHeight:d,height:"auto"});else{this.uiDialog.show();a=this.element.css("height","auto").height();e||this.uiDialog.hide();this.element.height(Math.max(a,d))}else this.element.height(Math.max(a.height- -b,0));this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});c.extend(c.ui.dialog,{version:"1.8.12",uuid:0,maxZ:0,getTitleId:function(a){a=a.attr("id");if(!a){this.uuid+=1;a=this.uuid}return"ui-dialog-title-"+a},overlay:function(a){this.$el=c.ui.dialog.overlay.create(a)}});c.extend(c.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(a){return a+".dialog-overlay"}).join(" "), -create:function(a){if(this.instances.length===0){setTimeout(function(){c.ui.dialog.overlay.instances.length&&c(document).bind(c.ui.dialog.overlay.events,function(d){if(c(d.target).zIndex()").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(), -height:this.height()});c.fn.bgiframe&&b.bgiframe();this.instances.push(b);return b},destroy:function(a){var b=c.inArray(a,this.instances);b!=-1&&this.oldInstances.push(this.instances.splice(b,1)[0]);this.instances.length===0&&c([document,window]).unbind(".dialog-overlay");a.remove();var d=0;c.each(this.instances,function(){d=Math.max(d,this.css("z-index"))});this.maxZ=d},height:function(){var a,b;if(c.browser.msie&&c.browser.version<7){a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight); -b=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return a");if(!a.values)a.values=[this._valueMin(),this._valueMin()];if(a.values.length&&a.values.length!==2)a.values=[a.values[0],a.values[0]]}else this.range=d("
    ");this.range.appendTo(this.element).addClass("ui-slider-range");if(a.range==="min"||a.range==="max")this.range.addClass("ui-slider-range-"+a.range);this.range.addClass("ui-widget-header")}d(".ui-slider-handle",this.element).length===0&&d("").appendTo(this.element).addClass("ui-slider-handle"); -if(a.values&&a.values.length)for(;d(".ui-slider-handle",this.element).length").appendTo(this.element).addClass("ui-slider-handle");this.handles=d(".ui-slider-handle",this.element).addClass("ui-state-default ui-corner-all");this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(c){c.preventDefault()}).hover(function(){a.disabled||d(this).addClass("ui-state-hover")},function(){d(this).removeClass("ui-state-hover")}).focus(function(){if(a.disabled)d(this).blur(); -else{d(".ui-slider .ui-state-focus").removeClass("ui-state-focus");d(this).addClass("ui-state-focus")}}).blur(function(){d(this).removeClass("ui-state-focus")});this.handles.each(function(c){d(this).data("index.ui-slider-handle",c)});this.handles.keydown(function(c){var e=true,f=d(this).data("index.ui-slider-handle"),h,g,i;if(!b.options.disabled){switch(c.keyCode){case d.ui.keyCode.HOME:case d.ui.keyCode.END:case d.ui.keyCode.PAGE_UP:case d.ui.keyCode.PAGE_DOWN:case d.ui.keyCode.UP:case d.ui.keyCode.RIGHT:case d.ui.keyCode.DOWN:case d.ui.keyCode.LEFT:e= -false;if(!b._keySliding){b._keySliding=true;d(this).addClass("ui-state-active");h=b._start(c,f);if(h===false)return}break}i=b.options.step;h=b.options.values&&b.options.values.length?(g=b.values(f)):(g=b.value());switch(c.keyCode){case d.ui.keyCode.HOME:g=b._valueMin();break;case d.ui.keyCode.END:g=b._valueMax();break;case d.ui.keyCode.PAGE_UP:g=b._trimAlignValue(h+(b._valueMax()-b._valueMin())/5);break;case d.ui.keyCode.PAGE_DOWN:g=b._trimAlignValue(h-(b._valueMax()-b._valueMin())/5);break;case d.ui.keyCode.UP:case d.ui.keyCode.RIGHT:if(h=== -b._valueMax())return;g=b._trimAlignValue(h+i);break;case d.ui.keyCode.DOWN:case d.ui.keyCode.LEFT:if(h===b._valueMin())return;g=b._trimAlignValue(h-i);break}b._slide(c,f,g);return e}}).keyup(function(c){var e=d(this).data("index.ui-slider-handle");if(b._keySliding){b._keySliding=false;b._stop(c,e);b._change(c,e);d(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider"); -this._mouseDestroy();return this},_mouseCapture:function(b){var a=this.options,c,e,f,h,g;if(a.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();c=this._normValueFromMouse({x:b.pageX,y:b.pageY});e=this._valueMax()-this._valueMin()+1;h=this;this.handles.each(function(i){var j=Math.abs(c-h.values(i));if(e>j){e=j;f=d(this);g=i}});if(a.range===true&&this.values(1)===a.min){g+=1;f=d(this.handles[g])}if(this._start(b, -g)===false)return false;this._mouseSliding=true;h._handleIndex=g;f.addClass("ui-state-active").focus();a=f.offset();this._clickOffset=!d(b.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:b.pageX-a.left-f.width()/2,top:b.pageY-a.top-f.height()/2-(parseInt(f.css("borderTopWidth"),10)||0)-(parseInt(f.css("borderBottomWidth"),10)||0)+(parseInt(f.css("marginTop"),10)||0)};this.handles.hasClass("ui-state-hover")||this._slide(b,g,c);return this._animateOff=true},_mouseStart:function(){return true}, -_mouseDrag:function(b){var a=this._normValueFromMouse({x:b.pageX,y:b.pageY});this._slide(b,this._handleIndex,a);return false},_mouseStop:function(b){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(b,this._handleIndex);this._change(b,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(b){var a; -if(this.orientation==="horizontal"){a=this.elementSize.width;b=b.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{a=this.elementSize.height;b=b.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}a=b/a;if(a>1)a=1;if(a<0)a=0;if(this.orientation==="vertical")a=1-a;b=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+a*b)},_start:function(b,a){var c={handle:this.handles[a],value:this.value()};if(this.options.values&&this.options.values.length){c.value= -this.values(a);c.values=this.values()}return this._trigger("start",b,c)},_slide:function(b,a,c){var e;if(this.options.values&&this.options.values.length){e=this.values(a?0:1);if(this.options.values.length===2&&this.options.range===true&&(a===0&&c>e||a===1&&c1){this.options.values[b]=this._trimAlignValue(a);this._refreshValue();this._change(null,b)}else if(arguments.length)if(d.isArray(arguments[0])){c=this.options.values;e=arguments[0];for(f=0;f=this._valueMax())return this._valueMax();var a=this.options.step>0?this.options.step:1,c=(b-this._valueMin())%a;alignValue=b-c;if(Math.abs(c)*2>=a)alignValue+=c>0?a:-a;return parseFloat(alignValue.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max}, -_refreshValue:function(){var b=this.options.range,a=this.options,c=this,e=!this._animateOff?a.animate:false,f,h={},g,i,j,l;if(this.options.values&&this.options.values.length)this.handles.each(function(k){f=(c.values(k)-c._valueMin())/(c._valueMax()-c._valueMin())*100;h[c.orientation==="horizontal"?"left":"bottom"]=f+"%";d(this).stop(1,1)[e?"animate":"css"](h,a.animate);if(c.options.range===true)if(c.orientation==="horizontal"){if(k===0)c.range.stop(1,1)[e?"animate":"css"]({left:f+"%"},a.animate); -if(k===1)c.range[e?"animate":"css"]({width:f-g+"%"},{queue:false,duration:a.animate})}else{if(k===0)c.range.stop(1,1)[e?"animate":"css"]({bottom:f+"%"},a.animate);if(k===1)c.range[e?"animate":"css"]({height:f-g+"%"},{queue:false,duration:a.animate})}g=f});else{i=this.value();j=this._valueMin();l=this._valueMax();f=l!==j?(i-j)/(l-j)*100:0;h[c.orientation==="horizontal"?"left":"bottom"]=f+"%";this.handle.stop(1,1)[e?"animate":"css"](h,a.animate);if(b==="min"&&this.orientation==="horizontal")this.range.stop(1, -1)[e?"animate":"css"]({width:f+"%"},a.animate);if(b==="max"&&this.orientation==="horizontal")this.range[e?"animate":"css"]({width:100-f+"%"},{queue:false,duration:a.animate});if(b==="min"&&this.orientation==="vertical")this.range.stop(1,1)[e?"animate":"css"]({height:f+"%"},a.animate);if(b==="max"&&this.orientation==="vertical")this.range[e?"animate":"css"]({height:100-f+"%"},{queue:false,duration:a.animate})}}});d.extend(d.ui.slider,{version:"1.8.12"})})(jQuery); -;/* - * jQuery UI Tabs 1.8.12 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Tabs - * - * Depends: - * jquery.ui.core.js - * jquery.ui.widget.js - */ -(function(d,p){function u(){return++v}function w(){return++x}var v=0,x=0;d.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"
    ",remove:null,select:null,show:null,spinner:"Loading…",tabTemplate:"
  • #{label}
  • "},_create:function(){this._tabify(true)},_setOption:function(b,e){if(b=="selected")this.options.collapsible&& -e==this.options.selected||this.select(e);else{this.options[b]=e;this._tabify()}},_tabId:function(b){return b.title&&b.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+u()},_sanitizeSelector:function(b){return b.replace(/:/g,"\\:")},_cookie:function(){var b=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+w());return d.cookie.apply(null,[b].concat(d.makeArray(arguments)))},_ui:function(b,e){return{tab:b,panel:e,index:this.anchors.index(b)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var b= -d(this);b.html(b.data("label.tabs")).removeData("label.tabs")})},_tabify:function(b){function e(g,f){g.css("display","");!d.support.opacity&&f.opacity&&g[0].style.removeAttribute("filter")}var a=this,c=this.options,h=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=d(" > li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return d("a",this)[0]});this.panels=d([]);this.anchors.each(function(g,f){var i=d(f).attr("href"),l=i.split("#")[0],q;if(l&&(l===location.toString().split("#")[0]|| -(q=d("base")[0])&&l===q.href)){i=f.hash;f.href=i}if(h.test(i))a.panels=a.panels.add(a.element.find(a._sanitizeSelector(i)));else if(i&&i!=="#"){d.data(f,"href.tabs",i);d.data(f,"load.tabs",i.replace(/#.*$/,""));i=a._tabId(f);f.href="#"+i;f=a.element.find("#"+i);if(!f.length){f=d(c.panelTemplate).attr("id",i).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(a.panels[g-1]||a.list);f.data("destroy.tabs",true)}a.panels=a.panels.add(f)}else c.disabled.push(g)});if(b){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all"); -this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(c.selected===p){location.hash&&this.anchors.each(function(g,f){if(f.hash==location.hash){c.selected=g;return false}});if(typeof c.selected!=="number"&&c.cookie)c.selected=parseInt(a._cookie(),10);if(typeof c.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length)c.selected= -this.lis.index(this.lis.filter(".ui-tabs-selected"));c.selected=c.selected||(this.lis.length?0:-1)}else if(c.selected===null)c.selected=-1;c.selected=c.selected>=0&&this.anchors[c.selected]||c.selected<0?c.selected:0;c.disabled=d.unique(c.disabled.concat(d.map(this.lis.filter(".ui-state-disabled"),function(g){return a.lis.index(g)}))).sort();d.inArray(c.selected,c.disabled)!=-1&&c.disabled.splice(d.inArray(c.selected,c.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active"); -if(c.selected>=0&&this.anchors.length){a.element.find(a._sanitizeSelector(a.anchors[c.selected].hash)).removeClass("ui-tabs-hide");this.lis.eq(c.selected).addClass("ui-tabs-selected ui-state-active");a.element.queue("tabs",function(){a._trigger("show",null,a._ui(a.anchors[c.selected],a.element.find(a._sanitizeSelector(a.anchors[c.selected].hash))[0]))});this.load(c.selected)}d(window).bind("unload",function(){a.lis.add(a.anchors).unbind(".tabs");a.lis=a.anchors=a.panels=null})}else c.selected=this.lis.index(this.lis.filter(".ui-tabs-selected")); -this.element[c.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");c.cookie&&this._cookie(c.selected,c.cookie);b=0;for(var j;j=this.lis[b];b++)d(j)[d.inArray(b,c.disabled)!=-1&&!d(j).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");c.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(c.event!=="mouseover"){var k=function(g,f){f.is(":not(.ui-state-disabled)")&&f.addClass("ui-state-"+g)},n=function(g,f){f.removeClass("ui-state-"+ -g)};this.lis.bind("mouseover.tabs",function(){k("hover",d(this))});this.lis.bind("mouseout.tabs",function(){n("hover",d(this))});this.anchors.bind("focus.tabs",function(){k("focus",d(this).closest("li"))});this.anchors.bind("blur.tabs",function(){n("focus",d(this).closest("li"))})}var m,o;if(c.fx)if(d.isArray(c.fx)){m=c.fx[0];o=c.fx[1]}else m=o=c.fx;var r=o?function(g,f){d(g).closest("li").addClass("ui-tabs-selected ui-state-active");f.hide().removeClass("ui-tabs-hide").animate(o,o.duration||"normal", -function(){e(f,o);a._trigger("show",null,a._ui(g,f[0]))})}:function(g,f){d(g).closest("li").addClass("ui-tabs-selected ui-state-active");f.removeClass("ui-tabs-hide");a._trigger("show",null,a._ui(g,f[0]))},s=m?function(g,f){f.animate(m,m.duration||"normal",function(){a.lis.removeClass("ui-tabs-selected ui-state-active");f.addClass("ui-tabs-hide");e(f,m);a.element.dequeue("tabs")})}:function(g,f){a.lis.removeClass("ui-tabs-selected ui-state-active");f.addClass("ui-tabs-hide");a.element.dequeue("tabs")}; -this.anchors.bind(c.event+".tabs",function(){var g=this,f=d(g).closest("li"),i=a.panels.filter(":not(.ui-tabs-hide)"),l=a.element.find(a._sanitizeSelector(g.hash));if(f.hasClass("ui-tabs-selected")&&!c.collapsible||f.hasClass("ui-state-disabled")||f.hasClass("ui-state-processing")||a.panels.filter(":animated").length||a._trigger("select",null,a._ui(this,l[0]))===false){this.blur();return false}c.selected=a.anchors.index(this);a.abort();if(c.collapsible)if(f.hasClass("ui-tabs-selected")){c.selected= --1;c.cookie&&a._cookie(c.selected,c.cookie);a.element.queue("tabs",function(){s(g,i)}).dequeue("tabs");this.blur();return false}else if(!i.length){c.cookie&&a._cookie(c.selected,c.cookie);a.element.queue("tabs",function(){r(g,l)});a.load(a.anchors.index(this));this.blur();return false}c.cookie&&a._cookie(c.selected,c.cookie);if(l.length){i.length&&a.element.queue("tabs",function(){s(g,i)});a.element.queue("tabs",function(){r(g,l)});a.load(a.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier."; -d.browser.msie&&this.blur()});this.anchors.bind("click.tabs",function(){return false})},_getIndex:function(b){if(typeof b=="string")b=this.anchors.index(this.anchors.filter("[href$="+b+"]"));return b},destroy:function(){var b=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var e= -d.data(this,"href.tabs");if(e)this.href=e;var a=d(this).unbind(".tabs");d.each(["href","load","cache"],function(c,h){a.removeData(h+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){d.data(this,"destroy.tabs")?d(this).remove():d(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide")});b.cookie&&this._cookie(null,b.cookie);return this},add:function(b, -e,a){if(a===p)a=this.anchors.length;var c=this,h=this.options;e=d(h.tabTemplate.replace(/#\{href\}/g,b).replace(/#\{label\}/g,e));b=!b.indexOf("#")?b.replace("#",""):this._tabId(d("a",e)[0]);e.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var j=c.element.find("#"+b);j.length||(j=d(h.panelTemplate).attr("id",b).data("destroy.tabs",true));j.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(a>=this.lis.length){e.appendTo(this.list);j.appendTo(this.list[0].parentNode)}else{e.insertBefore(this.lis[a]); -j.insertBefore(this.panels[a])}h.disabled=d.map(h.disabled,function(k){return k>=a?++k:k});this._tabify();if(this.anchors.length==1){h.selected=0;e.addClass("ui-tabs-selected ui-state-active");j.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){c._trigger("show",null,c._ui(c.anchors[0],c.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[a],this.panels[a]));return this},remove:function(b){b=this._getIndex(b);var e=this.options,a=this.lis.eq(b).remove(),c=this.panels.eq(b).remove(); -if(a.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(b+(b+1=b?--h:h});this._tabify();this._trigger("remove",null,this._ui(a.find("a")[0],c[0]));return this},enable:function(b){b=this._getIndex(b);var e=this.options;if(d.inArray(b,e.disabled)!=-1){this.lis.eq(b).removeClass("ui-state-disabled");e.disabled=d.grep(e.disabled,function(a){return a!=b});this._trigger("enable",null, -this._ui(this.anchors[b],this.panels[b]));return this}},disable:function(b){b=this._getIndex(b);var e=this.options;if(b!=e.selected){this.lis.eq(b).addClass("ui-state-disabled");e.disabled.push(b);e.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[b],this.panels[b]))}return this},select:function(b){b=this._getIndex(b);if(b==-1)if(this.options.collapsible&&this.options.selected!=-1)b=this.options.selected;else return this;this.anchors.eq(b).trigger(this.options.event+".tabs");return this}, -load:function(b){b=this._getIndex(b);var e=this,a=this.options,c=this.anchors.eq(b)[0],h=d.data(c,"load.tabs");this.abort();if(!h||this.element.queue("tabs").length!==0&&d.data(c,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(b).addClass("ui-state-processing");if(a.spinner){var j=d("span",c);j.data("label.tabs",j.html()).html(a.spinner)}this.xhr=d.ajax(d.extend({},a.ajaxOptions,{url:h,success:function(k,n){e.element.find(e._sanitizeSelector(c.hash)).html(k);e._cleanup();a.cache&&d.data(c, -"cache.tabs",true);e._trigger("load",null,e._ui(e.anchors[b],e.panels[b]));try{a.ajaxOptions.success(k,n)}catch(m){}},error:function(k,n){e._cleanup();e._trigger("load",null,e._ui(e.anchors[b],e.panels[b]));try{a.ajaxOptions.error(k,n,b,c)}catch(m){}}}));e.element.dequeue("tabs");return this}},abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this}, -url:function(b,e){this.anchors.eq(b).removeData("cache.tabs").data("load.tabs",e);return this},length:function(){return this.anchors.length}});d.extend(d.ui.tabs,{version:"1.8.12"});d.extend(d.ui.tabs.prototype,{rotation:null,rotate:function(b,e){var a=this,c=this.options,h=a._rotate||(a._rotate=function(j){clearTimeout(a.rotation);a.rotation=setTimeout(function(){var k=c.selected;a.select(++k')}function F(a,b){d.extend(a,b);for(var c in b)if(b[c]== -null||b[c]==A)a[c]=b[c];return a}d.extend(d.ui,{datepicker:{version:"1.8.12"}});var y=(new Date).getTime();d.extend(K.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){F(this._defaults,a||{});return this},_attachDatepicker:function(a,b){var c=null;for(var e in this._defaults){var f=a.getAttribute("date:"+e);if(f){c=c||{};try{c[e]=eval(f)}catch(h){c[e]=f}}}e=a.nodeName.toLowerCase(); -f=e=="div"||e=="span";if(!a.id){this.uuid+=1;a.id="dp"+this.uuid}var i=this._newInst(d(a),f);i.settings=d.extend({},b||{},c||{});if(e=="input")this._connectDatepicker(a,i);else f&&this._inlineDatepicker(a,i)},_newInst:function(a,b){return{id:a[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,dpDiv:!b?this.dpDiv:d('
    ')}}, -_connectDatepicker:function(a,b){var c=d(a);b.append=d([]);b.trigger=d([]);if(!c.hasClass(this.markerClassName)){this._attachments(c,b);c.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});this._autoSize(b);d.data(a,"datepicker",b)}},_attachments:function(a,b){var c=this._get(b,"appendText"),e=this._get(b,"isRTL");b.append&& -b.append.remove();if(c){b.append=d(''+c+"");a[e?"before":"after"](b.append)}a.unbind("focus",this._showDatepicker);b.trigger&&b.trigger.remove();c=this._get(b,"showOn");if(c=="focus"||c=="both")a.focus(this._showDatepicker);if(c=="button"||c=="both"){c=this._get(b,"buttonText");var f=this._get(b,"buttonImage");b.trigger=d(this._get(b,"buttonImageOnly")?d("").addClass(this._triggerClass).attr({src:f,alt:c,title:c}):d('').addClass(this._triggerClass).html(f== -""?c:d("").attr({src:f,alt:c,title:c})));a[e?"before":"after"](b.trigger);b.trigger.click(function(){d.datepicker._datepickerShowing&&d.datepicker._lastInput==a[0]?d.datepicker._hideDatepicker():d.datepicker._showDatepicker(a[0]);return false})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b=new Date(2009,11,20),c=this._get(a,"dateFormat");if(c.match(/[DM]/)){var e=function(f){for(var h=0,i=0,g=0;gh){h=f[g].length;i=g}return i};b.setMonth(e(this._get(a, -c.match(/MM/)?"monthNames":"monthNamesShort")));b.setDate(e(this._get(a,c.match(/DD/)?"dayNames":"dayNamesShort"))+20-b.getDay())}a.input.attr("size",this._formatDate(a,b).length)}},_inlineDatepicker:function(a,b){var c=d(a);if(!c.hasClass(this.markerClassName)){c.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});d.data(a,"datepicker",b);this._setDate(b,this._getDefaultDate(b), -true);this._updateDatepicker(b);this._updateAlternate(b);b.dpDiv.show()}},_dialogDatepicker:function(a,b,c,e,f){a=this._dialogInst;if(!a){this.uuid+=1;this._dialogInput=d('');this._dialogInput.keydown(this._doKeyDown);d("body").append(this._dialogInput);a=this._dialogInst=this._newInst(this._dialogInput,false);a.settings={};d.data(this._dialogInput[0],"datepicker",a)}F(a.settings,e||{}); -b=b&&b.constructor==Date?this._formatDate(a,b):b;this._dialogInput.val(b);this._pos=f?f.length?f:[f.pageX,f.pageY]:null;if(!this._pos)this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)];this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");a.settings.onSelect=c;this._inDialog=true;this.dpDiv.addClass(this._dialogClass); -this._showDatepicker(this._dialogInput[0]);d.blockUI&&d.blockUI(this.dpDiv);d.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();d.removeData(a,"datepicker");if(e=="input"){c.append.remove();c.trigger.remove();b.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup", -this._doKeyUp)}else if(e=="div"||e=="span")b.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=false;c.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(e=="div"||e=="span")b.children("."+this._inlineClass).children().removeClass("ui-state-disabled");this._disabledInputs=d.map(this._disabledInputs, -function(f){return f==a?null:f})}},_disableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=true;c.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else if(e=="div"||e=="span")b.children("."+this._inlineClass).children().addClass("ui-state-disabled");this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null: -f});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a)return false;for(var b=0;b-1}},_doKeyUp:function(a){a=d.datepicker._getInst(a.target); -if(a.input.val()!=a.lastVal)try{if(d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,d.datepicker._getFormatConfig(a))){d.datepicker._setDateFromField(a);d.datepicker._updateAlternate(a);d.datepicker._updateDatepicker(a)}}catch(b){d.datepicker.log(b)}return true},_showDatepicker:function(a){a=a.target||a;if(a.nodeName.toLowerCase()!="input")a=d("input",a.parentNode)[0];if(!(d.datepicker._isDisabledDatepicker(a)||d.datepicker._lastInput==a)){var b=d.datepicker._getInst(a); -d.datepicker._curInst&&d.datepicker._curInst!=b&&d.datepicker._curInst.dpDiv.stop(true,true);var c=d.datepicker._get(b,"beforeShow");F(b.settings,c?c.apply(a,[a,b]):{});b.lastVal=null;d.datepicker._lastInput=a;d.datepicker._setDateFromField(b);if(d.datepicker._inDialog)a.value="";if(!d.datepicker._pos){d.datepicker._pos=d.datepicker._findPos(a);d.datepicker._pos[1]+=a.offsetHeight}var e=false;d(a).parents().each(function(){e|=d(this).css("position")=="fixed";return!e});if(e&&d.browser.opera){d.datepicker._pos[0]-= -document.documentElement.scrollLeft;d.datepicker._pos[1]-=document.documentElement.scrollTop}c={left:d.datepicker._pos[0],top:d.datepicker._pos[1]};d.datepicker._pos=null;b.dpDiv.empty();b.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});d.datepicker._updateDatepicker(b);c=d.datepicker._checkOffset(b,c,e);b.dpDiv.css({position:d.datepicker._inDialog&&d.blockUI?"static":e?"fixed":"absolute",display:"none",left:c.left+"px",top:c.top+"px"});if(!b.inline){c=d.datepicker._get(b,"showAnim"); -var f=d.datepicker._get(b,"duration"),h=function(){d.datepicker._datepickerShowing=true;var i=b.dpDiv.find("iframe.ui-datepicker-cover");if(i.length){var g=d.datepicker._getBorders(b.dpDiv);i.css({left:-g[0],top:-g[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()})}};b.dpDiv.zIndex(d(a).zIndex()+1);d.effects&&d.effects[c]?b.dpDiv.show(c,d.datepicker._get(b,"showOptions"),f,h):b.dpDiv[c||"show"](c?f:null,h);if(!c||!f)h();b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus();d.datepicker._curInst= -b}}},_updateDatepicker:function(a){var b=this,c=d.datepicker._getBorders(a.dpDiv);a.dpDiv.empty().append(this._generateHTML(a));var e=a.dpDiv.find("iframe.ui-datepicker-cover");e.length&&e.css({left:-c[0],top:-c[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()});a.dpDiv.find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){d(this).removeClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&d(this).removeClass("ui-datepicker-prev-hover"); -this.className.indexOf("ui-datepicker-next")!=-1&&d(this).removeClass("ui-datepicker-next-hover")}).bind("mouseover",function(){if(!b._isDisabledDatepicker(a.inline?a.dpDiv.parent()[0]:a.input[0])){d(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");d(this).addClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&d(this).addClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&d(this).addClass("ui-datepicker-next-hover")}}).end().find("."+ -this._dayOverClass+" a").trigger("mouseover").end();c=this._getNumberOfMonths(a);e=c[1];e>1?a.dpDiv.addClass("ui-datepicker-multi-"+e).css("width",17*e+"em"):a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");a.dpDiv[(c[0]!=1||c[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");a==d.datepicker._curInst&&d.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&& -a.input[0]!=document.activeElement&&a.input.focus();if(a.yearshtml){var f=a.yearshtml;setTimeout(function(){f===a.yearshtml&&a.dpDiv.find("select.ui-datepicker-year:first").replaceWith(a.yearshtml);f=a.yearshtml=null},0)}},_getBorders:function(a){var b=function(c){return{thin:1,medium:2,thick:3}[c]||c};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkOffset:function(a,b,c){var e=a.dpDiv.outerWidth(),f=a.dpDiv.outerHeight(),h=a.input?a.input.outerWidth(): -0,i=a.input?a.input.outerHeight():0,g=document.documentElement.clientWidth+d(document).scrollLeft(),j=document.documentElement.clientHeight+d(document).scrollTop();b.left-=this._get(a,"isRTL")?e-h:0;b.left-=c&&b.left==a.input.offset().left?d(document).scrollLeft():0;b.top-=c&&b.top==a.input.offset().top+i?d(document).scrollTop():0;b.left-=Math.min(b.left,b.left+e>g&&g>e?Math.abs(b.left+e-g):0);b.top-=Math.min(b.top,b.top+f>j&&j>f?Math.abs(f+i):0);return b},_findPos:function(a){for(var b=this._get(this._getInst(a), -"isRTL");a&&(a.type=="hidden"||a.nodeType!=1||d.expr.filters.hidden(a));)a=a[b?"previousSibling":"nextSibling"];a=d(a).offset();return[a.left,a.top]},_hideDatepicker:function(a){var b=this._curInst;if(!(!b||a&&b!=d.data(a,"datepicker")))if(this._datepickerShowing){a=this._get(b,"showAnim");var c=this._get(b,"duration"),e=function(){d.datepicker._tidyDialog(b);this._curInst=null};d.effects&&d.effects[a]?b.dpDiv.hide(a,d.datepicker._get(b,"showOptions"),c,e):b.dpDiv[a=="slideDown"?"slideUp":a=="fadeIn"? -"fadeOut":"hide"](a?c:null,e);a||e();if(a=this._get(b,"onClose"))a.apply(b.input?b.input[0]:null,[b.input?b.input.val():"",b]);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(d.blockUI){d.unblockUI();d("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(a){if(d.datepicker._curInst){a= -d(a.target);a[0].id!=d.datepicker._mainDivId&&a.parents("#"+d.datepicker._mainDivId).length==0&&!a.hasClass(d.datepicker.markerClassName)&&!a.hasClass(d.datepicker._triggerClass)&&d.datepicker._datepickerShowing&&!(d.datepicker._inDialog&&d.blockUI)&&d.datepicker._hideDatepicker()}},_adjustDate:function(a,b,c){a=d(a);var e=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(e,b+(c=="M"?this._get(e,"showCurrentAtPos"):0),c);this._updateDatepicker(e)}},_gotoToday:function(a){a= -d(a);var b=this._getInst(a[0]);if(this._get(b,"gotoCurrent")&&b.currentDay){b.selectedDay=b.currentDay;b.drawMonth=b.selectedMonth=b.currentMonth;b.drawYear=b.selectedYear=b.currentYear}else{var c=new Date;b.selectedDay=c.getDate();b.drawMonth=b.selectedMonth=c.getMonth();b.drawYear=b.selectedYear=c.getFullYear()}this._notifyChange(b);this._adjustDate(a)},_selectMonthYear:function(a,b,c){a=d(a);var e=this._getInst(a[0]);e._selectingMonthYear=false;e["selected"+(c=="M"?"Month":"Year")]=e["draw"+(c== -"M"?"Month":"Year")]=parseInt(b.options[b.selectedIndex].value,10);this._notifyChange(e);this._adjustDate(a)},_clickMonthYear:function(a){var b=this._getInst(d(a)[0]);b.input&&b._selectingMonthYear&&setTimeout(function(){b.input.focus()},0);b._selectingMonthYear=!b._selectingMonthYear},_selectDay:function(a,b,c,e){var f=d(a);if(!(d(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(f[0]))){f=this._getInst(f[0]);f.selectedDay=f.currentDay=d("a",e).html();f.selectedMonth=f.currentMonth= -b;f.selectedYear=f.currentYear=c;this._selectDate(a,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear))}},_clearDate:function(a){a=d(a);this._getInst(a[0]);this._selectDate(a,"")},_selectDate:function(a,b){a=this._getInst(d(a)[0]);b=b!=null?b:this._formatDate(a);a.input&&a.input.val(b);this._updateAlternate(a);var c=this._get(a,"onSelect");if(c)c.apply(a.input?a.input[0]:null,[b,a]);else a.input&&a.input.trigger("change");if(a.inline)this._updateDatepicker(a);else{this._hideDatepicker(); -this._lastInput=a.input[0];typeof a.input[0]!="object"&&a.input.focus();this._lastInput=null}},_updateAlternate:function(a){var b=this._get(a,"altField");if(b){var c=this._get(a,"altFormat")||this._get(a,"dateFormat"),e=this._getDate(a),f=this.formatDate(c,e,this._getFormatConfig(a));d(b).each(function(){d(this).val(f)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var b=a.getTime();a.setMonth(0); -a.setDate(1);return Math.floor(Math.round((b-a)/864E5)/7)+1},parseDate:function(a,b,c){if(a==null||b==null)throw"Invalid arguments";b=typeof b=="object"?b.toString():b+"";if(b=="")return null;var e=(c?c.shortYearCutoff:null)||this._defaults.shortYearCutoff;e=typeof e!="string"?e:(new Date).getFullYear()%100+parseInt(e,10);for(var f=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,h=(c?c.dayNames:null)||this._defaults.dayNames,i=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,g=(c? -c.monthNames:null)||this._defaults.monthNames,j=c=-1,l=-1,u=-1,k=false,o=function(p){(p=z+1-1){j=1;l=u;do{e=this._getDaysInMonth(c,j-1);if(l<=e)break;j++;l-=e}while(1)}w=this._daylightSavingAdjust(new Date(c,j-1,l));if(w.getFullYear()!=c||w.getMonth()+1!=j||w.getDate()!=l)throw"Invalid date";return w},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y", -RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*1E7,formatDate:function(a,b,c){if(!b)return"";var e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,h=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort;c=(c?c.monthNames:null)||this._defaults.monthNames;var i=function(o){(o=k+112?a.getHours()+2:0);return a},_setDate:function(a,b,c){var e=!b,f=a.selectedMonth,h=a.selectedYear;b=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay= -a.currentDay=b.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=b.getMonth();a.drawYear=a.selectedYear=a.currentYear=b.getFullYear();if((f!=a.selectedMonth||h!=a.selectedYear)&&!c)this._notifyChange(a);this._adjustInstDate(a);if(a.input)a.input.val(e?"":this._formatDate(a))},_getDate:function(a){return!a.currentYear||a.input&&a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_generateHTML:function(a){var b=new Date;b=this._daylightSavingAdjust(new Date(b.getFullYear(), -b.getMonth(),b.getDate()));var c=this._get(a,"isRTL"),e=this._get(a,"showButtonPanel"),f=this._get(a,"hideIfNoPrevNext"),h=this._get(a,"navigationAsDateFormat"),i=this._getNumberOfMonths(a),g=this._get(a,"showCurrentAtPos"),j=this._get(a,"stepMonths"),l=i[0]!=1||i[1]!=1,u=this._daylightSavingAdjust(!a.currentDay?new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),k=this._getMinMaxDate(a,"min"),o=this._getMinMaxDate(a,"max");g=a.drawMonth-g;var m=a.drawYear;if(g<0){g+=12;m--}if(o){var n= -this._daylightSavingAdjust(new Date(o.getFullYear(),o.getMonth()-i[0]*i[1]+1,o.getDate()));for(n=k&&nn;){g--;if(g<0){g=11;m--}}}a.drawMonth=g;a.drawYear=m;n=this._get(a,"prevText");n=!h?n:this.formatDate(n,this._daylightSavingAdjust(new Date(m,g-j,1)),this._getFormatConfig(a));n=this._canAdjustMonth(a,-1,m,g)?''+n+"":f?"":''+n+"";var r=this._get(a,"nextText");r=!h?r:this.formatDate(r,this._daylightSavingAdjust(new Date(m,g+j,1)),this._getFormatConfig(a));f=this._canAdjustMonth(a,+1,m,g)?''+r+"":f?"":''+r+"";j=this._get(a,"currentText");r=this._get(a,"gotoCurrent")&&a.currentDay?u:b;j=!h?j:this.formatDate(j,r,this._getFormatConfig(a));h=!a.inline?'":"";e=e?'
    '+(c?h:"")+(this._isInRange(a,r)?'":"")+(c?"":h)+"
    ":"";h=parseInt(this._get(a,"firstDay"),10);h=isNaN(h)?0:h;j=this._get(a,"showWeek");r=this._get(a,"dayNames");this._get(a,"dayNamesShort");var s=this._get(a,"dayNamesMin"),z= -this._get(a,"monthNames"),w=this._get(a,"monthNamesShort"),p=this._get(a,"beforeShowDay"),v=this._get(a,"showOtherMonths"),H=this._get(a,"selectOtherMonths");this._get(a,"calculateWeek");for(var L=this._getDefaultDate(a),I="",D=0;D1)switch(E){case 0:x+=" ui-datepicker-group-first";t=" ui-corner-"+(c?"right":"left");break;case i[1]- -1:x+=" ui-datepicker-group-last";t=" ui-corner-"+(c?"left":"right");break;default:x+=" ui-datepicker-group-middle";t="";break}x+='">'}x+='
    '+(/all|left/.test(t)&&D==0?c?f:n:"")+(/all|right/.test(t)&&D==0?c?n:f:"")+this._generateMonthYearHeader(a,g,m,k,o,D>0||E>0,z,w)+'
    ';var B=j?'":"";for(t=0;t<7;t++){var q= -(t+h)%7;B+="=5?' class="ui-datepicker-week-end"':"")+'>'+s[q]+""}x+=B+"";B=this._getDaysInMonth(m,g);if(m==a.selectedYear&&g==a.selectedMonth)a.selectedDay=Math.min(a.selectedDay,B);t=(this._getFirstDayOfMonth(m,g)-h+7)%7;B=l?6:Math.ceil((t+B)/7);q=this._daylightSavingAdjust(new Date(m,g,1-t));for(var O=0;O";var P=!j?"":'";for(t=0;t<7;t++){var G= -p?p.apply(a.input?a.input[0]:null,[q]):[true,""],C=q.getMonth()!=g,J=C&&!H||!G[0]||k&&qo;P+='";q.setDate(q.getDate()+1);q=this._daylightSavingAdjust(q)}x+= -P+""}g++;if(g>11){g=0;m++}x+="
    '+this._get(a,"weekHeader")+"
    '+this._get(a,"calculateWeek")(q)+""+(C&&!v?" ":J?''+q.getDate()+"":''+q.getDate()+"")+"
    "+(l?""+(i[0]>0&&E==i[1]-1?'
    ':""):"");M+=x}I+=M}I+=e+(d.browser.msie&&parseInt(d.browser.version,10)<7&&!a.inline?'':"");a._keyEvent=false;return I},_generateMonthYearHeader:function(a,b,c,e,f,h,i,g){var j=this._get(a,"changeMonth"),l=this._get(a,"changeYear"),u=this._get(a,"showMonthAfterYear"),k='
    ', -o="";if(h||!j)o+=''+i[b]+"";else{i=e&&e.getFullYear()==c;var m=f&&f.getFullYear()==c;o+='"}u||(k+=o+(h||!(j&& -l)?" ":""));if(!a.yearshtml){a.yearshtml="";if(h||!l)k+=''+c+"";else{g=this._get(a,"yearRange").split(":");var r=(new Date).getFullYear();i=function(s){s=s.match(/c[+-].*/)?c+parseInt(s.substring(1),10):s.match(/[+-].*/)?r+parseInt(s,10):parseInt(s,10);return isNaN(s)?r:s};b=i(g[0]);g=Math.max(b,i(g[1]||""));b=e?Math.max(b,e.getFullYear()):b;g=f?Math.min(g,f.getFullYear()):g;for(a.yearshtml+='";if(d.browser.mozilla)k+='";else{k+=a.yearshtml;a.yearshtml=null}}}k+=this._get(a,"yearSuffix");if(u)k+=(h||!(j&&l)?" ":"")+o;k+="
    ";return k},_adjustInstDate:function(a,b,c){var e= -a.drawYear+(c=="Y"?b:0),f=a.drawMonth+(c=="M"?b:0);b=Math.min(a.selectedDay,this._getDaysInMonth(e,f))+(c=="D"?b:0);e=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(e,f,b)));a.selectedDay=e.getDate();a.drawMonth=a.selectedMonth=e.getMonth();a.drawYear=a.selectedYear=e.getFullYear();if(c=="M"||c=="Y")this._notifyChange(a)},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");b=c&&ba?a:b},_notifyChange:function(a){var b=this._get(a, -"onChangeMonthYear");if(b)b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return(new Date(a,b,1)).getDay()},_canAdjustMonth:function(a,b,c,e){var f=this._getNumberOfMonths(a); -c=this._daylightSavingAdjust(new Date(c,e+(b<0?b:f[0]*f[1]),1));b<0&&c.setDate(this._getDaysInMonth(c.getFullYear(),c.getMonth()));return this._isInRange(a,c)},_isInRange:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");return(!c||b.getTime()>=c.getTime())&&(!a||b.getTime()<=a.getTime())},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");b=typeof b!="string"?b:(new Date).getFullYear()%100+parseInt(b,10);return{shortYearCutoff:b,dayNamesShort:this._get(a, -"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,e){if(!b){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}b=b?typeof b=="object"?b:this._daylightSavingAdjust(new Date(e,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),b,this._getFormatConfig(a))}});d.fn.datepicker= -function(a){if(!this.length)return this;if(!d.datepicker.initialized){d(document).mousedown(d.datepicker._checkExternalClick).find("body").append(d.datepicker.dpDiv);d.datepicker.initialized=true}var b=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget"))return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b));if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string")return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker, -[this[0]].concat(b));return this.each(function(){typeof a=="string"?d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this].concat(b)):d.datepicker._attachDatepicker(this,a)})};d.datepicker=new K;d.datepicker.initialized=false;d.datepicker.uuid=(new Date).getTime();d.datepicker.version="1.8.12";window["DP_jQuery_"+y]=d})(jQuery); -;/* - * jQuery UI Progressbar 1.8.12 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Progressbar - * - * Depends: - * jquery.ui.core.js - * jquery.ui.widget.js - */ -(function(b,d){b.widget("ui.progressbar",{options:{value:0,max:100},min:0,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.options.max,"aria-valuenow":this._value()});this.valueDiv=b("
    ").appendTo(this.element);this.oldValue=this._value();this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"); -this.valueDiv.remove();b.Widget.prototype.destroy.apply(this,arguments)},value:function(a){if(a===d)return this._value();this._setOption("value",a);return this},_setOption:function(a,c){if(a==="value"){this.options.value=c;this._refreshValue();this._value()===this.options.max&&this._trigger("complete")}b.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var a=this.options.value;if(typeof a!=="number")a=0;return Math.min(this.options.max,Math.max(this.min,a))},_percentage:function(){return 100* -this._value()/this.options.max},_refreshValue:function(){var a=this.value(),c=this._percentage();if(this.oldValue!==a){this.oldValue=a;this._trigger("change")}this.valueDiv.toggle(a>this.min).toggleClass("ui-corner-right",a===this.options.max).width(c.toFixed(0)+"%");this.element.attr("aria-valuenow",a)}});b.extend(b.ui.progressbar,{version:"1.8.12"})})(jQuery); -;/* - * jQuery UI Effects 1.8.12 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Effects/ - */ -jQuery.effects||function(f,j){function n(c){var a;if(c&&c.constructor==Array&&c.length==3)return c;if(a=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(c))return[parseInt(a[1],10),parseInt(a[2],10),parseInt(a[3],10)];if(a=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(c))return[parseFloat(a[1])*2.55,parseFloat(a[2])*2.55,parseFloat(a[3])*2.55];if(a=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(c))return[parseInt(a[1], -16),parseInt(a[2],16),parseInt(a[3],16)];if(a=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(c))return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(c))return o.transparent;return o[f.trim(c).toLowerCase()]}function s(c,a){var b;do{b=f.curCSS(c,a);if(b!=""&&b!="transparent"||f.nodeName(c,"body"))break;a="backgroundColor"}while(c=c.parentNode);return n(b)}function p(){var c=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle, -a={},b,d;if(c&&c.length&&c[0]&&c[c[0]])for(var e=c.length;e--;){b=c[e];if(typeof c[b]=="string"){d=b.replace(/\-(\w)/g,function(g,h){return h.toUpperCase()});a[d]=c[b]}}else for(b in c)if(typeof c[b]==="string")a[b]=c[b];return a}function q(c){var a,b;for(a in c){b=c[a];if(b==null||f.isFunction(b)||a in t||/scrollbar/.test(a)||!/color/i.test(a)&&isNaN(parseFloat(b)))delete c[a]}return c}function u(c,a){var b={_:0},d;for(d in a)if(c[d]!=a[d])b[d]=a[d];return b}function k(c,a,b,d){if(typeof c=="object"){d= -a;b=null;a=c;c=a.effect}if(f.isFunction(a)){d=a;b=null;a={}}if(typeof a=="number"||f.fx.speeds[a]){d=b;b=a;a={}}if(f.isFunction(b)){d=b;b=null}a=a||{};b=b||a.duration;b=f.fx.off?0:typeof b=="number"?b:b in f.fx.speeds?f.fx.speeds[b]:f.fx.speeds._default;d=d||a.complete;return[c,a,b,d]}function m(c){if(!c||typeof c==="number"||f.fx.speeds[c])return true;if(typeof c==="string"&&!f.effects[c])return true;return false}f.effects={};f.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor", -"borderTopColor","borderColor","color","outlineColor"],function(c,a){f.fx.step[a]=function(b){if(!b.colorInit){b.start=s(b.elem,a);b.end=n(b.end);b.colorInit=true}b.elem.style[a]="rgb("+Math.max(Math.min(parseInt(b.pos*(b.end[0]-b.start[0])+b.start[0],10),255),0)+","+Math.max(Math.min(parseInt(b.pos*(b.end[1]-b.start[1])+b.start[1],10),255),0)+","+Math.max(Math.min(parseInt(b.pos*(b.end[2]-b.start[2])+b.start[2],10),255),0)+")"}});var o={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0, -0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211, -211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},r=["add","remove","toggle"],t={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};f.effects.animateClass=function(c,a,b, -d){if(f.isFunction(b)){d=b;b=null}return this.queue("fx",function(){var e=f(this),g=e.attr("style")||" ",h=q(p.call(this)),l,v=e.attr("className");f.each(r,function(w,i){c[i]&&e[i+"Class"](c[i])});l=q(p.call(this));e.attr("className",v);e.animate(u(h,l),a,b,function(){f.each(r,function(w,i){c[i]&&e[i+"Class"](c[i])});if(typeof e.attr("style")=="object"){e.attr("style").cssText="";e.attr("style").cssText=g}else e.attr("style",g);d&&d.apply(this,arguments)});h=f.queue(this);l=h.splice(h.length-1,1)[0]; -h.splice(1,0,l);f.dequeue(this)})};f.fn.extend({_addClass:f.fn.addClass,addClass:function(c,a,b,d){return a?f.effects.animateClass.apply(this,[{add:c},a,b,d]):this._addClass(c)},_removeClass:f.fn.removeClass,removeClass:function(c,a,b,d){return a?f.effects.animateClass.apply(this,[{remove:c},a,b,d]):this._removeClass(c)},_toggleClass:f.fn.toggleClass,toggleClass:function(c,a,b,d,e){return typeof a=="boolean"||a===j?b?f.effects.animateClass.apply(this,[a?{add:c}:{remove:c},b,d,e]):this._toggleClass(c, -a):f.effects.animateClass.apply(this,[{toggle:c},a,b,d])},switchClass:function(c,a,b,d,e){return f.effects.animateClass.apply(this,[{add:a,remove:c},b,d,e])}});f.extend(f.effects,{version:"1.8.12",save:function(c,a){for(var b=0;b").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent", -border:"none",margin:0,padding:0});c.wrap(b);b=c.parent();if(c.css("position")=="static"){b.css({position:"relative"});c.css({position:"relative"})}else{f.extend(a,{position:c.css("position"),zIndex:c.css("z-index")});f.each(["top","left","bottom","right"],function(d,e){a[e]=c.css(e);if(isNaN(parseInt(a[e],10)))a[e]="auto"});c.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}return b.css(a).show()},removeWrapper:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent().replaceWith(c); -return c},setTransition:function(c,a,b,d){d=d||{};f.each(a,function(e,g){unit=c.cssUnit(g);if(unit[0]>0)d[g]=unit[0]*b+unit[1]});return d}});f.fn.extend({effect:function(c){var a=k.apply(this,arguments),b={options:a[1],duration:a[2],callback:a[3]};a=b.options.mode;var d=f.effects[c];if(f.fx.off||!d)return a?this[a](b.duration,b.callback):this.each(function(){b.callback&&b.callback.call(this)});return d.call(this,b)},_show:f.fn.show,show:function(c){if(m(c))return this._show.apply(this,arguments); -else{var a=k.apply(this,arguments);a[1].mode="show";return this.effect.apply(this,a)}},_hide:f.fn.hide,hide:function(c){if(m(c))return this._hide.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="hide";return this.effect.apply(this,a)}},__toggle:f.fn.toggle,toggle:function(c){if(m(c)||typeof c==="boolean"||f.isFunction(c))return this.__toggle.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="toggle";return this.effect.apply(this,a)}},cssUnit:function(c){var a=this.css(c), -b=[];f.each(["em","px","%","pt"],function(d,e){if(a.indexOf(e)>0)b=[parseFloat(a),e]});return b}});f.easing.jswing=f.easing.swing;f.extend(f.easing,{def:"easeOutQuad",swing:function(c,a,b,d,e){return f.easing[f.easing.def](c,a,b,d,e)},easeInQuad:function(c,a,b,d,e){return d*(a/=e)*a+b},easeOutQuad:function(c,a,b,d,e){return-d*(a/=e)*(a-2)+b},easeInOutQuad:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a+b;return-d/2*(--a*(a-2)-1)+b},easeInCubic:function(c,a,b,d,e){return d*(a/=e)*a*a+b},easeOutCubic:function(c, -a,b,d,e){return d*((a=a/e-1)*a*a+1)+b},easeInOutCubic:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a+b;return d/2*((a-=2)*a*a+2)+b},easeInQuart:function(c,a,b,d,e){return d*(a/=e)*a*a*a+b},easeOutQuart:function(c,a,b,d,e){return-d*((a=a/e-1)*a*a*a-1)+b},easeInOutQuart:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a+b;return-d/2*((a-=2)*a*a*a-2)+b},easeInQuint:function(c,a,b,d,e){return d*(a/=e)*a*a*a*a+b},easeOutQuint:function(c,a,b,d,e){return d*((a=a/e-1)*a*a*a*a+1)+b},easeInOutQuint:function(c, -a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a*a+b;return d/2*((a-=2)*a*a*a*a+2)+b},easeInSine:function(c,a,b,d,e){return-d*Math.cos(a/e*(Math.PI/2))+d+b},easeOutSine:function(c,a,b,d,e){return d*Math.sin(a/e*(Math.PI/2))+b},easeInOutSine:function(c,a,b,d,e){return-d/2*(Math.cos(Math.PI*a/e)-1)+b},easeInExpo:function(c,a,b,d,e){return a==0?b:d*Math.pow(2,10*(a/e-1))+b},easeOutExpo:function(c,a,b,d,e){return a==e?b+d:d*(-Math.pow(2,-10*a/e)+1)+b},easeInOutExpo:function(c,a,b,d,e){if(a==0)return b;if(a== -e)return b+d;if((a/=e/2)<1)return d/2*Math.pow(2,10*(a-1))+b;return d/2*(-Math.pow(2,-10*--a)+2)+b},easeInCirc:function(c,a,b,d,e){return-d*(Math.sqrt(1-(a/=e)*a)-1)+b},easeOutCirc:function(c,a,b,d,e){return d*Math.sqrt(1-(a=a/e-1)*a)+b},easeInOutCirc:function(c,a,b,d,e){if((a/=e/2)<1)return-d/2*(Math.sqrt(1-a*a)-1)+b;return d/2*(Math.sqrt(1-(a-=2)*a)+1)+b},easeInElastic:function(c,a,b,d,e){c=1.70158;var g=0,h=d;if(a==0)return b;if((a/=e)==1)return b+d;g||(g=e*0.3);if(h").css({position:"absolute",visibility:"visible",left:-f*(h/d),top:-e*(i/c)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:h/d,height:i/c,left:g.left+f*(h/d)+(a.options.mode=="show"?(f-Math.floor(d/2))*(h/d):0),top:g.top+e*(i/c)+(a.options.mode=="show"?(e-Math.floor(c/2))*(i/c):0),opacity:a.options.mode=="show"?0:1}).animate({left:g.left+f*(h/d)+(a.options.mode=="show"?0:(f-Math.floor(d/2))*(h/d)),top:g.top+ -e*(i/c)+(a.options.mode=="show"?0:(e-Math.floor(c/2))*(i/c)),opacity:a.options.mode=="show"?1:0},a.duration||500);setTimeout(function(){a.options.mode=="show"?b.css({visibility:"visible"}):b.css({visibility:"visible"}).hide();a.callback&&a.callback.apply(b[0]);b.dequeue();j("div.ui-effects-explode").remove()},a.duration||500)})}})(jQuery); -;/* - * jQuery UI Effects Fade 1.8.12 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Effects/Fade - * - * Depends: - * jquery.effects.core.js - */ -(function(b){b.effects.fade=function(a){return this.queue(function(){var c=b(this),d=b.effects.setMode(c,a.options.mode||"hide");c.animate({opacity:d},{queue:false,duration:a.duration,easing:a.options.easing,complete:function(){a.callback&&a.callback.apply(this,arguments);c.dequeue()}})})}})(jQuery); -;/* - * jQuery UI Effects Fold 1.8.12 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Effects/Fold - * - * Depends: - * jquery.effects.core.js - */ -(function(c){c.effects.fold=function(a){return this.queue(function(){var b=c(this),j=["position","top","bottom","left","right"],d=c.effects.setMode(b,a.options.mode||"hide"),g=a.options.size||15,h=!!a.options.horizFirst,k=a.duration?a.duration/2:c.fx.speeds._default/2;c.effects.save(b,j);b.show();var e=c.effects.createWrapper(b).css({overflow:"hidden"}),f=d=="show"!=h,l=f?["width","height"]:["height","width"];f=f?[e.width(),e.height()]:[e.height(),e.width()];var i=/([0-9]+)%/.exec(g);if(i)g=parseInt(i[1], -10)/100*f[d=="hide"?0:1];if(d=="show")e.css(h?{height:0,width:g}:{height:g,width:0});h={};i={};h[l[0]]=d=="show"?f[0]:g;i[l[1]]=d=="show"?f[1]:0;e.animate(h,k,a.options.easing).animate(i,k,a.options.easing,function(){d=="hide"&&b.hide();c.effects.restore(b,j);c.effects.removeWrapper(b);a.callback&&a.callback.apply(b[0],arguments);b.dequeue()})})}})(jQuery); -;/* - * jQuery UI Effects Highlight 1.8.12 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Effects/Highlight - * - * Depends: - * jquery.effects.core.js - */ -(function(b){b.effects.highlight=function(c){return this.queue(function(){var a=b(this),e=["backgroundImage","backgroundColor","opacity"],d=b.effects.setMode(a,c.options.mode||"show"),f={backgroundColor:a.css("backgroundColor")};if(d=="hide")f.opacity=0;b.effects.save(a,e);a.show().css({backgroundImage:"none",backgroundColor:c.options.color||"#ffff99"}).animate(f,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){d=="hide"&&a.hide();b.effects.restore(a,e);d=="show"&&!b.support.opacity&& -this.style.removeAttribute("filter");c.callback&&c.callback.apply(this,arguments);a.dequeue()}})})}})(jQuery); -;/* - * jQuery UI Effects Pulsate 1.8.12 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Effects/Pulsate - * - * Depends: - * jquery.effects.core.js - */ -(function(d){d.effects.pulsate=function(a){return this.queue(function(){var b=d(this),c=d.effects.setMode(b,a.options.mode||"show");times=(a.options.times||5)*2-1;duration=a.duration?a.duration/2:d.fx.speeds._default/2;isVisible=b.is(":visible");animateTo=0;if(!isVisible){b.css("opacity",0).show();animateTo=1}if(c=="hide"&&isVisible||c=="show"&&!isVisible)times--;for(c=0;c').appendTo(document.body).addClass(a.options.className).css({top:d.top,left:d.left,height:b.innerHeight(),width:b.innerWidth(),position:"absolute"}).animate(c,a.duration,a.options.easing,function(){f.remove();a.callback&&a.callback.apply(b[0],arguments); -b.dequeue()})})}})(jQuery); -; \ No newline at end of file diff --git a/web/javascript/jqueryFunction.js b/web/javascript/jqueryFunction.js deleted file mode 100755 index e612098b..00000000 --- a/web/javascript/jqueryFunction.js +++ /dev/null @@ -1,1092 +0,0 @@ -/* - jquery part -*/ -/* -used by index (base/indexBody.py) -*/ -$(document).ready(function () { - options_visible = 0; //Whether advanced options are being shown - $('tr .advanced_option').hide(); - - $('.toggle_advanced').click(function () { - $('tr .advanced_option').toggle(); - - if (options_visible = 0) { - $('.full_search_td').css('display', 'none;'); - $('.search_td').css('display', 'inline'); - options_visible = 1; - } else { - if ($('#type_menu.type_menu').val() = 'Hippocampus') { - $('.search_td').css('display', 'none;'); - $('.full_search_td').css('display', 'inline'); - } - options_visible = 0; - } - }); - - $('#full_search').click(function () { - gene_symbol = $('input[name=keyword]').val(); - scriptable_interface_url = 'http://alexandria.uthsc.edu:89/webqtl/main.py?cmd=sch&gene=' + gene_symbol; - window.open(scriptable_interface_url, '_self'); - }); -}); - -$('select.type_menu').live('change', function () { - var trait_type = $('select.type_menu option:selected').val(); - $('#tissue').val(trait_type); - $('#tissue').trigger('change'); -}); - - -/* -used by CorrelationPage.py, AddToSelectionPage.py, and SearchResultPage.py -*/ -$(document).ready(function () { - $('img[name=addselect], img[name=networkgraph], img[name=corrmatrix], img[name=partialCorr], img[name=comparecorr], img[name=mintmap], img[name=heatmap]').click(function () { - if ($('input[name=searchResult]:checked').length < 1) { - for (i = 0; i < 10; i++) { - $('input[name=searchResult]:eq(' + i + ')').attr('checked', true); - } - } - }); - - $('img[name=addselect]').click(function () { - addRmvSelection($('input[name=RISet]').val(), document.getElementsByName('showDatabase' + $('input[name=RISet]').val())[0], 'addToSelection'); - }); - - $('.toggleShowHide').click(function () { - var className = '.extra_options'; - if ($(className).css('display') == 'none') { - var less = 'less'; - $('input[name=showHideOptions]').val(less); - $(className).show(); - $('input[name=options]').val('Fewer Options'); - var display = $('input[name=options]').css('display') - $(display).val('block'); - } else { - var more = 'more'; - $('input[name=showHideOptions]').val(more); - $(className).hide(); - $('input[name=options]').val('More Options'); - var display = $('input[name=showHideOptions]').css('display') - $(display).val('block'); - } - }); -}); - -/* -used by AddToSelectionPage.py -*/ -function validateTraitNumber() { - var checkBoxes = $('.checkallbox'); - if (checkBoxes.filter(":checked").length < 2) { - alert("Please select at least two traits."); - return false; - } else { - return true; - } -} - -/* -used by TextSearchPage.py -*/ -$(document).ready(function () { - - $('.add_traits').click(function () { - $('input[name=searchResult]').each(function () { - if ($(this).is(':checked')) { - groupName = $(this).parents().next().next().children('[href]').text(); - addORrmv = 'addToSelection'; - thisForm = $('form[name=showDatabase]'); - addRmvSelection_allGroups(groupName, thisForm, addORrmv); - } - }); - }); - - function addRmvSelection_allGroups(groupName, thisForm, addORrmv) { - thisForm.attr('target', groupName); - thisForm.children('input[name=FormID]:hidden').val(addORrmv); - thisForm.children('input[name=RISet]:hidden').val(groupName); - var newWindow = open("", thisForm.attr('target'), "menubar=1,toolbar=1,location=1,resizable=1,status=1,scrollbars=1,directories=1,width=900"); - thisForm.submit(); - } - - $('.tab_content').hide(); //Hide all tab content - $('div.tab_container').each(function () { - $(this).parent('td').find('div.tab_container:first').find('div.tab_content:first').show(); - }); - $('ul.tabs').each(function () { - $(this).find('li:first').addClass('active'); - }); - $('ul.tabs:first').find('li:first').show(); - $('.tab_container:first').find('.tab_content:first').show(); - - //On Click Event - $('ul.tabs li').click(function () { - $('ul.tabs').find('li').removeClass('last_viewed'); - if ($(this).parent('ul.tabs').next('div.tab_container').attr('id').indexOf('stats') != 1) { - $(this).addClass('last_viewed'); - } - $(this).parent('ul.tabs').find('li').removeClass('active'); - $(this).addClass('active'); - $(this).parent('ul.tabs').next('div.tab_container').find('.tab_content').hide(); - var activeTab = $(this).find('a').attr('href'); - if ($.browser.msie) { - $(activeTab).show(); - } else { - $(activeTab).fadeIn(); - } //Fade in the active ID content - return false; - }); - -}); - -/* -used by DataEditingPage.py -*/ -$(document).ready(function () { - - // ZS: This checks the number of columns in order to determine which column to not sort; in this case the plus-minus symbol shouldn't be sortable - $('#sortable1,#sortable2').find('th').each(function () { - if ($(this).text() == 'SE') { - $.tablesorter.defaults.headers = { - 3: { - sorter: false - } - }; - return false; - } - }); - - if ($('#sortable1,#sortable2').find('.outlier').size() > 0) { - $('input[name=sample_method]:eq(1)').attr('checked','checked'); - $('input[name=tissue_method]:eq(1)').attr('checked','checked'); - } - - -/* - ZS: This segment is called by tablesorter.js; it determines where to get the text used when sorting, based on the type of cell. - If a cell has a text input field, it gets the text from its class, which is changed when the user changes the value. - - This segment is repeated twice. Ideally this wouldn't be the case, but I can't find a way to reuse the inner textExtraction function. -*/ - - //ZS: Defining these here, so they don't need to be searched for in the DOM for every single node - primaryTable = $("#sortable1"); - otherTable = $("#sortable2"); - - primaryValueHeader = primaryTable.find('th:contains("Value"):eq(0)'); - primarySEHeader = primaryTable.find('th:contains("SE"):eq(0)'); - otherValueHeader = otherTable.find('th:contains("Value"):eq(1)'); - otherSEHeader = otherTable.find('th:contains("SE"):eq(1)'); - - $("#sortable1").tablesorter({ - textExtraction: function (node) { - if ((node.children[0] == "[object HTMLInputElement]" && node.children[0].type == "text") || (/\S/.test(node.id))) { - cellId = node.id; - thisCell = $('#' + cellId).children(':eq(0)') - valueClassNames = thisCell.attr('class').split(/\s+/); - capitalized_column_name = cellId.split('_')[0].charAt(0).toUpperCase() + cellId.split('_')[0].slice(1); - value = valueClassNames[valueClassNames.length - 1]; - newValue = thisCell.val(); - - if (newValue == 'x' || value == '9999' || value == '-9999') { - valueType = cellId.split('_')[0]; - if (valueType == 'value') { - header = primaryValueHeader; - } else { - header = primarySEHeader; - } - - if (header.hasClass('headerSortUp')) { - sort_order = 'desc'; - } else if (header.hasClass('headerSortDown')) { - sort_order = 'asc'; - } else { - sort_order = 'desc'; - } - - if (sort_order == 'desc') { - value = 9999; - thisCell.removeClass(value).addClass('9999'); - } else if (sort_order == 'asc') { - value = -9999; - thisCell.removeClass(value).addClass('-9999'); - } else { - value = 9999; - thisCell.removeClass(value).addClass('9999'); - } - } - - text = value; - } else { - if (node.textContent) { - text = node.textContent; - } else { - if (node.childNodes[0] && node.childNodes[0].hasChildNodes()) { - text = node.childNodes[0].innerHTML; - } else { - text = node.innerText; - } - } - } - return text - } - }); - - $("#sortable2").tablesorter({ - textExtraction: function (node) { - if ((node.children[0] == "[object HTMLInputElement]" && node.children[0].type == "text") || (/\S/.test(node.id))) { - cellId = node.id; - thisCell = $('#' + cellId).children(':eq(0)') - valueClassNames = thisCell.attr('class').split(/\s+/); - capitalized_column_name = cellId.split('_')[0].charAt(0).toUpperCase() + cellId.split('_')[0].slice(1); - value = valueClassNames[valueClassNames.length - 1]; - newValue = thisCell.val(); - - if (newValue == 'x' || value == '9999' || value == '-9999') { - valueType = cellId.split('_')[0]; - if (valueType == 'value') { - header = otherValueHeader; - } else { - header = otherSEHeader; - } - - if (header.hasClass('headerSortUp')) { - sort_order = 'desc'; - } else if (header.hasClass('headerSortDown')) { - sort_order = 'asc'; - } else { - sort_order = 'desc'; - } - - if (sort_order == 'desc') { - value = 9999; - thisCell.removeClass(value).addClass('9999'); - } else if (sort_order == 'asc') { - value = -9999; - thisCell.removeClass(value).addClass('-9999'); - } else { - value = 9999; - thisCell.removeClass(value).addClass('9999'); - } - } - - text = value; - } else { - if (node.textContent) { - text = node.textContent; - } else { - if (node.childNodes[0] && node.childNodes[0].hasChildNodes()) { - text = node.childNodes[0].innerHTML; - } else { - text = node.innerText; - } - } - } - return text - } - }); - - /* - ZS: When the user changes the value in the text field, the new value is added as a class. This is because - $('input[type=text]').val() gets the value attribute, which is always the default value, instead of the - value property (which can be changed) -*/ - - var thisTable = $('#sortable1,#sortable2'); - - thisTable.bind("update propertychange keyup input paste", function (e) { - - var target = e.target; - $target = $(target); - - if (target.nodeName.toLowerCase() == 'input') { - thisClassNames = $target.attr('class').split(/\s+/); - valueClass = thisClassNames[thisClassNames.length - 1]; - newValue = $target.val(); - thisParent = $target.parent('td'); - thisParentId = thisParent.attr('id'); - - $target.removeClass(valueClass); - - if (newValue == 'x') { - thisParent.parent('tr').addClass('blocked'); - } else { - $('#' + thisParentId).children('input.valueField:eq(0)').addClass(newValue); - } - } - }); - - //////////////////////////////////// - // Initially close tabs - //////////////////////////////////// - thisForm = $('form[name="dataInput"]'); - - $('#sectionbody2').hide(); - $('#sectionbody3').hide(); - $('#sectionbody4').hide(); - - $('#title1').click(function () { - $('#sectionbody1').toggle(); - return false; - }); - $('#title2').click(function () { - $('#sectionbody2').toggle(); - return false; - }); - $('#title3').click(function () { - $('#sectionbody3').toggle(); - return false; - }); - $('#title4').click(function () { - $('#sectionbody4').toggle(); - return false; - }); - $('#title5').click(function () { - $('#sectionbody5').toggle(); - return false; - }); - - - - ////////////////////////////////////////////////////////////// - // Switch out + and - icon when you click each section header - ////////////////////////////////////////////////////////////// - var expand_html = "  \"Expand\""; - var contract_html = "  \"Contract\""; - - $('#title2, #title3, #title4').prepend(expand_html).addClass('1'); - - $('#title1, #title5').prepend(contract_html).addClass('0'); - - for (i = 1; i <= 5; i++) { - $('#title' + i).click(function () { - if ($(this).hasClass('0')) { - $(this).find('span').replaceWith(expand_html); - $(this).removeClass('0'); - $(this).addClass('1'); - } else { - $(this).find('span').replaceWith(contract_html); - $(this).removeClass('1'); - $(this).addClass('0'); - } - }); - } - - // Exclude cases by attributes - $('div.attribute_values:first').css('display', 'inline'); //Display the dropdown menu with the first attribute's distinct values - $('select[name=exclude_menu]').change(function () { - $('div.attribute_values').css('display', 'none'); //clear all other menus when a new attribute is selected - attribute = $(this).val(); - //attribute = $('select[name=exclude_menu]').val(); - menu = $('div.attribute_values').find('[name=\'' + attribute + '\']'); - menu.parent().css('display', 'inline'); - }); - - primary_row_count = $('#primary').find('tr').length - 1; - other_row_count = $('#other').find('tr').length - 1; - - if (primary_row_count >= other_row_count) { - row_count = primary_row_count; - } else { - row_count = other_row_count; - } - - $('div.attribute_values').children('select').change(function () { - exclude_value = $(this).val(); - }); -}); - -$(window).load(function () { - - //ZS: These are needed in a few places; looping through rows by index is faster than doing a "find" search - numPrimaryRows = $('#sortable1').find('tr').length; - numOtherRows = $('#sortable2').find('tr').length; - - - /////////////////////////////// - //Basic Statistics - /////////////////////////////// - ///////////////////////////////////////////////////////////////// - // Hide unselected Basic Statistics tabs (when just BXD strains - // are selected, hide the results for all strains/non-BXD) - ///////////////////////////////////////////////////////////////// - $('#stats_tabs1').hide(); - $('#stats_tabs2').hide(); - - $('#sectionbody2').find('select[name=stats_mdp]').change(function () { - selected = $('#sectionbody2').find('select[name=stats_mdp] option:selected').val(); - for (i = 0; i <= 2; i++) { - $('#stats_tabs' + i).hide(); - } - $('#stats_tabs' + selected).show(); - }); - - //////////////////////////////////////////////////////////////////////// - // Select the same tab across each sample group (when a Box Plot is - // selected for BXD, switching to Non-BXD will also display a Box Plot) - ////////////./////////////////////////////////////////////////////////// - var $tabs1 = $('#stats_tabs0').tabs(); - var $tabs2 = $('#stats_tabs1').tabs(); - var $tabs3 = $('#stats_tabs2').tabs(); - - $tabs1.tabs({ - show: function (event, ui) { - var selected = $tabs1.tabs('option', 'selected'); - $tabs2.tabs('select', selected); - $tabs3.tabs('select', selected); - } - }); - $tabs2.tabs({ - show: function (event, ui) { - var selected = $tabs2.tabs('option', 'selected'); - $tabs1.tabs('select', selected); - $tabs3.tabs('select', selected); - } - }); - $tabs3.tabs({ - show: function (event, ui) { - var selected = $tabs3.tabs('option', 'selected'); - $tabs1.tabs('select', selected); - $tabs2.tabs('select', selected); - } - }); - - - /////////////////////////////// - //Calculate Correlations - /////////////////////////////// - $('#sectionbody3').find('input[name="sample_corr"]').click(function () { - dbValue = $('select[name=database1] option:selected').val(); - $('input[name=database]').val(dbValue); - criteriaValue = $('select[name=criteria1] option:selected').val(); - $('input[name=criteria]').val(criteriaValue); - MDPValue = $('select[name=MDPChoice1] option:selected').val(); - $('input[name=MDPChoice]').val(MDPValue); - - methodValue = $('input[name=sample_method]:checked').val(); - - //This simple method can be used now that 'method' is defaulted to None instead of '' - if (methodValue == "1") { - $('input[name=method]').val('1'); - } else { - $('input[name=method]').val('2'); - } - - dataEditingFunc(this.form, 'correlation'); - }); - - $('#sectionbody3').find('input[name="lit_corr"]').click(function () { - dbValue = $('select[name=database2] option:selected').val(); - $('input[name=database]').val(dbValue); - criteriaValue = $('select[name=criteria2] option:selected').val(); - $('input[name=criteria]').val(criteriaValue); - MDPValue = $('select[name=MDPChoice2] option:selected').val(); - $('input[name=MDPChoice]').val(MDPValue); - - $('input[name=method]').val('3'); - - dataEditingFunc(this.form, 'correlation'); - }); - - $('#sectionbody3').find('input[name="tiss_corr"]').click(function () { - dbValue = $('select[name=database3] option:selected').val(); - $('input[name=database]').val(dbValue); - criteriaValue = $('select[name=criteria3] option:selected').val(); - $('input[name=criteria]').val(criteriaValue); - MDPValue = $('select[name=MDPChoice3] option:selected').val(); - $('input[name=MDPChoice]').val(MDPValue); - - methodValue = $('input[name=tissue_method]:checked').val(); - - if (methodValue == "4") { - $('input[name=method]').val('4'); - } else { - $('input[name=method]').val('5'); - } - dataEditingFunc(this.form, 'correlation'); - }); - - /////////////////////////////// - //Mapping Tools - /////////////////////////////// - $('#sectionbody4').find('input[name=interval]').click(function () { - chrValue = $('select[name=chromosomes1] option:selected').val(); - $('input[name=chromosomes]').val(chrValue); - scaleValue = $('select[name=scale1] option:selected').val(); - $('input[name=scale]').val(scaleValue); - $('input[name=controlLocus]').val(''); - - //Changed the way permValue, bootValue, and parentsValue are acquired; before it was $(____).is(':checked'); - permValue = $('input[name=permCheck1]:checked').val(); - $('input[name=permCheck]').val(permValue); - - bootValue = $('input[name=bootCheck1]:checked').val(); - $('input[name=bootCheck]').val(bootValue); - - if ($('input[name=parentsf14regression1]:checked').length > 0) { - $('input[name=parentsf14regression]').val('on'); - } else { - $('input[name=parentsf14regression]').val('off'); - } - - varValue = $('input[name=applyVarianceSE1]:checked').val(); - $('input[name=applyVarianceSE]').val(varValue); - - dataEditingFunc(this.form, 'intervalMap'); - }); - - var tiptext = "e.g., rs12345"; - controlLocus = $('#sectionbody4').find('input[name=controlLocus]'); - - if (controlLocus.val() == '' || controlLocus == tiptext) { - controlLocus.addClass('searchtip').val(tiptext); - } - - controlLocus.focus(function (e) { - if (controlLocus.val() == tiptext) { - controlLocus.val(''); - } - controlLocus.removeClass('searchtip'); - }); - - controlLocus.blur(function (e) { - if (controlLocus.val() == '') { - controlLocus.addClass('searchtip').val(tiptext); - } else if (controlLocus.val() == tiptext) { - controlLocus.addClass('searchtip'); - } else { - controlLocus.removeClass('searchtip'); - } - }); - - $('#sectionbody4').find('input[name=composite]').click(function () { - chrValue = $('select[name=chromosomes2] option:selected').val(); - $('input[name=chromosomes]').val(chrValue); - scaleValue = $('select[name=scale2] option:selected').val(); - $('input[name=scale]').val(scaleValue); - controlValue = controlLocus.val(); - if (controlValue != tiptext) { - controlLocus.val(controlValue); - } else { - controlLocus.val(''); - } - - //Changed the way permValue, bootValue, and parentsValue are acquired; before it was $(____).is(':checked'); - permValue = $('input[name=permCheck2]:checked').val(); - $('input[name=permCheck]').val(permValue); - - bootValue = $('input[name=bootCheck2]:checked').val(); - $('input[name=bootCheck]').val(bootValue); - - if ($('input[name=parentsf14regression3]:checked').length > 0) { - $('input[name=parentsf14regression]').val('on'); - } else { - $('input[name=parentsf14regression]').val('off'); - } - - dataEditingFunc(this.form, 'intervalMap'); - - }); - - $('#sectionbody4').find('input[name=marker]').click(function () { - //Changed the way parentsValue is acquired; before it was $(____).is(':checked'); - if ($('input[name=parentsf14regression2]:checked').length > 0) { - $('input[name=parentsf14regression]').val('on'); - } else { - $('input[name=parentsf14regression]').val('off'); - } - - varValue = $('input[name=applyVarianceSE2]:checked').val(); - $('input[name=applyVarianceSE]').val(varValue); - - dataEditingFunc(this.form, 'markerRegression'); - }); - - /////////////////////////////// - //Review and Edit Data - /////////////////////////////// - $('input[name=excludeGroup]').click(function () { - for (i = 1; i <= Math.max(primary_row_count, other_row_count) - 1; i++) { - valueExists = 0; - $('#Primary_' + i + ',#Other_' + i).children().each(function () { - if ($(this).text() == exclude_value) { - $('#Primary_' + i + ',#Other_' + i).addClass('blocked').find('input[type=text]').val('x'); - valueExists = 1; - return false; - } - }); - } - }); - - $('.update').click(function () { - windowName = 'formTarget' + (new Date().getTime()); - var windowHeight; // windowHeight and windowWidth are used to place the window in the center of the screen - var windowWidth; - windowHeight = (window.screen.height/2) - (350 + 10) - windowWidth = (window.screen.width/2) - (450 + 50) - newWindow = open("",windowName,"menubar=1,toolbar=1,resizable=1,left=" + windowWidth + ",top=" + windowHeight + ",screenX=" + windowWidth + ",screenY=" + windowHeight + ",status=1,scrollbars=0,directories=1"); - - document.dataInput.target = windowName; - document.dataInput.submitID.value = "basicStatistics"; - - primaryData = getTraitData()[0]; - otherData = getTraitData()[1]; - allData = getTraitData()[2]; - - if (otherData[0].length > 0) { - if ($('select[name="stats_mdp"] option:selected').val() == 0) { - document.dataInput.strainNames.value = allData[0].toString(); - document.dataInput.strainVals.value = allData[1].toString(); - document.dataInput.strainVars.value = allData[2].toString(); - } else if ($('select[name="stats_mdp"] option:selected').val() == 1) { - document.dataInput.strainNames.value = primaryData[0].toString(); - document.dataInput.strainVals.value = primaryData[1].toString(); - document.dataInput.strainVars.value = primaryData[2].toString(); - } else { - document.dataInput.strainNames.value = otherData[0].toString(); - document.dataInput.strainVals.value = otherData[1].toString(); - document.dataInput.strainVars.value = otherData[2].toString(); - } - } else { - document.dataInput.strainNames.value = allData[0].toString(); - document.dataInput.strainVals.value = allData[1].toString(); - document.dataInput.strainVars.value = allData[2].toString(); - } - - document.dataInput.submit(); - }); - - $('input[name="export"]').click(function () { - windowName = 'formTarget' + (new Date().getTime()); - newWindow = open("", windowName, "menubar=1,toolbar=1,location=1,resizable=1,status=1,scrollbars=0,directories=1,width=900"); - document.dataInput.target = windowName; - document.dataInput.submitID.value = "exportData"; - - primaryData = getTraitData()[0]; - otherData = getTraitData()[1]; - - document.dataInput.strainNames.value = primaryData[0].toString(); - document.dataInput.strainVals.value = primaryData[1].toString(); - document.dataInput.strainVars.value = primaryData[2].toString(); - - document.dataInput.otherStrainNames.value = otherData[0].toString(); - document.dataInput.otherStrainVals.value = otherData[1].toString(); - document.dataInput.otherStrainVars.value = otherData[2].toString(); - - attribute_names = new Array(); - $('#primary,#other').find('th.attribute_name').each(function () { - attribute_names.push($(this).val().toString()); - }); - - primary_attribute_values = ""; //This string will be structured as a dictionary with a set of values for each attribute; it will be parsed in the ExportPage class - other_attribute_values = ""; - - attr_counter = 1; // Counter for each different attribute - row_counter = 1; // Counter for each value for each attribute - while (attr_counter <= attribute_names.length) { - attribute_name = $('#primary,#other').find('th.attribute_name:eq(' + (attr_counter - 1).toString() + ')').text(); - primary_row_count = $('#primary').find('tr').length - 1; - other_row_count = $('#other').find('tr').length - 1; - - primary_attribute_values += attribute_name + " : "; - other_attribute_values += attribute_name + " : "; - - primary_value_string = ""; //This string of values (in the format 'a,b,c', etc) will be appended to the primary_attribute_values string - for (row_counter = 1; row_counter <= numPrimaryRows; row_counter++) { - value = $('#primary_attribute' + attr_counter.toString() + '_sample' + row_counter.toString()).text(); - if (row_counter == primary_row_count) { - primary_value_string += (value + " / "); - } else { - primary_value_string += (value + ","); - } - } - - primary_attribute_values += primary_value_string; - - other_value_string = ""; //This string of values (in the format 'a,b,c', etc) will be appended to the other_attribute_values string - for (row_counter = 1; row_counter <= numOtherRows; row_counter++) { - value = $('#other_attribute' + attr_counter.toString() + '_sample' + row_counter.toString()).text(); - if (row_counter == other_row_count) { - other_value_string += (value + " / "); - } else { - other_value_string += (value + ","); - } - } - other_attribute_values += other_value_string; - attr_counter += 1 - } - - document.dataInput.extra_attributes.value = primary_attribute_values; - document.dataInput.other_extra_attributes.value = other_attribute_values; - - document.dataInput.submit(); - }); - - var thisTable = $('#sortable1,#sortable2'); //ZS: variable representing each table, because it's used often - thisTable.find('input[name="selectCheck"]').click(function () { - if ($(this).is(':checked')) { - $(this).parent("").parent("").children("td").css("background-color", "yellow"); - } else { - if (!($(this).parent().parent().hasClass('outlier'))) { - $(this).parent().parent().children("td").css("background-color", "white"); - } - } - }); - - $('input[name=resetButton]').click(function () { - - //ZS: Reset "hide no value" and "hide outliers" - $('#showHideOptions').find('input[name=showHideNoValue]').val(' Hide No Value '); - $('#showHideOptions').find('input[name=showHideOutliers]').val(' Hide Outliers '); - noValShown = 1; - outliersShown = 1; - - for (i = 1; i <= numPrimaryRows - 1; i++) { - var thisRow = $('#Primary_' + i); - if (thisRow.is('.invisible')) { - thisRow.removeClass('invisible'); - } - if (thisRow.is('.blocked')) { - thisRow.removeClass('blocked'); - } - if (thisRow.is(':not(.outlier)')) { - thisRow.css("background-color", "white"); - } - - var thisValueField = thisRow.find('.valueField'); - - var originalValue = thisValueField[0].defaultValue; - var thisClassNames = thisRow.find('input:eq(1)').attr('class').split(/\s+/); - var valueClass = thisClassNames[thisClassNames.length - 1]; - thisRow.find('input:eq(1)').removeClass(valueClass).addClass(originalValue).val(originalValue); - - if (thisValueField.length > 1) { - var originalValue = thisValueField[1].defaultValue; - var thisClassNames = thisRow.find('input:eq(2)').attr('class').split(/\s+/); - var valueClass = thisClassNames[thisClassNames.length - 1]; - thisRow.find('input:eq(2)').removeClass(valueClass).addClass(originalValue).val(originalValue); - } - } - for (i = 1; i <= numOtherRows - 1; i++) { - var thisRow = $('#Other_' + i); - if (thisRow.is('.invisible')) { - thisRow.removeClass('invisible') - } - if (thisRow.is('.blocked')) { - thisRow.removeClass('blocked'); - } - if (thisRow.is(':not(.outlier)')) { - thisRow.css("background-color", "white"); - } - - var thisValueField = thisRow.find('.valueField'); - - var originalValue = thisValueField[0].defaultValue; - var thisClassNames = thisRow.find('input:eq(1)').attr('class').split(/\s+/); - var valueClass = thisClassNames[thisClassNames.length - 1]; - thisRow.find('input:eq(1)').removeClass(valueClass).addClass(originalValue).val(originalValue); - - if (thisValueField.length > 1) { - var originalValue = thisValueField[1].defaultValue; - var thisClassNames = thisRow.find('input:eq(2)').attr('class').split(/\s+/); - var valueClass = thisClassNames[thisClassNames.length - 1]; - thisRow.find('input:eq(2)').removeClass(valueClass).addClass(originalValue).val(originalValue); - } - } - }); - - var tiptext2 = "e.g., 4, 6-30, 43"; - var blockField = $('#showHideOptions').find('input[name=removeField]'); //ZS: Field where user inputs the index of the samples he/she wants to block; created variable because it's used often - if (blockField.val() == '' || blockField.val() == tiptext2) { - blockField.addClass('searchtip'); - blockField.val(tiptext2); - } - - blockField.focus(function (e) { - if (blockField.val() == tiptext2) { - blockField.val(''); - } - blockField.removeClass('searchtip'); - }); - - blockField.blur(function (e) { - if (blockField.val() == '') { - blockField.addClass('searchtip'); - blockField.val(tiptext2); - } else if (blockField.val() == tiptext2) { - blockField.addClass('searchtip'); - } else { - blockField.removeClass('searchtip'); - } - }); - - var noValShown = new Boolean(1); - var outliersShown = new Boolean(1); - - $('#showHideOptions').bind('click', function (e) { - var target = e.target; - $target = $(target); - - if (target.name === 'blockSamples') { - if (blockField.val() == tiptext2) { - blockField.val('') - } - blockedText = blockField.val(); - blockedTextSplit = new Array(); - blockedItems = new Array(); - - blockedTextSplit = blockedText.split(/\,/); - - for (i = 0; i <= blockedTextSplit.length - 1; i++) { - var item = blockedTextSplit[i]; - if (item.indexOf('-') != -1) { - subArray = new Array(); - subArray = item.split('-'); - num1 = parseInt(subArray[0]); - num2 = parseInt(subArray[1]); - for (j = num1; j <= num2; j = j + 1) { - blockedItems.push(j); - } - } else if (!(isNaN(item))) { - blockedItems.push(item); - } - } - - for (i = 0; i <= blockedItems.length - 1; i++) { - item = blockedItems[i]; - if ($('select[name=block_method]').val() == '0') { - var thisRow = $('#Other_' + item); - } else { - var thisRow = $('#Primary_' + item); - } - - if (thisRow.is('.novalue')) { - continue; - } else { - thisRow.addClass('blocked').find('input.valueField').val('x'); - } - - //First look at value cell - var thisCell = thisRow.find('input:eq(1)'); - var thisClassNames = thisCell.attr('class').split(/\s+/); - var valueClass = thisClassNames[thisClassNames.length - 1]; - var header = thisRow.parents('table.tablesorter').find('th.header:contains("Value"):eq(0)'); - if (header.hasClass('headerSortUp')) { - thisCell.removeClass(valueClass).addClass('-9999'); - } else if (header.hasClass('headerSortDown')) { - thisCell.removeClass(valueClass).addClass('9999'); - } else { - thisCell.removeClass(valueClass).addClass('-9999'); - } - - //Check if there is an SE column - if (thisRow.find('input.valueField').length > 1) { - var thisCell = thisRow.find('input:eq(2)'); - var thisClassNames = thisCell.attr('class').split(/\s+/); - var valueClass = thisClassNames[thisClassNames.length - 1]; - var header = thisRow.parents('table.tablesorter').find('th.header:contains("SE"):eq(0)'); - if (header.hasClass('headerSortUp')) { - thisCell.removeClass(valueClass).addClass('-9999'); - } else if (header.hasClass('headerSortDown')) { - thisCell.removeClass(valueClass).addClass('9999'); - } else { - thisCell.removeClass(valueClass).addClass('-9999'); - } - } - } - } else if (target.name === 'showHideNoValue') { - if (noValShown) { - $('#showHideOptions').find('input[name=showHideNoValue]').val(' Show No Value '); - for (i = 1; i <= Math.max(numPrimaryRows, numOtherRows) - 1; i++) { - if (i <= numPrimaryRows - 1) { - var thisRow = $('#Primary_' + i); - if (thisRow.is('.novalue:visible') || thisRow.is('.blocked:visible')) { - jQuery(thisRow).addClass('invisible'); - } - } - if (i <= numOtherRows - 1) { - var thisOtherRow = $('#Other_' + i); - if (thisOtherRow.is('.novalue:visible') || thisOtherRow.is('.blocked:visible')) { - if (thisOtherRow.is(':visible')) { - jQuery(thisOtherRow).addClass('invisible'); - } - } - } - } - noValShown = 0; - } else { - $('#showHideOptions').find('input[name=showHideNoValue]').val(' Hide No Value '); - for (i = 1; i <= Math.max(numPrimaryRows, numOtherRows) - 1; i++) { - if (i <= numPrimaryRows - 1) { - var thisRow = $('#Primary_' + i); - if (thisRow.is('.novalue') || thisRow.is('.blocked')) { - jQuery(thisRow).removeClass('invisible'); - if (!(outliersShown)) { - if (thisRow.is('.outlier:visible')) { - jQuery(thisRow).addClass('invisible'); - } - } - } - } - if (i <= numOtherRows - 1) { - var thisOtherRow = $('#Other_' + i); - if (thisOtherRow.is('.novalue') || thisOtherRow.is('.blocked')) { - jQuery(thisOtherRow).removeClass('invisible'); - if (!(outliersShown)) { - if (thisOtherRow.is('.outlier:visible')) { - jQuery(thisOtherRow).addClass('invisible'); - } - } - } - } - } - noValShown = 1; - } - } else if (target.name === 'showHideOutliers') { - if (outliersShown) { - $('#showHideOptions').find('input[name=showHideOutliers]').val(' Show Outliers '); - for (i = 1; i <= Math.max(numPrimaryRows, numOtherRows) - 1; i++) { - if (i <= numPrimaryRows - 1) { - thisRow = $('#Primary_' + i); - if (thisRow.is('.outlier:visible') && (!(thisRow.is('.invisible')))) { - thisRow.addClass('invisible') - } - } - if (i <= numOtherRows - 1) { - thisOtherRow = $('#Other_' + i); - if (thisOtherRow.is('.outlier:visible') && (!(thisOtherRow.is('.invisible')))) { - thisOtherRow.addClass('invisible') - } - } - } - outliersShown = 0; - } else { - $('#showHideOptions').find('input[name=showHideOutliers]').val(' Hide Outliers '); - for (i = 1; i <= Math.max(numPrimaryRows, numOtherRows) - 1; i++) { - if (i <= numPrimaryRows - 1) { - thisRow = $('#Primary_' + i); - if (thisRow.is('.outlier') && (!(thisRow.is(':visible')))) { - if (!(noValShown)) { - if (thisRow.is('.blocked')) { - continue; - } - } - jQuery(thisRow).removeClass('invisible') - } - } - if (i <= numOtherRows - 1) { - thisOtherRow = $('#Other_' + i); - if (thisOtherRow.is('.outlier') && (!(thisOtherRow.is(':visible')))) { - if (!(noValShown)) { - if (thisOtherRow.is('.blocked')) { - continue; - } - } - jQuery(thisOtherRow).removeClass('invisible') - } - } - } - outliersShown = 1; - } - } - return false; - }); -}); - -function getTraitData() { - primary_row_count = $('#sortable1').find('tr').length - 1; - other_row_count = $('#sortable2').find('tr').length - 1; - - primaryStrainNames = new Array(); - primaryVals = new Array(); - primaryVars = new Array(); - - allStrainNames = new Array(); - allVals = new Array(); - allVars = new Array(); - - for (i = 1; i <= primary_row_count; i++) { - thisRow = $('#Primary_' + i); - strainName = thisRow.find('span:first').text(); - primaryStrainNames.push(strainName); - allStrainNames.push(strainName); - strainVal = thisRow.find('input:eq(1)').val(); - primaryVals.push(strainVal); - allVals.push(strainVal); - strainVar = ''; // Just to initialize it in case there is no var - strainVar = thisRow.find('input:eq(2)').val(); - primaryVars.push(strainVar); - allVars.push(strainVar); - } - - otherStrainNames = new Array(); - otherVals = new Array(); - otherVars = new Array(); - - for (j = 1; j <= other_row_count; j++) { - thisRow = $('#Other_' + j) - strainName = thisRow.find('span:first').text(); - otherStrainNames.push(strainName); - strainVal = thisRow.find('input:eq(1)').val(); - otherVals.push(strainVal); - strainVar = ''; // Just to initialize it in case there is no var - strainVar = thisRow.find('input:eq(2)').val(); - otherVars.push(strainVar); - - if (jQuery.inArray(strainName, allStrainNames) == -1) { - allStrainNames.push(strainName); - allVals.push(strainVal); - allVars.push(strainVar); - } - } - - primaryData = [primaryStrainNames, primaryVals, primaryVars]; - otherData = [otherStrainNames, otherVals, otherVars]; - allData = [allStrainNames, allVals, allVars]; - - return [primaryData, otherData, allData]; -} - -/* -used by networkGraphPageBody.py -*/ - -//Default to plain text + symbol for the "Export Graph File" button -$('input[name=exportGraphFile]').live('click', function () { - window.open($('input[name=exportFilename]').val() + "_plain_symbol.txt") -}); - -function changeFormat(graphName) { - var graphFormat = $('#exportFormat').val(); - var traitType = $('#traitType').val(); - - $('input[name=exportGraphFile]').die('click'); - - if (graphFormat == "xgmml") { - if (traitType == "symbol") { - var graphFile = graphName + "_xgmml_symbol.txt"; - $('input[name=exportGraphFile]').live('click', function () { - window.open(graphFile) - }); - } else if (traitType == "name") { - var graphFile = graphName + "_xgmml_name.txt"; - $('input[name=exportGraphFile]').live('click', function () { - window.open(graphFile) - }); - } - } else if (graphFormat == "plain") { - if (traitType == "symbol") { - var graphFile = graphName + "_plain_symbol.txt"; - $('input[name=exportGraphFile]').live('click', function () { - window.open(graphFile) - }); - } else if (traitType == "name") { - var graphFile = graphName + "_plain_name.txt"; - $('input[name=exportGraphFile]').live('click', function () { - window.open(graphFile) - }); - } - } -} \ No newline at end of file diff --git a/web/javascript/menu_items.js b/web/javascript/menu_items.js deleted file mode 100755 index 9c3eee4b..00000000 --- a/web/javascript/menu_items.js +++ /dev/null @@ -1,109 +0,0 @@ -/* - --- menu items --- - note that this structure has changed its format since previous version. - additional third parameter is added for item scope settings. - Now this structure is compatible with Tigra Menu GOLD. - Format description can be found in product documentation. -*/ -var MENU_ITEMS = [ - ['menu_grp1', null, null, - ['GeneNetwork Intro', '/home.html'], - ['Enter Trait Data', '/webqtl/main.py?FormID=submitSingleTrait'], - ['Batch Submission', '/webqtl/main.py?FormID=batSubmit'], - ], - ['menu_grp2', null, null, - ['Search Databases', '/'], - ['Tissue Correlation', '/webqtl/main.py?FormID=tissueCorrelation'], - ['SNP Browser', '/webqtl/main.py?FormID=snpBrowser'], - ['Gene Wiki', '/webqtl/main.py?FormID=geneWiki'], - ['Interval Analyst', '/webqtl/main.py?FormID=intervalAnalyst'], - ['QTLminer', '/webqtl/main.py?FormID=qtlminer'], - ['GenomeGraph', '/dbResults.html'], - ['Trait Collections',null,null, -['Human', null, null, - ['CEPH-2004', '/webqtl/main.py?FormID=dispSelection&RISet=CEPH-2004'], - ['AD-cases-controls', '/webqtl/main.py?FormID=dispSelection&RISet=AD-cases-controls'], - ['AD-cases-controls-Myers', '/webqtl/main.py?FormID=dispSelection&RISet=AD-cases-controls-Myers'], - ['CEPH-2009', '/webqtl/main.py?FormID=dispSelection&RISet=CEPH-2009'], - ['HLC', '/webqtl/main.py?FormID=dispSelection&RISet=HLC'], - ['CANDLE', '/webqtl/main.py?FormID=dispSelection&RISet=CANDLE'], - ['HB', '/webqtl/main.py?FormID=dispSelection&RISet=HB'], - ['HSB', '/webqtl/main.py?FormID=dispSelection&RISet=HSB'], -], -['Macaque monkey', null, null, - ['Macaca-fasicularis', '/webqtl/main.py?FormID=dispSelection&RISet=Macaca-fasicularis'], -], -['Mouse', null, null, - ['BXD', '/webqtl/main.py?FormID=dispSelection&RISet=BXD'], - ['B6D2F2', '/webqtl/main.py?FormID=dispSelection&RISet=B6D2F2'], - ['AXBXA', '/webqtl/main.py?FormID=dispSelection&RISet=AXBXA'], - ['AKXD', '/webqtl/main.py?FormID=dispSelection&RISet=AKXD'], - ['B6BTBRF2', '/webqtl/main.py?FormID=dispSelection&RISet=B6BTBRF2'], - ['BXH', '/webqtl/main.py?FormID=dispSelection&RISet=BXH'], - ['CXB', '/webqtl/main.py?FormID=dispSelection&RISet=CXB'], - ['LXS', '/webqtl/main.py?FormID=dispSelection&RISet=LXS'], - ['BDF2-2005', '/webqtl/main.py?FormID=dispSelection&RISet=BDF2-2005'], - ['MDP', '/webqtl/main.py?FormID=dispSelection&RISet=MDP'], - ['NZBXFVB-N2', '/webqtl/main.py?FormID=dispSelection&RISet=NZBXFVB-N2'], - ['BHF2', '/webqtl/main.py?FormID=dispSelection&RISet=BHF2'], - ['BDF2-1999', '/webqtl/main.py?FormID=dispSelection&RISet=BDF2-1999'], - ['CTB6F2', '/webqtl/main.py?FormID=dispSelection&RISet=CTB6F2'], - ['BHHBF2', '/webqtl/main.py?FormID=dispSelection&RISet=BHHBF2'], - ['HS', '/webqtl/main.py?FormID=dispSelection&RISet=HS'], - ['HS-CC', '/webqtl/main.py?FormID=dispSelection&RISet=HS-CC'], -], -['Rat', null, null, - ['HXBBXH', '/webqtl/main.py?FormID=dispSelection&RISet=HXBBXH'], - ['SRxSHRSPF2', '/webqtl/main.py?FormID=dispSelection&RISet=SRxSHRSPF2'], -], -['Drosophila', null, null, - ['Oregon-R_x_2b3', '/webqtl/main.py?FormID=dispSelection&RISet=Oregon-R_x_2b3'], - ['DGRP', '/webqtl/main.py?FormID=dispSelection&RISet=DGRP'], -], -['Arabidopsis thaliana', null, null, - ['BayXSha', '/webqtl/main.py?FormID=dispSelection&RISet=BayXSha'], - ['ColXCvi', '/webqtl/main.py?FormID=dispSelection&RISet=ColXCvi'], - ['ColXBur', '/webqtl/main.py?FormID=dispSelection&RISet=ColXBur'], -], -['Barley', null, null, - ['SXM', '/webqtl/main.py?FormID=dispSelection&RISet=SXM'], - ['QSM', '/webqtl/main.py?FormID=dispSelection&RISet=QSM'], -], -['Soybean', null, null, - ['J12XJ58F2', '/webqtl/main.py?FormID=dispSelection&RISet=J12XJ58F2'], -], -['Tomato', null, null, - ['LXP', '/webqtl/main.py?FormID=dispSelection&RISet=LXP'], -], - ], - ['Scriptable Interface', '/CGIDoc.html'], - /* ['Simple Query Interface', '/GUI.html'], */ - ['Database Information',null,null, - ['Database Schema', '/webqtl/main.py?FormID=schemaShowPage'], - ], - ['Data Sharing', '/webqtl/main.py?FormID=sharing'], - ['Microarray Annotations', '/webqtl/main.py?FormID=annotation'], - ], - ['menu_grp3', null, null, - ['Movies','http://www.genenetwork.org/tutorial/movies'], - ['Tutorials', null, null, - ['GN Barley Tutorial','/tutorial/pdf/GN_Barley_Tutorial.pdf'], - ['GN Powerpoint', '/tutorial/ppt/index.html']], - ['HTML Tour','/tutorial/WebQTLTour/'], - ['FAQ','/faq.html'], - ['Glossary of Terms','/glossary.html'], - ['GN MediaWiki','http://wiki.genenetwork.org/'], - ], - ['menu_grp4', '/whats_new.html' - ], - ['menu_grp5', '/reference.html' - ], - ['menu_grp6', null, null, - ['Conditions and Limitation', '/conditionsofUse.html'], - ['Data Sharing Policy', '/dataSharing.html'], - ['Status and Contacts', '/statusandContact.html'], - ['Privacy Policy', '/privacy.html'], - ], - ['menu_grp8', '/links.html' - ], -]; diff --git a/web/javascript/menu_new.js b/web/javascript/menu_new.js deleted file mode 100755 index 454396b2..00000000 --- a/web/javascript/menu_new.js +++ /dev/null @@ -1,396 +0,0 @@ -// Title: tigra menu -// Description: See the demo at url -// URL: http://www.softcomplex.com/products/tigra_menu/ -// Version: 2.0 (commented source) -// Date: 04-05-2003 (mm-dd-yyyy) -// Contact: feedback@softcomplex.com (specify product title in the subject) -// Tech. Support: http://www.softcomplex.com/forum/forumdisplay.php?fid=40 -// Notes: This script is free. Visit official site for further details. - -// -------------------------------------------------------------------------------- -// global collection containing all menus on current page -var A_MENUS = []; -var grpObj = Object; -// -------------------------------------------------------------------------------- -// menu class -function menu (a_items, a_tpl) { - - // browser check - if (!document.body || !document.body.style) - return; - - // store items structure - this.a_config = a_items; - - // store template structure - this.a_tpl = a_tpl; - - // get menu id - this.n_id = A_MENUS.length; - - // declare collections - this.a_index = []; - this.a_children = []; - - // assigh methods and event handlers - this.expand = menu_expand; - this.collapse = menu_collapse; - - this.onclick = menu_onclick; - this.onmouseout = menu_onmouseout; - this.onmouseover = menu_onmouseover; - this.onmousedown = menu_onmousedown; - - // default level scope description structure - this.a_tpl_def = { - 'block_top' : 16, - 'block_left' : 16, - 'top' : 20, - 'left' : 4, - 'width' : 120, - 'height' : 22, - 'hide_delay' : 0, - 'expd_delay' : 0, - 'css' : { - 'inner' : '', - 'outer' : '' - } - }; - - // assign methods and properties required to imulate parent item - this.getprop = function (s_key) { - return this.a_tpl_def[s_key]; - }; - - this.o_root = this; - this.n_depth = -1; - this.n_x = 0; - this.n_y = 0; - - // init items recursively - for (n_order = 0; n_order < a_items.length; n_order++) - new menu_item(this, n_order); - - // register self in global collection - A_MENUS[this.n_id] = this; - - // make root level visible - for (var n_order = 0; n_order < this.a_children.length; n_order++) - this.a_children[n_order].e_oelement.style.visibility = 'hidden'; -} - -// -------------------------------------------------------------------------------- -function menu_collapse (n_id) { - // cancel item open delay - clearTimeout(this.o_showtimer); - - // by default collapse to root level - var n_tolevel = (n_id ? this.a_index[n_id].n_depth : 0); - - // hide all items over the level specified - for (n_id = 0; n_id < this.a_index.length; n_id++) { - var o_curritem = this.a_index[n_id]; - if (o_curritem.n_depth > n_tolevel && o_curritem.b_visible) { - o_curritem.e_oelement.style.visibility = 'hidden'; - o_curritem.b_visible = false; - } - } - - // reset current item if mouse has gone out of items - if (!n_id) - this.o_current = null; -} - -// -------------------------------------------------------------------------------- -function menu_expand (n_id) { - - // expand only when mouse is over some menu item - if (this.o_hidetimer) - return; - - // lookup current item - var o_item = this.a_index[n_id]; - - // close previously opened items - if (this.o_current && this.o_current.n_depth >= o_item.n_depth) - this.collapse(o_item.n_id); - this.o_current = o_item; - - // exit if there are no children to open - if (!o_item.a_children) - return; - - // show direct child items - for (var n_order = 0; n_order < o_item.a_children.length; n_order++) { - var o_curritem = o_item.a_children[n_order]; - o_curritem.e_oelement.style.visibility = 'visible'; - o_curritem.b_visible = true; - } -} - -// -------------------------------------------------------------------------------- -// -// -------------------------------------------------------------------------------- -function menu_onclick (n_id) { - // don't go anywhere if item has no link defined - return Boolean(this.a_index[n_id].a_config[1]); -} - -// -------------------------------------------------------------------------------- -function menu_onmouseout (n_id) { - - // lookup new item's object - var o_item = this.a_index[n_id]; - - // apply rollout - o_item.e_oelement.className = o_item.getstyle(0, 0); - o_item.e_ielement.className = o_item.getstyle(1, 0); - - // update status line - o_item.upstatus(7); - - // run mouseover timer - this.o_hidetimer = setTimeout('A_MENUS['+ this.n_id +'].collapse();', - o_item.getprop('hide_delay')); -} - -// -------------------------------------------------------------------------------- -function menu_onmouseover (n_id) { - - // cancel mouseoute menu close and item open delay - clearTimeout(this.o_hidetimer); - this.o_hidetimer = null; - clearTimeout(this.o_showtimer); - - // lookup new item's object - var o_item = this.a_index[n_id]; - - // update status line - o_item.upstatus(); - - // apply rollover - o_item.e_oelement.className = o_item.getstyle(0, 1); - o_item.e_ielement.className = o_item.getstyle(1, 1); - - // if onclick open is set then no more actions required - if (o_item.getprop('expd_delay') < 0) - return; - - // run expand timer - this.o_showtimer = setTimeout('A_MENUS['+ this.n_id +'].expand(' + n_id + ');', - o_item.getprop('expd_delay')); - -} - -// -------------------------------------------------------------------------------- -// called when mouse button is pressed on menu item -// -------------------------------------------------------------------------------- -function menu_onmousedown (n_id) { - - // lookup new item's object - var o_item = this.a_index[n_id]; - - // apply mouse down style - o_item.e_oelement.className = o_item.getstyle(0, 2); - o_item.e_ielement.className = o_item.getstyle(1, 2); - - this.expand(n_id); -// this.items[id].switch_style('onmousedown'); -} - - -// -------------------------------------------------------------------------------- -// menu item Class -function menu_item (o_parent, n_order) { - - // store parameters passed to the constructor - this.n_depth = o_parent.n_depth + 1; - this.a_config = o_parent.a_config[n_order + (this.n_depth ? 3 : 0)]; - - // return if required parameters are missing - if (!this.a_config) return; - - // store info from parent item - this.o_root = o_parent.o_root; - this.o_parent = o_parent; - this.n_order = n_order; - - // register in global and parent's collections - this.n_id = this.o_root.a_index.length; - this.o_root.a_index[this.n_id] = this; - o_parent.a_children[n_order] = this; - - // calculate item's coordinates - var o_root = this.o_root, - a_tpl = this.o_root.a_tpl; - - // assign methods - this.getprop = mitem_getprop; - this.getstyle = mitem_getstyle; - this.upstatus = mitem_upstatus; - - //relative positioning - if (this.o_parent == this.o_root){ - linkedObject = document.getElementById(this.a_config[0]); - if (!linkedObject){ - this.itemLeft = 200; - this.itemTop = 200; - } - else{ - //alert(linkedObject.x+linkedObject.width/2 ); - grpObj[this.a_config[0]] = this.n_id; - this.itemTop = findPosY(linkedObject);//linkedObject.height/4; - this.itemLeft = findPosX(linkedObject)+5; - } - } - else{ - this.itemLeft = this.getprop('left'); - this.itemTop = this.getprop('top'); - } - - if (this.itemLeft.length > 0){ - this.itemLeft = this.itemLeft[n_order];} - - this.itemWidth = this.getprop('width'); - if (this.itemWidth.length > 0){ - this.itemWidth = this.itemWidth[n_order];} - - this.itemSubWidth = this.getprop('subwidth'); - if ((this.o_parent != this.o_root) && (this.o_parent.itemSubWidth.length > 0)){ - this.itemWidth = this.o_parent.itemSubWidth[this.o_parent.n_order];} - - this.n_x = (this.o_parent == this.o_root) - ? this.itemLeft - :(n_order? - o_parent.a_children[n_order - 1].n_x + this.itemLeft - : o_parent.n_x + this.getprop('block_left')); - - this.n_y = (this.o_parent == this.o_root) - ? this.itemTop - :(n_order? - o_parent.a_children[n_order - 1].n_y + this.itemTop - : o_parent.n_y + this.getprop('block_top')); - //this.n_y = n_order - // ? o_parent.a_children[n_order - 1].n_y + this.getprop('top') - // : o_parent.n_y + this.getprop('block_top'); - - // generate item's HMTL - document.write ( - '\n" - ); - if (this.n_id == -1){ - } - this.e_ielement = document.getElementById('e' + o_root.n_id + '_' + this.n_id + 'i'); - this.e_oelement = document.getElementById('e' + o_root.n_id + '_' + this.n_id + 'o'); - - this.b_visible = !this.n_depth; - - // no more initialization if leaf - if (this.a_config.length < 4) - return; - - // node specific methods and properties - this.a_children = []; - - // init downline recursively - for (var n_order = 0; n_order < this.a_config.length - 3; n_order++) - new menu_item(this, n_order); -} - -// -------------------------------------------------------------------------------- -// reads property from template file, inherits from parent level if not found -// ------------------------------------------------------------------------------------------ -function mitem_getprop (s_key) { - - // check if value is defined for current level - var s_value = null, - a_level = this.o_root.a_tpl[this.n_depth]; - - // return value if explicitly defined - if (a_level) - s_value = a_level[s_key]; - - // request recursively from parent levels if not defined - return (s_value == null ? this.o_parent.getprop(s_key) : s_value); -} -// -------------------------------------------------------------------------------- -// reads property from template file, inherits from parent level if not found -// ------------------------------------------------------------------------------------------ -function mitem_getstyle (n_pos, n_state) { - - var a_css = this.getprop('css'); - var a_oclass = a_css[n_pos ? 'inner' : 'outer']; - - // same class for all states - if (typeof(a_oclass) == 'string') - return a_oclass; - - // inherit class from previous state if not explicitly defined - for (var n_currst = n_state; n_currst >= 0; n_currst--) - if (a_oclass[n_currst]) - return a_oclass[n_currst]; -} - -// ------------------------------------------------------------------------------------------ -// updates status bar message of the browser -// ------------------------------------------------------------------------------------------ -function mitem_upstatus (b_clear) { - window.setTimeout("window.status=unescape('" + (b_clear - ? '' - : (this.a_config[2] && this.a_config[2]['sb'] - ? escape(this.a_config[2]['sb']) - : escape(this.a_config[0]) + (this.a_config[1] - ? ' ('+ escape(this.a_config[1]) + ')' - : ''))) + "')", 10); -} - -// -------------------------------------------------------------------------------- -// that's all folks - -//http://www.quirksmode.org/js/findpos.html -function findPosX(obj) -{ - var curleft = 0; - if (obj.offsetParent) - { - while (obj.offsetParent) - { - curleft += obj.offsetLeft - obj = obj.offsetParent; - } - } - else if (obj.x) - curleft += obj.x; - return curleft; -} - -function findPosY(obj) -{ - var curtop = 0; - if (obj.offsetParent) - { - while (obj.offsetParent) - { - curtop += obj.offsetTop - obj = obj.offsetParent; - } - } - else if (obj.y) - curtop += obj.y; - return curtop; -} diff --git a/web/javascript/menu_tpl.js b/web/javascript/menu_tpl.js deleted file mode 100755 index 16483b87..00000000 --- a/web/javascript/menu_tpl.js +++ /dev/null @@ -1,89 +0,0 @@ -/* - --- menu level scope settins structure --- - note that this structure has changed its format since previous version. - Now this structure has the same layout as Tigra Menu GOLD. - Format description can be found in product documentation. -*/ -var MENU_POS = [ -{ - // item sizes - 'height': 26, - 'width': [60,150,80,90,70,70], - 'subwidth': [160,180,185,190,170,190,100,100], - //'width': [150,200,150,100,90], - // menu block offset from the origin: - // for root level origin is upper left corner of the page - // for other levels origin is upper left corner of parent item - 'block_top': 117, - 'block_left': 26, - // offsets between items of the same level - 'top': 0, - 'left': [null,60,150,80,90,70,70], - //'left': [100,150,200,150,100,90], - // time in milliseconds before menu is hidden after cursor has gone out - // of any items - 'hide_delay': 200, - 'expd_delay': 200, - 'css' : { - 'outer': ['m0l0oout', 'm0l0oover'], - 'inner': ['m0l0iout', 'm0l0iover'] - } -}, -{ - 'height': 29, - 'width': 200, - 'subwidth': [], - 'block_top': 15, - 'block_left': 5, - 'top': 28, - 'left': 0, - 'css': { - 'outer' : ['m0l1oout', 'm0l1oover'], - 'inner' : ['m0l1iout', 'm0l1iover'] - } -}, -{ - 'height': 29, - 'width': 150, - 'subwidth': [], - 'block_top': 15, - 'block_left': 175, - 'css': { - 'outer': ['m0l2oout', 'm0l2oover'], - 'inner': ['m0l2iout', 'm0l2iover'] - } -}, -{ - 'height': 29, - 'width': 150, - 'subwidth': [], - 'block_top': 15, - 'block_left': 145, - 'css': { - 'outer': ['m0l3oout', 'm0l3oover'], - 'inner': ['m0l3iout', 'm0l3iover'] - } -}, -{ - 'height': 29, - 'width': 350, - 'subwidth': [], - 'block_top': 15, - 'block_left': 145, - 'css': { - 'outer': ['m0l4oout', 'm0l4oover'], - 'inner': ['m0l4iout', 'm0l4iover'] - } -}, -{ - 'height': 29, - 'width': 350, - 'subwidth': [], - 'block_top': 15, - 'block_left': 175, - 'css': { - 'outer': ['m0l5oout', 'm0l5oover'], - 'inner': ['m0l5iout', 'm0l5iover'] - } -} -] diff --git a/web/javascript/networkGraph.js b/web/javascript/networkGraph.js deleted file mode 100755 index 206cab2a..00000000 --- a/web/javascript/networkGraph.js +++ /dev/null @@ -1,115 +0,0 @@ -// This JavaScript was written by Zach Sloan in 2009-2010. -// This script is used in the Network Graph output from the Trait Collection window - -var searchResults = document.getElementById('searchResult').value.split("\t"); -var symbolList = document.getElementById('symbolList').value.split("\t"); -var originalThreshold = document.getElementById('kValue').value; -addTraitSelection(); - -function addTraitSelection() -{ - var gType = document.getElementById('gType').value; - var nodeSelect = document.getElementById('nodeSelect'); - var newDropDown = document.createElement('newDrop'); - - newDropDown.innerHTML = generateDropdownHtml(); - - if (gType == "radial"){ - nodeSelect.appendChild(newDropDown); - originalLock = document.getElementById('lock').value; - document.getElementById('lock').value = "yes"; - if ( originalThreshold == "undefined"){ - originalThreshold = document.getElementById('kValue').value; - } - document.getElementById('kValue').value = "0.0"; - - } - else{ - try{ - nodeSelect.removeChild(nodeSelect.childNodes[0]); - document.getElementById('lock').value = originalLock; - document.getElementById('kValue').value = originalThreshold; - } catch(err){ - originalLock = document.getElementById('lock').value; - originalThreshold = document.getElementById('kValue').value; - } - } -} - -function generateDropdownHtml(){ - var html = ""; - - html += " "; - html += ""; - - return html; -} - -function sortSearchResults(myForm) -{ - var newSearchResults = searchResults - - if (document.getElementById('traitNode')){ - var selectedNode = document.getElementById('traitNode').value; - - if (selectedNode == "none") - { - alert("Please select a central node for your radial graph."); - return false; - } - - else if (selectedNode == "auto") - { - var newSelectedNode = String(searchResults[parseInt(document.getElementById('optimalNode').value)]); - } - - else - { - var newSelectedNode = selectedNode; - } - - newSearchResults.splice(searchResults.indexOf(newSelectedNode), 1); - - newSearchResults.splice(0, 0, newSelectedNode); - } - - var gType = document.getElementById('gType').value; - - if (gType == "none") - { - alert("Please select a graph method."); - return false; - } - - document.getElementById('searchResult').value = newSearchResults.join("\t"); - - databaseFunc(myForm, 'networkGraph'); - -} - -function changeThreshold(){ - var lock = document.getElementById('lock').value; - var threshold = document.getElementById('kValue').value; - - if (lock == "yes"){ - if(threshold != 0){ - originalThreshold = threshold; - document.getElementById('kValue').value = "0.0"; - } - } - - else if (lock == "no" && originalThreshold != 0){ - document.getElementById('kValue').value = originalThreshold; - } -} - diff --git a/web/javascript/searchtip.js b/web/javascript/searchtip.js deleted file mode 100755 index 5665bc1d..00000000 --- a/web/javascript/searchtip.js +++ /dev/null @@ -1,64 +0,0 @@ -// search tips for 'Get Any' and 'Combined' in the main search page http://www.genenetwork.org/ -function searchtip(){ - - var tfor = document.getElementById("tfor"); - var tfand = document.getElementById("tfand"); - var btsearch = document.getElementById("btsearch"); - var tiptextor = "Enter list here (APOE, APOA, etc.): logical OR"; - var tiptextand = "Enter terms to combine (blood pressure): logical AND"; - - if(tfor.value == "" || tfor.value == tiptextor) { - tfor.className = "searchtip"; - tfor.value = tiptextor; - } - - tfor.onfocus = function(e) { - if(tfor.value == tiptextor) { - tfor.value = ""; - } - tfor.className = ""; - } - tfor.onblur = function(e) { - if(tfor.value == "") { - tfor.className = "searchtip"; - tfor.value = tiptextor; - } else if(tfor.value == tiptextor){ - tfor.className = "searchtip"; - } else { - tfor.className = ""; - } - } - - if(tfand.value == "" || tfand.value == tiptextand) { - tfand.className = "searchtip"; - tfand.value = tiptextand; - } - - tfand.onfocus = function(e) { - if(tfand.value == tiptextand) { - tfand.value = ""; - } - tfand.className = ""; - } - tfand.onblur = function(e) { - if(tfand.value == "") { - tfand.className = "searchtip"; - tfand.value = tiptextand; - } else if(tfand.value == tiptextand) { - tfand.className = "searchtip"; - } else { - tfand.className = ""; - } - } - - btsearch.onclick = function(e) { - if(tfor.value == tiptextor) { - tfor.value = ""; - } - if(tfand.value == tiptextand) { - tfand.value = ""; - } - return true; - } - -} diff --git a/web/javascript/selectDatasetMenu.js b/web/javascript/selectDatasetMenu.js deleted file mode 100644 index bb910a5b..00000000 --- a/web/javascript/selectDatasetMenu.js +++ /dev/null @@ -1,1183 +0,0 @@ -var sArr = [ -{txt:'',val:''}, -{txt:'Human',val:'human'}, -{txt:'Macaque monkey',val:'macaque monkey'}, -{txt:'Mouse',val:'mouse'}, -{txt:'Rat',val:'rat'}, -{txt:'Drosophila',val:'drosophila'}, -{txt:'Arabidopsis thaliana',val:'arabidopsis'}, -{txt:'Barley',val:'barley'}, -{txt:'Soybean',val:'soybean'}, -{txt:'Tomato',val:'tomato'}, -{txt:'All Species',val:'All Species'}]; - -var gArr = [ -{txt:'',val:''}, -{txt:'AD Cases & Controls (Liang)',val:'AD-cases-controls'}, -{txt:'AD Cases & Controls (Myers)',val:'AD-cases-controls-Myers'}, -{txt:'AKXD',val:'AKXD'}, -{txt:'AXB/BXA',val:'AXBXA'}, -{txt:'B6BTBRF2',val:'B6BTBRF2'}, -{txt:'B6D2F2',val:'B6D2F2'}, -{txt:'BayXSha',val:'BayXSha'}, -{txt:'BDF2 UCLA',val:'BDF2-1999'}, -{txt:'BDF2-2005',val:'BDF2-2005'}, -{txt:'BHF2 (Apoe Null) UCLA',val:'BHF2'}, -{txt:'BH/HB F2 UCLA',val:'BHHBF2'}, -{txt:'BXD',val:'BXD'}, -{txt:'BXH',val:'BXH'}, -{txt:'CANDLE',val:'CANDLE'}, -{txt:'CEPH Families',val:'CEPH-2004'}, -{txt:'ColXBur',val:'ColXBur'}, -{txt:'ColXCvi',val:'ColXCvi'}, -{txt:'CastB6/B6Cast F2 UCLA',val:'CTB6F2'}, -{txt:'CXB',val:'CXB'}, -{txt:'Drosophila Genetic Reference Panel',val:'DGRP'}, -{txt:'Harvard Brain Tissue Resource Center',val:'HB'}, -{txt:'Human Liver Cohort',val:'HLC'}, -{txt:'Heterogeneous Stock',val:'HS'}, -{txt:'Heterogeneous Stock Collaborative Cross',val:'HS-CC'}, -{txt:'KIN/YSM',val:'HSB'}, -{txt:'HXB/BXH',val:'HXBBXH'}, -{txt:'J12XJ58F2',val:'J12XJ58F2'}, -{txt:'LXP',val:'LXP'}, -{txt:'LXS',val:'LXS'}, -{txt:'Macaca fasicularis (Cynomolgus monkey)',val:'Macaca-fasicularis'}, -{txt:'Mouse Diversity Panel',val:'MDP'}, -{txt:'NZB/FVB N2 NCI',val:'NZBXFVB-N2'}, -{txt:'Oregon-R x 2b3',val:'Oregon-R_x_2b3'}, -{txt:'QSM',val:'QSM'}, -{txt:'UIOWA SRxSHRSP F2',val:'SRxSHRSPF2'}, -{txt:'SXM',val:'SXM'}, -{txt:'All Groups',val:'all groups'}]; - -var tArr = [ -{txt:'',val:''}, -{txt:'Adipose mRNA',val:'Adipose'}, -{txt:'Adrenal Gland mRNA',val:'Adrenal Gland'}, -{txt:'Amygdala mRNA',val:'Amygdala'}, -{txt:'Brain mRNA',val:'Brain'}, -{txt:'Cartilage mRNA',val:'Cartilage'}, -{txt:'Caudal Ganglionic Eminence mRNA',val:'Caudal Ganglionic Eminence'}, -{txt:'Cerebellar Cortex mRNA',val:'Cerebellar Cortex'}, -{txt:'Cerebellum mRNA',val:'Cerebellum'}, -{txt:'Diencephalon mRNA',val:'Diencephalon'}, -{txt:'Dorsal Thalamus mRNA',val:'Dorsal Thalamus'}, -{txt:'Dorsolateral Prefrontal Cortex mRNA',val:'Dorsolateral Prefrontal Cortex'}, -{txt:'Embryo mRNA',val:'Embryo'}, -{txt:'Eye mRNA',val:'Eye'}, -{txt:'Frontal Cerebral Wall mRNA',val:'Frontal Cerebral Wall'}, -{txt:'Heart mRNA',val:'Heart'}, -{txt:'Hematopoietic Cells mRNA',val:'Hematopoietic Cells'}, -{txt:'Hippocampus mRNA',val:'Hippocampus'}, -{txt:'Hypothalamus mRNA',val:'Hypothalamus'}, -{txt:'Inferior Temporal Cortex mRNA',val:'Inferior Temporal Cortex'}, -{txt:'Kidney mRNA',val:'Kidney'}, -{txt:'Lateral Ganglionic Eminence mRNA',val:'Lateral Ganglionic Eminence'}, -{txt:'Leaf mRNA',val:'Leaf'}, -{txt:'Leucocytes mRNA',val:'Leucocytes'}, -{txt:'Liver mRNA',val:'Liver'}, -{txt:'Lung mRNA',val:'Lung'}, -{txt:'Lymphoblast B-cell mRNA',val:'Lymphoblast B-cell'}, -{txt:'Mammary Tumors mRNA',val:'Mammary Tumors'}, -{txt:'Medial Ganglionic Eminence mRNA',val:'Medial Ganglionic Eminence'}, -{txt:'Medial Prefrontal Cortex mRNA',val:'Medial Prefrontal Cortex'}, -{txt:'Mediodorsal Nucleus of Thalamus mRNA',val:'Mediodorsal Nucleus of Thalamus'}, -{txt:'Midbrain mRNA',val:'Midbrain'}, -{txt:'Muscle mRNA',val:'Muscle'}, -{txt:'Neocortex mRNA',val:'Neocortex'}, -{txt:'Newborn Cord Blood mRNA',val:'Newborn Cord Blood'}, -{txt:'Nucleus Accumbens mRNA',val:'Nucleus Accumbens'}, -{txt:'Occipital Cerebral Wall mRNA',val:'Occipital Cerebral Wall'}, -{txt:'Orbital Prefrontal Cortex mRNA',val:'Orbital Prefrontal Cortex'}, -{txt:'Parietal Cerebral Wall mRNA',val:'Parietal Cerebral Wall'}, -{txt:'Peritoneal Fat mRNA',val:'Peritoneal Fat'}, -{txt:'Posterior Inferior Parietal Cortex mRNA',val:'Posterior Inferior Parietal Cortex'}, -{txt:'Posterior Superior Temporal Cortex mRNA',val:'Posterior Superior Temporal Cortex'}, -{txt:'Prefrontal Cortex mRNA',val:'Prefrontal Cortex'}, -{txt:'Primary Auditory (A1) Cortex mRNA',val:'Primary Auditory (A1) Cortex'}, -{txt:'Primary Motor (M1) Cortex mRNA',val:'Primary Motor (M1) Cortex'}, -{txt:'Primary Somatosensory (S1) Cortex mRNA',val:'Primary Somatosensory (S1) Cortex'}, -{txt:'Primary Visual Cortex mRNA',val:'Primary Visual Cortex'}, -{txt:'Retina mRNA',val:'Retina'}, -{txt:'Spleen mRNA',val:'Spleen'}, -{txt:'Striatum mRNA',val:'Striatum'}, -{txt:'T Cell (helper) mRNA',val:'T Cell (helper)'}, -{txt:'T Cell (regulatory) mRNA',val:'T Cell (regulatory)'}, -{txt:'Temporal Cerebral Wall mRNA',val:'Temporal Cerebral Wall'}, -{txt:'Thymus mRNA',val:'Thymus'}, -{txt:'Upper (Rostral) Rhombic Lip mRNA',val:'Upper (Rostral) Rhombic Lip'}, -{txt:'Ventral Forebrain mRNA',val:'Ventral Forebrain'}, -{txt:'Ventral Tegmental Area mRNA',val:'Ventral Tegmental Area'}, -{txt:'Ventrolateral Prefrontal Cortex mRNA',val:'Ventrolateral Prefrontal Cortex'}, -{txt:'Whole Body mRNA',val:'Whole Body'}, -{txt:'Phenotypes',val:'Phenotypes'}, -{txt:'Genotypes',val:'Genotypes'}]; - -var dArr = [ -{txt:'',val:''}, -{txt:'GSE15222 Human Brain Alzheimer Myers (Apr09) RankInv',val:'GSE15222_F_A_RI_0409'}, -{txt:'GSE15222 Human Brain Normal Myers (Apr09) RankInv',val:'GSE15222_F_N_RI_0409'}, -{txt:'Normal HEI Retina (April 2010) RankInv',val:'G2NEI_ILM_Retina_BXD_RI0410'}, -{txt:'Full HEI Retina (April 2010) RankInv',val:'Illum_Retina_BXD_RankInv0410'}, -{txt:'ONC HEI Retina (April 2012) RankInv',val:'ONCRetILM6_0412'}, -{txt:'B6D2 ONC Retina (April 2012) RankInv **',val:'B6D2ONCILM_0412'}, -{txt:'INIA Macaca fasicularis Nucleus Accumbens (Jan10) RMA **',val:'INIA_MacFas_Ac_RMA_0110'}, -{txt:'UCLA CTB6/B6CTF2 Liver (2005) mlratio',val:'UCLA_CTB6B6CTF2_LIVER_2005'}, -{txt:'UCLA CTB6/B6CTF2 Adipose (2005) mlratio',val:'UCLA_CTB6B6CTF2_ADIPOSE_2005'}, -{txt:'UCLA CTB6/B6CTF2 Brain (2005) mlratio',val:'UCLA_CTB6B6CTF2_BRAIN_2005'}, -{txt:'UCLA CTB6/B6CTF2 Muscle (2005) mlratio',val:'UCLA_CTB6B6CTF2_MUSCLE_2005'}, -{txt:'INIA Macaca fasicularis Hippocampus (Jan10) RMA **',val:'INIA_MacFas_Hc_RMA_0110'}, -{txt:'UCLA CTB6B6CTF2 Muscle Female mlratio **',val:'UCLA_CTB6B6CTF2_MUSCLE_FEMALE'}, -{txt:'INIA Macaca fasicularis Amygdala (Jan10) RMA **',val:'INIA_MacFas_AMG_RMA_0110'}, -{txt:'UCLA CTB6B6CTF2 Adipose Female mlratio **',val:'UCLA_CTB6B6CTF2_ADIPOSE_FEMALE'}, -{txt:'UCLA CTB6B6CTF2 Brain Female mlratio **',val:'UCLA_CTB6B6CTF2_BRAIN_FEMALE'}, -{txt:'UCLA CTB6B6CTF2 Liver Female mlratio **',val:'UCLA_CTB6B6CTF2_LIVER_FEMALE'}, -{txt:'VU BXD Midbrain Agilent SurePrint G3 Mouse GE (May12) Quantile **',val:'VUBXDMouseMidBrainQ0512'}, -{txt:'GSE16780 UCLA Hybrid MDP Liver Affy HT M430A (Sep11) RMA',val:'GSE16780_UCLA_ML0911'}, -{txt:'EPFL/LISP BXD Muscle Affy Mouse Gene 1.0 ST (Dec11) RMA **',val:'EPFLMouseMuscleRMA1211'}, -{txt:'EPFL/LISP BXD HFD Muscle Affy Mouse Gene 1.0 ST (Dec11) RMA **',val:'EPFLMouseMuscleHFDRMA1211'}, -{txt:'EPFL/LISP BXD CD Muscle Affy Mouse Gene 1.0 ST (Dec11) RMA **',val:'EPFLMouseMuscleCDRMA1211'}, -{txt:'BIDMC/UTHSC Dev Striatum P14 ILMv6.2 (Nov11) RankInv **',val:'DevStriatum_ILM6.2P14RInv_1111'}, -{txt:'BIDMC/UTHSC Dev Striatum P3 ILMv6.2 (Nov11) RankInv **',val:'DevStriatum_ILM6.2P3RInv_1111'}, -{txt:'BIDMC/UTHSC Dev Neocortex P14 ILMv6.2 (Nov11) RankInv',val:'DevNeocortex_ILM6.2P14RInv_1111'}, -{txt:'BIDMC/UTHSC Dev Neocortex P3 ILMv6.2 (Nov11) RankInv',val:'DevNeocortex_ILM6.2P3RInv_1111'}, -{txt:'G2 HEI ONC Retina Illumina V6.2 (Sep11) RankInv **',val:'G2HEIONCRetILM6_0911'}, -{txt:'HEI ONC vs Control Retina Illumina V6.2 (Sep11) RankInv **',val:'HEIONCvsCRetILM6_0911'}, -{txt:'JAX Liver Affy M430 2.0 (Jul11) MDP',val:'JAX_CSB_L_0711'}, -{txt:'JAX Liver HF Affy M430 2.0 (Jul11) MDP',val:'JAX_CSB_L_HF_0711'}, -{txt:'JAX Liver 6C Affy M430 2.0 (Jul11) MDP',val:'JAX_CSB_L_6C_0711'}, -{txt:'CANDLE Newborn Cord ILMv6.3 (Jun11) QUANT **',val:'CANDLE_NB_0711'}, -{txt:'KIN/YSM Human AMY Affy Hu-Exon 1.0 ST (Jul11) Quantile **',val:'KIN_YSM_AMY_0711'}, -{txt:'KIN/YSM Human A1C Affy Hu-Exon 1.0 ST (Jul11) Quantile **',val:'KIN_YSM_A1C_0711'}, -{txt:'KIN/YSM Human TC Affy Hu-Exon 1.0 ST (Jul11) Quantile **',val:'KIN_YSM_TC_0711'}, -{txt:'KIN/YSM Human CBC Affy Hu-Exon 1.0 ST (Jul11) Quantile **',val:'KIN_YSM_CBC_0711'}, -{txt:'KIN/YSM Human CGE Affy Hu-Exon 1.0 ST (Jul11) Quantile **',val:'KIN_YSM_CGE_0711'}, -{txt:'KIN/YSM Human FC Affy Hu-Exon 1.0 ST (Jul11) Quantile **',val:'KIN_YSM_FC_0711'}, -{txt:'KIN/YSM Human S1C Affy Hu-Exon 1.0 ST (Jul11) Quantile **',val:'KIN_YSM_S1C_0711'}, -{txt:'KIN/YSM Human STR Affy Hu-Exon 1.0 ST (Jul11) Quantile **',val:'KIN_YSM_STR_0711'}, -{txt:'KIN/YSM Human URL Affy Hu-Exon 1.0 ST (Jul11) Quantile **',val:'KIN_YSM_URL_0711'}, -{txt:'KIN/YSM Human V1C Affy Hu-Exon 1.0 ST (Jul11) Quantile **',val:'KIN_YSM_V1C_0711'}, -{txt:'KIN/YSM Human VF Affy Hu-Exon 1.0 ST (Jul11) Quantile **',val:'KIN_YSM_VF_0711'}, -{txt:'KIN/YSM Human VFC Affy Hu-Exon 1.0 ST (Jul11) Quantile **',val:'KIN_YSM_VFC_0711'}, -{txt:'KIN/YSM Human STC Affy Hu-Exon 1.0 ST (Jul11) Quantile **',val:'KIN_YSM_STC_0711'}, -{txt:'KIN/YSM Human ITC Affy Hu-Exon 1.0 ST (Jul11) Quantile **',val:'KIN_YSM_ITC_0711'}, -{txt:'KIN/YSM Human LGE Affy Hu-Exon 1.0 ST (Jul11) Quantile **',val:'KIN_YSM_LGE_0711'}, -{txt:'KIN/YSM Human M1C Affy Hu-Exon 1.0 ST (Jul11) Quantile **',val:'KIN_YSM_M1C_0711'}, -{txt:'KIN/YSM Human MD Affy Hu-Exon 1.0 ST (Jul11) Quantile **',val:'KIN_YSM_MD_0711'}, -{txt:'KIN/YSM Human IPC Affy Hu-Exon 1.0 ST (Jul11) Quantile **',val:'KIN_YSM_IPC_0711'}, -{txt:'KIN/YSM Human HIP Affy Hu-Exon 1.0 ST (Jul11) Quantile **',val:'KIN_YSM_HIP_0711'}, -{txt:'KIN/YSM Human MFC Affy Hu-Exon 1.0 ST (Jul11) Quantile **',val:'KIN_YSM_MFC_0711'}, -{txt:'KIN/YSM Human DFC Affy Hu-Exon 1.0 ST (Jul11) Quantile **',val:'KIN_YSM_DFC_0711'}, -{txt:'KIN/YSM Human DIE Affy Hu-Exon 1.0 ST (Jul11) Quantile **',val:'KIN_YSM_DIE_0711'}, -{txt:'KIN/YSM Human MGE Affy Hu-Exon 1.0 ST (Jul11) Quantile **',val:'KIN_YSM_MGE_0711'}, -{txt:'KIN/YSM Human DTH Affy Hu-Exon 1.0 ST (Jul11) Quantile **',val:'KIN_YSM_DTH_0711'}, -{txt:'KIN/YSM Human PC Affy Hu-Exon 1.0 ST (Jul11) Quantile **',val:'KIN_YSM_PC_0711'}, -{txt:'KIN/YSM Human OC Affy Hu-Exon 1.0 ST (Jul11) Quantile **',val:'KIN_YSM_OC_0711'}, -{txt:'KIN/YSM Human OFC Affy Hu-Exon 1.0 ST (Jul11) Quantile **',val:'KIN_YSM_OFC_0711'}, -{txt:'HBTRC-MLC Human Cerebellum Agilent (Jun11) mlratio',val:'HBTRC-MLC_0611'}, -{txt:'HBTRC-MLC Human Cerebellum Agilent Normal (Jun11) mlratio',val:'HBTRC-MLC_N_0611'}, -{txt:'HBTRC-MLC Human Prefrontal Cortex Agilent (Jun11) mlratio',val:'HBTRC-MLPFC_0611'}, -{txt:'HBTRC-MLC Human Cerebellum Agilent AD (Jun11) mlratio',val:'HBTRC-MLC_AD_0611'}, -{txt:'HBTRC-MLC Human Visual Cortex Agilent (Jun11) mlratio',val:'HBTRC-MLVC_0611'}, -{txt:'HBTRC-MLC Human Prefrontal Cortex Agilent Normal (Jun11) mlratio',val:'HBTRC-MLPFC_N_0611'}, -{txt:'HBTRC-MLC Human Prefrontal Cortex Agilent AD (Jun11) mlratio',val:'HBTRC-MLPFC_AD_0611'}, -{txt:'HBTRC-MLC Human Cerebellum Agilent HD (Jun11) mlratio',val:'HBTRC-MLC_HD_0611'}, -{txt:'HBTRC-MLC Human Visual Cortex Agilent Normal (Jun11) mlratio',val:'HBTRC-MLVC_N_0611'}, -{txt:'HBTRC-MLC Human Prefrontal Cortex Agilent HD (Jun11) mlratio',val:'HBTRC-MLPFC_HD_0611'}, -{txt:'HBTRC-MLC Human Visual Cortex Agilent AD (Jun11) mlratio',val:'HBTRC-MLVC_AD_0611'}, -{txt:'HBTRC-MLC Human Visual Cortex Agilent HD (Jun11) mlratio',val:'HBTRC-MLVC_HD_0611'}, -{txt:'INIA Amygdala Cohort Affy MoGene 1.0 ST (Mar11) RMA',val:'INIA_AmgCoh_0311'}, -{txt:'INIA Amygdala Affy MoGene 1.0 ST (Nov10) RMA',val:'INIA_Amg_BLA_RMA_1110'}, -{txt:'INIA Amygdala Affy MoGene 1.0 ST (Nov10) RMA Male',val:'INIA_Amg_BLA_RMA_M_1110'}, -{txt:'INIA Amygdala Affy MoGene 1.0 ST (Nov10) RMA Female',val:'INIA_Amg_BLA_RMA_F_1110'}, -{txt:'GSE9588 Human Liver Normal (Mar11) Both Sexes',val:'HLC_0311'}, -{txt:'GSE9588 Human Liver Normal (Mar11) Males',val:'HLCM_0311'}, -{txt:'HZI Thelp M430v2 (Feb11) RMA',val:'RTHC_0211_R'}, -{txt:'GSE5281 Human Brain Normal Full Liang (Jul09) RMA',val:'GSE5281_F_RMA_N_0709'}, -{txt:'GSE5281 Human Brain Alzheimer Full Liang (Jul09) RMA',val:'GSE5281_F_RMA_Alzh_0709'}, -{txt:'OHSU HS-CC Striatum ILM6v1 (Feb11) RankInv',val:'OHSU_HS-CC_ILMStr_0211'}, -{txt:'NCSU Drosophila Whole Body (Jan11) RMA',val:'NCSU_DrosWB_LC_RMA_0111'}, -{txt:'UNC Agilent G4121A Liver LOWESS Stanford (Jan06) Females',val:'LV_G_0106_F'}, -{txt:'UNC Agilent G4121A Liver LOWESS Stanford (Jan06) Males',val:'LV_G_0106_M'}, -{txt:'UNC Agilent G4121A Liver LOWESS Stanford (Jan06) Both Sexes',val:'LV_G_0106_B'}, -{txt:'GenEx BXD Sal Liver Affy M430 2.0 (Feb11) RMA Females **',val:'GenEx_BXD_liverSal_RMA_F_0211'}, -{txt:'GenEx BXD Sal Liver Affy M430 2.0 (Feb11) RMA Males **',val:'GenEx_BXD_liverSal_RMA_M_0211'}, -{txt:'GenEx BXD Sal Liver Affy M430 2.0 (Feb11) RMA Both Sexes **',val:'GenEx_BXD_liverSal_RMA_0211'}, -{txt:'GenEx BXD EtOH Liver Affy M430 2.0 (Feb11) RMA Females **',val:'GenEx_BXD_liverEt_RMA_F_0211'}, -{txt:'GenEx BXD EtOH Liver Affy M430 2.0 (Feb11) RMA Males **',val:'GenEx_BXD_liverEt_RMA_M_0211'}, -{txt:'GenEx BXD EtOH Liver Affy M430 2.0 (Feb11) RMA Both Sexes **',val:'GenEx_BXD_liverEt_RMA_0211'}, -{txt:'SUH BXD Liver Affy Mouse Gene 1.0 ST (Jun11) RMA **',val:'SUH_Liv_RMA_0611'}, -{txt:'HQF BXD Striatum ILM6.1 (Dec10v2) RankInv',val:'UTHSC_Striatum_RankInv_1210'}, -{txt:'HQF BXD Striatum ILM6.1 (Dec10) RankInv',val:'UTHSC_Str_RankInv_1210'}, -{txt:'HQF BXD Neocortex ILM6v1.1 (Dec10v2) RankInv',val:'HQFNeoc_1210v2_RankInv'}, -{txt:'UTHSC Affy MoGene 1.0 ST Spleen (Dec10) RMA',val:'UTHSC_SPL_RMA_1210'}, -{txt:'HQF BXD Neocortex ILM6v1.1 (Dec10) RankInv',val:'HQFNeoc_1210_RankInv'}, -{txt:'INIA Hypothalamus Affy MoGene 1.0 ST (Nov10)',val:'INIA_Hyp_RMA_1110'}, -{txt:'INIA Hypothalamus Affy MoGene 1.0 ST (Nov10) Male',val:'INIA_Hyp_M_RMA_1110'}, -{txt:'INIA Hypothalamus Affy MoGene 1.0 ST (Nov10) Female',val:'INIA_Hyp_F_RMA_1110'}, -{txt:'UTHSC Affy MoGene 1.0 ST Spleen (Oct10) RMA',val:'UTHSC_SPL_RMA_1010'}, -{txt:'Hippocampus Consortium M430v2 (Jun06) RMA MDP',val:'HC_M2_0606_MDP'}, -{txt:'UMUTAffy Hippocampus Exon (Feb09) RMA MDP',val:'UMUTAffyExon_0209_RMA_MDP'}, -{txt:'OX UK HS ILM6v1.1 Lung (May 2010) RankInv',val:'OXUKHS_ILMLung_RI0510'}, -{txt:'OX UK HS ILM6v1.1 Liver (May 2010) RankInv',val:'OXUKHS_ILMLiver_RI0510'}, -{txt:'OX UK HS ILM6v1.1 Hippocampus (May 2010) RankInv',val:'OXUKHS_ILMHipp_RI0510'}, -{txt:'INIA Macaca fasicularis Prefrontal Cortex (Jan10) RMA **',val:'INIA_MacFas_Pf_RMA_0110'}, -{txt:'INIA Macaca fasicularis Brain (Jan10) RMA **',val:'INIA_MacFas_brain_RMA_0110'}, -{txt:'UAB Whole body D.m. mRNA control (Oct09) RMA',val:'UAB_DrosWB_LC_RMA_1009'}, -{txt:'UAB Whole body D.m. mRNA lead (pbAc) (Oct09) RMA',val:'UAB_DrosWB_LE_RMA_1009'}, -{txt:'UMCG Stem Cells ILM6v1.1 (Apr09) original',val:'UMCG_0907_HemaStem_ori'}, -{txt:'UMCG Stem Cells ILM6v1.1 (Apr09) transformed',val:'UMCG_0907_HemaStem'}, -{txt:'UMCG Progenitor Cells ILM6v1.1 (Apr09) original',val:'UMCG_0907_Pro_ori'}, -{txt:'UMCG Progenitor Cells ILM6v1.1 (Apr09) transformed',val:'UMCG_0907_Pro'}, -{txt:'UMCG Erythroid Cells ILM6v1.1 (Apr09) original',val:'UMCG_0907_Eryth_ori'}, -{txt:'UMCG Erythroid Cells ILM6v1.1 (Apr09) transformed',val:'UMCG_0907_Eryth'}, -{txt:'UMCG Myeloid Cells ILM6v1.1 (Apr09) original',val:'UMCG_0907_Myeloid_ori'}, -{txt:'UMCG Myeloid Cells ILM6v1.1 (Apr09) transformed',val:'UMCG_0907_Myeloid'}, -{txt:'UTHSC CEPH B-cells Illumina (Sep09) RankInv',val:'UT_CEPH_RankInv0909'}, -{txt:'Mouse kidney M430v2 Female (Aug06) RMA',val:'MA_M2F_0706_R'}, -{txt:'Mouse kidney M430v2 Male (Aug06) RMA',val:'MA_M2M_0706_R'}, -{txt:'Barley1 Leaf INOC TTKS (Aug09) RMA',val:'B1LI0809R'}, -{txt:'Barley1 Leaf INOC TTKS (Aug09) MAS5',val:'B1LI0809M5'}, -{txt:'Barley1 Leaf MOCK TTKS (Aug09) MAS5',val:'B1MI0809M5'}, -{txt:'Barley1 Leaf MOCK TTKS (Aug09) RMA',val:'B1MI0809R'}, -{txt:'GSE15222 Human Brain Myers (Apr09) RankInv',val:'GSE15222_F_RI_0409'}, -{txt:'GSE5281 Human Brain Full Liang (Jul09) RMA',val:'GSE5281_F_RMA0709'}, -{txt:'GSE5281 Human Brain Best 102 Liang (Jul09) RMA',val:'GSE5281_RMA0709'}, -{txt:'UT Hippocampus Affy RaEx 1.0 Exon (Jul09) RMA',val:'UT_HippRatEx_RMA_0709'}, -{txt:'VCU BXD VTA EtOH M430 2.0 (Jun09) RMA **',val:'VCUEtOH_0609_R'}, -{txt:'VCU BXD VTA Sal M430 2.0 (Jun09) RMA **',val:'VCUSal_0609_R'}, -{txt:'VCU BXD VTA Et vs Sal M430 2.0 (Jun09) Sscore **',val:'VCUEtvsSal_0609_R'}, -{txt:'IoP Affy MOE 430v2 Spleen (May09) RMA',val:'IoP_SPL_RMA_0509'}, -{txt:'NCI Mammary M430v2 (Apr09) RMA',val:'NCI_Mam_Tum_RMA_0409'}, -{txt:'NCI Mammary LMT miRNA v2 (Apr09) RMA',val:'NCI_Agil_Mam_Tum_RMA_0409'}, -{txt:'MDC/CAS/UCL Liver 230v2 (Dec08) RMA',val:'HXB_Liver_1208'}, -{txt:'MDC/CAS/UCL Heart 230_V2 (Dec08) RMA',val:'HXB_Heart_1208'}, -{txt:'MDC/CAS/UCL Adrenal 230A (Dec08) RMA',val:'HXB_Adrenal_1208'}, -{txt:'UWA Illumina PBL (Nov08) RSN **',val:'Illum_BXD_PBL_1108'}, -{txt:'UWA Illumina Thymus (Nov08) RSN **',val:'Illum_BXD_Thy_1108'}, -{txt:'UWA Illumina Spleen (Nov08) RSN **',val:'Illum_BXD_Spl_1108'}, -{txt:'Monks CEPH B-cells Agilent (Dec04) Log10Ratio',val:'Human_1008'}, -{txt:'UTK Spleen ILM6.1 (Jan10) VST',val:'UTK_BXDSpl_VST_0110'}, -{txt:'Eye AXBXA Illumina V6.2(Oct08) RankInv Beta',val:'Eye_AXBXA_1008_RankInv'}, -{txt:'Eye M430v2 (Sep08) RMA',val:'Eye_M2_0908_R'}, -{txt:'Eye M430v2 Mutant Gpnmb (Sep08) RMA **',val:'Eye_M2_0908_R_NB'}, -{txt:'Eye M430v2 WT Gpnmb (Sep08) RMA **',val:'Eye_M2_0908_R_ND'}, -{txt:'Eye M430v2 Mutant Tyrp1 (Sep08) RMA **',val:'Eye_M2_0908_R_MT'}, -{txt:'Eye M430v2 WT WT (Sep08) RMA **',val:'Eye_M2_0908_WTWT'}, -{txt:'Eye M430v2 WT Tyrp1 (Sep08) RMA **',val:'Eye_M2_0908_R_WT'}, -{txt:'BXD Glaucoma Affy M430 2.0 Trial (Sep11) RMA **',val:'BXD_GLA_0911'}, -{txt:'UCLA BXH and BXD Cartilage v2',val:'UCLA_BXHBXD_CARTILAGE_V2'}, -{txt:'UCLA BXD and BXH Cartilage v2',val:'UCLA_BXDBXH_CARTILAGE_V2'}, -{txt:'UCLA BXD and BXH Cartilage',val:'UCLA_BXDBXH_CARTILAGE'}, -{txt:'UCLA BXH and BXD Cartilage',val:'UCLA_BXHBXD_CARTILAGE'}, -{txt:'UCLA BHF2 Brain Male mlratio',val:'UCLA_BHF2_BRAIN_MALE'}, -{txt:'UCLA BHF2 Brain Female mlratio',val:'UCLA_BHF2_BRAIN_FEMALE'}, -{txt:'UCLA BHF2 Adipose Female mlratio',val:'UCLA_BHF2_ADIPOSE_FEMALE'}, -{txt:'UCLA BHF2 Adipose Male mlratio',val:'UCLA_BHF2_ADIPOSE_MALE'}, -{txt:'UCLA CTB6B6CTF2 Muscle Male mlratio **',val:'UCLA_CTB6B6CTF2_MUSCLE_MALE'}, -{txt:'UCLA CTB6B6CTF2 Liver Male mlratio **',val:'UCLA_CTB6B6CTF2_LIVER_MALE'}, -{txt:'UCLA CTB6B6CTF2 Brain Male mlratio **',val:'UCLA_CTB6B6CTF2_BRAIN_MALE'}, -{txt:'UCLA CTB6B6CTF2 Adipose Male mlratio **',val:'UCLA_CTB6B6CTF2_ADIPOSE_MALE'}, -{txt:'UCLA BHF2 Liver Male mlratio',val:'UCLA_BHF2_LIVER_MALE'}, -{txt:'UCLA BHF2 Liver Female mlratio',val:'UCLA_BHF2_LIVER_FEMALE'}, -{txt:'UCLA BHHBF2 Brain Female Only',val:'UCLA_BHHBF2_BRAIN_FEMALE'}, -{txt:'UCLA BHHBF2 Liver Female Only',val:'UCLA_BHHBF2_LIVER_FEMALE'}, -{txt:'UCLA BHHBF2 Muscle Male Only',val:'UCLA_BHHBF2_MUSCLE_MALE'}, -{txt:'UCLA BHHBF2 Muscle Female Only',val:'UCLA_BHHBF2_MUSCLE_FEMALE'}, -{txt:'UCLA BHHBF2 Liver Male Only',val:'UCLA_BHHBF2_LIVER_MALE'}, -{txt:'UCLA BHHBF2 Brain Male Only',val:'UCLA_BHHBF2_BRAIN_MALE'}, -{txt:'UCLA BHHBF2 Adipose Female Only',val:'UCLA_BHHBF2_ADIPOSE_FEMALE'}, -{txt:'UCLA BHHBF2 Adipose Male Only',val:'UCLA_BHHBF2_ADIPOSE_MALE'}, -{txt:'UCLA BHF2 Muscle Female mlratio **',val:'UCLA_BHF2_MUSCLE_FEMALE'}, -{txt:'UCLA BHF2 Muscle Male mlratio **',val:'UCLA_BHF2_MUSCLE_MALE'}, -{txt:'UCLA BXH Cartilage',val:'UCLA_BXH_CARTILAGE'}, -{txt:'UCLA BXD Cartilage',val:'UCLA_BXD_CARTILAGE'}, -{txt:'UCLA BHHBF2 Adipose (2005) mlratio **',val:'UCLA_BHHBF2_ADIPOSE_2005'}, -{txt:'UCLA BHHBF2 Brain (2005) mlratio **',val:'UCLA_BHHBF2_BRAIN_2005'}, -{txt:'UCLA BHHBF2 Liver (2005) mlratio **',val:'UCLA_BHHBF2_LIVER_2005'}, -{txt:'UCLA BHHBF2 Muscle (2005) mlratio **',val:'UCLA_BHHBF2_MUSCLE_2005'}, -{txt:'UCLA BHF2 Adipose (June05) mlratio',val:'UCLA_BHF2_ADIPOSE_0605'}, -{txt:'UCLA BDF2 Liver (1999) mlratio',val:'UCLA_BDF2_LIVER_1999'}, -{txt:'UCLA BHF2 Muscle (June05) mlratio **',val:'UCLA_BHF2_MUSCLE_0605'}, -{txt:'UCLA BHF2 Brain (June05) mlratio',val:'UCLA_BHF2_BRAIN_0605'}, -{txt:'UCLA BHF2 Liver (June05) mlratio',val:'UCLA_BHF2_LIVER_0605'}, -{txt:'HZI Lung M430v2 (Apr08) RMA',val:'HZI_0408_R'}, -{txt:'HZI Lung M430v2 (Apr08) MAS5',val:'HZI_0408_M'}, -{txt:'HQF BXD Neocortex ILM6v1.1 (Feb08) RankInv',val:'HQFNeoc_0208_RankInv'}, -{txt:'VCU BXD NA Sal M430 2.0 (Oct07) RMA',val:'VCUSalo_1007_R'}, -{txt:'VCU BXD NA EtOH M430 2.0 (Oct07) RMA **',val:'VCUEtOH_1007_R'}, -{txt:'VCU BXD NA Et vs Sal M430 2.0 (Oct07) Sscore **',val:'VCUSal_1007_R'}, -{txt:'Stuart Spleen M430v2 (Nov07) RMA',val:'STSPL_1107_R'}, -{txt:'HQF BXD Striatum ILM6.1 (Nov07) RankInv',val:'UTHSC_1107_RankInv'}, -{txt:'Hippocampus Illumina (Aug07) LOESS',val:'Illum_LXS_Hipp_loess0807'}, -{txt:'Hippocampus Illumina (Aug07) LOESS_NB',val:'Illum_LXS_Hipp_loess_nb0807'}, -{txt:'Hippocampus Illumina (Aug07) QUANT',val:'Illum_LXS_Hipp_quant0807'}, -{txt:'Hippocampus Illumina (Aug07) QUANT_NB',val:'Illum_LXS_Hipp_quant_nb0807'}, -{txt:'Hippocampus Illumina (Aug07) RSN',val:'Illum_LXS_Hipp_rsn0807'}, -{txt:'Hippocampus Illumina (Aug07) RSN_NB',val:'Illum_LXS_Hipp_rsn_nb0807'}, -{txt:'VCU BXD PFC EtOH M430 2.0 (Dec06) RMA',val:'VCUEtOH_1206_R'}, -{txt:'VCU BXD PFC Sal M430 2.0 (Dec06) RMA',val:'VCUSal_1206_R'}, -{txt:'VCU BXD PFC Et vs Sal M430 2.0 (Dec06) Sscore',val:'VCUSal_1006_R'}, -{txt:'VCU BXD PFC CIE Air M430 2.0 (Jan11) RMA **',val:'VCU_PF_Air_0111_R'}, -{txt:'VCU BXD PFC CIE EtOH M430 2.0 (Jan11) RMA **',val:'VCU_PF_Et_0111_R'}, -{txt:'VCU BXD PFC EtOH vs CIE Air M430 2.0 (Jan11) Sscore **',val:'VCU_PF_AvE_0111_Ss'}, -{txt:'Hippocampus Illumina (May07) RankInv',val:'Hipp_Illumina_RankInv_0507'}, -{txt:'VCU LXS PFC EtOH M430A 2.0 (Aug06) RMA **',val:'VCUEtOH_0806_R'}, -{txt:'VCU LXS PFC Sal M430A 2.0 (Aug06) RMA',val:'VCUSal_0806_R'}, -{txt:'VCU LXS PFC Et vs Sal M430A 2.0 (Aug06) Sscore **',val:'VCUEt_vs_Sal_0806_R'}, -{txt:'Barley1 Embryo gcRMA SCRI (Dec06)',val:'B139_K_1206_R'}, -{txt:'Barley1 Leaf MAS 5.0 SCRI (Dec06)',val:'B30_K_1206_M'}, -{txt:'Barley1 Leaf gcRMAn SCRI (Dec06)',val:'B30_K_1206_Rn'}, -{txt:'Barley1 Leaf gcRMA SCRI (Dec06)',val:'B30_K_1206_R'}, -{txt:'Barley1 Embryo MAS 5.0 SCRI (Dec06)',val:'B139_K_1206_M'}, -{txt:'UCHSC BXD Whole Brain M430 2.0 (Nov06) RMA',val:'BR_M2_1106_R'}, -{txt:'HZI Treg M430v2 (Feb11) RMA',val:'RTC_1106_R'}, -{txt:'UIOWA Eye mRNA RAE230v2 (Sep06) RMA',val:'UIOWA_Eye_RMA_0906'}, -{txt:'Mouse kidney M430v2 Sex Balanced (Aug06) RMA',val:'MA_M2_0806_R'}, -{txt:'Mouse Kidney M430v2 Sex Balanced (Aug06) PDNN',val:'MA_M2_0806_P'}, -{txt:'Mouse Kidney M430v2 (Jul06) PDNN',val:'MA_M2_0706_P'}, -{txt:'Mouse Kidney M430v2 (Jul06) RMA',val:'MA_M2_0706_R'}, -{txt:'Barley1 Embryo0 gcRMA SCRI (Apr06)',val:'B150_K_0406_R'}, -{txt:'INIA Brain mRNA M430 (Jun06) RMA',val:'IBR_M_0606_R'}, -{txt:'Hippocampus Consortium M430v2 (Jun06) PDNN',val:'HC_M2_0606_P'}, -{txt:'Hippocampus Consortium M430v2 (Jun06) MAS5',val:'HC_M2_0606_M'}, -{txt:'Hippocampus Consortium M430v2 (Jun06) RMA',val:'HC_M2_0606_R'}, -{txt:'INIA Brain mRNA M430 (Jan06) RMA',val:'IBR_M_0106_R'}, -{txt:'INIA Brain mRNA M430 (Jan06) PDNN',val:'IBR_M_0106_P'}, -{txt:'Hippocampus Consortium M430v2 CXB (Dec05) RMA',val:'HC_M2CB_1205_R'}, -{txt:'Hippocampus Consortium M430v2 CXB (Dec05) PDNN',val:'HC_M2CB_1205_P'}, -{txt:'UTHSC Brain mRNA U74Av2 (Nov05) PDNN',val:'BR_U_1105_P'}, -{txt:'UMUTAffy Hippocampus Exon (Feb09) RMA',val:'UMUTAffyExon_0209_RMA'}, -{txt:'UTHSC Hippocampus Illumina v6.1 NON (Sep09) RankInv',val:'UT_ILM_BXD_hipp_NON_0909'}, -{txt:'UTHSC Hippocampus Illumina v6.1 NOS (Sep09) RankInv',val:'UT_ILM_BXD_hipp_NOS_0909'}, -{txt:'UTHSC Hippocampus Illumina v6.1 NOE (Sep09) RankInv',val:'UT_ILM_BXD_hipp_NOE_0909'}, -{txt:'UTHSC Hippocampus Illumina v6.1 RSS (Sep09) RankInv',val:'UT_ILM_BXD_hipp_RSS_0909'}, -{txt:'UTHSC Hippocampus Illumina v6.1 RSE (Sep09) RankInv',val:'UT_ILM_BXD_hipp_RSE_0909'}, -{txt:'OHSU/VA B6D2F2 Striatum M430v2 (Sep05) PDNN',val:'SA_M2_0905_P'}, -{txt:'OHSU/VA B6D2F2 Striatum M430v2 (Sep05) RMA',val:'SA_M2_0905_R'}, -{txt:'OHSU/VA B6D2F2 Striatum M430v2 (Sep05) MAS5',val:'SA_M2_0905_M'}, -{txt:'UTHSC Brain mRNA U74Av2 (Aug05) RMA',val:'BR_U_0805_R'}, -{txt:'UTHSC Brain mRNA U74Av2 (Aug05) PDNN',val:'BR_U_0805_P'}, -{txt:'UTHSC Brain mRNA U74Av2 (Aug05) MAS5',val:'BR_U_0805_M'}, -{txt:'MDC/CAS/ICL Peritoneal Fat 230A (Aug05) MAS5',val:'FT_2A_0805_M'}, -{txt:'OHSU/VA B6D2F2 Brain mRNA M430 (Aug05) RMA',val:'BRF2_M_0805_R'}, -{txt:'OHSU/VA B6D2F2 Brain mRNA M430 (Aug05) PDNN',val:'BRF2_M_0805_P'}, -{txt:'OHSU/VA B6D2F2 Brain mRNA M430 (Aug05) MAS5',val:'BRF2_M_0805_M'}, -{txt:'MDC/CAS/ICL Peritoneal Fat 230A (Jun05) RMA 2z+8',val:'FT_2A_0605_Rz'}, -{txt:'HBP Rosen Striatum M430V2 (Apr05) MAS5 Clean',val:'SA_M2_0405_MC'}, -{txt:'GE-NIAAA Cerebellum mRNA M430v2 (May05) PDNN',val:'GCB_M2_0505_P'}, -{txt:'GE-NIAAA Cerebellum mRNA M430v2 (May05) RMA',val:'GCB_M2_0505_R'}, -{txt:'GE-NIAAA Cerebellum mRNA M430v2 (May05) MAS5',val:'GCB_M2_0505_M'}, -{txt:'MDC/CAS/ICL Kidney 230A (Apr05) MAS5',val:'KI_2A_0405_M'}, -{txt:'HBP Rosen Striatum M430V2 (Apr05) RMA Clean',val:'SA_M2_0405_RC'}, -{txt:'HBP Rosen Striatum M430V2 (Apr05) PDNN Clean',val:'SA_M2_0405_PC'}, -{txt:'HBP Rosen Striatum M430V2 (Apr05) SScore',val:'SA_M2_0405_SS'}, -{txt:'HBP Rosen Striatum M430V2 (Apr05) RMA Orig',val:'SA_M2_0405_RR'}, -{txt:'MDC/CAS/ICL Kidney 230A (Apr05) RMA 2z+8',val:'KI_2A_0405_Rz'}, -{txt:'MDC/CAS/ICL Kidney 230A (Apr05) RMA',val:'KI_2A_0405_R'}, -{txt:'SJUT Cerebellum mRNA M430 (Mar05) PDNN',val:'CB_M_0305_P'}, -{txt:'SJUT Cerebellum mRNA M430 (Mar05) MAS5',val:'CB_M_0305_M'}, -{txt:'SJUT Cerebellum mRNA M430 (Mar05) RMA',val:'CB_M_0305_R'}, -{txt:'HQF Striatum Exon (Feb09) RMA',val:'Striatum_Exon_0209'}, -{txt:'BIDMC/UTHSC Dev Neocortex P14 ILMv6.2 (Nov10) RankInv',val:'DevNeocortex_ILM6.2P14RInv_1110'}, -{txt:'BIDMC/UTHSC Dev Striatum P14 ILMv6.2 (Nov10) RankInv **',val:'DevStriatum_ILM6.2P14RInv_1110'}, -{txt:'BIDMC/UTHSC Dev Striatum P3 ILMv6.2 (Nov10) RankInv **',val:'DevStriatum_ILM6.2P3RInv_1110'}, -{txt:'BIDMC/UTHSC Dev Neocortex P3 ILMv6.2 (Nov10) RankInv',val:'DevNeocortex_ILM6.2P3RInv_1110'}, -{txt:'SJUT Cerebellum mRNA M430 (Oct04) MAS5',val:'CB_M_1004_M'}, -{txt:'SJUT Cerebellum mRNA M430 (Oct04) PDNN',val:'CB_M_1004_P'}, -{txt:'SJUT Cerebellum mRNA M430 (Oct04) RMA',val:'CB_M_1004_R'}, -{txt:'(B6 x BTBR)F2-ob/ob Liver mRNA M430 (Jul04) MAS5',val:'LVF2_M_0704_M'}, -{txt:'(B6 x BTBR)F2-ob/ob Liver mRNA M430 (Jul04) RMA',val:'LVF2_M_0704_R'}, -{txt:'NCI Mammary mRNA M430 (July04) MAS5',val:'MA_M_0704_M'}, -{txt:'NCI Mammary mRNA M430 (July04) RMA',val:'MA_M_0704_R'}, -{txt:'OHSU/VA B6D2F2 Brain mRNA M430A (Mar04) PDNN',val:'BRF2_M_0304_P'}, -{txt:'OHSU/VA B6D2F2 Brain mRNA M430A (Mar04) RMA',val:'BRF2_M_0304_R'}, -{txt:'OHSU/VA B6D2F2 Brain mRNA M430A (Mar04) MAS5',val:'BRF2_M_0304_M'}, -{txt:'GNF Stem Cells U74Av2 (Mar04) RMA',val:'HC_U_0304_R'}, -{txt:'INIA Brain mRNA M430 (Feb04) PDNN',val:'CB_M_0204_P'}, -{txt:'SJUT Cerebellum mRNA M430 (Oct03) MAS5',val:'CB_M_1003_M'}, -{txt:'Hippocampus Illumina NOS (Oct08) RankInv beta',val:'Illum_LXS_Hipp_NOS_1008'}, -{txt:'Hippocampus Illumina RSE (Oct08) RankInv beta',val:'Illum_LXS_Hipp_RSE_1008'}, -{txt:'GSE9588 Human Liver Normal (Mar11) Females',val:'HLCF_0311'}, -{txt:'Hippocampus Illumina RSS (Oct08) RankInv beta',val:'Illum_LXS_Hipp_RSS_1008'}, -{txt:'Hippocampus Illumina NOE (Oct08) RankInv beta',val:'Illum_LXS_Hipp_NOE_1008'}, -{txt:'Hippocampus Illumina NON (Oct08) RankInv beta',val:'Illum_LXS_Hipp_NON_1008'}, -{txt:'CANDLE Published Phenotypes',val:'CANDLEPublish'}, -{txt:'HLC Published Phenotypes',val:'HLCPublish'}, -{txt:'AKXD Genotypes',val:'AKXDGeno'}, -{txt:'AXBXA Published Phenotypes',val:'AXBXAPublish'}, -{txt:'AXBXA Genotypes',val:'AXBXAGeno'}, -{txt:'B6BTBRF2 Published Phenotypes',val:'B6BTBRF2Publish'}, -{txt:'B6BTBRF2 Genotypes',val:'B6BTBRF2Geno'}, -{txt:'B6D2F2 Genotypes',val:'B6D2F2Geno'}, -{txt:'BDF2-1999 Genotypes',val:'BDF2-1999Geno'}, -{txt:'BDF2-2005 Genotypes',val:'BDF2-2005Geno'}, -{txt:'BHF2 Genotypes',val:'BHF2Geno'}, -{txt:'BHHBF2 Genotypes',val:'BHHBF2Geno'}, -{txt:'BXD Published Phenotypes',val:'BXDPublish'}, -{txt:'BXD Genotypes',val:'BXDGeno'}, -{txt:'BXH Published Phenotypes',val:'BXHPublish'}, -{txt:'BXH Genotypes',val:'BXHGeno'}, -{txt:'CTB6F2 Published Phenotypes',val:'CTB6F2Publish'}, -{txt:'CTB6F2 Genotypes',val:'CTB6F2Geno'}, -{txt:'CXB Published Phenotypes',val:'CXBPublish'}, -{txt:'CXB Genotypes',val:'CXBGeno'}, -{txt:'LXS Published Phenotypes',val:'LXSPublish'}, -{txt:'LXS Genotypes',val:'LXSGeno'}, -{txt:'Mouse Phenome Database',val:'MDPPublish'}, -{txt:'MDP Genotypes',val:'MDPGeno'}, -{txt:'NZBXFVB-N2 Published Phenotypes',val:'NZBXFVB-N2Publish'}, -{txt:'HXBBXH Published Phenotypes',val:'HXBBXHPublish'}, -{txt:'HXBBXH Genotypes',val:'HXBBXHGeno'}, -{txt:'BayXSha Published Phenotypes',val:'BayXShaPublish'}, -{txt:'BayXSha Genotypes',val:'BayXShaGeno'}, -{txt:'ColXBur Published Phenotypes',val:'ColXBurPublish'}, -{txt:'ColXBur Genotypes',val:'ColXBurGeno'}, -{txt:'ColXCvi Published Phenotypes',val:'ColXCviPublish'}, -{txt:'ColXCvi Genotypes',val:'ColXCviGeno'}, -{txt:'SXM Published Phenotypes',val:'SXMPublish'}, -{txt:'SXM Genotypes',val:'SXMGeno'}, -{txt:'J12XJ58F2 Published Phenotypes',val:'J12XJ58F2Publish'}, -{txt:'LXP Published Phenotypes',val:'LXPPublish'}, -{txt:'All Phenotypes',val:'_allPublish'}]; - -var lArr = [ - null, -[1,1,4,79], -[1,1,4,80], -[1,1,4,127], -[1,1,4,128], -[1,2,4,1], -[1,2,4,2], -[1,2,4,126], -[1,14,59,288], -[1,14,34,32], -[1,15,26,119], -[1,15,26,142], -[1,21,8,60], -[1,21,8,61], -[1,21,8,63], -[1,21,8,67], -[1,21,42,62], -[1,21,42,65], -[1,21,42,66], -[1,21,42,69], -[1,21,46,64], -[1,21,46,68], -[1,21,46,70], -[1,21,46,71], -[1,22,59,289], -[1,22,24,76], -[1,22,24,77], -[1,22,24,284], -[1,25,3,33], -[1,25,6,37], -[1,25,7,36], -[1,25,9,54], -[1,25,10,56], -[1,25,11,53], -[1,25,14,38], -[1,25,17,51], -[1,25,19,46], -[1,25,21,47], -[1,25,28,55], -[1,25,29,52], -[1,25,30,49], -[1,25,36,58], -[1,25,37,59], -[1,25,38,57], -[1,25,40,50], -[1,25,41,45], -[1,25,43,34], -[1,25,44,48], -[1,25,45,39], -[1,25,46,42], -[1,25,49,40], -[1,25,52,35], -[1,25,54,41], -[1,25,55,43], -[1,25,57,44], -[2,30,3,14], -[2,30,4,108], -[2,30,17,12], -[2,30,35,7], -[2,30,42,107], -[3,3,60,290], -[3,3,27,135], -[3,3,27,274], -[3,3,27,275], -[3,4,59,291], -[3,4,60,292], -[3,4,13,144], -[3,5,59,293], -[3,5,60,294], -[3,5,24,272], -[3,5,24,273], -[3,6,60,295], -[3,6,4,246], -[3,6,4,247], -[3,6,4,248], -[3,6,4,276], -[3,6,4,277], -[3,6,4,278], -[3,8,60,296], -[3,8,24,183], -[3,9,60,297], -[3,9,49,239], -[3,9,49,240], -[3,9,49,241], -[3,10,60,298], -[3,10,1,158], -[3,10,1,159], -[3,10,1,182], -[3,10,4,156], -[3,10,4,157], -[3,10,4,185], -[3,10,24,164], -[3,10,24,165], -[3,10,24,186], -[3,10,32,174], -[3,10,32,175], -[3,10,32,184], -[3,11,60,299], -[3,11,1,172], -[3,11,1,173], -[3,11,1,178], -[3,11,4,166], -[3,11,4,171], -[3,11,4,179], -[3,11,24,167], -[3,11,24,170], -[3,11,24,180], -[3,11,32,168], -[3,11,32,169], -[3,11,32,181], -[3,12,59,300], -[3,12,60,301], -[3,12,3,72], -[3,12,3,73], -[3,12,3,74], -[3,12,3,75], -[3,12,4,216], -[3,12,4,224], -[3,12,4,228], -[3,12,4,229], -[3,12,4,232], -[3,12,4,242], -[3,12,4,243], -[3,12,4,244], -[3,12,4,280], -[3,12,5,153], -[3,12,5,154], -[3,12,5,177], -[3,12,8,251], -[3,12,8,252], -[3,12,8,253], -[3,12,8,261], -[3,12,8,262], -[3,12,8,263], -[3,12,8,269], -[3,12,8,270], -[3,12,8,271], -[3,12,8,281], -[3,12,13,145], -[3,12,13,146], -[3,12,13,147], -[3,12,13,148], -[3,12,13,149], -[3,12,13,150], -[3,12,13,151], -[3,12,16,111], -[3,12,16,112], -[3,12,16,113], -[3,12,16,114], -[3,12,16,115], -[3,12,16,116], -[3,12,16,117], -[3,12,16,118], -[3,12,16,279], -[3,12,17,225], -[3,12,17,226], -[3,12,17,227], -[3,12,17,233], -[3,12,17,234], -[3,12,17,235], -[3,12,17,236], -[3,12,17,237], -[3,12,17,238], -[3,12,18,98], -[3,12,18,99], -[3,12,18,100], -[3,12,20,120], -[3,12,20,121], -[3,12,20,219], -[3,12,20,220], -[3,12,20,221], -[3,12,20,222], -[3,12,23,139], -[3,12,24,19], -[3,12,24,83], -[3,12,24,84], -[3,12,24,85], -[3,12,24,86], -[3,12,24,87], -[3,12,24,88], -[3,12,24,89], -[3,12,24,90], -[3,12,24,91], -[3,12,24,92], -[3,12,25,187], -[3,12,25,188], -[3,12,31,18], -[3,12,32,20], -[3,12,32,21], -[3,12,32,22], -[3,12,33,25], -[3,12,33,26], -[3,12,33,95], -[3,12,33,97], -[3,12,33,189], -[3,12,33,265], -[3,12,33,268], -[3,12,35,190], -[3,12,35,191], -[3,12,35,192], -[3,12,42,201], -[3,12,42,202], -[3,12,42,203], -[3,12,42,204], -[3,12,42,205], -[3,12,42,206], -[3,12,47,3], -[3,12,47,4], -[3,12,47,5], -[3,12,47,6], -[3,12,47,27], -[3,12,47,28], -[3,12,48,96], -[3,12,48,101], -[3,12,48,133], -[3,12,48,141], -[3,12,48,143], -[3,12,49,23], -[3,12,49,24], -[3,12,49,93], -[3,12,49,94], -[3,12,49,194], -[3,12,49,250], -[3,12,49,255], -[3,12,49,256], -[3,12,49,257], -[3,12,49,258], -[3,12,49,264], -[3,12,49,266], -[3,12,49,267], -[3,12,50,78], -[3,12,51,217], -[3,12,53,140], -[3,12,56,130], -[3,12,56,131], -[3,12,56,132], -[3,13,59,302], -[3,13,60,303], -[3,13,5,152], -[3,13,5,155], -[3,13,5,176], -[3,18,59,304], -[3,18,60,305], -[3,18,1,9], -[3,18,1,15], -[3,18,1,163], -[3,18,4,10], -[3,18,4,16], -[3,18,4,162], -[3,18,24,8], -[3,18,24,17], -[3,18,24,161], -[3,18,32,11], -[3,18,32,13], -[3,18,32,160], -[3,19,59,306], -[3,19,60,307], -[3,19,17,230], -[3,19,17,231], -[3,19,48,193], -[3,23,17,106], -[3,23,24,105], -[3,23,25,104], -[3,24,49,81], -[3,29,59,308], -[3,29,60,309], -[3,29,17,195], -[3,29,17,196], -[3,29,17,197], -[3,29,17,198], -[3,29,17,199], -[3,29,17,200], -[3,29,17,207], -[3,29,17,282], -[3,29,17,283], -[3,29,17,285], -[3,29,17,286], -[3,29,17,287], -[3,29,42,208], -[3,29,42,209], -[3,29,42,210], -[3,31,59,310], -[3,31,60,311], -[3,31,17,102], -[3,31,17,103], -[3,31,24,29], -[3,31,24,30], -[3,31,24,31], -[3,32,59,312], -[3,32,27,134], -[4,26,59,313], -[4,26,60,314], -[4,26,2,138], -[4,26,15,137], -[4,26,17,129], -[4,26,20,254], -[4,26,20,259], -[4,26,20,260], -[4,26,24,136], -[4,26,39,245], -[4,26,39,249], -[4,35,13,218], -[5,20,58,82], -[5,33,58,109], -[5,33,58,110], -[6,7,59,315], -[6,7,60,316], -[6,16,59,317], -[6,16,60,318], -[6,17,59,319], -[6,17,60,320], -[7,34,22,122], -[7,34,22,123], -[7,34,22,124], -[7,34,22,125], -[7,36,59,321], -[7,36,60,322], -[7,36,12,211], -[7,36,12,215], -[7,36,12,223], -[7,36,22,212], -[7,36,22,213], -[7,36,22,214], -[8,27,59,323], -[9,28,59,324], -[10,37,59,325]]; - - - -/* -* function: based on different browser use, will have different initial actions; -* Once the index.html page is loaded, this function will be called -*/ -function initialDatasetSelection() -{ - defaultSpecies =getDefaultValue('species'); - defaultSet =getDefaultValue('cross'); - defaultType =getDefaultValue('tissue'); - defaultDB =getDefaultValue('database'); - - if (navigator.userAgent.indexOf('MSIE')>=0) - { - sOptions = fillOptionsForIE(null,defaultSpecies); - var menu0 =""; - document.getElementById('menu0').innerHTML = menu0; - - gOptions = fillOptionsForIE('species',defaultSet); - var menu1 =""; - document.getElementById('menu1').innerHTML =menu1; - - tOptions = fillOptionsForIE('cross',defaultType); - var menu2 =""; - document.getElementById('menu2').innerHTML =menu2; - - dOptions = fillOptionsForIE('tissue',defaultDB); - var menu3 =""; - document.getElementById('menu3').innerHTML =menu3; - - }else{ - fillOptions(null); - } - searchtip(); -} - -/* -* input: selectObjId (designated select menu, such as species, cross, etc... ) -* defaultValue (default Value of species, cross,tissue or database) -* function: special for IE browser,setting options value for select menu dynamically based on linkage array(lArr), -* output: options string -*/ -function fillOptionsForIE(selectObjId,defaultValue) -{ - var options=''; - if(selectObjId==null) - { - var len = sArr.length; - for (var i=1; i < len; i++) { - // setting Species' option - if( sArr[i].val==defaultValue){ - options =options+""; - }else{ - options =options+""; - } - } - }else if(selectObjId=='species') - { - var speciesObj = document.getElementById('species'); - var len = lArr.length; - var arr = []; - var idx = 0; - for (var i=1; i < len; i++) { - //get group(cross) info from lArr - if(lArr[i][0]==(getIndexByValue('species',speciesObj.value)).toString()&&!Contains(arr,lArr[i][1])) - { - arr[idx++]=lArr[i][1]; - } - } - idx=0; - len = arr.length; - removeOptions("cross"); - for (var i=0; i < len; i++) { - // setting Group's option - if( gArr[arr[i]].val==defaultValue){ - options =options+""; - }else{ - options =options+""; - } - - } - }else if(selectObjId=='cross') - { - var speciesObj = document.getElementById('species'); - var groupObj = document.getElementById('cross'); - var len = lArr.length; - var arr = []; - var idx = 0; - for (var i=1; i < len; i++) { - //get type(tissue) info from lArr - if(lArr[i][0]==(getIndexByValue('species',speciesObj.value)).toString()&&lArr[i][1]==(getIndexByValue('cross',groupObj.value)).toString()&&!Contains(arr,lArr[i][2])) - { - arr[idx++]=lArr[i][2]; - } - } - idx=0; - len = arr.length; - removeOptions("tissue"); - for (var i=0; i < len; i++) { - // setting Type's option - if( tArr[arr[i]].val==defaultValue){ - options =options+""; - }else{ - options =options+""; - } - } - - }else if(selectObjId=='tissue') - { - var speciesObj = document.getElementById('species'); - var groupObj = document.getElementById('cross'); - var typeObj = document.getElementById('tissue'); - - var len = lArr.length; - var arr = []; - var idx = 0; - for (var i=1; i < len; i++) { - //get dataset(database) info from lArr - if(lArr[i][0]==(getIndexByValue('species',speciesObj.value)).toString()&&lArr[i][1]==(getIndexByValue('cross',groupObj.value)).toString()&&lArr[i][2]==(getIndexByValue('tissue',typeObj.value)).toString()&&!Contains(arr,lArr[i][3])) - { - arr[idx++]=lArr[i][3]; - } - } - idx=0; - len = arr.length; - removeOptions("database"); - for (var i=0; i < len; i++) { - // setting Database's option - if( dArr[arr[i]].val==defaultValue){ - options =options+""; - }else{ - options =options+""; - } - } - } - return options; -} -/* -* input: selectObjId (designated select menu, such as species, cross, etc... ) -* function: setting options value for select menu dynamically based on linkage array(lArr) -* output: null -*/ -function fillOptions(selectObjId) -{ - if(selectObjId==null) - { - - var speciesObj = document.getElementById('species'); - var len = sArr.length; - for (var i=1; i < len; i++) { - // setting Species' option - speciesObj.options[i-1] = new Option(sArr[i].txt, sArr[i].val); - } - updateChocie('species'); - - }else if(selectObjId=='species') - { - var speciesObj = document.getElementById('species'); - var groupObj = document.getElementById('cross'); - var len = lArr.length; - var arr = []; - var idx = 0; - for (var i=1; i < len; i++) { - //get group(cross) info from lArr - if(lArr[i][0]==(getIndexByValue('species',speciesObj.value)).toString()&&!Contains(arr,lArr[i][1])) - { - arr[idx++]=lArr[i][1]; - } - } - idx=0; - len = arr.length; - removeOptions("cross"); - for (var i=0; i < len; i++) { - // setting Group's option - groupObj.options[idx++] = new Option(gArr[arr[i]].txt, gArr[arr[i]].val); - } - updateChocie('cross'); - - }else if(selectObjId=='cross') - { - var speciesObj = document.getElementById('species'); - var groupObj = document.getElementById('cross'); - var typeObj = document.getElementById('tissue'); - var len = lArr.length; - var arr = []; - var idx = 0; - for (var i=1; i < len; i++) { - //get type(tissue) info from lArr - if(lArr[i][0]==(getIndexByValue('species',speciesObj.value)).toString()&&lArr[i][1]==(getIndexByValue('cross',groupObj.value)).toString()&&!Contains(arr,lArr[i][2])) - { - arr[idx++]=lArr[i][2]; - } - } - idx=0; - len = arr.length; - removeOptions("tissue"); - for (var i=0; i < len; i++) { - // setting Type's option - typeObj.options[idx++] = new Option(tArr[arr[i]].txt, tArr[arr[i]].val); - } - updateChocie('tissue'); - - }else if(selectObjId=='tissue') - { - var speciesObj = document.getElementById('species'); - var groupObj = document.getElementById('cross'); - var typeObj = document.getElementById('tissue'); - var databaseObj = document.getElementById('database'); - - var len = lArr.length; - var arr = []; - var idx = 0; - for (var i=1; i < len; i++) { - //get dataset(database) info from lArr - if(lArr[i][0]==(getIndexByValue('species',speciesObj.value)).toString()&&lArr[i][1]==(getIndexByValue('cross',groupObj.value)).toString()&&lArr[i][2]==(getIndexByValue('tissue',typeObj.value)).toString()&&!Contains(arr,lArr[i][3])) - { - arr[idx++]=lArr[i][3]; - } - } - idx=0; - len = arr.length; - removeOptions("database"); - for (var i=0; i < len; i++) { - // setting Database's option - databaseObj.options[idx++] = new Option(dArr[arr[i]].txt, dArr[arr[i]].val); - } - updateChocie('database'); - } -} - -/* -* input: arr (targeted array); obj (targeted value) -* function: check whether targeted array contains targeted value or not -* output: return true, if array contains targeted value, otherwise return false -*/ -function Contains(arr,obj) { - var i = arr.length; - while (i--) { - if (arr[i] == obj) { - return true; - } - } - return false; -} - -/* -* input: selectObj (designated select menu, such as species, cross, etc... ) -* function: clear designated select menu's option -* output: null -*/ -function removeOptions(selectObj) { - if (typeof selectObj != 'object'){ - selectObj = document.getElementById(selectObj); - } - var len = selectObj.options.length; - for (var i=0; i < len; i++) { - // clear current selection - selectObj.options[0] = null; - } -} - -/* -* input: selectObjId (designated select menu, such as species, cross, etc... ) -* Value: target value -* function: retrieve Index info of target value in designated array -* output: index info -*/ -function getIndexByValue(selectObjId,val) -{ - if(selectObjId=='species') - { - for(var i=1;i=0){ - //setting option's selected status - Obj.options[idx].selected=true; - //update the following select menu - fillOptions(objId); - }else{ - Obj.options[0].selected=true; - fillOptions(objId); - } -} - -// setting option's selected status based on default setting or cookie setting for Species, Group, Type and Database select menu in the main search page http://www.genenetwork.org/ -function updateChocie(selectObjId){ - - if (selectObjId =='species') - { - defaultSpecies= getDefaultValue('species'); - //setting option's selected status - setChoice('species',defaultSpecies); - }else if (selectObjId =='cross') - { - defaultSet= getDefaultValue('cross'); - //setting option's selected status - setChoice('cross',defaultSet); - }else if (selectObjId =='tissue') - { - defaultType= getDefaultValue('tissue'); - //setting option's selected status - setChoice('tissue',defaultType); - }else if (selectObjId =='database') - { - defaultDB= getDefaultValue('database'); - //setting option's selected status - setChoice('database',defaultDB); - } -} - -//get default value;if cookie exists, then use cookie value, otherwise use default value -function getDefaultValue(selectObjId){ - //define default value - var defaultSpecies = 'mouse' - var defaultSet = 'BXD' - var defaultType = 'Hippocampus' - var defaultDB = 'HC_M2_0606_P' - - if (selectObjId =='species') - { - //if cookie exists, then use cookie value, otherwise use default value - var cookieSpecies = getCookie('defaultSpecies'); - if(cookieSpecies) - { - defaultSpecies= cookieSpecies; - } - return defaultSpecies; - }else if (selectObjId =='cross'){ - var cookieSet = getCookie('defaultSet'); - if(cookieSet){ - defaultSet= cookieSet; - } - return defaultSet; - }else if (selectObjId =='tissue'){ - var cookieType = getCookie('defaultType'); - if(cookieType){ - defaultType= cookieType; - } - return defaultType; - }else if (selectObjId =='database') - { - var cookieDB = getCookie('defaultDB'); - if(cookieDB){ - defaultDB= cookieDB; - } - return defaultDB; - } - -} - -//setting default value into cookies for the dropdown menus: Species,Group, Type, and Database -function setDefault(thisform){ - - setCookie('cookieTest', 'cookieTest', 1); - var cookieTest = getCookie('cookieTest'); - delCookie('cookieTest'); - if (cookieTest){ - var defaultSpecies = thisform.species.value; - setCookie('defaultSpecies', defaultSpecies, 10); - var defaultSet = thisform.cross.value; - setCookie('defaultSet', defaultSet, 10); - var defaultType = thisform.tissue.value; - setCookie('defaultType', defaultType, 10); - var defaultDB = thisform.database.value; - setCookie('defaultDB', defaultDB, 10); - updateChocie('species'); - updateChocie('cross'); - updateChocie('tissue'); - updateChocie('database'); - alert("The current settings are now your default"); - } - else{ - alert("You need to enable Cookies in your browser."); - } -} - diff --git a/web/javascript/sortTrait.js b/web/javascript/sortTrait.js deleted file mode 100755 index 7e617572..00000000 --- a/web/javascript/sortTrait.js +++ /dev/null @@ -1,344 +0,0 @@ -/* Generated Date : 2010-07-20 */ -var sArr = [ -{txt:'',val:''}, -{txt:'Database name',val:'1'}, -{txt:'ID number of trait',val:'2'}, -{txt:'Symbol, Gene, Phenotype',val:'3'}, -{txt:'Chr and Mb',val:'4'}, -{txt:'LRS or LOD',val:'5'}, -{txt:'Mean Value',val:'6'} - -]; - -var gArr = [ -{txt:'',val:''}, -{txt:'Database name',val:'1'}, -{txt:'ID number of trait',val:'2'}, -{txt:'Symbol, Gene, Phenotype',val:'3'}, -{txt:'Chr and Mb',val:'4'}, -{txt:'LRS or LOD',val:'5'}, -{txt:'Mean Value',val:'6'}]; - -var tArr = [ -{txt:'',val:''}, -{txt:'Database name',val:'1'}, -{txt:'ID number of trait',val:'2'}, -{txt:'Symbol, Gene, Phenotype',val:'3'}, -{txt:'Chr and Mb',val:'4'}, -{txt:'LRS or LOD',val:'5'}, -{txt:'Mean Value',val:'6'}]; - -var lArr = [ - null, -[1,2,3], -[1,2,4], -[1,2,5], -[1,2,6], -[1,3,2], -[1,3,4], -[1,3,5], -[1,3,6], -[1,4,2], -[1,4,3], -[1,4,5], -[1,4,6], -[1,5,2], -[1,5,3], -[1,5,4], -[1,5,6], -[1,6,2], -[1,6,3], -[1,6,4], -[1,6,5], -[2,1,3], -[2,1,4], -[2,1,5], -[2,1,6], -[2,3,1], -[2,3,4], -[2,3,5], -[2,3,6], -[2,4,1], -[2,4,3], -[2,4,5], -[2,4,6], -[2,5,1], -[2,5,3], -[2,5,4], -[2,5,6], -[2,6,1], -[2,6,3], -[2,6,4], -[2,6,5], -[3,1,2], -[3,1,4], -[3,1,5], -[3,1,6], -[3,2,1], -[3,2,4], -[3,2,5], -[3,2,6], -[3,4,1], -[3,4,2], -[3,4,5], -[3,4,6], -[3,5,1], -[3,5,2], -[3,5,4], -[3,5,6], -[3,6,1], -[3,6,2], -[3,6,4], -[3,6,5], -[4,1,2], -[4,1,3], -[4,1,5], -[4,1,6], -[4,2,1], -[4,2,3], -[4,2,5], -[4,2,6], -[4,3,1], -[4,3,2], -[4,3,5], -[4,3,6], -[4,5,1], -[4,5,2], -[4,5,3], -[4,5,6], -[4,6,1], -[4,6,2], -[4,6,4], -[4,6,5], -[5,1,2], -[5,1,3], -[5,1,4], -[5,1,6], -[5,2,1], -[5,2,3], -[5,2,4], -[5,2,6], -[5,3,1], -[5,3,2], -[5,3,4], -[5,3,6], -[5,4,1], -[5,4,2], -[5,4,3], -[5,4,6], -[5,6,1], -[5,6,2], -[5,6,3], -[5,6,4], -[6,1,2], -[6,1,3], -[6,1,4], -[6,1,5], -[6,2,1], -[6,2,3], -[6,2,4], -[6,2,5], -[6,3,1], -[6,3,2], -[6,3,4], -[6,3,5], -[6,4,1], -[6,4,2], -[6,4,3], -[6,4,5], -[6,5,1], -[6,5,2], -[6,5,3], -[6,5,4]]; - -/* -* input: selectObjId (designated select menu, such as sort1, sort2, etc... ) -* function: setting options value for select menu dynamically based on linkage array(lArr) -* output: null -*/ -function fillOptions(selectObjId) -{ - - - if(selectObjId==null) - { - var sort1Obj = document.getElementsByName('sort1')[0]; - - var len = sArr.length; - for (var i=1; i < len; i++) { - // setting sort1' option - sort1Obj.options[i-1] = new Option(sArr[i].txt, sArr[i].val); - - - } - fillOptions('sort1'); - }else if(selectObjId=='sort1') - { - var sort1Obj = document.getElementsByName('sort1')[0]; - var sort2Obj = document.getElementsByName('sort2')[0]; - var len = lArr.length; - var arr = []; - var idx = 0; - for (var i=1; i < len; i++) { - //get sort2 info from lArr - if(lArr[i][0]==(getIndexByValue('sort1',sort1Obj.value)).toString()&&!Contains(arr,lArr[i][1])) - { - arr[idx++]=lArr[i][1]; - } - } - idx=0; - len = arr.length; - removeOptions("sort2"); - for (var i=0; i < len; i++) { - // setting sort2's option - sort2Obj.options[idx++] = new Option(gArr[arr[i]].txt, gArr[arr[i]].val); - } - fillOptions('sort2'); - }else if(selectObjId=='sort2') - { - var sort1Obj = document.getElementsByName('sort1')[0]; - var sort2Obj = document.getElementsByName('sort2')[0]; - var sort3Obj = document.getElementsByName('sort3')[0]; - var len = lArr.length; - var arr = []; - var idx = 0; - for (var i=1; i < len; i++) { - //get sort2 info from lArr - if(lArr[i][0]==(getIndexByValue('sort1',sort1Obj.value)).toString()&&lArr[i][1]==(getIndexByValue('sort2',sort2Obj.value)).toString()&&!Contains(arr,lArr[i][2])) - { - arr[idx++]=lArr[i][2]; - } - } - idx=0; - len = arr.length; - removeOptions("sort3"); - for (var i=0; i < len; i++) { - // setting sort3's option - sort3Obj.options[idx++] = new Option(tArr[arr[i]].txt, tArr[arr[i]].val); - } - fillOptions('sort3'); - } -} - -/* -* input: arr (targeted array); obj (targeted value) -* function: check whether targeted array contains targeted value or not -* output: return true, if array contains targeted value, otherwise return false -*/ -function Contains(arr,obj) { - var i = arr.length; - while (i--) { - if (arr[i] == obj) { - return true; - } - } - return false; -} - -updateChocie(); - -/* -* input: selectObj (designated select menu, such as sort1, sort2, etc... ) -* function: clear designated select menu's option -* output: null -*/ -function removeOptions(selectObj) { - if (typeof selectObj != 'object'){ - selectObj = document.getElementsByName(selectObj)[0]; - } - var len = selectObj.options.length; - for (var i=0; i < len; i++) { - // clear current selection - selectObj.options[0] = null; - } -} - -/* -* input: selectObjId (designated select menu, such as sort1, sort2, etc... ) -* Value: target value -* function: retrieve Index info of target value in designated array -* output: index info -*/ -function getIndexByValue(selectObjId,val) -{ - if(selectObjId=='sort1') - { - for(var i=1;i=0){ - //setting option's selected status - Obj.options[idx].selected=true; - //update the following select menu - fillOptions(objId) - return true; - }else{ - return false; - } -} - -// setting option's selected status based on default setting or cookie setting for sort1, sort2, and sort3 select menu -function updateChocie(){ - fillOptions(null); - //define default value - var defaultSort1 = 1 - var defaultSort2 = 3 - var defaultSort3 = 4 - - //if cookie exists, then use cookie value, otherwise use default value - var cookieSort1 = getCookie('defaultSort1'); - if(cookieSort1) defaultSort1= cookieSort1 - var cookieSort2 = getCookie('defaultSort2'); - if(cookieSort2) defaultSort2 = cookieSort2; - var cookieSort3 = getCookie('defaultSort3'); - if(cookieSort3 ) defaultSort3 = cookieSort3; - - //setting option's selected status - if(!setChoice('sort1',defaultSort1)){return;} - if(!setChoice('sort2',defaultSort2)){return;} - if(!setChoice('sort3',defaultSort3)){return;} -} \ No newline at end of file diff --git a/web/javascript/svg.js b/web/javascript/svg.js deleted file mode 100755 index 73523b7b..00000000 --- a/web/javascript/svg.js +++ /dev/null @@ -1,326 +0,0 @@ -/*extracted and modified from http://www.carto.net/neumann/cartography/vienna/ */ -var openURL="/webqtl/WebQTL.py?FormID=showDatabase&database=Eye_M2_0906_R&incparentsf1=1&ProbeSetID="; -var chrLength=[0.0, 491.91598118601547, 946.15708685124116, 1345.2216933525635, 1732.198920660242, 2111.6212086643609, 2484.8595921440615, 2847.1359103053924, 3176.8399906396698, 3486.3641319132003, 3810.7615243606533, 4114.7890532612491, 4415.4830426184499, 4716.5544971256113, 5026.024224847908, 5284.3571135528055, 5529.6098871486292, 5767.1869053349601, 5993.6795668729492, 6146.7463916706538]; - -var statusObj; -var zoomVal; -var svgdoc; -var zoomValueObj; -var dispBoxObj; -var probesetObj; -var markerObj; -var xObj; -var yObj; -var svgRect; -var svgMainViewport; -var overviewViewport; - -var allWidth = 8200; -var allHeight = 8200; -var xOriginCorner = 0; -var yOriginCorner = 0; - -var evtX; -var evtY; -var dataPanelEvtX; -var dataPanelEvtX; -var rectUlXCorner; -var rectUlYCorner -var pluginPixWidth; -var pluginPixHeight; -var mainPixWidth; -var mainPixHeight; -var mainX; -var mainY; -var scaleFactor = 1; -var width; -var height; -var pressed = 0; - -var msgObj; - -function initMap(evt) { - //initializing values - zoomVal = 100; //initial zoomFactor - //svgdoc=evt.getTarget().getOwnerDocument(); - svgdoc = evt.target.ownerDocument; - statusObj = svgdoc.getElementById("statusText"); - statusObj = statusObj.firstChild; - - zoomValueObj = svgdoc.getElementById("zoomValueObj"); - zoomValueObj = zoomValueObj.firstChild; - - xObj = svgdoc.getElementById("XLabel"); - xObj = xObj.firstChild; - yObj = svgdoc.getElementById("YLabel"); - yObj = yObj.firstChild; - - dispBoxObj = svgdoc.getElementById("dispBox"); - probesetObj = svgdoc.getElementById("_probeset"); - probesetObj = probesetObj.firstChild; - markerObj = svgdoc.getElementById("_marker"); - markerObj = markerObj.firstChild; - - //dispBoxObj.parent.appendChild(dispBoxObj); - svgRect = svgdoc.getElementById("overviewRect"); - allWidth = svgRect.getAttribute("width"); - allHeight = svgRect.getAttribute("height"); - svgMainViewport = svgdoc.getElementById("mainPlot"); - mainPixWidth = svgMainViewport.getAttribute("width"); - mainPixHeight = svgMainViewport.getAttribute("height"); - mainX = svgMainViewport.getAttribute("x"); - mainY = svgMainViewport.getAttribute("y"); - //overviewObjects - overviewViewport = svgdoc.getElementById("overviewPlot"); - pluginPixWidth = overviewViewport.getAttribute("width"); - pluginPixHeight = overviewViewport.getAttribute("height"); - - //msgObj = svgdoc.getElementById("msgText") - //msgObj = msgObj.firstChild; -} - -//simulating statusbar -function statusChange(text) { - //statusObj.setData(text); - statusObj.nodeValue=text; -} - -//magnifier glass mouse-over effects -function magnify(evt,scaleFact,inOrOut) { - if (inOrOut == "in") { - if (zoomVal < 1000) { - statusChange("click to zoom in"); - scaleObject(evt,scaleFact); - } - else { - statusChange("maximum zoom factor reached! cannot zoom in any more!"); - } - } - if (inOrOut == "out") { - if (zoomVal >= 100) { - statusChange("click to zoom out"); - scaleObject(evt,scaleFact); - } - else { - statusChange("minimum zoom factor reached! cannot zoom out any more!"); - } - } - if (scaleFact == 1) { - statusChange("plot ready"); - scaleObject(evt,scaleFact); - } -} - -// Lei Yan -// 2009/03/26 - -//scale any object that has a transform-value -function scaleObject(evt,factor) { - //reference to the currently selected object - var element = evt.target; - - //query old transform value (we need the translation value) - var curTransform = element.getAttribute("transform"); - curTransform = new String(curTransform); //Wert in ein String umwandeln - //no fear from Regular expressions ... just copy it, I copied it either ... - var translateRegExp=/translate\(([-+]?\d+)(\s*[\s,]\s*)([-+]?\d+)\)\s*/; - - //This part extracts the translation-value from the whole transform-string - if (curTransform.length != 0) - { - var result = curTransform.match(translateRegExp); - if (result == null || result.index == -1) - { - oldTranslateX = 0; - oldTranslateY = 0; - } - else - { - oldTranslateX = result[1]; - oldTranslateY = result[3]; - } - //concatenate the string again, add scale-factor - var newtransform = "translate(" + oldTranslateX + " " + oldTranslateY + ") " + "scale(" + factor + ")"; - } - //set transform-factor - element.setAttribute('transform', newtransform); -} - -function zoomIt(inOrOut) { - if (zoomVal>=300) step=100.0; - else step=50.0; - if (inOrOut == "in") { - if (zoomVal < 1000) { - statusChange("click to zoom in"); - zoomVal = zoomVal + step; - zoomItReally(); - } - else { - statusChange("maximum zoom factor reached! cannot zoom in any more!"); - } - } - if (inOrOut == "out") { - if (zoomVal > 100) { - statusChange("click to zoom out"); - zoomVal = zoomVal - step; - zoomItReally(); - } - else { - statusChange("minimum zoom factor reached! cannot zoom out any more!"); - } - } -} - -function zoomItReally() { - statusChange("panning plot - please be patient ..."); - - //get values from draggable rectangle - xulcorner = parseFloat(svgRect.getAttribute("x")); - yulcorner = parseFloat(svgRect.getAttribute("y")); - width = parseFloat(svgRect.getAttribute("width")); - height = parseFloat(svgRect.getAttribute("height")); - - //calcs - xcenter = xulcorner + width / 2; - ycenter = yulcorner + height / 2; - xnulcorner = xcenter - allWidth / 2 * (100/zoomVal); - ynulcorner = ycenter - allHeight / 2 * (100/zoomVal); - nWidth = allWidth * (100/zoomVal); - nHeight = allHeight * (100/zoomVal); - - if (zoomVal == 100) { - xnulcorner = 0; - ynulcorner = 0; - } - //set values of draggable rectangle - svgRect.setAttribute("x",xnulcorner); - svgRect.setAttribute("y",ynulcorner); - svgRect.setAttribute("width",nWidth); - svgRect.setAttribute("height",nHeight); - - //set viewport of main map - newViewport = xnulcorner + " " + ynulcorner + " " + nWidth + " " + nHeight; - svgMainViewport.setAttribute("viewBox",newViewport);/**/ - //zoomValueObj.setData("ZOOM: " + zoomVal+"%"); - zoomValueObj.nodeValue="ZOOM: " + zoomVal+"%"; - statusChange("plot ready ..."); -} - -function beginPan(evt) { - pressed = 1; - width = parseFloat(svgRect.getAttribute("width")); - height = parseFloat(svgRect.getAttribute("height")); - evtX = parseFloat(evt.clientX) * scaleFactor; - evtY = parseFloat(evt.clientY) * scaleFactor; - rectUlXCorner = parseFloat(svgRect.getAttribute("x")); - rectUlYCorner = parseFloat(svgRect.getAttribute("y")); -} - -function doPan(evt) { - if (pressed == 1) { - newEvtX = parseFloat(evt.clientX) * scaleFactor; //scaleFactor is because of resizable interface - newEvtY = parseFloat(evt.clientY) * scaleFactor; - toMoveX = rectUlXCorner + (newEvtX - evtX) * allWidth / pluginPixWidth; - toMoveY = rectUlYCorner + (newEvtY - evtY) * allHeight / pluginPixHeight; - - //restrict to borders of overviewmap - if (toMoveX < xOriginCorner) { - svgRect.setAttribute("x",xOriginCorner); - } - else if ((toMoveX + width) > (xOriginCorner + allWidth)) { - svgRect.setAttribute("x",xOriginCorner + allWidth - width); - } - else { - svgRect.setAttribute("x",toMoveX); - } - if (toMoveY < yOriginCorner) { - svgRect.setAttribute("y",yOriginCorner); - } - else if ((toMoveY + height) > (yOriginCorner + allHeight)) { - svgRect.setAttribute("y",yOriginCorner + allHeight - height); - } - else { - svgRect.setAttribute("y",toMoveY); - } - - evtX = newEvtX; - evtY = newEvtY; - rectUlXCorner = parseFloat(svgRect.getAttribute("x")); - rectUlYCorner = parseFloat(svgRect.getAttribute("y")); - } -} - -function endPan() { - statusChange("panning plot - please be patient ..."); - pressed = 0; - //set viewport of main plot - xulcorner = parseFloat(svgRect.getAttribute("x")); - yulcorner = parseFloat(svgRect.getAttribute("y")); - width = parseFloat(svgRect.getAttribute("width")); - height = parseFloat(svgRect.getAttribute("height")); - newViewport = xulcorner + " " + yulcorner + " " + width + " " + height; - svgMainViewport.setAttribute("viewBox",newViewport); - statusChange("plot ready ..."); -} - -function showChr(evt) { - xulcorner = parseFloat(svgRect.getAttribute("x")); - yulcorner = parseFloat(svgRect.getAttribute("y")); - width = parseFloat(svgRect.getAttribute("width")); - height = parseFloat(svgRect.getAttribute("height")); - myX = parseFloat(evt.clientX-mainX) * scaleFactor; - myY = parseFloat(evt.clientY-mainY) * scaleFactor; - myX = xulcorner + (myX*100/zoomVal -0.1*mainPixWidth)* allWidth/ mainPixWidth; - myY = allHeight*0.8-(yulcorner + (myY*100/zoomVal -0.1*mainPixWidth)* allHeight/ mainPixHeight); - - for (i=0; i myX) break; - } - i = (i==chrLength.length)? "X":i; - //xObj.setData("Marker GMb (Chr "+ i+")"); - xObj.nodeValue="Marker GMb (Chr "+ i+")"; - - for (i=0; i myY) break; - } - i = (i==chrLength.length)? "X":i; - //yObj.setData("Transcript GMb (Chr "+ i+")"); - yObj.nodeValue="Transcript GMb (Chr "+ i+")"; -} - -function showNoChr(evt) { - //xObj.setData("Marker GMb"); - xObj.nodeValue="Marker GMb."; - //yObj.setData("Transcript GMb"); - yObj.nodeValue="Transcript GMb."; -} - -function mvMsgBox(evt) { - var element = evt.target; - var myX = parseFloat(evt.clientX)+2; - var myY = parseFloat(evt.clientY)-2; - var newtransform = "translate(" + myX + " " + myY + ") " + "scale(0.8)"; - dispBoxObj.setAttribute('transform', newtransform); - dispBoxObj.setAttribute('visibility', 'visible'); - //probesetObj.setData("ProbeSet : " + element.getAttribute("ps")); - probesetObj.nodeValue="ProbeSet : " + element.getAttribute("ps"); - //markerObj.setData("Marker : " + element.getAttribute("mk")); - markerObj.nodeValue="Marker : " + element.getAttribute("mk"); -} - -function hdMsgBox() { - dispBoxObj.setAttribute('visibility', 'hidden'); -} - -function openPage(evt) { - var element = evt.target; - var windowName = 'formTarget' + (new Date().getTime()); - //var openWinString = "openNewWin('"+openURL+element.getAttribute("ps")+"')"; - //var aURL = "http://www.genenetwork.org"+openURL+element.getAttribute("ps"); - var aURL = openURL+element.getAttribute("ps"); - var newWin = window.open(aURL); - newWin.focus(); - return false; - - //browserEval(openWinString); -} diff --git a/web/javascript/tabbed_pages.js b/web/javascript/tabbed_pages.js deleted file mode 100755 index a0a600f8..00000000 --- a/web/javascript/tabbed_pages.js +++ /dev/null @@ -1,32 +0,0 @@ -/* ================================================================ -This copyright notice must be untouched at all times. - -The original version of this script and the associated (x)html -is available at http://www.stunicholls.com/various/tabbed_pages.html -Copyright (c) 2005-2007 Stu Nicholls. All rights reserved. -This script and the associated (x)html may be modified in any -way to fit your requirements. -=================================================================== */ - - -onload = function() { - var e, i = 0; - var ee = document.getElementById('gallery'); - if(ee==null){ - return; - } - while (e = document.getElementById('gallery').getElementsByTagName ('DIV') [i++]) { - if (e.className == 'on' || e.className == 'off') { - e.onclick = function () { - var getEls = document.getElementsByTagName('DIV'); - for (var z=0; z 1) { - arr = arr.concat(checkCellColSpan(table, headerArr, row++)); - } else { - if (table.tHead.length == 1 || (cell.rowSpan > 1 || !r[row + 1])) { - arr.push(cell); - } - // headerArr[row] = (i+row); - } - } - return arr; - }; - - function checkHeaderMetadata(cell) { - if (($.metadata) && ($(cell).metadata().sorter === false)) { - return true; - }; - return false; - } - - function checkHeaderOptions(table, i) { - if ((table.config.headers[i]) && (table.config.headers[i].sorter === false)) { - return true; - }; - return false; - } - - function checkHeaderOptionsSortingLocked(table, i) { - if ((table.config.headers[i]) && (table.config.headers[i].lockedOrder)) return table.config.headers[i].lockedOrder; - return false; - } - - function applyWidget(table) { - var c = table.config.widgets; - var l = c.length; - for (var i = 0; i < l; i++) { - - getWidgetById(c[i]).format(table); - } - - } - - function getWidgetById(name) { - var l = widgets.length; - for (var i = 0; i < l; i++) { - if (widgets[i].id.toLowerCase() == name.toLowerCase()) { - return widgets[i]; - } - } - }; - - function formatSortingOrder(v) { - if (typeof(v) != "Number") { - return (v.toLowerCase() == "desc") ? 1 : 0; - } else { - return (v == 1) ? 1 : 0; - } - } - - function isValueInArray(v, a) { - var l = a.length; - for (var i = 0; i < l; i++) { - if (a[i][0] == v) { - return true; - } - } - return false; - } - - function setHeadersCss(table, $headers, list, css) { - // remove all header information - $headers.removeClass(css[0]).removeClass(css[1]); - - var h = []; - $headers.each(function (offset) { - if (!this.sortDisabled) { - h[this.column] = $(this); - } - }); - - var l = list.length; - for (var i = 0; i < l; i++) { - h[list[i][0]].addClass(css[list[i][1]]); - } - } - - function fixColumnWidth(table, $headers) { - var c = table.config; - if (c.widthFixed) { - var colgroup = $(''); - $("tr:first td", table.tBodies[0]).each(function () { - colgroup.append($('').css('width', $(this).width())); - }); - $(table).prepend(colgroup); - }; - } - - function updateHeaderSortCount(table, sortList) { - var c = table.config, - l = sortList.length; - for (var i = 0; i < l; i++) { - var s = sortList[i], - o = c.headerList[s[0]]; - o.count = s[1]; - o.count++; - } - } - - /* sorting methods */ - - function multisort(table, sortList, cache) { - - if (table.config.debug) { - var sortTime = new Date(); - } - - var dynamicExp = "var sortWrapper = function(a,b) {", - l = sortList.length; - - for (var i = 0; i < l; i++) { - - var c = sortList[i][0]; - var order = sortList[i][1]; - var s = (table.config.parsers[c].type == "text") ? ((order == 0) ? makeSortFunction("text", "asc", c) : makeSortFunction("text", "desc", c)) : ((order == 0) ? makeSortFunction("numeric", "asc", c) : makeSortFunction("numeric", "desc", c)); - var e = "e" + i; - - dynamicExp += "var " + e + " = " + s; - dynamicExp += "if(" + e + ") { return " + e + "; } "; - dynamicExp += "else { "; - } - - // if value is the same keep orignal order - var orgOrderCol = cache.normalized[0].length - 1; - dynamicExp += "return a[" + orgOrderCol + "]-b[" + orgOrderCol + "];"; - - for (var i = 0; i < l; i++) { - dynamicExp += "}; "; - } - - dynamicExp += "return 0; "; - dynamicExp += "}; "; - - if (table.config.debug) { - benchmark("Evaling expression:" + dynamicExp, new Date()); - } - - eval(dynamicExp); - - cache.normalized.sort(sortWrapper); - if (table.config.debug) { - benchmark("Sorting on " + sortList.toString() + " and dir " + order + " time:", sortTime); - } - - return cache; - }; - - function makeSortFunction(type, direction, index) { - var a = "a[" + index + "]", - b = "b[" + index + "]"; - if (type == 'text' && direction == 'asc') { - return "(" + a + " == " + b + " ? 0 : (" + a + " === null ? Number.POSITIVE_INFINITY : (" + b + " === null ? Number.NEGATIVE_INFINITY : (" + a + " < " + b + ") ? -1 : 1 )));"; - } else if (type == 'text' && direction == 'desc') { - return "(" + a + " == " + b + " ? 0 : (" + a + " === null ? Number.POSITIVE_INFINITY : (" + b + " === null ? Number.NEGATIVE_INFINITY : (" + b + " < " + a + ") ? -1 : 1 )));"; - } else if (type == 'numeric' && direction == 'asc') { - return "(" + a + " === null && " + b + " === null) ? 0 :(" + a + " === null ? Number.POSITIVE_INFINITY : (" + b + " === null ? Number.NEGATIVE_INFINITY : " + a + " - " + b + "));"; - } else if (type == 'numeric' && direction == 'desc') { - return "(" + a + " === null && " + b + " === null) ? 0 :(" + a + " === null ? Number.POSITIVE_INFINITY : (" + b + " === null ? Number.NEGATIVE_INFINITY : " + b + " - " + a + "));"; - } - }; - - function getCachedSortType(parsers, i) { - return parsers[i].type; - }; /* public methods */ - this.construct = function (settings) { - return this.each(function () { - - //ZS: Removed this portion and added a section that automatically makes the first table row a thead if one doesn't exist - /* - //if no thead or tbody quit. - if (!this.tHead || !this.tBodies) return; - */ - - //ZS: Added this portion, which automatically makes the first row in a table its thead if one doesn't exist - if ($('.sortable').has('thead').length == 0) { //ZS: Changed this line to work with current format (was previously "table.tHead" instead of the jQuery - // table doesn't have a tHead. Since it should have, create one and - // put the first table row in it. - the = document.createElement('thead'); - the.appendChild(this.rows[0]); - this.insertBefore(the,this.firstChild); - } - - // declare - var $this, $document, $headers, cache, config, shiftDown = 0, - sortOrder; - // new blank config object - this.config = {}; - // merge and extend. - config = $.extend(this.config, $.tablesorter.defaults, settings); - // store common expression for speed - $this = $(this); - // save the settings where they read - $.data(this, "tablesorter", config); - // build headers - $headers = buildHeaders(this); - // try to auto detect column type, and store in tables config - this.config.parsers = buildParserCache(this, $headers); - // build the cache for the tbody cells - cache = buildCache(this); - // get the css class names, could be done else where. - var sortCSS = [config.cssDesc, config.cssAsc]; - // fixate columns if the users supplies the fixedWidth option - fixColumnWidth(this); - - // apply event handling to headers - $headers.click( - function (e) { - var totalRows = ($this[0].tBodies[0] && $this[0].tBodies[0].rows.length) || 0; - if (!this.sortDisabled && totalRows > 0) { - // Only call sortStart if sorting is enabled. - $this.trigger("sortStart"); - // store exp, for speed - var $cell = $(this); - - // get current column index - var i = this.column; - // get current column sort order - this.order = this.count++ % 2; - // always sort on the locked order. - if(this.lockedOrder) this.order = this.lockedOrder; - - // user only whants to sort on one - - // column - if (!e[config.sortMultiSortKey]) { - // flush the sort list - config.sortList = []; - - if (config.sortForce != null) { - var a = config.sortForce; - for (var j = 0; j < a.length; j++) { - if (a[j][0] != i) { - config.sortList.push(a[j]); - } - } - } - // add column to sort list - config.sortList.push([i, this.order]); - // multi column sorting - } else { - // the user has clicked on an already sorted column - if (isValueInArray(i, config.sortList)) { - // reverse the sorting direction for all tables - for (var j = 0; j < config.sortList.length; j++) { - var s = config.sortList[j], - o = config.headerList[s[0]]; - if (s[0] == i) { - o.count = s[1]; - o.count++; - s[1] = o.count % 2; - } - } - } else { - // add column to sort list array - config.sortList.push([i, this.order]); - } - }; - setTimeout(function () { - // set css for headers - setHeadersCss($this[0], $headers, config.sortList, sortCSS); - appendToTable( - $this[0], multisort( - $this[0], config.sortList, cache) - ); - }, 1); - // stop normal event by returning false - return false; - } - // cancel selection - }).mousedown(function () { - if (config.cancelSelection) { - this.onselectstart = function () { - return false - }; - return false; - } - }); - - // apply easy methods that trigger binded events - // ZS: I added "change" as a trigger to make the cache be updated/rebuilt whenever the user changes a sample's value or standard error. - $this.bind("update sortEnd change propertychange keyup input paste", function () { - var me = this; - setTimeout(function () { - // rebuild parsers. - //me.config.parsers = buildParserCache( - //me, $headers); - // rebuild the cache map - cache = buildCache(me); - }, 1); - }).bind("updateCell", function (e, cell) { - var config = this.config; - // get position from the dom. - var pos = [(cell.parentNode.rowIndex - 1), cell.cellIndex]; - // update cache - cache.normalized[pos[0]][pos[1]] = config.parsers[pos[1]].format( - getElementText(config, cell), cell); - }).bind("sorton", function (e, list) { - $(this).trigger("sortStart"); - config.sortList = list; - // update and store the sortlist - var sortList = config.sortList; - // update header count index - updateHeaderSortCount(this, sortList); - // set css for headers - setHeadersCss(this, $headers, sortList, sortCSS); - // sort the table and append it to the dom - appendToTable(this, multisort(this, sortList, cache)); - }).bind("appendCache", function () { - appendToTable(this, cache); - }).bind("applyWidgetId", function (e, id) { - getWidgetById(id).format(this); - }).bind("applyWidgets", function () { - // apply widgets - applyWidget(this); - }); - if ($.metadata && ($(this).metadata() && $(this).metadata().sortlist)) { - config.sortList = $(this).metadata().sortlist; - } - // if user has supplied a sort list to constructor. - if (config.sortList.length > 0) { - $this.trigger("sorton", [config.sortList]); - } - // apply widgets - applyWidget(this); - }); - }; - this.addParser = function (parser) { - var l = parsers.length, - a = true; - for (var i = 0; i < l; i++) { - if (parsers[i].id.toLowerCase() == parser.id.toLowerCase()) { - a = false; - } - } - if (a) { - parsers.push(parser); - }; - }; - this.addWidget = function (widget) { - widgets.push(widget); - }; - this.formatFloat = function (s) { - var i = parseFloat(s); - return (isNaN(i)) ? 0 : i; - }; - this.formatInt = function (s) { - var i = parseInt(s); - return (isNaN(i)) ? 0 : i; - }; - this.isDigit = function (s, config) { - // replace all an wanted chars and match. - return /^[-+]?\d*$/.test($.trim(s.replace(/[,.']/g, ''))); - }; - this.clearTableBody = function (table) { - if ($.browser.msie) { - function empty() { - while (this.firstChild) - this.removeChild(this.firstChild); - } - empty.apply(table.tBodies[0]); - } else { - table.tBodies[0].innerHTML = ""; - } - }; - } - }); - - // extend plugin scope - $.fn.extend({ - tablesorter: $.tablesorter.construct - }); - - // make shortcut - var ts = $.tablesorter; - - // add default parsers - ts.addParser({ - id: "text", - is: function (s) { - return true; - }, format: function (s) { - return $.trim(s.toLocaleLowerCase()); - }, type: "text" - }); - - ts.addParser({ - id: "digit", - is: function (s, table) { - var c = table.config; - return $.tablesorter.isDigit(s, c); - }, format: function (s) { - return $.tablesorter.formatFloat(s); - }, type: "numeric" - }); - - ts.addParser({ - id: "currency", - is: function (s) { - return /^[£$€?.]/.test(s); - }, format: function (s) { - return $.tablesorter.formatFloat(s.replace(new RegExp(/[£$€]/g), "")); - }, type: "numeric" - }); - - ts.addParser({ - id: "ipAddress", - is: function (s) { - return /^\d{2,3}[\.]\d{2,3}[\.]\d{2,3}[\.]\d{2,3}$/.test(s); - }, format: function (s) { - var a = s.split("."), - r = "", - l = a.length; - for (var i = 0; i < l; i++) { - var item = a[i]; - if (item.length == 2) { - r += "0" + item; - } else { - r += item; - } - } - return $.tablesorter.formatFloat(r); - }, type: "numeric" - }); - - ts.addParser({ - id: "url", - is: function (s) { - return /^(https?|ftp|file):\/\/$/.test(s); - }, format: function (s) { - return jQuery.trim(s.replace(new RegExp(/(https?|ftp|file):\/\//), '')); - }, type: "text" - }); - - ts.addParser({ - id: "isoDate", - is: function (s) { - return /^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(s); - }, format: function (s) { - return $.tablesorter.formatFloat((s != "") ? new Date(s.replace( - new RegExp(/-/g), "/")).getTime() : "0"); - }, type: "numeric" - }); - - ts.addParser({ - id: "percent", - is: function (s) { - return /\%$/.test($.trim(s)); - }, format: function (s) { - return $.tablesorter.formatFloat(s.replace(new RegExp(/%/g), "")); - }, type: "numeric" - }); - - ts.addParser({ - id: "usLongDate", - is: function (s) { - return s.match(new RegExp(/^[A-Za-z]{3,10}\.? [0-9]{1,2}, ([0-9]{4}|'?[0-9]{2}) (([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(AM|PM)))$/)); - }, format: function (s) { - return $.tablesorter.formatFloat(new Date(s).getTime()); - }, type: "numeric" - }); - - ts.addParser({ - id: "shortDate", - is: function (s) { - return /\d{1,2}[\/\-]\d{1,2}[\/\-]\d{2,4}/.test(s); - }, format: function (s, table) { - var c = table.config; - s = s.replace(/\-/g, "/"); - if (c.dateFormat == "us") { - // reformat the string in ISO format - s = s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/, "$3/$1/$2"); - } else if (c.dateFormat == "uk") { - // reformat the string in ISO format - s = s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/, "$3/$2/$1"); - } else if (c.dateFormat == "dd/mm/yy" || c.dateFormat == "dd-mm-yy") { - s = s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{2})/, "$1/$2/$3"); - } - return $.tablesorter.formatFloat(new Date(s).getTime()); - }, type: "numeric" - }); - ts.addParser({ - id: "time", - is: function (s) { - return /^(([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(am|pm)))$/.test(s); - }, format: function (s) { - return $.tablesorter.formatFloat(new Date("2000/01/01 " + s).getTime()); - }, type: "numeric" - }); - ts.addParser({ - id: "metadata", - is: function (s) { - return false; - }, format: function (s, table, cell) { - var c = table.config, - p = (!c.parserMetadataName) ? 'sortValue' : c.parserMetadataName; - return $(cell).metadata()[p]; - }, type: "numeric" - }); - // add default widgets - ts.addWidget({ - id: "zebra", - format: function (table) { - if (table.config.debug) { - var time = new Date(); - } - var $tr, row = -1, - odd; - // loop through the visible rows - $("tr:visible", table.tBodies[0]).each(function (i) { - $tr = $(this); - // style children rows the same way the parent - // row was styled - if (!$tr.hasClass(table.config.cssChildRow)) row++; - odd = (row % 2 == 0); - $tr.removeClass( - table.config.widgetZebra.css[odd ? 0 : 1]).addClass( - table.config.widgetZebra.css[odd ? 1 : 0]) - }); - if (table.config.debug) { - $.tablesorter.benchmark("Applying Zebra widget", time); - } - } - }); -})(jQuery); \ No newline at end of file diff --git a/web/javascript/thickbox.js b/web/javascript/thickbox.js deleted file mode 100755 index 86bcf738..00000000 --- a/web/javascript/thickbox.js +++ /dev/null @@ -1,319 +0,0 @@ -/* - * Thickbox 3.1 - One Box To Rule Them All. - * By Cody Lindley (http://www.codylindley.com) - * Copyright (c) 2007 cody lindley - * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php -*/ - -var tb_pathToImage = "images/loadingAnimation.gif"; - -/*!!!!!!!!!!!!!!!!! edit below this line at your own risk !!!!!!!!!!!!!!!!!!!!!!!*/ - -//on page load call tb_init -$(document).ready(function(){ - tb_init('a.thickbox, area.thickbox, input.thickbox');//pass where to apply thickbox - imgLoader = new Image();// preload image - imgLoader.src = tb_pathToImage; -}); - -//add thickbox to href & area elements that have a class of .thickbox -function tb_init(domChunk){ - $(domChunk).click(function(){ - var t = this.title || this.name || null; - var a = this.href || this.alt; - var g = this.rel || false; - tb_show(t,a,g); - this.blur(); - return false; - }); -} - -function tb_show(caption, url, imageGroup) {//function called when the user clicks on a thickbox link - - try { - if (typeof document.body.style.maxHeight === "undefined") {//if IE 6 - $("body","html").css({height: "100%", width: "100%"}); - $("html").css("overflow","hidden"); - if (document.getElementById("TB_HideSelect") === null) {//iframe to hide select elements in ie6 - $("body").append("
    "); - $("#TB_overlay").click(tb_remove); - } - }else{//all others - if(document.getElementById("TB_overlay") === null){ - $("body").append("
    "); - $("#TB_overlay").click(tb_remove); - } - } - - if(tb_detectMacXFF()){ - $("#TB_overlay").addClass("TB_overlayMacFFBGHack");//use png overlay so hide flash - }else{ - $("#TB_overlay").addClass("TB_overlayBG");//use background and opacity - } - - if(caption===null){caption="";} - $("body").append("
    ");//add loader to the page - $('#TB_load').show();//show loader - - var baseURL; - if(url.indexOf("?")!==-1){ //ff there is a query string involved - baseURL = url.substr(0, url.indexOf("?")); - }else{ - baseURL = url; - } - - var urlString = /\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/; - var urlType = baseURL.toLowerCase().match(urlString); - - if(urlType == '.jpg' || urlType == '.jpeg' || urlType == '.png' || urlType == '.gif' || urlType == '.bmp'){//code to show images - - TB_PrevCaption = ""; - TB_PrevURL = ""; - TB_PrevHTML = ""; - TB_NextCaption = ""; - TB_NextURL = ""; - TB_NextHTML = ""; - TB_imageCount = ""; - TB_FoundURL = false; - if(imageGroup){ - TB_TempArray = $("a[@rel="+imageGroup+"]").get(); - for (TB_Counter = 0; ((TB_Counter < TB_TempArray.length) && (TB_NextHTML === "")); TB_Counter++) { - var urlTypeTemp = TB_TempArray[TB_Counter].href.toLowerCase().match(urlString); - if (!(TB_TempArray[TB_Counter].href == url)) { - if (TB_FoundURL) { - TB_NextCaption = TB_TempArray[TB_Counter].title; - TB_NextURL = TB_TempArray[TB_Counter].href; - TB_NextHTML = "  Next >"; - } else { - TB_PrevCaption = TB_TempArray[TB_Counter].title; - TB_PrevURL = TB_TempArray[TB_Counter].href; - TB_PrevHTML = "  < Prev"; - } - } else { - TB_FoundURL = true; - TB_imageCount = "Image " + (TB_Counter + 1) +" of "+ (TB_TempArray.length); - } - } - } - - imgPreloader = new Image(); - imgPreloader.onload = function(){ - imgPreloader.onload = null; - - // Resizing large images - orginal by Christian Montoya edited by me. - var pagesize = tb_getPageSize(); - var x = pagesize[0] - 150; - var y = pagesize[1] - 150; - var imageWidth = imgPreloader.width; - var imageHeight = imgPreloader.height; - if (imageWidth > x) { - imageHeight = imageHeight * (x / imageWidth); - imageWidth = x; - if (imageHeight > y) { - imageWidth = imageWidth * (y / imageHeight); - imageHeight = y; - } - } else if (imageHeight > y) { - imageWidth = imageWidth * (y / imageHeight); - imageHeight = y; - if (imageWidth > x) { - imageHeight = imageHeight * (x / imageWidth); - imageWidth = x; - } - } - // End Resizing - - TB_WIDTH = imageWidth + 30; - TB_HEIGHT = imageHeight + 60; - $("#TB_window").append(""+caption+"" + "
    "+caption+"
    " + TB_imageCount + TB_PrevHTML + TB_NextHTML + "
    close or Esc Key
    "); - - $("#TB_closeWindowButton").click(tb_remove); - - if (!(TB_PrevHTML === "")) { - function goPrev(){ - if($(document).unbind("click",goPrev)){$(document).unbind("click",goPrev);} - $("#TB_window").remove(); - $("body").append("
    "); - tb_show(TB_PrevCaption, TB_PrevURL, imageGroup); - return false; - } - $("#TB_prev").click(goPrev); - } - - if (!(TB_NextHTML === "")) { - function goNext(){ - $("#TB_window").remove(); - $("body").append("
    "); - tb_show(TB_NextCaption, TB_NextURL, imageGroup); - return false; - } - $("#TB_next").click(goNext); - - } - - document.onkeydown = function(e){ - if (e == null) { // ie - keycode = event.keyCode; - } else { // mozilla - keycode = e.which; - } - if(keycode == 27){ // close - tb_remove(); - } else if(keycode == 190){ // display previous image - if(!(TB_NextHTML == "")){ - document.onkeydown = ""; - goNext(); - } - } else if(keycode == 188){ // display next image - if(!(TB_PrevHTML == "")){ - document.onkeydown = ""; - goPrev(); - } - } - }; - - tb_position(); - $("#TB_load").remove(); - $("#TB_ImageOff").click(tb_remove); - $("#TB_window").css({display:"block"}); //for safari using css instead of show - }; - - imgPreloader.src = url; - }else{//code to show html - - var queryString = url.replace(/^[^\?]+\??/,''); - var params = tb_parseQuery( queryString ); - - TB_WIDTH = (params['width']*1) + 30 || 630; //defaults to 630 if no paramaters were added to URL - TB_HEIGHT = (params['height']*1) + 40 || 440; //defaults to 440 if no paramaters were added to URL - ajaxContentW = TB_WIDTH - 30; - ajaxContentH = TB_HEIGHT - 45; - - if(url.indexOf('TB_iframe') != -1){// either iframe or ajax window - urlNoQuery = url.split('TB_'); - $("#TB_iframeContent").remove(); - if(params['modal'] != "true"){//iframe no modal - $("#TB_window").append("
    "+caption+"
    close or Esc Key
    "); - }else{//iframe modal - $("#TB_overlay").unbind(); - $("#TB_window").append(""); - } - }else{// not an iframe, ajax - if($("#TB_window").css("display") != "block"){ - if(params['modal'] != "true"){//ajax no modal - $("#TB_window").append("
    "+caption+"
    close or Esc Key
    "); - }else{//ajax modal - $("#TB_overlay").unbind(); - $("#TB_window").append("
    "); - } - }else{//this means the window is already up, we are just loading new content via ajax - $("#TB_ajaxContent")[0].style.width = ajaxContentW +"px"; - $("#TB_ajaxContent")[0].style.height = ajaxContentH +"px"; - $("#TB_ajaxContent")[0].scrollTop = 0; - $("#TB_ajaxWindowTitle").html(caption); - } - } - - $("#TB_closeWindowButton").click(tb_remove); - - if(url.indexOf('TB_inline') != -1){ - $("#TB_ajaxContent").append($('#' + params['inlineId']).children()); - $("#TB_window").unload(function () { - $('#' + params['inlineId']).append( $("#TB_ajaxContent").children() ); // move elements back when you're finished - }); - tb_position(); - $("#TB_load").remove(); - $("#TB_window").css({display:"block"}); - }else if(url.indexOf('TB_iframe') != -1){ - tb_position(); - if($.browser.safari){//safari needs help because it will not fire iframe onload - $("#TB_load").remove(); - $("#TB_window").css({display:"block"}); - } - }else{ - $("#TB_ajaxContent").load(url += "&random=" + (new Date().getTime()),function(){//to do a post change this load method - tb_position(); - $("#TB_load").remove(); - tb_init("#TB_ajaxContent a.thickbox"); - $("#TB_window").css({display:"block"}); - }); - } - - } - - if(!params['modal']){ - document.onkeyup = function(e){ - if (e == null) { // ie - keycode = event.keyCode; - } else { // mozilla - keycode = e.which; - } - if(keycode == 27){ // close - tb_remove(); - } - }; - } - - } catch(e) { - //nothing here - } -} - -//helper functions below -function tb_showIframe(){ - $("#TB_load").remove(); - $("#TB_window").css({display:"block"}); -} - -function tb_remove() { - $("#TB_imageOff").unbind("click"); - $("#TB_closeWindowButton").unbind("click"); - $("#TB_window").fadeOut("fast",function(){$('#TB_window,#TB_overlay,#TB_HideSelect').trigger("unload").unbind().remove();}); - $("#TB_load").remove(); - if (typeof document.body.style.maxHeight == "undefined") {//if IE 6 - $("body","html").css({height: "auto", width: "auto"}); - $("html").css("overflow",""); - } - document.onkeydown = ""; - document.onkeyup = ""; - return false; -} - -function tb_position() { -$("#TB_window").css({marginLeft: '-' + parseInt((TB_WIDTH / 2),10) + 'px', width: TB_WIDTH + 'px'}); - if ( !(jQuery.browser.msie && jQuery.browser.version < 7)) { // take away IE6 - $("#TB_window").css({marginTop: '-' + parseInt((TB_HEIGHT / 2),10) + 'px'}); - } -} - -function tb_parseQuery ( query ) { - var Params = {}; - if ( ! query ) {return Params;}// return empty object - var Pairs = query.split(/[;&]/); - for ( var i = 0; i < Pairs.length; i++ ) { - var KeyVal = Pairs[i].split('='); - if ( ! KeyVal || KeyVal.length != 2 ) {continue;} - var key = unescape( KeyVal[0] ); - var val = unescape( KeyVal[1] ); - val = val.replace(/\+/g, ' '); - Params[key] = val; - } - return Params; -} - -function tb_getPageSize(){ - var de = document.documentElement; - var w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth; - var h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight; - arrayPageSize = [w,h]; - return arrayPageSize; -} - -function tb_detectMacXFF() { - var userAgent = navigator.userAgent.toLowerCase(); - if (userAgent.indexOf('mac') != -1 && userAgent.indexOf('firefox')!=-1) { - return true; - } -} - - diff --git a/web/javascript/webqtl.js b/web/javascript/webqtl.js deleted file mode 100755 index 536e7d26..00000000 --- a/web/javascript/webqtl.js +++ /dev/null @@ -1,1350 +0,0 @@ -// var NS4 = (document.layers) ? 1 : 0; -// var IE4 = (document.all) ? 1 : 0; - -function openNewWin(myURL){ - windowName = 'formTarget' + (new Date().getTime()); - if (openNewWin.arguments.length == 2){ - newWindow = open(myURL,windowName,openNewWin.arguments[1]); - } - else{ - newWindow = open(myURL,windowName,"menubar=1,toolbar=1,location=1,resizable=1,status=1,scrollbars=1,directories=1,width=900"); - } -} - -/*XZ, 9/2/2009*/ -/*submit form to new window*/ -function submitToNewWindow(thisForm){ - var windowName = genNewWin(); - newWindow = open("",windowName,"menubar=1,toolbar=1,location=1,resizable=1,status=1,scrollbars=1,directories=1,width=900"); - newWindow.focus(); - thisForm.target = windowName; - thisForm.submit(); -} - -/*Obsolete and To be mofdified*/ -/* -function makeTree(thisForm, nnn){ - var trait_list2 = new Array(); - var correlation2 = new Array(); - var symbol_list2 = new Array(); - var length = document.showDatabase.searchResult.length; - var j = 0 - for(var i = 0; i < length; i++) - { - if (document.showDatabase.searchResult[i].checked == true){ - trait_list2 = trait_list2.concat(trait_list[i]); - correlation2 = correlation2.concat(correlation[i]); - symbol_list2 = symbol_list2.concat(symbol_list[i]); - j += 1; - } - } - - var windowName = 'formTarget' + (new Date().getTime()); - var newWindow = open("", windowName,"width=900,menubar=0,toolbar=1,resizable=1,status=1,scrollbars=1"); - var html = ""; - if (j > 0) - { - var waithtml1 ="
    Your list of "+j+" transcripts is being exported to the Gene Ontology Tree Machine for analysis. This window will soon be replaced with the main GOTM results.
    "; - } - else - { - var waithtml1 ="
    Your should select at least one transcript to export to the Gene Ontology Tree Machine for analysis.
    "; - } - html += waithtml1; - //newWindow.document.write(html); - //newWindow.document.close(); - newWindow.focus(); - if (j > 0) - { - thisForm.trait_list.value = trait_list2.join(','); - thisForm.correlation.value = correlation2.join(','); - thisForm.symbol_list.value = symbol_list2.join(','); - thisForm.target = windowName; - thisForm.submit(); - } -} -*/ - -function showCorrelationPlot(ProbeSetID,CellID){ - windowName = 'formTarget' + (new Date().getTime()); - newWindow = open("",windowName,"menubar=1,toolbar=1,location=1,resizable=1,status=1,scrollbars=1,directories=1,width=900"); - document.showDatabase.target = windowName; - document.showDatabase.FormID.value = "showCorrelationPlot"; - document.showDatabase.ProbeSetID.value = ProbeSetID; - document.showDatabase.CellID.value = CellID; - document.showDatabase.submit(); -} - - -function showPairPlot(ChrA,ChrB){ - windowName = 'formTarget' + (new Date().getTime()); - newWindow = open("",windowName,"menubar=1,toolbar=1,location=1,resizable=1,status=1,scrollbars=1,directories=1,width=900"); - document.showPairPlot.target = windowName; - document.showPairPlot.Chr_A.value = ChrA; - document.showPairPlot.Chr_B.value = ChrB; - document.showPairPlot.submit(); -} - -function showCorrelationPlot2(db, ProbeSetID, CellID, db2, ProbeSetID2, CellID2, rank){ - windowName = 'formTarget' + (new Date().getTime()); - newWindow = open("",windowName,"menubar=1,toolbar=1,location=1,resizable=1,status=1,scrollbars=1,directories=1,width=900"); - document.showDatabase.target = windowName; - document.showDatabase.FormID.value = "showCorrelationPlot"; - document.showDatabase.database.value = db; - document.showDatabase.ProbeSetID.value = ProbeSetID; - document.showDatabase.CellID.value = CellID; - document.showDatabase.database2.value = db2; - document.showDatabase.ProbeSetID2.value = ProbeSetID2; - document.showDatabase.CellID2.value = CellID2; - document.showDatabase.rankOrder.value = rank; - - //This is to make sure the type of correlation is Sample Correlation - if(typeof(document.showDatabase.X_geneSymbol) !== 'undefined'){ - document.showDatabase.X_geneSymbol.value = null; - document.showDatabase.Y_geneSymbol.value = null; - } - - document.showDatabase.submit(); -} - - -function showProbeInfo(Database,ProbeSetID,CellID){ - windowName = 'formTarget' + (new Date().getTime()); - newWindow = open("",windowName,"menubar=1,toolbar=1,location=1,resizable=1,status=1,scrollbars=1,directories=1,width=900"); - document.showDatabase.target = windowName; - document.showDatabase.FormID.value = "showProbeInfo"; - document.showDatabase.database.value = Database; - document.showDatabase.ProbeSetID.value = ProbeSetID; - document.showDatabase.CellID.value = CellID; - document.showDatabase.submit(); -} - - -function showDatabase(ProbeSetID,CellID){ - windowName = 'formTarget' + (new Date().getTime()); - newWindow = open("",windowName,"menubar=1,toolbar=1,location=1,resizable=1,status=1,scrollbars=1,directories=1,width=900"); - document.showDatabase.target = windowName; - document.showDatabase.FormID.value = "showDatabase"; - document.showDatabase.ProbeSetID.value = ProbeSetID; - document.showDatabase.CellID.value = CellID; - document.showDatabase.submit(); -} - - - -function showDatabase2(Database,ProbeSetID,CellID){ - windowName = 'formTarget' + (new Date().getTime()); - newWindow = open("",windowName,"menubar=1,toolbar=1,location=1,resizable=1,status=1,scrollbars=1,directories=1,width=900"); - document.showDatabase.target = windowName; - document.showDatabase.FormID.value = "showDatabase"; - document.showDatabase.database.value = Database; - document.showDatabase.ProbeSetID.value = ProbeSetID; - document.showDatabase.CellID.value = CellID; - document.showDatabase.submit(); -} - - -function showDatabase3(formName, Database,ProbeSetID,CellID){ - windowName = 'formTarget' + (new Date().getTime()); - newWindow = open("",windowName,"menubar=1,toolbar=1,location=1,resizable=1,status=1,scrollbars=1,directories=1,width=900"); - document[formName].target = windowName; - document[formName].FormID.value = "showDatabase"; - document[formName].database.value = Database; - document[formName].ProbeSetID.value = ProbeSetID; - document[formName].CellID.value = CellID; - console.log("formName:", formName) - console.log("document[formName]:", document[formName]) - console.log("submit turned off for debugging") - console.log("showDatabase3 is deprecated for the flask version of this site") - //document[formName].submit(); -} - - -function showTextResult(){ - windowName = 'formTarget' + (new Date().getTime()); - newWindow = open("",windowName,"menubar=1,toolbar=1,location=1,resizable=1,status=1,scrollbars=1,directories=1,width=900"); - document.SEARCHFORM.target = windowName; - document.SEARCHFORM.submit(); - newWindow.focus() -} - -/*New form name independent function*/ -function getForm(fmName){ - var match = 0; - for (i=0; i< document.forms.length;i++){ - if (document.forms[i].name == fmName){ - thisForm = document.forms[i]; - match = 1; - return thisForm; - } - } - if (match == 0) - return null; -} - -function genNewWin(){ - windowName = 'formTarget' + (new Date().getTime()); - newWindow = open("",windowName, "menubar=1,toolbar=1,location=1,resizable=1,status=1,scrollbars=1,directories=1,width=900"); - return windowName; -} - -function showTrait(fmName){ - var thisForm = getForm(fmName); - if (thisForm == null || showTrait.arguments.length < 2) - return; - - windowName = genNewWin(); - thisForm.target = windowName; - - thisForm.FormID.value = "showDatabase"; - thisForm.ProbeSetID.value = showTrait.arguments[1]; - if (showTrait.arguments.length > 2) - thisForm.CellID.value = showTrait.arguments[2]; - else - thisForm.CellID.value = ""; - thisForm.submit(); -} - -function showCateGraph(fmName){ - var thisForm = getForm(fmName); - if (thisForm == null || showCateGraph.arguments.length < 2) - return; - - windowName = genNewWin(); - thisForm.target = windowName; - - thisForm.FormID.value = "showCategoryGraph"; - thisForm.interval1.value = showCateGraph.arguments[1]; - thisForm.interval2.value = showCateGraph.arguments[2]; - thisForm.submit(); -} - -function showCorrPlot(fmName){ - var thisForm = getForm(fmName); - if (thisForm == null || showCorrPlot.arguments.length < 2) - return; - - windowName = genNewWin(); - thisForm.target = windowName; - - thisForm.FormID.value = "showCorrelationPlot"; - thisForm.ProbeSetID.value = showCorrPlot.arguments[1]; - if (showCorrPlot.arguments.length > 2) - thisForm.CellID.value = showCorrPlot.arguments[2]; - else - thisForm.CellID.value = ""; - - thisForm.X_geneSymbol.value = null; - thisForm.Y_geneSymbol.value = null; - - thisForm.submit(); - -} - - -function showCorrPlotThird(fmName){ - var thisForm = getForm(fmName); - if (thisForm == null || showCorrPlotThird.arguments.length < 3) - return; - - windowName = genNewWin(); - thisForm.target = windowName; - - var olddb = thisForm.database.value; - - thisForm.FormID.value = "showCorrelationPlot"; - thisForm.database.value = showCorrPlotThird.arguments[1]; - thisForm.ProbeSetID.value = showCorrPlotThird.arguments[2]; - if (showCorrPlotThird.arguments.length > 3) - thisForm.CellID.value = showCorrPlotThird.arguments[3]; - else - thisForm.CellID.value = ""; - thisForm.submit(); - thisForm.database.value = olddb; -} - -/* -function ODE(thisForm, script){ - var trait_list_all = new Array(); - var correlation_all = new Array(); - var llid_list_all = new Array(); - var trait_list2 = new Array(); - var correlation2 = new Array(); - var llid_list2 = new Array(); - var length = thisForm.searchResult.length; - var j = 0; - for(var i = 0; i < length; i++){ - var p = corrArray[thisForm.searchResult[i].value]; - if (thisForm.searchResult[i].checked == true){ - trait_list2 = trait_list2.concat(p.name); - correlation2 = correlation2.concat(p.corr); - llid_list2 = llid_list2.concat(p.geneid); - j += 1; - } - trait_list_all = trait_list_all.concat(p.name); - correlation_all = correlation_all.concat(p.corr); - llid_list_all = llid_list_all.concat(p.geneid); - } - var windowName = 'formTarget' + (new Date().getTime()); - var newWindow = open("", windowName, "width=900,menubar=0,toolbar=1,resizable=1,status=1,scrollbars=1"); - var html = ""; - if (j == 0){ - j = length; - trait_list2 = trait_list_all; - correlation2 = correlation_all; - llid_list2 = llid_list_all; - } - - var waithtml1 ="
    Your list of "+j+" transcripts is being exported to the ODE for analysis. This window will soon be replaced with the results.
    "; - - html += waithtml1; - newWindow.document.write(html); - newWindow.document.close(); - newWindow.focus(); - if (j > 0){ - thisForm.id_list.value = trait_list2.join(','); - thisForm.correlation.value = correlation2.join(','); - thisForm.id_value.value = thisForm.correlation.value; - thisForm.llid_list.value = llid_list2.join(','); - - // ODE - - thisForm.idtype.value = thisForm.id_type.value; - thisForm.species.value = thisForm.org.value; - thisForm.list.value = thisForm.id_list.value; - thisForm.client.value = "genenetwork"; - - thisForm.target = windowName; - var oldaction = thisForm.action; - thisForm.action = script; - thisForm.submit(); - thisForm.action = oldaction; - } -} -*/ -// 02/12/2009 -// Lei Yan - -/*scripts in the Dataediting form*/ - -function dataEditingFunc(thisForm,submitIdValue){ - - windowName = 'formTarget' + (new Date().getTime()); - - if (thisForm.FormID.value!='secondRegression'){ - thisForm.FormID.value = 'dataEditing'; - } - - if ((submitIdValue == "markerRegression")||(submitIdValue == "compositeRegression")){ - thisForm.topten.value = ""; - } - - else if (submitIdValue == "addRecord"){ - windowName = thisForm.RISet.value; - var name = thisForm.identification.value; - if (name != ""){ - } - else{ - name = "Unnamed Trait"; - } - Namebox = prompt("Name of your trait",name); - thisForm.identification.value = Namebox; - } - - else{ - } - - newWindow = open("",windowName,"menubar=1,toolbar=1,location=1,resizable=1,status=1,scrollbars=1,directories=1,width=900"); - thisForm.target = windowName; - newWindow.focus(); - thisForm.submitID.value = submitIdValue; - thisForm.submit(); -} - -/*searchForm etc.*/ -function databaseFunc(thisForm,formIdValue){ - if(formIdValue=="GOTree" && typeof(corrArray)!='undefined' && corrArray!=null){ - makeListCorrelation(thisForm); - } - - windowName = 'formTarget' + (new Date().getTime()); - newWindow = open("",windowName,"menubar=1,toolbar=1,location=1,resizable=1,status=1,scrollbars=1,directories=1,width=900"); - if (databaseFunc.arguments.length > 2){ - newWindow.document.write("

    " + databaseFunc.arguments[2]+ "

    "); - newWindow.document.close(); - } - newWindow.focus(); - thisForm.target = windowName; - thisForm.FormID.value = formIdValue; - thisForm.submit(); -} - -/* make a list of correlation values for GOTree */ -function makeListCorrelation(thisForm){ - var correlation = new Array(); - for(var i = 0; i < thisForm.searchResult.length; i++){ - if (thisForm.searchResult[i].checked == true){ - var p = corrArray[thisForm.searchResult[i].value]; - correlation = correlation.concat(p.corr); - } - } - thisForm.correlation.value = correlation.join(','); -} - -/*add/remove selection*/ - -function addRmvSelection(windowName, thisForm, addORrmv){ - var newWindow = window.open("",windowName,"menubar=1,toolbar=1,location=1,resizable=1,status=1,scrollbars=1,directories=1,width=900"); - thisForm.target = windowName; - thisForm.FormID.value = addORrmv; - thisForm.submit(); - newWindow.focus(); -} - -function batchSelection(thisForm){ - var select = thisForm.RISet; - var windowName = select.options[select.selectedIndex].value; - var newWindow = open("",windowName,"menubar=1,toolbar=1,location=1,resizable=1,status=1,scrollbars=1,directories=1,width=900"); - newWindow.focus(); - thisForm.target = windowName; - thisForm.submit(); -} - -/*opener involved*/ - -function showTop10(formName, submitIdValue){ - var match = 0; - for (i=0; i< window.opener.document.forms.length;i++){ - if (window.opener.document.forms[i].name == formName){ - thisForm = window.opener.document.forms[i]; - match = 1; - break; - } - } - if (match == 0) - return; - - thisForm.target = self.name; - if ((submitIdValue == "markerRegression")||(submitIdValue == "compositeRegression")){ - thisForm.topten.value = "topten"; - } - - thisForm.submitID.value = submitIdValue; - thisForm.submit(); -} - - -function showIndividualChromosome(formName, submitIdValue, ii){ - var match = 0; - for (i=0; i< window.opener.document.forms.length;i++){ - if (window.opener.document.forms[i].name == formName){ - thisForm = window.opener.document.forms[i]; - match = 1; - break; - } - } - if (match == 0) - return; - - windowName = 'formTarget' + (new Date().getTime()); - newWindow = open("",windowName,"menubar=1,toolbar=1,location=1,resizable=1,status=1,scrollbars=1,directories=1,width=900"); - newWindow.focus(); - thisForm.target = windowName; - - if (submitIdValue == "showIntMap"){ - thisForm.chromosomes.value = ii; - } - else{ - thisForm.chromosomes.selectedIndex = ii; - } - - thisForm.FormID.value = submitIdValue; - thisForm.submit(); - -} - -/*end of opener*/ - -function showSample(thisForm){ - thisForm.submitID.value = "sample"; - thisForm.submit(); -} - -function showNext(thisForm){ - thisForm.submitID.value = "next"; - thisForm.submit(); -} - - -function changeStatusSubmit(thisForm, status) { - thisForm.status.value = status; - thisForm.submit(); -} - -function editHTML(thisForm, execCommand){ - if (execCommand == "preview"){ - windowName = 'formTarget' + (new Date().getTime()); - newWindow = open("",windowName,"menubar=1,toolbar=1,location=1,resizable=1,status=1,scrollbars=1,directories=1,width=900"); - newWindow.focus(); - thisForm.target = windowName; - thisForm.preview.value = "newWindow"; - thisForm.submit(); - } - else if (execCommand == "submit"){ - //thisForm.target = window; - thisForm.preview.value = ""; - thisForm.submit(); - } - else{ - } -} - -function dataWindow(form){ - var SaveAs = (document.execCommand) ? 1 : 0; - newWindow = open("", "thankYouWin","width=600,menubar=1,toolbar=1,height=300,resizable=0,status=1,scrollbars=1"); - var html = ""; - for (var i=0; i < form.length; i++) - { - if (form.elements[i].type == "text") - { - if (form.elements[i].value=="") - html +="x "; - else - html += form.elements[i].value+" "; - } - } - newWindow.document.open(); - newWindow.document.write(html); - newWindow.document.close(); - newWindow.focus(); - - if (!SaveAs) - {alert("Feature is not avaiable in current type of browser,You \nneed to manually save the content into a text format \nfile, The window will be automatically closed in 20 \nseconds!"); - setTimeout("newWindow.close()", 20000);} - else - { - if (newWindow.document.execCommand('SaveAs',false,'.txt')) - {newWindow.close();} - else{ - alert("Either you cancelled the SaveAs Dialog, or this feature \nis not avaiable in current type of browser, You \ncan manually save the content into a text format file."); - setTimeout("newWindow.close()", 20000); - } - } -} - - -function xchange() { - var select = document.crossChoice.RISet; - var value = select.options[select.selectedIndex].value; - - if (value !="BDAI") return; - document.crossChoice.variance.checked = false; -} - -/*display Info Page and Data Set buttom Added by A. Centeno*/ - -function datasetinfo(){ - var windowName = 'dataset_info' + (new Date().getTime()); - var select = document.SEARCHFORM.database; - var database = select.options[select.selectedIndex].value; - var page = '/webqtl/main.py?FormID=sharinginfo&InfoPageName=' + database; - newWindow = open(page,windowName,"menubar=1,toolbar=1,location=1,resizable=1,status=1,scrollbars=1,directories=1,width=900"); - newWindow.focus(); -} - -function databaseinfo(){ - var windowName = 'database_info' + (new Date().getTime()); - var select = document.SEARCHFORM.database; - var database = select.options[select.selectedIndex].value; - var page = '/webqtl/main.py?FormID=sharinginfo&InfoPageName=' + database; - newWindow = open(page,windowName,"menubar=1,toolbar=1,location=1,resizable=1,status=1,scrollbars=1,directories=1,width=900"); - newWindow.focus(); -} - -function crossinfo(){ - var windowName = 'cross_info'; - var select0 = document.SEARCHFORM.species; - var select1 = document.SEARCHFORM.cross; - var specie = select0.options[select0.selectedIndex].value; - var database = select1.options[select1.selectedIndex].value; - var page = '/' + specie + 'Cross.html#' + database; - newWindow = open(page,windowName,"menubar=1,toolbar=1,location=1,resizable=1,status=1,scrollbars=1,directories=1,width=900"); - newWindow.focus(); -} - -function crossinfo2(){ - var windowName = 'cross_info'; - var select = document.crossChoice.RISet; - var database = select.options[select.selectedIndex].value; - var page = '/cross.html#' + database; - newWindow = open(page,windowName,"menubar=1,toolbar=1,location=1,resizable=1,status=1,scrollbars=1,directories=1,width=900"); - newWindow.focus() -} - - -function checkWidth(){ - var width = document.getElementsByName('plotSize')[0].value - - if (width < 600) { - alert("Plot size is too small - setting size to 600") - document.getElementsByName('plotSize')[0].value = 600 - } -} - -function changeLineColor(){ - var lineColor = document.getElementsByName('lineColorSel')[0].value - - document.getElementsByName('lineColor')[0].value = lineColor -} - -function changeLineSize(){ - var lineSize = document.getElementsByName('lineSizeSel')[0].value - - document.getElementsByName('lineSize')[0].value = lineSize -} - -function changeIdColor(){ - var idColor = document.getElementsByName('idColorSel')[0].value - - document.getElementsByName('idColor')[0].value = idColor -} - -function changeIdFont(){ - var idFont = document.getElementsByName('idFontSel')[0].value - - document.getElementsByName('idFont')[0].value = idFont -} - -function changeIdSize(){ - var idSize = document.getElementsByName('idSizeSel')[0].value - - document.getElementsByName('idSize')[0].value = idSize -} - -function changeSymbolColor(){ - var symbolColor = document.getElementsByName('colorSel')[0].value - - document.getElementsByName('symbolColor')[0].value = symbolColor -} - -function changeSymbol(){ - var symbol = document.getElementsByName('symbolSel')[0].value - - document.getElementsByName('symbol')[0].value = symbol -} - -function changeFilled(){ - var filled = document.getElementsByName('fillSel')[0].value - - document.getElementsByName('filled')[0].value = filled -} - -function changeSize(){ - var symbolSize = document.getElementsByName('sizeSel')[0].value - - document.getElementsByName('symbolSize')[0].value = symbolSize -} - - -function checkAll(thisForm){ - var length = thisForm.searchResult.length; - for(var i = 0; i < length; i++) - { - thisForm.searchResult[i].checked = true; - highlight(thisForm.searchResult[i]); - } -} - -function checkNone(thisForm){ - var length = thisForm.searchResult.length; - for(var i = 0; i < length; i++) - { - thisForm.searchResult[i].checked = false; - highlight(thisForm.searchResult[i]); - } -} - -function checkInvert(thisForm){ - var length = thisForm.searchResult.length; - for(var i = 0; i < length; i++) - { - thisForm.searchResult[i].checked = !(thisForm.searchResult[i].checked); - highlight(thisForm.searchResult[i]); - } -} - -/*Not used anymore*/ -function checkTraits2(thisForm){ - var length = thisForm.searchResult.length; - var category = thisForm.selectmenu.value; - for(var i = 0; i < length; i++) - { - if (category == 'gt0.8') - { - if (correlation[i] > 0.8) - {thisForm.searchResult[i].checked = true;} - else - {thisForm.searchResult[i].checked = false;} - } - else if (category == 'gt0.4') - { - if (correlation[i] > 0.4) - {thisForm.searchResult[i].checked = true;} - else - {thisForm.searchResult[i].checked = false;} - } - else if (category == 'gt0.0') - { - if (correlation[i] > 0.0) - {thisForm.searchResult[i].checked = true;} - else - {thisForm.searchResult[i].checked = false;} - } - else if (category == 'lt0.0') - { - if (correlation[i] < 0.0) - {thisForm.searchResult[i].checked = true;} - else - {thisForm.searchResult[i].checked = false;} - } - else if (category == 'lt-0.4') - { - if (correlation[i] < -0.4) - {thisForm.searchResult[i].checked = true;} - else - {thisForm.searchResult[i].checked = false;} - } - else if (category == 'lt-0.8') - { - if (correlation[i] < -0.8) - {thisForm.searchResult[i].checked = true;} - else - {thisForm.searchResult[i].checked = false;} - } - else - {} - } -} - - -function checkNumeric(field,limit,resetvalue,compares,fdname) - { - pattern = /^-?[0-9]*\.?[0-9]*$/; - if(pattern.test(field.value)==false) - { - alert("Not numeric in " + fdname); - field.value = resetvalue; - } - else - { - if (compares == 'gthan') { - if(field.value > limit) - { - alert("Out of range in " + fdname); - field.value = resetvalue; - }} - else { - if(field.value < limit) - { - alert("Out of range in " + fdname); - field.value = resetvalue; - }} - } - } - -function checkTraits(thisForm){ - var length = thisForm.searchResult.length; - var andor = thisForm.selectandor.value; - var gthan = parseFloat(thisForm.selectgt.value); - var lthan = parseFloat(thisForm.selectlt.value); - //alert(length + ' / ' + andor + ' / ' + gthan + ' / ' + lthan); - for(var i = 0; i < length; i++) - { - var p = corrArray[thisForm.searchResult[i].value]; - if (andor == 'and') - { - if ((p.corr > gthan) && ( p.corr < lthan)) - {thisForm.searchResult[i].checked = true;} - else - {thisForm.searchResult[i].checked = false;} - } - else if (andor == 'or') - { - if ((p.corr > gthan) || ( p.corr < lthan)) - {thisForm.searchResult[i].checked = true;} - else - {thisForm.searchResult[i].checked = false;} - } - else - {} - highlight(thisForm.searchResult[i]); - } - - -} - - -function checkPM(thisForm){ - var length = thisForm.searchResult.length; - for(var i = 0; i < length; i++) - { - curStr = thisForm.searchResult[i].value; - //alert(curStr.charAt(curStr.length - 1)); - if ((curStr.charAt(curStr.length - 1) % 2) == 1) - {thisForm.searchResult[i].checked = true;} - else - {thisForm.searchResult[i].checked = false;} - highlight(thisForm.searchResult[i]); - } -} -function checkMM(thisForm){ - var length = thisForm.searchResult.length; - for(var i = 0; i < length; i++) - { - curStr = thisForm.searchResult[i].value; - if ((curStr.charAt(curStr.length - 1) % 2) == 0) - {thisForm.searchResult[i].checked = true;} - else - {thisForm.searchResult[i].checked = false;} - highlight(thisForm.searchResult[i]); - } -} - - -function directPermuAlert(thisForm){ - if (thisForm.directPermuCheckbox.checked){ - alert("Interaction permutation will take long time to compute.\n Check this box only when necessary."); - } -} - -function cliqueDatabase(pid){ - var windowName = 'clique'; - var newWindow = open("", windowName,"width=900,menubar=0,toolbar=1,resizable=1,status=1,scrollbars=1"); - var html = '
    ProbsetId
    p-value range: between and
    '; - newWindow.document.write(html); - newWindow.document.close(); - newWindow.focus(); -} - -function getCookie(NameOfCookie){ - if (document.cookie.length > 0){ - begin = document.cookie.indexOf(NameOfCookie+"="); - if (begin != -1){ - begin += NameOfCookie.length+1; - end = document.cookie.indexOf(";", begin); - if (end == -1) end = document.cookie.length; - return unescape(document.cookie.substring(begin, end)); - } - } - return null; -} - -function setCookie(NameOfCookie, value, expiredays){ - var ExpireDate = new Date (); - ExpireDate.setTime(ExpireDate.getTime() + (expiredays * 24 * 3600 * 1000)); - document.cookie = NameOfCookie + "=" + escape(value) + ((expiredays == null) ? "" : "; expires=" + ExpireDate.toGMTString()) + "; path=/"; -} - - -function delCookie (NameOfCookie){ - if (getCookie(NameOfCookie)){ - document.cookie = NameOfCookie + "=" + "; expires=Thu, 01-Jan-70 00:00:01 GMT"; - } -} - - -function highlight(chkbox){ - var tr = document.getElementById(chkbox.value); - if (tr){ - if (chkbox.checked == true) - tr.bgColor='#FFEE99'; - else - tr.bgColor='#eeeeee'; - } -} - -/* refresh function option when domain options change */ -function snpbrowser_function_refresh() { - var idx = document.newSNPPadding.domain.selectedIndex; - if (idx != 1) { - document.newSNPPadding.exonfunction.options[0].selected=true; - for (var i=1; i 1) { - alert("You selected multiple primary traits. Please just select one primary trait!"); - } - else if (controlCount < 1) { - alert("You must select at least one control trait!"); - } - else if (controlCount > 3) { - alert("You selected more than three control traits. Please select no more than three control trait!"); - } - else if (targetCount < 1 && type == 0) { - alert("You must select at least one target trait!"); - } - else { - thisForm.primaryTrait.value = primaryString; - thisForm.controlTraits.value = controlString; - thisForm.targetTraits.value = targetString; - - if (type == 0){ - if (method == 1) { - thisForm.pcMethod.value = "pearson"; - } - else { - thisForm.pcMethod.value = "spearman"; - } - - databaseFunc(thisForm,'calPartialCorrTrait'); - } - if (type == 1){ - databaseFunc(thisForm,'calPartialCorrDB'); - } - - } - -} - -/* -used by IntervalMappingPage.py -*/ -function changeView(i, Chr_Mb_list){ - var oldwidth= document.changeViewForm.graphWidth.value; - var oldselect= document.changeViewForm.chromosomes.selectedIndex; - var oldstart= document.changeViewForm.startMb.value; - var oldend= document.changeViewForm.startMb.value; - windowName = 'formTarget' + (new Date().getTime()); - newWindow = open('',windowName,'menubar=1,toolbar=1,location=1,resizable=1,status=1,scrollbars=1,directories=1,width=900'); - document.changeViewForm.target = windowName; - document.changeViewForm.chromosomes.selectedIndex = i+1; - document.changeViewForm.startMb.value = '0.000000'; - document.changeViewForm.endMb.value = Chr_Mb_list[i]; - document.changeViewForm.graphWidth.value = 1280; - document.changeViewForm.submit(); - document.changeViewForm.graphWidth.value = oldwidth; - document.changeViewForm.chromosomes.selectedIndex = oldselect; - document.changeViewForm.startMb.value = oldstart; - document.changeViewForm.endMb.value = oldend; - newWindow.focus(); -} - -/* -used by IntervalMappingPage.py -*/ -function chrLength(a, b, c, Chr_Mb_list) { - if (b=='physic' && a>-1) { - c.startMb.value = '0.000000'; - c.endMb.value = Chr_Mb_list[a]; - } else { - c.startMb.value = ''; - c.endMb.value = ''; - } - if (a>-1) c.graphWidth.value = 1280; - else c.graphWidth.value = 1600; -} - -/* -used by networkGraphPageBody.py -*/ -function changeFormat(graphName){ - var graphFormat = document.getElementById('exportFormat').value; - var traitType = document.getElementById('traitType').value; - - if (graphFormat=="xgmml"){ - if (traitType=="symbol"){ - var graphname = graphName+ "_xgmml_symbol.txt"; - document.getElementById('exportGraphFile').onclick = function() { window.open(graphname) }; - } - else if (traitType=="name"){ - var graphname = graphName+ "_xgmml_name.txt"; - document.getElementById('exportGraphFile').onclick = function() { window.open(graphname) }; - } - } - - else if (graphFormat=="plain") - { - if (traitType=="symbol") - { - var graphname = graphName+ "_plain_symbol.txt"; - document.getElementById('exportGraphFile').onclick = function() { window.open(graphname) }; - } - else if (traitType=="name") - { - var graphname = graphName+ "_plain_name.txt"; - document.getElementById('exportGraphFile').onclick = function() { window.open(graphname) }; - } - } - -} - - -/* -used by snpBrowserPage.py -*/ -function set_customStrains_cookie() { - var options = document.newSNPPadding.chosenStrains.options; - var size = options.length; - strains = ""; - if (size > 0) { - strains = strains + options[0].text+":"+options[0].value; - } - for (var i=1; i