+
Description
+
+ <%= textile_to_html(@ticket.description) %>
-
-
- Status:
- <%= @ticket.status %>
-
-
-
Notes
-
- <% TicketEntry.find(:all, :conditions => {:ticket_id => @ticket.id, :detail => 1}).each do |entry| %>
-
- <%= image_tag entry.creator.avatar.url(:avatar) %>
-
<%= entry.creator.name %> <%= entry.updated_at.strftime("%H:%M %m/%d/%Y") %>
-
Time: <%= entry.time %>min Type: <%= entry.labor_type %> Billable? <%= billable(entry) %> Private? <%= is_this_private(entry) %>
-
<%= textile_to_html(entry.note) %>
- <% if entry.parts != "" %>
-
Parts
-
<%= textile_to_html(entry.parts) %>
- <% end %>
+
Details
+
+
+
+
+ Status:
+ <%= @ticket.status %>
+
+
+
Notes
+
+ <% TicketEntry.find(:all, :conditions => {:ticket_id => @ticket.id, :detail => 1}).each do |entry| %>
+
+ <%= image_tag entry.creator.avatar.url(:avatar) %>
+
<%= entry.creator.name %> <%= entry.updated_at.strftime("%H:%M %m/%d/%Y") %>
+
Time: <%= entry.time %>min Type: <%= entry.labor_type %> Billable? <%= billable(entry) %> Private? <%= is_this_private(entry) %>
+
<%= textile_to_html(entry.note) %>
+ <% if entry.parts != "" %>
+
Parts
+
<%= textile_to_html(entry.parts) %>
+ <% end %>
+
+ <% end %>
+
+ <% if @ticket.devices.length != 0 %>
+
Devices
<% end %>
- <% if @ticket.devices.length != 0 %>
-
Devices
- <% end %>
\ No newline at end of file
diff --git a/app/views/layouts/iphone.html.erb b/app/views/layouts/iphone.html.erb
index 48ddc46..9327263 100644
--- a/app/views/layouts/iphone.html.erb
+++ b/app/views/layouts/iphone.html.erb
@@ -6,21 +6,42 @@
- <%= javascript_include_tag "iui-modified" %>
- <%= stylesheet_link_tag "iui", :media => "screen" %>
-
diff --git a/public/images/jqt/backButton.png b/public/images/jqt/backButton.png
new file mode 100644
index 0000000..e27ea8c
Binary files /dev/null and b/public/images/jqt/backButton.png differ
diff --git a/public/images/jqt/back_button.png b/public/images/jqt/back_button.png
new file mode 100644
index 0000000..9873901
Binary files /dev/null and b/public/images/jqt/back_button.png differ
diff --git a/public/images/jqt/back_button_clicked.png b/public/images/jqt/back_button_clicked.png
new file mode 100644
index 0000000..5ec4230
Binary files /dev/null and b/public/images/jqt/back_button_clicked.png differ
diff --git a/public/images/jqt/bg_row.gif b/public/images/jqt/bg_row.gif
new file mode 100644
index 0000000..f50ab47
Binary files /dev/null and b/public/images/jqt/bg_row.gif differ
diff --git a/public/images/jqt/bg_row_select.gif b/public/images/jqt/bg_row_select.gif
new file mode 100644
index 0000000..2ec37fc
Binary files /dev/null and b/public/images/jqt/bg_row_select.gif differ
diff --git a/public/images/jqt/blueButton.png b/public/images/jqt/blueButton.png
new file mode 100644
index 0000000..0f92dfd
Binary files /dev/null and b/public/images/jqt/blueButton.png differ
diff --git a/public/images/jqt/button.png b/public/images/jqt/button.png
new file mode 100644
index 0000000..52cc7e2
Binary files /dev/null and b/public/images/jqt/button.png differ
diff --git a/public/images/jqt/button_clicked.png b/public/images/jqt/button_clicked.png
new file mode 100644
index 0000000..25d478f
Binary files /dev/null and b/public/images/jqt/button_clicked.png differ
diff --git a/public/images/jqt/cancel.png b/public/images/jqt/cancel.png
new file mode 100644
index 0000000..5f6dcc8
Binary files /dev/null and b/public/images/jqt/cancel.png differ
diff --git a/public/images/jqt/chevron.png b/public/images/jqt/chevron.png
new file mode 100644
index 0000000..6421a16
Binary files /dev/null and b/public/images/jqt/chevron.png differ
diff --git a/public/images/jqt/chevron_select.png b/public/images/jqt/chevron_select.png
new file mode 100644
index 0000000..86832eb
Binary files /dev/null and b/public/images/jqt/chevron_select.png differ
diff --git a/public/images/jqt/grayButton.png b/public/images/jqt/grayButton.png
new file mode 100644
index 0000000..0ce6a30
Binary files /dev/null and b/public/images/jqt/grayButton.png differ
diff --git a/public/images/jqt/header.gif b/public/images/jqt/header.gif
new file mode 100644
index 0000000..db185db
Binary files /dev/null and b/public/images/jqt/header.gif differ
diff --git a/public/images/jqt/listGroup.png b/public/images/jqt/listGroup.png
new file mode 100644
index 0000000..221553a
Binary files /dev/null and b/public/images/jqt/listGroup.png differ
diff --git a/public/images/jqt/loading.gif b/public/images/jqt/loading.gif
new file mode 100644
index 0000000..8522ddf
Binary files /dev/null and b/public/images/jqt/loading.gif differ
diff --git a/public/images/jqt/pinstripes.png b/public/images/jqt/pinstripes.png
new file mode 100644
index 0000000..c997775
Binary files /dev/null and b/public/images/jqt/pinstripes.png differ
diff --git a/public/images/jqt/selection.png b/public/images/jqt/selection.png
new file mode 100644
index 0000000..537e3f0
Binary files /dev/null and b/public/images/jqt/selection.png differ
diff --git a/public/images/jqt/thumb.png b/public/images/jqt/thumb.png
new file mode 100644
index 0000000..cefa8fc
Binary files /dev/null and b/public/images/jqt/thumb.png differ
diff --git a/public/images/jqt/toggle.png b/public/images/jqt/toggle.png
new file mode 100644
index 0000000..3b62ebf
Binary files /dev/null and b/public/images/jqt/toggle.png differ
diff --git a/public/images/jqt/toggleOn.png b/public/images/jqt/toggleOn.png
new file mode 100644
index 0000000..b016814
Binary files /dev/null and b/public/images/jqt/toggleOn.png differ
diff --git a/public/images/jqt/toolButton.png b/public/images/jqt/toolButton.png
new file mode 100644
index 0000000..afe4d7a
Binary files /dev/null and b/public/images/jqt/toolButton.png differ
diff --git a/public/images/jqt/toolbar.gif b/public/images/jqt/toolbar.gif
new file mode 100644
index 0000000..e7e841c
Binary files /dev/null and b/public/images/jqt/toolbar.gif differ
diff --git a/public/images/jqt/toolbar.png b/public/images/jqt/toolbar.png
new file mode 100644
index 0000000..3dde94c
Binary files /dev/null and b/public/images/jqt/toolbar.png differ
diff --git a/public/images/jqt/whiteButton.png b/public/images/jqt/whiteButton.png
new file mode 100644
index 0000000..5514b27
Binary files /dev/null and b/public/images/jqt/whiteButton.png differ
diff --git a/public/javascripts/jqtouch.min.js b/public/javascripts/jqtouch.min.js
new file mode 100644
index 0000000..c9ebc4a
--- /dev/null
+++ b/public/javascripts/jqtouch.min.js
@@ -0,0 +1,88 @@
+(function($){var currentPage=null;var currentDialog=null;var currentHash=location.hash;var hashPrefix="#";var currentWidth=0;var pageHistory=[];var pageHistoryInfo=[];var newPageCount=0;var checkTimer;$.fn.jQTouch=function(options)
+{var defaults={fullScreen:true,slideInSelector:'ul li a',backSelector:'.back',flipSelector:'.flip',slideUpSelector:'.slideup',statusBar:'default',icon:null,iconIsGlossy:false,fixedViewport:true};var settings=$.extend({},defaults,options);var head=$('head');if(settings.backSelector)
+{$(settings.backSelector).live('click',function(){history.back();return false;});}
+if(settings.icon)
+{var precomposed=(settings.iconIsGlossy)?'':'-precomposed';head.append('
');}
+if(settings.fixedViewport)
+{head.append('
');}
+if(settings.fullScreen)
+{head.append('
');if(settings.statusBar)
+{head.append('
');}}
+var liveSelectors=[];if(settings.slideInSelector)liveSelectors.push(settings.slideInSelector);if(settings.flipSelector)liveSelectors.push(settings.flipSelector);if(settings.slideUpSelector)liveSelectors.push(settings.slideUpSelector);if(liveSelectors.length>0)
+{$(liveSelectors.join(', ')).live('click',function(){var jelem=$(this);var hash=jelem.attr('hash');var transition='slideInOut';if($(this).is(settings.flipSelector))transition='flip';if($(this).is(settings.slideUpSelector))transition='slideUp';if(hash&&hash!='#')
+{jelem.attr('selected','true');$.fn.jQTouch.showPage($(hash),transition);setTimeout($.fn.unselect,350,$(this));}
+else if(jelem.attr('href')!='#')
+{jelem.attr('selected','progress');try{$.fn.jQTouch.showPageByHref($(this).attr('href'),null,null,null,transition,function(){setTimeout($.fn.unselect,350,jelem);});}
+catch(err)
+{console.log(err);}}
+return false;});$(function(){var page=$.fn.jQTouch.getSelectedPage();if(page)$.fn.jQTouch.showPage(page);$.fn.jQTouch.startCheck();})}}
+$.fn.ianimate=function(css,speed,fn){if(speed===0){this.css(css)
+window.setTimeout(fn,0)}else{var s=[]
+for(var i in css)
+s.push(i)
+this.css({webkitTransitionProperty:s.join(", "),webkitTransitionDuration:speed+"ms",webkitTransitionTimingFunction:'ease-in-out'});window.setTimeout(function(x,y){x.css(y)},0,this,css)
+window.setTimeout(fn,speed)}
+return this;}
+$.fn.jQTouch.checkOrientAndLocation=function()
+{if(window.innerWidth!=currentWidth)
+{currentWidth=window.innerWidth;currentHeight=window.innerHeight;var orient=currentWidth
*[selected!=false]').slice(0,1);}
+$.fn.jQTouch.showPage=function(page,transition,backwards)
+{if(page)
+{if(currentDialog)
+{currentDialog.attr('selected',null);currentDialog=null;}
+var fromPage=currentPage;currentPage=page;if(fromPage)
+$.fn.jQTouch.animatePages(fromPage,page,transition,backwards);else
+$.fn.jQTouch.updatePage(page,fromPage,transition);}}
+$.fn.jQTouch.showPageById=function(hash)
+{var page=$(hash);if(page)
+{var transition;var currentIndex=pageHistory.indexOf(currentHash);var index=pageHistory.indexOf(hash);var backwards=index!=-1;if(backwards){transition=pageHistoryInfo[currentIndex].transition;pageHistory.splice(index,pageHistory.length);pageHistoryInfo.splice(index,pageHistoryInfo.length);}
+$.fn.jQTouch.showPage(page,transition,backwards);}}
+$.fn.jQTouch.insertPages=function(nodes,transition)
+{var targetPage;nodes.each(function(index,node){if(!$(this).attr('id'))
+$(this).attr('id',(++newPageCount));$(this).appendTo($('body'));if($(this).attr('selected')=='true'||(!targetPage&&!$(this).hasClass('btn')))
+targetPage=$(this);});if(targetPage)$.fn.jQTouch.showPage(targetPage,transition);}
+$.fn.jQTouch.showPageByHref=function(href,data,method,replace,transition,cb)
+{$.ajax({url:href,data:data,type:method||"GET",success:function(data,textStatus)
+{$('a[selected="progress"]').attr('selected','true');if(replace)$(replace).replaceWith(data);else
+{$.fn.jQTouch.insertPages($(data));}
+if(cb)cb(true);},error:function(data)
+{if(cb)cb(false);}});}
+$.fn.jQTouch.submitForm=function()
+{$.fn.jQTouch.showPageByHref($(this).attr('action')||"POST",$(this).serialize(),$(this).attr('method'));return false;}
+$.fn.showForm=function()
+{return this.each(function(){$(this).submit($.fn.jQTouch.submitForm);});}
+$.fn.jQTouch.animatePages=function(fromPage,toPage,transition,backwards)
+{clearInterval(checkTimer);if(transition=='flip'){toPage.flip({backwards:backwards});fromPage.flip({backwards:backwards});}
+else if(transition=='slideUp')
+{if(backwards)
+{toPage.attr('selected',true);fromPage.slideUpDown({backwards:backwards});}
+else
+{toPage.slideUpDown({backwards:backwards});}}
+else
+{toPage.slideInOut({backwards:backwards});fromPage.slideInOut({backwards:backwards});}
+setTimeout(function(){fromPage.attr('selected','false');$.fn.jQTouch.updatePage(toPage,fromPage,transition);$.fn.jQTouch.startCheck();},500);}
+$.fn.jQTouch.startCheck=function()
+{checkTimer=setInterval($.fn.jQTouch.checkOrientAndLocation,350);}
+$.fn.jQTouch.updatePage=function(page,fromPage,transition)
+{if(page)
+{if(!page.attr('id'))
+page.attr('id',(++newPageCount));location.replace(hashPrefix+page.attr('id'));currentHash=location.hash;pageHistory.push(currentHash);pageHistoryInfo.push({page:page,transition:transition});if(page.attr('localName')=="form"&&!page.attr('target'))
+{page.showForm();}}}
+$.fn.unselect=function(obj)
+{obj.attr('selected',false);}
+$.preloadImages=function(imgs)
+{for(var i=imgs.length-1;i>=0;i--){(new Image()).src=imgs[i];};}
+$.fn.flip=function(options)
+{this.each(function(){var defaults={direction:'toggle',backwards:false};var settings=$.extend({},defaults,options);var dir=((settings.direction=='toggle'&&$(this).attr('selected')=='true')||settings.direction=='out')?1:-1;if(dir==-1)$(this).attr('selected','true');$(this).parent().css({webkitPerspective:'2000'});$(this).css({'-webkit-backface-visibility':'hidden','-webkit-transform':'rotateY('+((dir==1)?'0':(!settings.backwards?'-':'')+'180')+'deg)'}).ianimate({'-webkit-transform':'rotateY('+((dir==1)?(settings.backwards?'-':'')+'180':'0')+'deg)'},350);})}
+$.fn.slideInOut=function(options)
+{var defaults={direction:'toggle',backwards:false};var settings=$.extend({},defaults,options);this.each(function(){var dir=((settings.direction=='toggle'&&$(this).attr('selected')=='true')||settings.direction=='out')?1:-1;if(dir==-1){$(this).attr('selected','true').css({'-webkit-transform':'translateX('+(settings.backwards?-1:1)*currentWidth+'px)'}).ianimate({'-webkit-transform':'translateX(0px)'},350).find('h1, .button').css('opacity',0).ianimate({'opacity':1},100);}
+else
+{$(this).ianimate({'-webkit-transform':'translateX('+((settings.backwards?1:-1)*dir*currentWidth)+'px)'},350).find('h1, .button').ianimate({'opacity':0},100);}})}
+$.fn.slideUpDown=function(options)
+{var defaults={direction:'toggle',backwards:false};var settings=$.extend({},defaults,options);this.each(function(){var dir=((settings.direction=='toggle'&&$(this).attr('selected')=='true')||settings.direction=='out')?1:-1;if(dir==-1){$(this).attr('selected','true').css({'-webkit-transform':'translateY('+(settings.backwards?-1:1)*currentHeight+'px)'}).ianimate({'-webkit-transform':'translateY(0px)'},350).find('h1, .button').css('opacity',0).ianimate({'opacity':1},100);}
+else
+{$(this).ianimate({'-webkit-transform':'translateY('+currentHeight+'px)'},350).find('h1, .button').ianimate({'opacity':0},100);}})}})(jQuery);
\ No newline at end of file
diff --git a/public/javascripts/jquery-1.3.2.min.js b/public/javascripts/jquery-1.3.2.min.js
new file mode 100644
index 0000000..b1ae21d
--- /dev/null
+++ b/public/javascripts/jquery-1.3.2.min.js
@@ -0,0 +1,19 @@
+/*
+ * jQuery JavaScript Library v1.3.2
+ * http://jquery.com/
+ *
+ * Copyright (c) 2009 John Resig
+ * Dual licensed under the MIT and GPL licenses.
+ * http://docs.jquery.com/License
+ *
+ * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
+ * Revision: 6246
+ */
+(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(G?G.index(H)>-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G1||G>0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&&o.nodeName(N,"table")&&o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+">"+T+">"});var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();var Q=!O.indexOf("",""]||!O.indexOf("",""]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,""]||!O.indexOf("","