+
+
+
+
diff --git a/src/ChatPage/chat/BypassLoginForm/img/WebChatHeader.png b/src/ChatPage/chat/BypassLoginForm/img/WebChatHeader.png
new file mode 100755
index 0000000..f333cc9
Binary files /dev/null and b/src/ChatPage/chat/BypassLoginForm/img/WebChatHeader.png differ
diff --git a/src/ChatPage/chat/BypassLoginForm/img/WebChatHeader_rtl.png b/src/ChatPage/chat/BypassLoginForm/img/WebChatHeader_rtl.png
new file mode 100755
index 0000000..490889c
Binary files /dev/null and b/src/ChatPage/chat/BypassLoginForm/img/WebChatHeader_rtl.png differ
diff --git a/src/ChatPage/chat/BypassLoginForm/img/ball.png b/src/ChatPage/chat/BypassLoginForm/img/ball.png
new file mode 100755
index 0000000..ae0ef19
Binary files /dev/null and b/src/ChatPage/chat/BypassLoginForm/img/ball.png differ
diff --git a/src/ChatPage/chat/BypassLoginForm/img/check.png b/src/ChatPage/chat/BypassLoginForm/img/check.png
new file mode 100755
index 0000000..4f8668d
Binary files /dev/null and b/src/ChatPage/chat/BypassLoginForm/img/check.png differ
diff --git a/src/ChatPage/chat/BypassLoginForm/img/disconnect.gif b/src/ChatPage/chat/BypassLoginForm/img/disconnect.gif
new file mode 100755
index 0000000..b8061f9
Binary files /dev/null and b/src/ChatPage/chat/BypassLoginForm/img/disconnect.gif differ
diff --git a/src/ChatPage/chat/BypassLoginForm/img/error.png b/src/ChatPage/chat/BypassLoginForm/img/error.png
new file mode 100755
index 0000000..a967815
Binary files /dev/null and b/src/ChatPage/chat/BypassLoginForm/img/error.png differ
diff --git a/src/ChatPage/chat/BypassLoginForm/img/message_indicator.png b/src/ChatPage/chat/BypassLoginForm/img/message_indicator.png
new file mode 100755
index 0000000..53946aa
Binary files /dev/null and b/src/ChatPage/chat/BypassLoginForm/img/message_indicator.png differ
diff --git a/src/ChatPage/chat/BypassLoginForm/img/message_indicator_rtl.png b/src/ChatPage/chat/BypassLoginForm/img/message_indicator_rtl.png
new file mode 100755
index 0000000..da96fae
Binary files /dev/null and b/src/ChatPage/chat/BypassLoginForm/img/message_indicator_rtl.png differ
diff --git a/src/ChatPage/chat/BypassLoginForm/img/spinner.gif b/src/ChatPage/chat/BypassLoginForm/img/spinner.gif
new file mode 100755
index 0000000..ce2baf8
Binary files /dev/null and b/src/ChatPage/chat/BypassLoginForm/img/spinner.gif differ
diff --git a/src/ChatPage/chat/BypassLoginForm/img/triangle.png b/src/ChatPage/chat/BypassLoginForm/img/triangle.png
new file mode 100755
index 0000000..529f5ef
Binary files /dev/null and b/src/ChatPage/chat/BypassLoginForm/img/triangle.png differ
diff --git a/src/ChatPage/chat/BypassLoginForm/img/typing_16x32.png b/src/ChatPage/chat/BypassLoginForm/img/typing_16x32.png
new file mode 100755
index 0000000..35844ff
Binary files /dev/null and b/src/ChatPage/chat/BypassLoginForm/img/typing_16x32.png differ
diff --git a/src/ChatPage/chat/BypassLoginForm/img/typing_16x32_rtl.png b/src/ChatPage/chat/BypassLoginForm/img/typing_16x32_rtl.png
new file mode 100755
index 0000000..4ae3dc2
Binary files /dev/null and b/src/ChatPage/chat/BypassLoginForm/img/typing_16x32_rtl.png differ
diff --git a/src/ChatPage/chat/BypassLoginForm/img/user.png b/src/ChatPage/chat/BypassLoginForm/img/user.png
new file mode 100755
index 0000000..e12702c
Binary files /dev/null and b/src/ChatPage/chat/BypassLoginForm/img/user.png differ
diff --git a/src/ChatPage/chat/BypassLoginForm/img/user_rtl.png b/src/ChatPage/chat/BypassLoginForm/img/user_rtl.png
new file mode 100755
index 0000000..e12702c
Binary files /dev/null and b/src/ChatPage/chat/BypassLoginForm/img/user_rtl.png differ
diff --git a/src/ChatPage/chat/BypassLoginForm/index.html b/src/ChatPage/chat/BypassLoginForm/index.html
new file mode 100755
index 0000000..822141a
--- /dev/null
+++ b/src/ChatPage/chat/BypassLoginForm/index.html
@@ -0,0 +1,54 @@
+
+
+
+ Bypass Login Form Example
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/ChatPage/chat/BypassLoginForm/js/Customizations.js b/src/ChatPage/chat/BypassLoginForm/js/Customizations.js
new file mode 100755
index 0000000..6391407
--- /dev/null
+++ b/src/ChatPage/chat/BypassLoginForm/js/Customizations.js
@@ -0,0 +1,264 @@
+/************************************************************************************************
+* This file contains Javascript code authored by Interactive Intelligence, Inc. *
+* *
+* The contents of this file are warranted to function as intended, provided they are not *
+* modified in any way by customers, end users, or other parties. *
+* *
+* During the course of this product's support lifecycle, Interactive Intelligence, Inc. may *
+* publish updates to this file at any time, via an SU or similar process. If other *
+* modifications are made to this file, these modifications may therefore be overwritten. *
+* *
+* Customers are encouraged to extend the functionality provided in this file, by creating *
+* additional file(s) which use this file as an API. *
+************************************************************************************************/
+
+define(['common', 'ui', 'WebServices'], function(common, ui, webservices)
+{
+ var customizations = common.Type.registerLocalNamespace("customizations");
+
+/**
+ * CustomLoginInfoSource class
+ *
+ * In the default installation, a page is shown which allows the user to
+ * select between tabs for Chat, Callback, and Registration. To create a
+ * chat, the user must type their name (and optionally, a password) and
+ * press the "Start Chat" button. To create a callback, the user must type
+ * their name, telephone number, callback description, (and optionally a
+ * password), and press the "Start Callback" button.
+ *
+ * This is because ui._Internal._DefaultLoginInfoSource is not
+ * able to get login information from any other source, so the default action is
+ * to show that page.
+ *
+ * This subclass of _DefaultLoginInfoSource obtains login data from form submission
+ * data, and the login form is therefore not shown.
+ */
+customizations.CustomLoginInfoSource = Class.create(ui._Internal._DefaultLoginInfoSource,
+{
+ initialize : function()
+ {
+ // Create an instance of the class that is defined just below this one.
+ // This line could be placed elsewhere if desired, such as in chatOrCallback.html.
+ var customLifecycleEventsObserverSingleton = new customizations.CustomLifecycleEventsObserver();
+ },
+
+ /**
+ * Skip the login page, and begin a chat right away using a username
+ * obtained from the form in this example's index.html
+ */
+ get_chatUsername : function()
+ {
+ // This line may be used to extract the value from the query string
+ return this.get_queryStringValue("chatUsername");
+ },
+
+ /**
+ * If get_chatUsername() returns non-null, this method may optionally be
+ * used to return the password of that user. If an anonymous chat is
+ * desired, simply implement get_chatUsername() but allow get_chatPassword() to
+ * return null.
+ */
+ get_chatPassword : function()
+ {
+ // This line may be used to extract the value from the query string (though that
+ // is perhaps not a wise place for a password to be!)
+ return this.get_queryStringValue("chatPassword");
+ },
+
+ /**
+ * Skip the login page, and begin a callback right away using a username
+ * obtained from the form in this example's index.html
+ * Note that if get_chatUsername() also returns a non-null value, that will
+ * take priority and a chat will be started, not a callback.
+ */
+ get_callbackUsername : function()
+ {
+ // This line may be used to extract the value from the query string
+ return this.get_queryStringValue("callbackUsername");
+ },
+
+ /**
+ * If get_callbackUsername() returns non-null, this method may optionally be
+ * used to return the password of that user. If an anonymous callback is
+ * desired, simply implement get_callbackUsername() but allow get_callbackPassword() to
+ * return null.
+ */
+ get_callbackPassword : function()
+ {
+ // This line may be used to extract the value from the query string (though that
+ // is perhaps not a wise place for a password to be!)
+ return this.get_queryStringValue("callbackPassword");
+ },
+
+ /**
+ * If get_callbackUsername() returns non-null, this method shall return that user's
+ * telephone number.
+ */
+ get_callbackTelephone : function()
+ {
+ // This line may be used to extract the value from the query string
+ return this.get_queryStringValue("callbackTelephone");
+ },
+
+ /**
+ * If get_callbackUsername() returns non-null, this method shall return the subject which
+ * that user wishes to discuss.
+ */
+ get_callbackDescription : function()
+ {
+ // This line may be used to extract the value from the query string
+ return this.get_queryStringValue("callbackDescription");
+ },
+
+ /**
+ * The purpose of this example is to use usernames, passwords, etc. that were obtained from
+ * an external source. This is a helper method which uses the query string as that source.
+ * Customers could easily replace this (or the calls to this) with code that gets the values
+ * from other sources instead.
+ *
+ * @param key A key from a key+value pair in the query string
+ */
+ get_queryStringValue : function(key)
+ {
+ var value = common.Utilities.getQueryStringValue(key);
+
+ if (null == value)
+ {
+ return null;
+ }
+
+ // Undo the URL encoding that was done when the form was submitted.
+ // For instance, change "John+Doe" back to "John Doe"
+ return decodeURIComponent(value.replace(/\+/g, ' '));
+ }
+});
+
+/**
+ * CustomLifecycleEventObserver class
+ *
+ * In the default implementation, Notifications are sent when a chat or callback is
+ * created, when a chat ends, and when an attempt to create a chat or callback
+ * fails.
+ *
+ * This class listens for these Notifications and simply pops up some Javascript alerts.
+ */
+customizations.CustomLifecycleEventsObserver = Class.create(common.InterfaceImplementation,
+{
+ initialize : function($super)
+ {
+ $super();
+ this.addImplementedInterface(webservices.Interfaces.IChatCreationNotificationObserver, webservices);
+ this.addImplementedInterface(webservices.Interfaces.IChatCreationFailureNotificationObserver, webservices);
+ this.addImplementedInterface(webservices.Interfaces.IChatCompletionNotificationObserver, webservices);
+ this.addImplementedInterface(webservices.Interfaces.IChatCompletionFailureNotificationObserver, webservices);
+ this.addImplementedInterface(webservices.Interfaces.ICallbackCreationNotificationObserver, webservices);
+ this.addImplementedInterface(webservices.Interfaces.ICallbackCreationFailureNotificationObserver, webservices);
+ webservices.NotificationRegistry.registerObserver(this, webservices.Interfaces.IChatCreationNotification);
+ webservices.NotificationRegistry.registerObserver(this, webservices.Interfaces.IChatCreationFailureNotification);
+ webservices.NotificationRegistry.registerObserver(this, webservices.Interfaces.IChatCompletionNotification);
+ webservices.NotificationRegistry.registerObserver(this, webservices.Interfaces.IChatCompletionFailureNotification);
+ webservices.NotificationRegistry.registerObserver(this, webservices.Interfaces.ICallbackCreationNotification);
+ webservices.NotificationRegistry.registerObserver(this, webservices.Interfaces.ICallbackCreationFailureNotification);
+ },
+
+ /**
+ * This method is called when a chat is created successfully.
+ *
+ * @param chatCreationNotification An object that implements IChatCreationNotification. (Ignored)
+ */
+ processChatCreationNotification : function(chatCreationNotification)
+ {
+ console.debug('Bypass Login Form Customization: Chat created successfully!');
+ console.debug(chatCreationNotification);
+ },
+
+ /**
+ * This method is called when an attempt to create a chat fails.
+ *
+ * @param chatCreationFailureNotification An object that implements IChatCreationFailureNotification.
+ */
+ processChatCreationFailureNotification : function(chatCreationFailureNotification)
+ {
+ var error = chatCreationFailureNotification.get_error();
+ alert('Bypass Login Form Customization: Chat creation failed:\n' +
+ 'Error Source: ' + error.get_errorSource() +
+ '\nError Type: ' + error.get_errorType() +
+ '\nError SubType: ' + error.get_subErrorType() +
+ '\nError Code: ' + error.get_errorCode());
+ //history.go(-1);
+ },
+
+ /**
+ * This method is called when a chat is exited successfully.
+ *
+ * @param chatCompletionNotification An object that implements IChatCompletionNotification. (Ignored)
+ */
+ processChatCompletionNotification : function(chatCompletionNotification)
+ {
+ console.debug('Bypass Login Form Customization: Chat complete!');
+ //history.go(-1);
+ },
+
+ /**
+ * This method is called when an attempt to exit a chat fails.
+ *
+ * @param chatCompletionFailureNotification An object that implements IChatCompletionFailureNotification.
+ */
+ processChatCompletionFailureNotification : function(chatCompletionFailureNotification)
+ {
+ var error = chatCompletionFailureNotification.get_error();
+ alert('Bypass Login Form Customization: Chat competion failed:\n' +
+ 'Error Source: ' + error.get_errorSource() +
+ '\nError Type: ' + error.get_errorType() +
+ '\nError SubType: ' + error.get_subErrorType() +
+ '\nError Code: ' + error.get_errorCode());
+ //history.go(-1);
+ },
+
+ /**
+ * This method is called when a callback is created successfully.
+ *
+ * @param callbackCreationNotification An object that implements ICallbackCreationNotification. (Ignored)
+ */
+ processCallbackCreationNotification : function(callbackCreationNotification)
+ {
+ console.debug('Bypass Login Form Customization: Callback created successfully!');
+ //history.go(-1);
+ },
+
+ /**
+ * This method is called when an attempt to create a callback fails.
+ *
+ * @param callbackCreationFailureNotification An object that implements ICallbackCreationFailureNotification.
+ */
+ processCallbackCreationFailureNotification : function(callbackCreationFailureNotification)
+ {
+ var error = callbackCreationFailureNotification.get_error();
+ alert('Bypass Login Form Customization: Callback creation failed:\n' +
+ 'Error Source: ' + error.get_errorSource() +
+ '\nError Type: ' + error.get_errorType() +
+ '\nError SubType: ' + error.get_subErrorType() +
+ '\nError Code: ' + error.get_errorCode());
+ //history.go(-1);
+ }
+});
+
+ customizations.singletonImplementations =
+ {
+ "LoginInfoSource" : customizations.CustomLoginInfoSource,
+ "MaximumFieldLengths" : ui._Internal._DefaultMaximumFieldLengths,
+ "RetryCounts" : webservices._Internal._DefaultRetryCounts,
+ "TabVisibility" : ui._Internal._DefaultTabVisibility,
+ "StatusFieldsDisplay" : ui._Internal._DefaultStatusFieldsDisplay,
+ "Linkifier" : webservices._Internal._DefaultLinkifier,
+ "SendOnEnter" : webservices._Internal._DefaultSendOnEnter
+ };
+
+ customizations.nonSingletonImplementations =
+ {
+ "RegistrationFormPanel" : ui._Internal._DefaultRegistrationFormPanel
+ };
+
+ ININ.Web.Chat.Customizations = customizations; // Temporary shim
+ return customizations;
+});
diff --git a/src/ChatPage/chat/BypassLoginForm/js/External.js b/src/ChatPage/chat/BypassLoginForm/js/External.js
new file mode 100755
index 0000000..03535e8
--- /dev/null
+++ b/src/ChatPage/chat/BypassLoginForm/js/External.js
@@ -0,0 +1,300 @@
+define(function()
+{
+
+/*
+ * 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,"