Changeset 1476

Show
Ignore:
Timestamp:
02-02-11 13:07:04 (3 years ago)
Author:
work@…
Message:

Automated continuous integration commit of minified JS/CSS

Location:
trunk/web-app
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/web-app/css/dialog.min.css

    r1474 r1476  
     1body{margin:0;padding:0;font:12px normal Verdana,Arial,Helvetica,sans-serif;}#sortable{list-style-type:none;margin:0;padding:0;width:200px;}#sortable li{margin:0 5px 5px 5px;padding:5px;font-size:1em;}html>body #sortable li{height:1.5em;line-height:1.2em;}.ui-state-highlight{height:1.5em;line-height:1.2em;}.ui-autocomplete{max-height:200px;overflow-y:auto;overflow-x:hidden;}.ui-autocomplete .ui-menu-item{font-size:10px;}.ui-autocomplete .about{font-size:8px;color:#006DBA;}.ui-autocomplete .from{font-size:8px;color:#666;}h1,h2{display:none;}#content{padding-top:40px;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10pt;padding-bottom:20px;}#content p{text-align:justify;}#content a:link,#content a:visited,#content a:hover{color:#006dba;text-decoration:none;}#content p img{display:run-in;float:right;padding:2px;border:1px solid #006dba;margin-left:10px;margin-bottom:10px;height:120px;}#content .message{border:1px solid #ccc;margin-bottom:10px;margin-top:10px;background:#f7f7f7 url(../plugins/famfamfam-1.0.1/images/icons/information.png) 10px 10px no-repeat;padding:10px 10px 10px 33px;}table{border:1px solid #ccc;width:100%;}tr{border:0;}td,th{font:11px verdana,arial,helvetica,sans-serif;line-height:12px;padding:5px 6px;text-align:left;vertical-align:top;}th{background:#fff url(../images/default_style/tables/shadow.jpg);color:#666;font-size:11px;font-weight:bold;line-height:17px;padding:2px 6px;}th a:link,th a:visited,th a:hover{color:#333;display:block;font-size:10px;text-decoration:none;width:100%;}th.asc a,th.desc a{background-position:right;background-repeat:no-repeat;}th.asc a{background-image:url(../images/default_style/tables/sorted_asc.gif);}th.desc a{background-image:url(../images/default_style/tables/sorted_desc.gif);}.odd{background:#f7f7f7;}.even{background:#fff;}tr.prop td{padding-top:2px;padding-bottom:2px;}.list table{border-collapse:collapse;}.list th,.list td{border-left:1px solid #ddd;}.list th:hover,.list tr:hover{background:#b2d1ff;}.buttons{margin-top:15px;font-size:10px;}#content .button a{color:#333;}.button a{font-size:10px;font-weight:bold;margin-left:3px;margin-right:3px;padding-top:2px;padding-bottom:2px;}.buttons input{background:#fff;border:0;color:#333;cursor:pointer;font-size:10px;font-weight:bold;margin-left:3px;margin-right:3px;overflow:visible;padding:2px 6px;font-family:Verdana,Arial,Helvetica,sans-serif;}.buttons input.delete,.buttons a.delete{background:transparent url(../plugins/famfamfam-1.0.1/images/icons/delete.png) 5px 50% no-repeat;padding-left:28px;}.buttons input.edit,.buttons a.edit{background:transparent url(../plugins/famfamfam-1.0.1/images/icons/application_edit.png) 5px 50% no-repeat;padding-left:28px;}.buttons input.save,.buttons a.save{background:transparent url(../plugins/famfamfam-1.0.1/images/icons/accept.png) 5px 50% no-repeat;padding-left:28px;}.buttons input.create,.buttons a.create{background:transparent url(../plugins/famfamfam-1.0.1/images/icons/add.png) 5px 50% no-repeat;padding-left:28px;}.buttons input.backToList,.buttons a.backToList{background:transparent url(../plugins/famfamfam-1.0.1/images/icons/application.png) 5px 50% no-repeat;padding-left:28px;}.buttons input.cancel,.buttons a.cancel{background:transparent url(../plugins/famfamfam-1.0.1/images/icons/delete.png) 5px 50% no-repeat;padding-left:28px;font-weight:normal;}.buttons input.otherList,.buttons a.otherList{background:transparent url(../plugins/famfamfam-1.0.1/images/icons/application_view_detail.png) 5px 50% no-repeat;padding-left:28px;}td.buttons input{font-weight:normal;}.paginateButtons{margin-top:15px;overflow:auto;width:100%;}.paginateButtons a,.paginateButtons span.currentStep{border:solid 1px #ccc;margin-right:2px;display:block;float:left;padding:1px 6px;text-decoration:none;}.paginateButtons a{color:#0e509e;}.paginateButtons span.currentStep{background:#2e6ab1;color:#FFF;}.ui-autocomplete .ui-menu-item{font-size:10px;}.ui-autocomplete .about{font-size:8px;color:#006DBA;}.ui-autocomplete .from{font-size:8px;color:#666;}option.addMore{background:url(../plugins/famfamfam-1.0.1/images/icons/add.png) no-repeat left top;background-color:#333;padding-left:18px;height:16px;color:#fff;font-weight:bold;}option.modify{background:url(../plugins/famfamfam-1.0.1/images/icons/layout_add.png) no-repeat left top;background-color:#333;padding-left:18px;height:16px;color:#fff;font-weight:bold;}option.locked{background:url(../plugins/famfamfam-1.0.1/images/icons/lock.png) no-repeat left top;padding-left:18px;}option.unlocked{padding-left:18px;}.info{display:block;border:1px solid #006DBA;background-color:#f8feff;padding:10px;font-size:10px;margin:10px 0 10px 0;}.info .title{color:#006DBA;font-size:14px;font-weight:normal;display:block;margin-bottom:5px;padding-left:20px;background:url(../plugins/famfamfam-1.0.1/images/icons/information.png) no-repeat center left;}.info .todo{color:#006DBA;font-size:14px;font-weight:normal;display:block;margin-bottom:5px;padding-left:20px;background:url(../plugins/famfamfam-1.0.1/images/icons/wrench.png) no-repeat center left;}.info .known{color:#006DBA;font-size:14px;font-weight:normal;display:block;margin-bottom:5px;padding-left:20px;background:url(../plugins/famfamfam-1.0.1/images/icons/eye.png) no-repeat center left;}.info .error{color:#006DBA;font-size:14px;font-weight:normal;display:block;margin-bottom:5px;padding-left:20px;background:url(../plugins/famfamfam-1.0.1/images/icons/exclamation.png) no-repeat center left;}.famfamfam{width:16px;height:16px;}.spinner{background:url(../images/spinner.gif) no-repeat left top;width:16px;height:16px;display:none;}input,textarea{border:1px solid #CCC;margin:2px 0;padding:2px 4px;background-color:#fff;}input:focus,select:focus,textarea:focus{border:1px solid #B2D1FF;background-color:#fff;} 
  • trunk/web-app/js/simpleQuery.min.js

    r1474 r1476  
     1$(document).ready(function(){var a=2;var b=2;$("#accordion").accordion({collapsible:true,autoHeight:false,active:0});$("#addCompound").click(function(){var f=document.getElementById("compoundGroup");var k=document.createElement("div");k.setAttribute("id","compoundRow"+a);var i=document.createElement("div");i.setAttribute("class","descriptionSA");i.innerHTML="Compound";k.appendChild(i);var h=document.createElement("div");h.setAttribute("class","input");h.innerHTML='<input type="text" name="sa_compound" value="">';k.appendChild(h);var g=document.createElement("div");g.setAttribute("class","descriptionSA");g.innerHTML="Operator";k.appendChild(g);var e=document.createElement("div");e.setAttribute("class","input");var j=document.getElementById("operatorInput");e=j.cloneNode(true);k.appendChild(e);var d=document.createElement("div");d.setAttribute("class","descriptionSA");d.innerHTML="Value";k.appendChild(d);var c=document.createElement("div");c.setAttribute("class","input");c.innerHTML="<input type='text' name='sa_value' value=''>";k.appendChild(c);f.appendChild(k);a++;return true});$("#addTranscriptome").click(function(){var c=document.getElementById("transcriptomeGroup");var d=document.createElement("div");d.setAttribute("id","transcriptomeRow"+b);var i=document.createElement("div");i.setAttribute("class","description");i.innerHTML="Gene/pathway";d.appendChild(i);var h=document.createElement("div");h.setAttribute("class","input");h.innerHTML='<input type="text" name="genepath" value="">';d.appendChild(h);var g=document.createElement("div");g.setAttribute("class","description");g.innerHTML="Type of regulations";d.appendChild(g);var f=document.createElement("div");f.setAttribute("class","input");var e=document.getElementById("regulationInput");f=e.cloneNode(true);f.setAttribute("id","regulation"+b);d.appendChild(f);c.appendChild(d);b++;return true})}); 
  • trunk/web-app/js/swfobject.min.js

    r1474 r1476  
     1var swfobject=function(){var aq="undefined",aD="object",ab="Shockwave Flash",X="ShockwaveFlash.ShockwaveFlash",aE="application/x-shockwave-flash",ac="SWFObjectExprInst",ax="onreadystatechange",af=window,aL=document,aB=navigator,aa=false,Z=[aN],aG=[],ag=[],al=[],aJ,ad,ap,at,ak=false,aU=false,aH,an,aI=true,ah=function(){var a=typeof aL.getElementById!=aq&&typeof aL.getElementsByTagName!=aq&&typeof aL.createElement!=aq,e=aB.userAgent.toLowerCase(),c=aB.platform.toLowerCase(),h=c?/win/.test(c):/win/.test(e),j=c?/mac/.test(c):/mac/.test(e),g=/webkit/.test(e)?parseFloat(e.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,d=!+"\v1",f=[0,0,0],k=null;if(typeof aB.plugins!=aq&&typeof aB.plugins[ab]==aD){k=aB.plugins[ab].description;if(k&&!(typeof aB.mimeTypes!=aq&&aB.mimeTypes[aE]&&!aB.mimeTypes[aE].enabledPlugin)){aa=true;d=false;k=k.replace(/^.*\s+(\S+\s+\S+$)/,"$1");f[0]=parseInt(k.replace(/^(.*)\..*$/,"$1"),10);f[1]=parseInt(k.replace(/^.*\.(.*)\s.*$/,"$1"),10);f[2]=/[a-zA-Z]/.test(k)?parseInt(k.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof af.ActiveXObject!=aq){try{var i=new ActiveXObject(X);if(i){k=i.GetVariable("$version");if(k){d=true;k=k.split(" ")[1].split(",");f=[parseInt(k[0],10),parseInt(k[1],10),parseInt(k[2],10)]}}}catch(b){}}}return{w3:a,pv:f,wk:g,ie:d,win:h,mac:j}}(),aK=function(){if(!ah.w3){return}if((typeof aL.readyState!=aq&&aL.readyState=="complete")||(typeof aL.readyState==aq&&(aL.getElementsByTagName("body")[0]||aL.body))){aP()}if(!ak){if(typeof aL.addEventListener!=aq){aL.addEventListener("DOMContentLoaded",aP,false)}if(ah.ie&&ah.win){aL.attachEvent(ax,function(){if(aL.readyState=="complete"){aL.detachEvent(ax,arguments.callee);aP()}});if(af==top){(function(){if(ak){return}try{aL.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}aP()})()}}if(ah.wk){(function(){if(ak){return}if(!/loaded|complete/.test(aL.readyState)){setTimeout(arguments.callee,0);return}aP()})()}aC(aP)}}();function aP(){if(ak){return}try{var b=aL.getElementsByTagName("body")[0].appendChild(ar("span"));b.parentNode.removeChild(b)}catch(a){return}ak=true;var d=Z.length;for(var c=0;c<d;c++){Z[c]()}}function aj(a){if(ak){a()}else{Z[Z.length]=a}}function aC(a){if(typeof af.addEventListener!=aq){af.addEventListener("load",a,false)}else{if(typeof aL.addEventListener!=aq){aL.addEventListener("load",a,false)}else{if(typeof af.attachEvent!=aq){aM(af,"onload",a)}else{if(typeof af.onload=="function"){var b=af.onload;af.onload=function(){b();a()}}else{af.onload=a}}}}}function aN(){if(aa){Y()}else{am()}}function Y(){var d=aL.getElementsByTagName("body")[0];var b=ar(aD);b.setAttribute("type",aE);var a=d.appendChild(b);if(a){var c=0;(function(){if(typeof a.GetVariable!=aq){var e=a.GetVariable("$version");if(e){e=e.split(" ")[1].split(",");ah.pv=[parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10)]}}else{if(c<10){c++;setTimeout(arguments.callee,10);return}}d.removeChild(b);a=null;am()})()}else{am()}}function am(){var g=aG.length;if(g>0){for(var h=0;h<g;h++){var c=aG[h].id;var l=aG[h].callbackFn;var a={success:false,id:c};if(ah.pv[0]>0){var i=aS(c);if(i){if(ao(aG[h].swfVersion)&&!(ah.wk&&ah.wk<312)){ay(c,true);if(l){a.success=true;a.ref=av(c);l(a)}}else{if(aG[h].expressInstall&&au()){var e={};e.data=aG[h].expressInstall;e.width=i.getAttribute("width")||"0";e.height=i.getAttribute("height")||"0";if(i.getAttribute("class")){e.styleclass=i.getAttribute("class")}if(i.getAttribute("align")){e.align=i.getAttribute("align")}var f={};var d=i.getElementsByTagName("param");var k=d.length;for(var j=0;j<k;j++){if(d[j].getAttribute("name").toLowerCase()!="movie"){f[d[j].getAttribute("name")]=d[j].getAttribute("value")}}ae(e,f,c,l)}else{aF(i);if(l){l(a)}}}}}else{ay(c,true);if(l){var b=av(c);if(b&&typeof b.SetVariable!=aq){a.success=true;a.ref=b}l(a)}}}}}function av(b){var d=null;var c=aS(b);if(c&&c.nodeName=="OBJECT"){if(typeof c.SetVariable!=aq){d=c}else{var a=c.getElementsByTagName(aD)[0];if(a){d=a}}}return d}function au(){return !aU&&ao("6.0.65")&&(ah.win||ah.mac)&&!(ah.wk&&ah.wk<312)}function ae(f,d,h,e){aU=true;ap=e||null;at={success:false,id:h};var a=aS(h);if(a){if(a.nodeName=="OBJECT"){aJ=aO(a);ad=null}else{aJ=a;ad=h}f.id=ac;if(typeof f.width==aq||(!/%$/.test(f.width)&&parseInt(f.width,10)<310)){f.width="310"}if(typeof f.height==aq||(!/%$/.test(f.height)&&parseInt(f.height,10)<137)){f.height="137"}aL.title=aL.title.slice(0,47)+" - Flash Player Installation";var b=ah.ie&&ah.win?"ActiveX":"PlugIn",c="MMredirectURL="+af.location.toString().replace(/&/g,"%26")+"&MMplayerType="+b+"&MMdoctitle="+aL.title;if(typeof d.flashvars!=aq){d.flashvars+="&"+c}else{d.flashvars=c}if(ah.ie&&ah.win&&a.readyState!=4){var g=ar("div");h+="SWFObjectNew";g.setAttribute("id",h);a.parentNode.insertBefore(g,a);a.style.display="none";(function(){if(a.readyState==4){a.parentNode.removeChild(a)}else{setTimeout(arguments.callee,10)}})()}aA(f,d,h)}}function aF(a){if(ah.ie&&ah.win&&a.readyState!=4){var b=ar("div");a.parentNode.insertBefore(b,a);b.parentNode.replaceChild(aO(a),b);a.style.display="none";(function(){if(a.readyState==4){a.parentNode.removeChild(a)}else{setTimeout(arguments.callee,10)}})()}else{a.parentNode.replaceChild(aO(a),a)}}function aO(b){var d=ar("div");if(ah.win&&ah.ie){d.innerHTML=b.innerHTML}else{var e=b.getElementsByTagName(aD)[0];if(e){var a=e.childNodes;if(a){var f=a.length;for(var c=0;c<f;c++){if(!(a[c].nodeType==1&&a[c].nodeName=="PARAM")&&!(a[c].nodeType==8)){d.appendChild(a[c].cloneNode(true))}}}}}return d}function aA(e,g,c){var d,a=aS(c);if(ah.wk&&ah.wk<312){return d}if(a){if(typeof e.id==aq){e.id=c}if(ah.ie&&ah.win){var f="";for(var i in e){if(e[i]!=Object.prototype[i]){if(i.toLowerCase()=="data"){g.movie=e[i]}else{if(i.toLowerCase()=="styleclass"){f+=' class="'+e[i]+'"'}else{if(i.toLowerCase()!="classid"){f+=" "+i+'="'+e[i]+'"'}}}}}var h="";for(var j in g){if(g[j]!=Object.prototype[j]){h+='<param name="'+j+'" value="'+g[j]+'" />'}}a.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+f+">"+h+"</object>";ag[ag.length]=e.id;d=aS(e.id)}else{var b=ar(aD);b.setAttribute("type",aE);for(var k in e){if(e[k]!=Object.prototype[k]){if(k.toLowerCase()=="styleclass"){b.setAttribute("class",e[k])}else{if(k.toLowerCase()!="classid"){b.setAttribute(k,e[k])}}}}for(var l in g){if(g[l]!=Object.prototype[l]&&l.toLowerCase()!="movie"){aQ(b,l,g[l])}}a.parentNode.replaceChild(b,a);d=b}}return d}function aQ(b,d,c){var a=ar("param");a.setAttribute("name",d);a.setAttribute("value",c);b.appendChild(a)}function aw(a){var b=aS(a);if(b&&b.nodeName=="OBJECT"){if(ah.ie&&ah.win){b.style.display="none";(function(){if(b.readyState==4){aT(a)}else{setTimeout(arguments.callee,10)}})()}else{b.parentNode.removeChild(b)}}}function aT(a){var b=aS(a);if(b){for(var c in b){if(typeof b[c]=="function"){b[c]=null}}b.parentNode.removeChild(b)}}function aS(a){var c=null;try{c=aL.getElementById(a)}catch(b){}return c}function ar(a){return aL.createElement(a)}function aM(a,c,b){a.attachEvent(c,b);al[al.length]=[a,c,b]}function ao(a){var b=ah.pv,c=a.split(".");c[0]=parseInt(c[0],10);c[1]=parseInt(c[1],10)||0;c[2]=parseInt(c[2],10)||0;return(b[0]>c[0]||(b[0]==c[0]&&b[1]>c[1])||(b[0]==c[0]&&b[1]==c[1]&&b[2]>=c[2]))?true:false}function az(b,f,a,c){if(ah.ie&&ah.mac){return}var e=aL.getElementsByTagName("head")[0];if(!e){return}var g=(a&&typeof a=="string")?a:"screen";if(c){aH=null;an=null}if(!aH||an!=g){var d=ar("style");d.setAttribute("type","text/css");d.setAttribute("media",g);aH=e.appendChild(d);if(ah.ie&&ah.win&&typeof aL.styleSheets!=aq&&aL.styleSheets.length>0){aH=aL.styleSheets[aL.styleSheets.length-1]}an=g}if(ah.ie&&ah.win){if(aH&&typeof aH.addRule==aD){aH.addRule(b,f)}}else{if(aH&&typeof aL.createTextNode!=aq){aH.appendChild(aL.createTextNode(b+" {"+f+"}"))}}}function ay(a,c){if(!aI){return}var b=c?"visible":"hidden";if(ak&&aS(a)){aS(a).style.visibility=b}else{az("#"+a,"visibility:"+b)}}function ai(b){var a=/[\\\"<>\.;]/;var c=a.exec(b)!=null;return c&&typeof encodeURIComponent!=aq?encodeURIComponent(b):b}var aR=function(){if(ah.ie&&ah.win){window.attachEvent("onunload",function(){var a=al.length;for(var b=0;b<a;b++){al[b][0].detachEvent(al[b][1],al[b][2])}var d=ag.length;for(var c=0;c<d;c++){aw(ag[c])}for(var e in ah){ah[e]=null}ah=null;for(var f in swfobject){swfobject[f]=null}swfobject=null})}}();return{registerObject:function(a,e,c,b){if(ah.w3&&a&&e){var d={};d.id=a;d.swfVersion=e;d.expressInstall=c;d.callbackFn=b;aG[aG.length]=d;ay(a,false)}else{if(b){b({success:false,id:a})}}},getObjectById:function(a){if(ah.w3){return av(a)}},embedSWF:function(k,e,h,f,c,a,b,i,g,j){var d={success:false,id:e};if(ah.w3&&!(ah.wk&&ah.wk<312)&&k&&e&&h&&f&&c){ay(e,false);aj(function(){h+="";f+="";var q={};if(g&&typeof g===aD){for(var o in g){q[o]=g[o]}}q.data=k;q.width=h;q.height=f;var n={};if(i&&typeof i===aD){for(var p in i){n[p]=i[p]}}if(b&&typeof b===aD){for(var l in b){if(typeof n.flashvars!=aq){n.flashvars+="&"+l+"="+b[l]}else{n.flashvars=l+"="+b[l]}}}if(ao(c)){var m=aA(q,n,e);if(q.id==e){ay(e,true)}d.success=true;d.ref=m}else{if(a&&au()){q.data=a;ae(q,n,e,j);return}else{ay(e,true)}}if(j){j(d)}})}else{if(j){j(d)}}},switchOffAutoHideShow:function(){aI=false},ua:ah,getFlashPlayerVersion:function(){return{major:ah.pv[0],minor:ah.pv[1],release:ah.pv[2]}},hasFlashPlayerVersion:ao,createSWF:function(a,b,c){if(ah.w3){return aA(a,b,c)}else{return undefined}},showExpressInstall:function(b,a,d,c){if(ah.w3&&au()){ae(b,a,d,c)}},removeSWF:function(a){if(ah.w3){aw(a)}},createCSS:function(b,a,c,d){if(ah.w3){az(b,a,c,d)}},addDomLoadEvent:aj,addLoadEvent:aC,getQueryParamValue:function(b){var a=aL.location.search||aL.location.hash;if(a){if(/\?/.test(a)){a=a.split("?")[1]}if(b==null){return ai(a)}var c=a.split("&");for(var d=0;d<c.length;d++){if(c[d].substring(0,c[d].indexOf("="))==b){return ai(c[d].substring((c[d].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(aU){var a=aS(ac);if(a&&aJ){a.parentNode.replaceChild(aJ,a);if(ad){ay(ad,true);if(ah.ie&&ah.win){aJ.style.display="block"}}if(ap){ap(at)}}aU=false}}}}(); 
  • trunk/web-app/js/timepicker-0.2.1.min.js

    r1474 r1476  
     1/* 
     2 * jQuery UI Timepicker 0.2.1 
     3 * 
     4 * Copyright (c) 2009 Martin Milesich (http://milesich.com/) 
     5 * 
     6 * Some parts are 
     7 *   Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) 
     8 * 
     9 * $Id: timepicker.js 28 2009-08-11 20:31:23Z majlo $ 
     10 * 
     11 * Depends: 
     12 *  ui.core.js 
     13 *  ui.datepicker.js 
     14 *  ui.slider.js 
     15 */ 
     16(function(b){b.extend(b.datepicker._defaults,{stepMinutes:1,stepHours:1,time24h:false,showTime:false,altTimeField:""});b.datepicker._connectDatepickerOverride=b.datepicker._connectDatepicker;b.datepicker._connectDatepicker=function(e,d){b.datepicker._connectDatepickerOverride(e,d);if(this._get(d,"showTime")){d.settings.showButtonPanel=true}var c=this._get(d,"showOn");if(c=="button"||c=="both"){d.trigger.unbind("click");d.trigger.click(function(){if(b.datepicker._datepickerShowing&&b.datepicker._lastInput==e){b.datepicker._hideDatepicker(null)}else{b.datepicker._showDatepicker(e)}return false})}};b.datepicker._showDatepickerOverride=b.datepicker._showDatepicker;b.datepicker._showDatepicker=function(d){b.datepicker._showDatepickerOverride(d);d=d.target||d;if(d.nodeName.toLowerCase()!="input"){d=b("input",d.parentNode)[0]}if(b.datepicker._isDisabledDatepicker(d)){return}var e=b.datepicker._getInst(d);var c=b.datepicker._get(e,"showTime");if(c){b.timepicker.show(d)}};b.datepicker._checkExternalClickOverride=b.datepicker._checkExternalClick;b.datepicker._checkExternalClick=function(d){if(!b.datepicker._curInst){return}var c=b(d.target);if((c.parents("#"+b.timepicker._mainDivId).length==0)){b.datepicker._checkExternalClickOverride(d)}};b.datepicker._hideDatepickerOverride=b.datepicker._hideDatepicker;b.datepicker._hideDatepicker=function(d,f){var e=this._curInst;if(!e||(d&&e!=b.data(d,PROP_NAME))){return}var c=this._get(e,"showTime");if(d===undefined&&c){if(e.input){e.input.val(this._formatDate(e));e.input.trigger("change")}this._updateAlternate(e);if(c){b.timepicker.update(this._formatDate(e))}}b.datepicker._hideDatepickerOverride(d,f);if(c){b.timepicker.hide()}};b.datepicker._selectDate=function(h,d){var g=b(h);var f=this._getInst(g[0]);var c=this._get(f,"showTime");d=(d!=null?d:this._formatDate(f));if(!c){if(f.input){f.input.val(d)}this._updateAlternate(f)}var e=this._get(f,"onSelect");if(e){e.apply((f.input?f.input[0]:null),[d,f])}else{if(f.input&&!c){f.input.trigger("change")}}if(f.inline){this._updateDatepicker(f)}else{if(!f.stayOpen){if(c){this._updateDatepicker(f)}else{this._hideDatepicker(null,this._get(f,"duration"));this._lastInput=f.input[0];if(typeof(f.input[0])!="object"){f.input[0].focus()}this._lastInput=null}}}};b.datepicker._updateDatepickerOverride=b.datepicker._updateDatepicker;b.datepicker._updateDatepicker=function(c){b.datepicker._updateDatepickerOverride(c);b.timepicker.resize()};function a(){}a.prototype={init:function(){this._mainDivId="ui-timepicker-div";this._inputId=null;this._orgValue=null;this._orgHour=null;this._orgMinute=null;this._colonPos=-1;this._visible=false;this.tpDiv=b('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible" style="width: 100px; display: none; position: absolute;"></div>');this._generateHtml()},show:function(j){var e=b.datepicker._getInst(j);this._time24h=b.datepicker._get(e,"time24h");this._altTimeField=b.datepicker._get(e,"altTimeField");var c=parseInt(b.datepicker._get(e,"stepMinutes"),10)||1;var i=parseInt(b.datepicker._get(e,"stepHours"),10)||1;if(60%c!=0){c=1}if(24%i!=0){i=1}b("#hourSlider").slider("option","max",24-i);b("#hourSlider").slider("option","step",i);b("#minuteSlider").slider("option","max",60-c);b("#minuteSlider").slider("option","step",c);this._inputId=j.id;if(!this._visible){this._parseTime();this._orgValue=b("#"+this._inputId).val()}var h=this;b("#"+this._mainDivId).show("slow",function(){h.resize()});this._visible=true;var d=b("#"+b.datepicker._mainDivId);var g=d.position();var f=(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)+b(document).scrollLeft();var k=this.tpDiv.offset().left+this.tpDiv.outerWidth();if(k>f){d.css("left",g.left-(k-f)-5);this.tpDiv.css("left",d.offset().left+d.outerWidth()+"px")}},update:function(d){var e=b("#"+this._mainDivId+" span.fragHours").text()+":"+b("#"+this._mainDivId+" span.fragMinutes").text();if(!this._time24h){e+=" "+b("#"+this._mainDivId+" span.fragAmpm").text()}var c=b("#"+this._inputId).val();b("#"+this._inputId).val(d+" "+e);if(this._altTimeField){b(this._altTimeField).each(function(){b(this).val(e)})}},hide:function(){this._visible=false;b("#"+this._mainDivId).hide()},resize:function(){var d=b("#"+b.datepicker._mainDivId);var e=d.position();var c=b("#"+b.datepicker._mainDivId+" > div.ui-datepicker-header:first-child").height();b("#"+this._mainDivId+" > div.ui-datepicker-header:first-child").css("height",c);this.tpDiv.css({height:d.height(),top:e.top,left:e.left+d.outerWidth()+"px"});b("#hourSlider").css("height",this.tpDiv.height()-(3.5*c));b("#minuteSlider").css("height",this.tpDiv.height()-(3.5*c))},_generateHtml:function(){var d="";d+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix ui-corner-all">';d+='<div class="ui-datepicker-title" style="margin:0">';d+='<span class="fragHours">08</span><span class="delim">:</span><span class="fragMinutes">45</span> <span class="fragAmpm"></span></div></div><table>';d+="<tr><th>Hour</th><th>Minute</th></tr>";d+='<tr><td align="center"><div id="hourSlider" class="slider"></div></td><td align="center"><div id="minuteSlider" class="slider"></div></td></tr>';d+="</table>";this.tpDiv.empty().append(d);b("body").append(this.tpDiv);var c=this;b("#hourSlider").slider({orientation:"vertical",range:"min",min:0,max:23,step:1,slide:function(e,f){c._writeTime("hour",f.value)},stop:function(e,f){b("#"+c._inputId).focus()}});b("#minuteSlider").slider({orientation:"vertical",range:"min",min:0,max:59,step:1,slide:function(e,f){c._writeTime("minute",f.value)},stop:function(e,f){b("#"+c._inputId).focus()}});b("#hourSlider > a").css("padding",0);b("#minuteSlider > a").css("padding",0)},_writeTime:function(c,d){if(c=="hour"){if(!this._time24h){if(d<12){b("#"+this._mainDivId+" span.fragAmpm").text("am")}else{b("#"+this._mainDivId+" span.fragAmpm").text("pm");d-=12}if(d==0){d=12}}else{b("#"+this._mainDivId+" span.fragAmpm").text("")}if(d<10){d="0"+d}b("#"+this._mainDivId+" span.fragHours").text(d)}if(c=="minute"){if(d<10){d="0"+d}b("#"+this._mainDivId+" span.fragMinutes").text(d)}},_parseTime:function(){var f=b("#"+this._inputId).val();this._colonPos=f.search(":");var c=0,e=0,d="";if(this._colonPos!=-1){e=parseInt(f.substr(this._colonPos-2,2),10);c=parseInt(f.substr(this._colonPos+1,2),10);d=jQuery.trim(f.substr(this._colonPos+3,3))}d=d.toLowerCase();if(d!="am"&&d!="pm"){d=""}if(e<0){e=0}if(c<0){c=0}if(e>23){e=23}if(c>59){c=59}if(d=="pm"&&e<12){e+=12}if(d=="am"&&e==12){e=0}this._setTime("hour",e);this._setTime("minute",c);this._orgHour=e;this._orgMinute=c},_setTime:function(c,d){if(isNaN(d)){d=0}if(d<0){d=0}if(d>23&&c=="hour"){d=23}if(d>59&&c=="minute"){d=59}if(c=="hour"){b("#hourSlider").slider("value",d)}if(c=="minute"){b("#minuteSlider").slider("value",d)}this._writeTime(c,d)}};b.timepicker=new a();b("document").ready(function(){b.timepicker.init()})})(jQuery);