diff --git a/src/main/java/org/gluu/oxtrust/action/CompAuthMode.java b/src/main/java/org/gluu/oxtrust/action/CompAuthMode.java
deleted file mode 100644
index 6e882e62f..000000000
--- a/src/main/java/org/gluu/oxtrust/action/CompAuthMode.java
+++ /dev/null
@@ -1,53 +0,0 @@
-package org.gluu.oxtrust.action;
-
-import java.io.Serializable;
-
-import org.gluu.oxtrust.ldap.service.OrganizationService;
-import org.gluu.oxtrust.model.GluuOrganization;
-import org.jboss.seam.ScopeType;
-import org.jboss.seam.annotations.Logger;
-import org.jboss.seam.annotations.Name;
-import org.jboss.seam.annotations.Scope;
-import org.jboss.seam.log.Log;
-
-/**
- * Components Authorization Mode Action
- *
- * @author Reda Zerrad Date: 05.18.2012
- */
-@Scope(ScopeType.STATELESS)
-@Name("compAuthMode")
-public class CompAuthMode implements Serializable {
-
- /**
- *
- */
- private static final long serialVersionUID = 6411825264007429787L;
-
- @Logger
- private Log log;
-
- public String confAuthMode() {
- try {
- log.info(" Request received ");
- OrganizationService orgService;
- orgService = OrganizationService.instance();
-
- GluuOrganization org = orgService.getOrganization();
-
- if (org.getScimAuthMode().equalsIgnoreCase("bearer")) {
-
- return "bearer";
- } else if (org.getScimAuthMode().equalsIgnoreCase("basic")) {
-
- return "basic";
- }
- return "Error";
- } catch (Exception ex) {
- log.error("Could not get ScimAuthMode : ", ex);
-
- return "Error";
- }
- }
-
-}
diff --git a/src/main/java/org/gluu/oxtrust/action/ScimConfigurationAction.java b/src/main/java/org/gluu/oxtrust/action/ScimConfigurationAction.java
deleted file mode 100644
index ba7fc9e1b..000000000
--- a/src/main/java/org/gluu/oxtrust/action/ScimConfigurationAction.java
+++ /dev/null
@@ -1,140 +0,0 @@
-package org.gluu.oxtrust.action;
-
-import java.io.Serializable;
-
-import org.gluu.oxtrust.ldap.service.GroupService;
-import org.gluu.oxtrust.ldap.service.OrganizationService;
-import org.gluu.oxtrust.model.GluuGroup;
-import org.gluu.oxtrust.model.GluuOrganization;
-import org.gluu.oxtrust.util.OxTrustConstants;
-import org.gluu.site.ldap.persistence.exception.LdapMappingException;
-import org.jboss.seam.ScopeType;
-import org.jboss.seam.annotations.In;
-import org.jboss.seam.annotations.Logger;
-import org.jboss.seam.annotations.Name;
-import org.jboss.seam.annotations.Scope;
-import org.jboss.seam.annotations.security.Restrict;
-import org.jboss.seam.log.Log;
-import org.xdi.ldap.model.GluuStatus;
-import org.xdi.util.StringHelper;
-
-/**
- * SCIM Access Token retriever Action
- *
- * @author Yuriy Movchan Date: 08/05/2013
- */
-@Scope(ScopeType.CONVERSATION)
-@Name("scimConfigurationAction")
-@Restrict("#{identity.loggedIn}")
-public class ScimConfigurationAction implements Serializable {
-
- private static final long serialVersionUID = 6356638577562487737L;
-
- @Logger
- private Log log;
-
- @In
- private OrganizationService organizationService;
-
- @In
- private GroupService groupService;
-
- private boolean initialized;
-
- private GluuOrganization organization;
-
- private GluuGroup scimGroup;
-
- @Restrict("#{s:hasPermission('scim', 'access')}")
- public String init() {
- if (this.organization != null) {
- return OxTrustConstants.RESULT_SUCCESS;
- }
-
- this.organization = organizationService.getOrganization();
- this.scimGroup = getScimGroup(this.organization);
- if (this.scimGroup == null) {
- return OxTrustConstants.RESULT_FAILURE;
- }
-
- this.initialized = true;
-
- return OxTrustConstants.RESULT_SUCCESS;
- }
-
- @Restrict("#{s:hasPermission('scim', 'access')}")
- public void cancel() {
- }
-
- private GluuGroup getScimGroup(GluuOrganization organization) {
- String scimGroupDn = organization.getScimGroup();
- if (StringHelper.isEmpty(scimGroupDn)) {
- return null;
- }
-
- try {
- GluuGroup scimGroup = groupService.getGroupByDn(scimGroupDn);
- if (scimGroup == null) {
- return null;
- }
-
- return scimGroup;
- } catch (LdapMappingException ex) {
- log.error("Failed to load SCIM group by DN: '{0}'", ex, scimGroupDn);
-
- return null;
- }
- }
-
-
- @Restrict("#{s:hasPermission('scim', 'access')}")
- public String changeScimStatus() {
- try {
- if (GluuStatus.ACTIVE.equals(this.organization.getScimStatus())) {
- this.organization.setScimStatus(GluuStatus.INACTIVE);
- } else {
- this.organization.setScimStatus(GluuStatus.ACTIVE);
- }
-
- this.organizationService.updateOrganization(this.organization);
- } catch (Exception ex) {
- log.error("Could not change ScimStatus", ex);
-
- return OxTrustConstants.RESULT_FAILURE;
- }
-
- return OxTrustConstants.RESULT_SUCCESS;
- }
-
- @Restrict("#{s:hasPermission('scim', 'access')}")
- public String changeAuthMode() {
- try {
- if (StringHelper.equalsIgnoreCase(this.organization.getScimAuthMode(), "bearer")) {
- this.organization.setScimAuthMode("basic");
- } else {
- this.organization.setScimAuthMode("bearer");
- }
-
- this.organizationService.updateOrganization(this.organization);
- } catch (Exception ex) {
- log.error("Could not change ScimStatus", ex);
-
- return OxTrustConstants.RESULT_FAILURE;
- }
-
- return OxTrustConstants.RESULT_SUCCESS;
- }
-
- public boolean isInitialized() {
- return initialized;
- }
-
- public GluuOrganization getOrganization() {
- return organization;
- }
-
- public GluuGroup getScimGroup() {
- return scimGroup;
- }
-
-}
diff --git a/src/main/webapp/organization/scimConfiguration.page.xml b/src/main/webapp/organization/scimConfiguration.page.xml
deleted file mode 100644
index 6c0f3be19..000000000
--- a/src/main/webapp/organization/scimConfiguration.page.xml
+++ /dev/null
@@ -1,54 +0,0 @@
-
-
-
- #{s:hasPermission('configuration', 'access')}
-
-
-
-
-
-
-
-
-
-
- You don't have permissions to modify SCIM configuration
-
-
-
-
-
-
- SCIM doesn't enabled on this server
-
-
-
-
-
-
- Failed to prepare form for SCIM configuration update
-
-
-
-
-
-
-
-
- SCIM configuration updated
-
-
-
-
-
-
-
- SCIM configuration update canceled
-
-
-
-
diff --git a/src/main/webapp/organization/scimConfiguration.xhtml b/src/main/webapp/organization/scimConfiguration.xhtml
deleted file mode 100644
index be6ad3277..000000000
--- a/src/main/webapp/organization/scimConfiguration.xhtml
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/main/webapp/resources/images/loginbox_bg.jpg b/src/main/webapp/resources/images/loginbox_bg.jpg
deleted file mode 100644
index 67b6c1f49..000000000
Binary files a/src/main/webapp/resources/images/loginbox_bg.jpg and /dev/null differ
diff --git a/src/main/webapp/resources/images/menu_bg.png b/src/main/webapp/resources/images/menu_bg.png
deleted file mode 100644
index d0303e150..000000000
Binary files a/src/main/webapp/resources/images/menu_bg.png and /dev/null differ
diff --git a/src/main/webapp/resources/images/personinventorytable_bg.jpg b/src/main/webapp/resources/images/personinventorytable_bg.jpg
deleted file mode 100644
index 1a0449279..000000000
Binary files a/src/main/webapp/resources/images/personinventorytable_bg.jpg and /dev/null differ
diff --git a/src/main/webapp/resources/images/seam2_bg.jpg b/src/main/webapp/resources/images/seam2_bg.jpg
deleted file mode 100644
index e28f3c60e..000000000
Binary files a/src/main/webapp/resources/images/seam2_bg.jpg and /dev/null differ
diff --git a/src/main/webapp/resources/img/colorpicker/blank.gif b/src/main/webapp/resources/img/colorpicker/blank.gif
deleted file mode 100644
index 75b945d25..000000000
Binary files a/src/main/webapp/resources/img/colorpicker/blank.gif and /dev/null differ
diff --git a/src/main/webapp/resources/img/colorpicker/colorpicker_background.png b/src/main/webapp/resources/img/colorpicker/colorpicker_background.png
deleted file mode 100644
index 8401572f1..000000000
Binary files a/src/main/webapp/resources/img/colorpicker/colorpicker_background.png and /dev/null differ
diff --git a/src/main/webapp/resources/img/colorpicker/colorpicker_hex.png b/src/main/webapp/resources/img/colorpicker/colorpicker_hex.png
deleted file mode 100644
index 4e532d7c6..000000000
Binary files a/src/main/webapp/resources/img/colorpicker/colorpicker_hex.png and /dev/null differ
diff --git a/src/main/webapp/resources/img/colorpicker/colorpicker_hsb_b.png b/src/main/webapp/resources/img/colorpicker/colorpicker_hsb_b.png
deleted file mode 100644
index dfac595d0..000000000
Binary files a/src/main/webapp/resources/img/colorpicker/colorpicker_hsb_b.png and /dev/null differ
diff --git a/src/main/webapp/resources/img/colorpicker/colorpicker_hsb_h.png b/src/main/webapp/resources/img/colorpicker/colorpicker_hsb_h.png
deleted file mode 100644
index 3977ed9f2..000000000
Binary files a/src/main/webapp/resources/img/colorpicker/colorpicker_hsb_h.png and /dev/null differ
diff --git a/src/main/webapp/resources/img/colorpicker/colorpicker_hsb_s.png b/src/main/webapp/resources/img/colorpicker/colorpicker_hsb_s.png
deleted file mode 100644
index a2a699736..000000000
Binary files a/src/main/webapp/resources/img/colorpicker/colorpicker_hsb_s.png and /dev/null differ
diff --git a/src/main/webapp/resources/img/colorpicker/colorpicker_indic.gif b/src/main/webapp/resources/img/colorpicker/colorpicker_indic.gif
deleted file mode 100644
index f9fa95e28..000000000
Binary files a/src/main/webapp/resources/img/colorpicker/colorpicker_indic.gif and /dev/null differ
diff --git a/src/main/webapp/resources/img/colorpicker/colorpicker_overlay.png b/src/main/webapp/resources/img/colorpicker/colorpicker_overlay.png
deleted file mode 100644
index 561cdd9c5..000000000
Binary files a/src/main/webapp/resources/img/colorpicker/colorpicker_overlay.png and /dev/null differ
diff --git a/src/main/webapp/resources/img/colorpicker/colorpicker_rgb_b.png b/src/main/webapp/resources/img/colorpicker/colorpicker_rgb_b.png
deleted file mode 100644
index dfac595d0..000000000
Binary files a/src/main/webapp/resources/img/colorpicker/colorpicker_rgb_b.png and /dev/null differ
diff --git a/src/main/webapp/resources/img/colorpicker/colorpicker_rgb_g.png b/src/main/webapp/resources/img/colorpicker/colorpicker_rgb_g.png
deleted file mode 100644
index 72b32760a..000000000
Binary files a/src/main/webapp/resources/img/colorpicker/colorpicker_rgb_g.png and /dev/null differ
diff --git a/src/main/webapp/resources/img/colorpicker/colorpicker_rgb_r.png b/src/main/webapp/resources/img/colorpicker/colorpicker_rgb_r.png
deleted file mode 100644
index 4855fe03f..000000000
Binary files a/src/main/webapp/resources/img/colorpicker/colorpicker_rgb_r.png and /dev/null differ
diff --git a/src/main/webapp/resources/img/colorpicker/colorpicker_select.gif b/src/main/webapp/resources/img/colorpicker/colorpicker_select.gif
deleted file mode 100644
index 599f7f13a..000000000
Binary files a/src/main/webapp/resources/img/colorpicker/colorpicker_select.gif and /dev/null differ
diff --git a/src/main/webapp/resources/img/colorpicker/colorpicker_submit.png b/src/main/webapp/resources/img/colorpicker/colorpicker_submit.png
deleted file mode 100644
index 7f4c0825f..000000000
Binary files a/src/main/webapp/resources/img/colorpicker/colorpicker_submit.png and /dev/null differ
diff --git a/src/main/webapp/resources/img/colorpicker/custom_background.png b/src/main/webapp/resources/img/colorpicker/custom_background.png
deleted file mode 100644
index cf55ffdd6..000000000
Binary files a/src/main/webapp/resources/img/colorpicker/custom_background.png and /dev/null differ
diff --git a/src/main/webapp/resources/img/colorpicker/custom_hex.png b/src/main/webapp/resources/img/colorpicker/custom_hex.png
deleted file mode 100644
index 888f44449..000000000
Binary files a/src/main/webapp/resources/img/colorpicker/custom_hex.png and /dev/null differ
diff --git a/src/main/webapp/resources/img/colorpicker/custom_hsb_b.png b/src/main/webapp/resources/img/colorpicker/custom_hsb_b.png
deleted file mode 100644
index 2f99dae8e..000000000
Binary files a/src/main/webapp/resources/img/colorpicker/custom_hsb_b.png and /dev/null differ
diff --git a/src/main/webapp/resources/img/colorpicker/custom_hsb_h.png b/src/main/webapp/resources/img/colorpicker/custom_hsb_h.png
deleted file mode 100644
index a217e9218..000000000
Binary files a/src/main/webapp/resources/img/colorpicker/custom_hsb_h.png and /dev/null differ
diff --git a/src/main/webapp/resources/img/colorpicker/custom_hsb_s.png b/src/main/webapp/resources/img/colorpicker/custom_hsb_s.png
deleted file mode 100644
index 7826b4150..000000000
Binary files a/src/main/webapp/resources/img/colorpicker/custom_hsb_s.png and /dev/null differ
diff --git a/src/main/webapp/resources/img/colorpicker/custom_indic.gif b/src/main/webapp/resources/img/colorpicker/custom_indic.gif
deleted file mode 100644
index 222fb94cf..000000000
Binary files a/src/main/webapp/resources/img/colorpicker/custom_indic.gif and /dev/null differ
diff --git a/src/main/webapp/resources/img/colorpicker/custom_rgb_b.png b/src/main/webapp/resources/img/colorpicker/custom_rgb_b.png
deleted file mode 100644
index 80764e5d6..000000000
Binary files a/src/main/webapp/resources/img/colorpicker/custom_rgb_b.png and /dev/null differ
diff --git a/src/main/webapp/resources/img/colorpicker/custom_rgb_g.png b/src/main/webapp/resources/img/colorpicker/custom_rgb_g.png
deleted file mode 100644
index fc9778be1..000000000
Binary files a/src/main/webapp/resources/img/colorpicker/custom_rgb_g.png and /dev/null differ
diff --git a/src/main/webapp/resources/img/colorpicker/custom_rgb_r.png b/src/main/webapp/resources/img/colorpicker/custom_rgb_r.png
deleted file mode 100644
index 91b0cd4c5..000000000
Binary files a/src/main/webapp/resources/img/colorpicker/custom_rgb_r.png and /dev/null differ
diff --git a/src/main/webapp/resources/img/colorpicker/custom_submit.png b/src/main/webapp/resources/img/colorpicker/custom_submit.png
deleted file mode 100644
index cd202cd93..000000000
Binary files a/src/main/webapp/resources/img/colorpicker/custom_submit.png and /dev/null differ
diff --git a/src/main/webapp/resources/img/colorpicker/select.png b/src/main/webapp/resources/img/colorpicker/select.png
deleted file mode 100644
index 21213bfd5..000000000
Binary files a/src/main/webapp/resources/img/colorpicker/select.png and /dev/null differ
diff --git a/src/main/webapp/resources/img/colorpicker/select2.png b/src/main/webapp/resources/img/colorpicker/select2.png
deleted file mode 100644
index 2cd2cabeb..000000000
Binary files a/src/main/webapp/resources/img/colorpicker/select2.png and /dev/null differ
diff --git a/src/main/webapp/resources/img/colorpicker/slider.png b/src/main/webapp/resources/img/colorpicker/slider.png
deleted file mode 100644
index 8b03da96e..000000000
Binary files a/src/main/webapp/resources/img/colorpicker/slider.png and /dev/null differ
diff --git a/src/main/webapp/resources/img/msgwarn.png b/src/main/webapp/resources/img/msgwarn.png
deleted file mode 100644
index 69a83fb98..000000000
Binary files a/src/main/webapp/resources/img/msgwarn.png and /dev/null differ
diff --git a/src/main/webapp/resources/js/attributesSlide.js b/src/main/webapp/resources/js/attributesSlide.js
deleted file mode 100644
index 46a0337e2..000000000
--- a/src/main/webapp/resources/js/attributesSlide.js
+++ /dev/null
@@ -1,57 +0,0 @@
-var visible = false;
-
-function slideUpAndDown() {
- $(document).ready(function() {
- var element = document.getElementById("personForm:attrs");
- if (element.style.display == "none") {
- sh();
- } else {
- hi();
-
- }
- });
-};
-
-Effect.BlindRight = function(element) {
- element = $(element);
- var elementDimensions = element.getDimensions();
- return new Effect.Scale(element, 100, Object.extend({
- scaleContent : true,
- scaleY : false,
- scaleFrom : 0,
- scaleMode : {
- originalHeight : elementDimensions.height,
- originalWidth : elementDimensions.width
- },
- restoreAfterFinish : true,
- afterSetup : function(effect) {
- effect.element.makeClipping().setStyle({
- width : '0px',
- height : effect.dims[0] + 'px'
- }).show();
- },
- afterFinishInternal : function(effect) {
- effect.element.undoClipping();
- }
- }, arguments[1] || {}));
-};
-
-Effect.BlindLeft = function(element) {
- element = $(element);
- element.makeClipping();
- return new Effect.Scale(element, 0, Object.extend({
- scaleContent : false,
- scaleY : false,
- scaleMode : 'box',
- scaleContent : true,
- restoreAfterFinish : true,
- afterSetup : function(effect) {
- effect.element.makeClipping().setStyle({
- height : effect.dims[0] + 'px'
- }).show();
- },
- afterFinishInternal : function(effect) {
- effect.element.hide().undoClipping();
- }
- }, arguments[1] || {}));
-};
\ No newline at end of file
diff --git a/src/main/webapp/resources/js/colorpicker.js b/src/main/webapp/resources/js/colorpicker.js
deleted file mode 100644
index 00be7a35a..000000000
--- a/src/main/webapp/resources/js/colorpicker.js
+++ /dev/null
@@ -1 +0,0 @@
-eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(d($){k 1w=d(){k 3h={},3f,23=34,3e,2C=\'
\',3b={2W:\'22\',2s:d(){},2m:d(){},2q:d(){},2Z:d(){},2j:d(){},x:\'3g\',1I:1q,2a:T},1k=d(p,7){k a=1B(p);$(7).9(\'j\').M.L(1).C(a.r).13().L(2).C(a.g).13().L(3).C(a.b).13()},1y=d(p,7){$(7).9(\'j\').M.L(4).C(p.h).13().L(5).C(p.s).13().L(6).C(p.b).13()},1h=d(p,7){$(7).9(\'j\').M.L(0).C(1i(p)).13()},1H=d(p,7){$(7).9(\'j\').29.19(\'2c\',\'#\'+1i({h:p.h,s:N,b:N}));$(7).9(\'j\').2Y.19({18:K(U*p.s/N,10),12:K(U*(N-p.b)/N,10)})},1A=d(p,7){$(7).9(\'j\').2H.19(\'12\',K(U-U*p.h/1f,10))},1R=d(p,7){$(7).9(\'j\').2G.19(\'2c\',\'#\'+1i(p))},1M=d(p,7){$(7).9(\'j\').2E.19(\'2c\',\'#\'+1i(p))},33=d(c){k 1P=c.3c||c.3l||-1;n((1P>23&&1P<=3n)||1P==32){z T}k 7=$(f).G().G();n(7.9(\'j\').1I===1q){15.11(f)}},15=d(c){k 7=$(f).G().G(),e;n(f.1b.1K.1o(\'38\')>0){7.9(\'j\').x=e=1X(2x(f.3m))}F n(f.1b.1K.1o(\'35\')>0){7.9(\'j\').x=e=1W({h:K(7.9(\'j\').M.L(4).C(),10),s:K(7.9(\'j\').M.L(5).C(),10),b:K(7.9(\'j\').M.L(6).C(),10)})}F{7.9(\'j\').x=e=1C(2A({r:K(7.9(\'j\').M.L(1).C(),10),g:K(7.9(\'j\').M.L(2).C(),10),b:K(7.9(\'j\').M.L(3).C(),10)}))}n(c){1k(e,7.u(0));1h(e,7.u(0));1y(e,7.u(0))}1H(e,7.u(0));1A(e,7.u(0));1M(e,7.u(0));7.9(\'j\').2Z.11(7,[e,1i(e),1B(e)])},2g=d(c){k 7=$(f).G().G();7.9(\'j\').M.G().1V(\'1D\')},1F=d(){23=f.1b.1K.1o(\'38\')>0?3p:34;$(f).G().G().9(\'j\').M.G().1V(\'1D\');$(f).G().24(\'1D\')},2X=d(c){k 1l=$(f).G().V(\'Z\').1F();k Q={14:$(f).G().24(\'2I\'),E:f.1b.1K.1o(\'3j\')>0?1f:(f.1b.1K.1o(\'35\')>0?N:W),y:c.1U,1l:1l,C:K(1l.C(),10),1r:$(f).G().G().9(\'j\').1I};$(B).I(\'1p\',Q,2b);$(B).I(\'1s\',Q,2d)},2d=d(c){c.9.1l.C(A.E(0,A.P(c.9.E,K(c.9.C+c.1U-c.9.y,10))));n(c.9.1r){15.11(c.9.1l.u(0),[1q])}z T},2b=d(c){15.11(c.9.1l.u(0),[1q]);c.9.14.1V(\'2I\').V(\'Z\').1F();$(B).1e(\'1p\',2b);$(B).1e(\'1s\',2d);z T},2D=d(c){k Q={7:$(f).G(),y:$(f).2h().12};Q.1r=Q.7.9(\'j\').1I;$(B).I(\'1p\',Q,21);$(B).I(\'1s\',Q,2e)},2e=d(c){15.11(c.9.7.9(\'j\').M.L(4).C(K(1f*(U-A.E(0,A.P(U,(c.1U-c.9.y))))/U,10)).u(0),[c.9.1r]);z T},21=d(c){1k(c.9.7.9(\'j\').x,c.9.7.u(0));1h(c.9.7.9(\'j\').x,c.9.7.u(0));$(B).1e(\'1p\',21);$(B).1e(\'1s\',2e);z T},2L=d(c){k Q={7:$(f).G(),1u:$(f).2h()};Q.1r=Q.7.9(\'j\').1I;$(B).I(\'1p\',Q,1Z);$(B).I(\'1s\',Q,25)},25=d(c){15.11(c.9.7.9(\'j\').M.L(6).C(K(N*(U-A.E(0,A.P(U,(c.1U-c.9.1u.12))))/U,10)).13().L(5).C(K(N*(A.E(0,A.P(U,(c.3o-c.9.1u.18))))/U,10)).u(0),[c.9.1r]);z T},1Z=d(c){1k(c.9.7.9(\'j\').x,c.9.7.u(0));1h(c.9.7.9(\'j\').x,c.9.7.u(0));$(B).1e(\'1p\',1Z);$(B).1e(\'1s\',25);z T},2N=d(c){$(f).24(\'1D\')},2U=d(c){$(f).1V(\'1D\')},2V=d(c){k 7=$(f).G();k e=7.9(\'j\').x;7.9(\'j\').1T=e;1R(e,7.u(0));7.9(\'j\').2j(e,1i(e),1B(e),7.9(\'j\').14)},1x=d(c){k 7=$(\'#\'+$(f).9(\'17\'));7.9(\'j\').2m.11(f,[7.u(0)]);k 1u=$(f).2h();k 1N=2B();k 12=1u.12+f.2i;k 18=1u.18;n(12+2w>1N.t+1N.h){12-=f.2i+2w}n(18+2n>1N.l+1N.w){18-=2n}7.19({18:18+\'2r\',12:12+\'2r\'});n(7.9(\'j\').2s.11(f,[7.u(0)])!=T){7.1x()}$(B).I(\'1L\',{7:7},1z);z T},1z=d(c){n(!2o(c.9.7.u(0),c.3C,c.9.7.u(0))){n(c.9.7.9(\'j\').2q.11(f,[c.9.7.u(0)])!=T){c.9.7.1z()}$(B).1e(\'1L\',1z)}},2o=d(1d,14,2l){n(1d==14){z 1q}n(1d.2u){z 1d.2u(14)}n(1d.2z){z!!(1d.2z(14)&16)}k 1t=14.1b;3U(1t&&1t!=2l){n(1t==1d)z 1q;1t=1t.1b}z T},2B=d(){k m=B.3V==\'3T\';z{l:1O.3S||(m?B.1Q.2p:B.1G.2p),t:1O.3Q||(m?B.1Q.2y:B.1G.2y),w:1O.3R||(m?B.1Q.2t:B.1G.2t),h:1O.3X||(m?B.1Q.2v:B.1G.2v)}},1W=d(p){z{h:A.P(1f,A.E(0,p.h)),s:A.P(N,A.E(0,p.s)),b:A.P(N,A.E(0,p.b))}},2A=d(a){z{r:A.P(W,A.E(0,a.r)),g:A.P(W,A.E(0,a.g)),b:A.P(W,A.E(0,a.b))}},2x=d(H){k 27=6-H.30;n(27>0){k o=[];3W(k i=0;i<27;i++){o.2k(\'0\')}o.2k(H);H=o.37(\'\')}z H},36=d(H){k H=K(((H.1o(\'#\')>-1)?H.3Z(1):H),16);z{r:H>>16,g:(H&3Y)>>8,b:(H&3O)}},1X=d(H){z 1C(36(H))},1C=d(a){k p={h:0,s:0,b:0};k P=A.P(a.r,a.g,a.b);k E=A.E(a.r,a.g,a.b);k 1J=E-P;p.b=E;n(E!=0){}p.s=E!=0?W*1J/E:0;n(p.s!=0){n(a.r==E){p.h=(a.g-a.b)/1J}F n(a.g==E){p.h=2+(a.b-a.r)/1J}F{p.h=4+(a.r-a.g)/1J}}F{p.h=-1}p.h*=1S;n(p.h<0){p.h+=1f}p.s*=N/W;p.b*=N/W;z p},1B=d(p){k a={};k h=A.1n(p.h);k s=A.1n(p.s*W/N);k v=A.1n(p.b*W/N);n(s==0){a.r=a.g=a.b=v}F{k Y=v;k X=(W-s)*v/W;k 1g=(Y-X)*(h%1S)/1S;n(h==1f)h=0;n(h<1S){a.r=Y;a.b=X;a.g=X+1g}F n(h<3B){a.g=Y;a.b=X;a.r=Y-1g}F n(h<3P){a.g=Y;a.r=X;a.b=X+1g}F n(h<3u){a.b=Y;a.r=X;a.g=Y-1g}F n(h<3A){a.b=Y;a.g=X;a.r=X+1g}F n(h<1f){a.r=Y;a.g=X;a.b=Y-1g}F{a.r=0;a.g=0;a.b=0}}z{r:A.1n(a.r),g:A.1n(a.g),b:A.1n(a.b)}},3a=d(a){k H=[a.r.20(16),a.g.20(16),a.b.20(16)];$.1E(H,d(31,C){n(C.30==1){H[31]=\'0\'+C}});z H.37(\'\')},1i=d(p){z 3a(1B(p))},2J=d(){k 7=$(f).G();k e=7.9(\'j\').1T;7.9(\'j\').x=e;1k(e,7.u(0));1h(e,7.u(0));1y(e,7.u(0));1H(e,7.u(0));1A(e,7.u(0));1M(e,7.u(0))};z{2O:d(J){J=$.26({},3b,J||{});n(2T J.x==\'2S\'){J.x=1X(J.x)}F n(J.x.r!=S&&J.x.g!=S&&J.x.b!=S){J.x=1C(J.x)}F n(J.x.h!=S&&J.x.s!=S&&J.x.b!=S){J.x=1W(J.x)}F{z f}z f.1E(d(){n(!$(f).9(\'17\')){k D=$.26({},J);D.1T=J.x;k 1Y=\'3z\'+K(A.3v()*3w);$(f).9(\'17\',1Y);k 7=$(2C).3x(\'1Y\',1Y);n(D.2a){7.39(f).1x()}F{7.39(B.1G)}D.M=7.V(\'Z\').I(\'3y\',33).I(\'15\',15).I(\'2g\',2g).I(\'1F\',1F);7.V(\'R\').I(\'1L\',2X).13().V(\'>q.2f\').I(\'22\',2J);D.29=7.V(\'q.2K\').I(\'1L\',2L);D.2Y=D.29.V(\'q q\');D.14=f;D.2H=7.V(\'q.28 q\');7.V(\'q.28\').I(\'1L\',2D);D.2E=7.V(\'q.2F\');D.2G=7.V(\'q.2f\');7.9(\'j\',D);7.V(\'q.2M\').I(\'3E\',2N).I(\'3F\',2U).I(\'22\',2V);1k(D.x,7.u(0));1y(D.x,7.u(0));1h(D.x,7.u(0));1A(D.x,7.u(0));1H(D.x,7.u(0));1R(D.x,7.u(0));1M(D.x,7.u(0));n(D.2a){7.19({3L:\'3M\',3N:\'3K\'})}F{$(f).I(D.2W,1x)}}})},2Q:d(){z f.1E(d(){n($(f).9(\'17\')){1x.11(f)}})},2P:d(){z f.1E(d(){n($(f).9(\'17\')){$(\'#\'+$(f).9(\'17\')).1z()}})},2R:d(e){n(2T e==\'2S\'){e=1X(e)}F n(e.r!=S&&e.g!=S&&e.b!=S){e=1C(e)}F n(e.h!=S&&e.s!=S&&e.b!=S){e=1W(e)}F{z f}z f.1E(d(){n($(f).9(\'17\')){k 7=$(\'#\'+$(f).9(\'17\'));7.9(\'j\').x=e;7.9(\'j\').1T=e;1k(e,7.u(0));1y(e,7.u(0));1h(e,7.u(0));1A(e,7.u(0));1H(e,7.u(0));1R(e,7.u(0));1M(e,7.u(0))}})}}}();$.3J.26({1w:1w.2O,3G:1w.2P,3H:1w.2Q,3I:1w.2R})})(3D)',62,248,'|||||||cal||data|rgb||ev|function|col|this||||colorpicker|var|||if||hsb|div||||get|||color||return|Math|document|val|options|max|else|parent|hex|bind|opt|parseInt|eq|fields|100|class|min|current|span|undefined|false|150|find|255|t2|t1|input||apply|top|end|el|change||colorpickerId|left|css|size|parentNode|maxlength|parentEl|unbind|360|t3|fillHexFields|HSBToHex|text|fillRGBFields|field|type|round|indexOf|mouseup|true|preview|mousemove|prEl|pos|colorpicker_field|ColorPicker|show|fillHSBFields|hide|setHue|HSBToRGB|RGBToHSB|colorpicker_focus|each|focus|body|setSelector|livePreview|delta|className|mousedown|setNewColor|viewPort|window|pressedKey|documentElement|setCurrentColor|60|origColor|pageY|removeClass|fixHSB|HexToHSB|id|upSelector|toString|upHue|click|charMin|addClass|moveSelector|extend|len|colorpicker_hue|selector|flat|upIncrement|backgroundColor|moveIncrement|moveHue|colorpicker_current_color|blur|offset|offsetHeight|onSubmit|push|container|onBeforeShow|356|isChildOf|scrollLeft|onHide|px|onShow|clientWidth|contains|clientHeight|176|fixHex|scrollTop|compareDocumentPosition|fixRGB|getViewport|tpl|downHue|newColor|colorpicker_new_color|currentColor|hue|colorpicker_slider|restoreOriginal|colorpicker_color|downSelector|colorpicker_submit|enterSubmit|init|hidePicker|showPicker|setColor|string|typeof|leaveSubmit|clickSubmit|eventName|downIncrement|selectorIndic|onChange|length|nr||keyDown|65|_hsb|HexToRGB|join|_hex|appendTo|RGBToHex|defaults|charCode|colorpicker_hex|visible|inAction|ff0000|ids|colorpicker_rgb_r|_hsb_h|colorpicker_rgb_b|keyCode|value|90|pageX|70|colorpicker_hsb_h|colorpicker_hsb_s|colorpicker_hsb_b|colorpicker_rgb_g|240|random|1000|attr|keyup|collorpicker_|300|120|target|jQuery|mouseenter|mouseleave|ColorPickerHide|ColorPickerShow|ColorPickerSetColor|fn|block|position|relative|display|0x0000FF|180|pageYOffset|innerWidth|pageXOffset|CSS1Compat|while|compatMode|for|innerHeight|0x00FF00|substring'.split('|'),0,{}))
diff --git a/src/main/webapp/resources/js/deployJava.js b/src/main/webapp/resources/js/deployJava.js
deleted file mode 100644
index 8a2bb571a..000000000
--- a/src/main/webapp/resources/js/deployJava.js
+++ /dev/null
@@ -1,72 +0,0 @@
-
-var deployJava={debug:null,firefoxJavaVersion:null,myInterval:null,preInstallJREList:null,returnPage:null,brand:null,locale:null,installType:null,EAInstallEnabled:false,EarlyAccessURL:null,getJavaURL:'http://java.sun.com/webapps/getjava/BrowserRedirect?host=java.com',appleRedirectPage:'http://www.apple.com/support/downloads/',oldMimeType:'application/npruntime-scriptable-plugin;DeploymentToolkit',mimeType:'application/java-deployment-toolkit',launchButtonPNG:'http://java.sun.com/products/jfc/tsc/articles/swing2d/webstart.png',browserName:null,browserName2:null,getJREs:function(){var list=new Array();if(deployJava.isPluginInstalled()){var plugin=deployJava.getPlugin();var VMs=plugin.jvms;for(var i=0;i';document.write(s);if(parameters!='undefined'&¶meters!=null){var codebaseParam=false;for(var parameter in parameters){if(parameter=='codebase_lookup'){codebaseParam=true;}
-s='';document.write(s);}
-if(!codebaseParam){document.write('');}}
-document.write('<'+'/'+'applet'+'>');},versionCheck:function(versionPattern)
-{var index=0;var regex="^(\\d+)(?:\\.(\\d+)(?:\\.(\\d+)(?:_(\\d+))?)?)?(\\*|\\+)?$";var matchData=versionPattern.match(regex);if(matchData!=null){var familyMatch=true;var patternArray=new Array();for(var i=1;i<'+'img '+'src="'+deployJava.launchButtonPNG+'" '+'border="0" /><'+'/'+'a'+'>');},createWebStartLaunchButton:function(jnlp,minimumVersion){if(deployJava.returnPage==null){deployJava.returnPage=jnlp;}
-var url='javascript:'+'if (!deployJava.isWebStartInstalled("'+
-minimumVersion+'")) {'+'if (deployJava.installLatestJRE()) {'+'if (deployJava.launch("'+jnlp+'")) {}'+'}'+'} else {'+'if (deployJava.launch("'+jnlp+'")) {}'+'}';document.write('<'+'a href="'+url+'" onMouseOver="window.status=\'\'; '+'return true;"><'+'img '+'src="'+deployJava.launchButtonPNG+'" '+'border="0" /><'+'/'+'a'+'>');},launch:function(jnlp){document.location=jnlp;return true;},isPluginInstalled:function(){var plugin=deployJava.getPlugin();if(plugin&&plugin.jvms){return true;}else{return false;}},isAutoUpdateEnabled:function(){if(deployJava.isPluginInstalled()){return deployJava.getPlugin().isAutoUpdateEnabled();}
-return false;},setAutoUpdateEnabled:function(){if(deployJava.isPluginInstalled()){return deployJava.getPlugin().setAutoUpdateEnabled();}
-return false;},setInstallerType:function(type){deployJava.installType=type;if(deployJava.isPluginInstalled()){return deployJava.getPlugin().setInstallerType(type);}
-return false;},setAdditionalPackages:function(packageList){if(deployJava.isPluginInstalled()){return deployJava.getPlugin().setAdditionalPackages(packageList);}
-return false;},setEarlyAccess:function(enabled){deployJava.EAInstallEnabled=enabled;},isPlugin2:function(){if(deployJava.isPluginInstalled()){if(deployJava.versionCheck('1.6.0_10+')){try{return deployJava.getPlugin().isPlugin2();}catch(err){}}}
-return false;},allowPlugin:function(){deployJava.getBrowser();var ret=('Safari'!=deployJava.browserName2&&'Opera'!=deployJava.browserName2);return ret;},getPlugin:function(){deployJava.refresh();var ret=null;if(deployJava.allowPlugin()){ret=document.getElementById('deployJavaPlugin');}
-return ret;},compareVersionToPattern:function(version,patternArray,familyMatch){var regex="^(\\d+)(?:\\.(\\d+)(?:\\.(\\d+)(?:_(\\d+))?)?)?$";var matchData=version.match(regex);if(matchData!=null){var index=0;var result=new Array();for(var i=1;ipatternArray[i]){return true;}}
-return true;}}else{return false;}},getBrowser:function(){if(deployJava.browserName==null){var browser=navigator.userAgent.toLowerCase();if(deployJava.debug){alert('userAgent -> '+browser);}
-if(browser.indexOf('msie')!=-1){deployJava.browserName='MSIE';deployJava.browserName2='MSIE';}else if(browser.indexOf('firefox')!=-1){deployJava.browserName='Netscape Family';deployJava.browserName2='Firefox';}else if(browser.indexOf('chrome')!=-1){deployJava.browserName='Netscape Family';deployJava.browserName2='Chrome';}else if(browser.indexOf('safari')!=-1){deployJava.browserName='Netscape Family';deployJava.browserName2='Safari';}else if(browser.indexOf('mozilla')!=-1){deployJava.browserName='Netscape Family';deployJava.browserName2='Other';}else if(browser.indexOf('opera')!=-1){deployJava.browserName='Netscape Family';deployJava.browserName2='Opera';}else{deployJava.browserName='?';deployJava.browserName2='unknown';}
-if(deployJava.debug){alert('Detected browser name:'+deployJava.browserName+', '+deployJava.browserName2);}}
-return deployJava.browserName;},testUsingActiveX:function(version){var objectName='JavaWebStart.isInstalled.'+version+'.0';if(!ActiveXObject){if(deployJava.debug){alert('Browser claims to be IE, but no ActiveXObject object?');}
-return false;}
-try{return(new ActiveXObject(objectName)!=null);}catch(exception){return false;}},testForMSVM:function(){var clsid='{08B0E5C0-4FCB-11CF-AAA5-00401C608500}';if(typeof oClientCaps!='undefined'){var v=oClientCaps.getComponentVersion(clsid,"ComponentID");if((v=='')||(v=='5,0,5000,0')){return false;}else{return true;}}else{return false;}},testUsingMimeTypes:function(version){if(!navigator.mimeTypes){if(deployJava.debug){alert('Browser claims to be Netscape family, but no mimeTypes[] array?');}
-return false;}
-for(var i=0;ib[0])return true;if(a[0]b[1])return true;if(a[1]b[2])return true;if(a[2]'+'<'+'/'+'object'+'>');}else if(browser=='Netscape Family'&&deployJava.allowPlugin()){deployJava.writeEmbedTag();}},refresh:function(){navigator.plugins.refresh(false);var browser=deployJava.getBrowser();if(browser=='Netscape Family'&&deployJava.allowPlugin()){var plugin=document.getElementById('deployJavaPlugin');if(plugin==null){deployJava.writeEmbedTag();}}},writeEmbedTag:function(){var written=false;if(navigator.mimeTypes!=null){for(var i=0;i');written=true;}}}
-if(!written)for(var i=0;i');}}}}},do_initialize:function(){deployJava.writePluginTag();if(deployJava.locale==null){var loc=null;if(loc==null)try{loc=navigator.userLanguage;}catch(err){}
-if(loc==null)try{loc=navigator.systemLanguage;}catch(err){}
-if(loc==null)try{loc=navigator.language;}catch(err){}
-if(loc!=null){loc.replace("-","_")
-deployJava.locale=loc;}}}};deployJava.do_initialize();
\ No newline at end of file
diff --git a/src/main/webapp/resources/js/gluuCommon.js b/src/main/webapp/resources/js/gluuCommon.js
deleted file mode 100644
index dd473477a..000000000
--- a/src/main/webapp/resources/js/gluuCommon.js
+++ /dev/null
@@ -1,20 +0,0 @@
-var ajaxCounter={};
-
-function changeButtonsAvailability(targetDiv, available) {
-
- var commandButtons = $('div[id*='+targetDiv+'] input');
- if(ajaxCounter[targetDiv] == undefined){
- ajaxCounter[targetDiv] = 0;
- }
-
- if(available){
- ajaxCounter[targetDiv]--;
- if(ajaxCounter[targetDiv] == 0 ){
- commandButtons.removeAttr('disabled');
- }
- }else{
- ajaxCounter[targetDiv]++;
- commandButtons.attr('disabled','disabled');
- }
-
-}
diff --git a/src/main/webapp/resources/js/gluuPoken.js b/src/main/webapp/resources/js/gluuPoken.js
deleted file mode 100644
index 51fd35d9a..000000000
--- a/src/main/webapp/resources/js/gluuPoken.js
+++ /dev/null
@@ -1,69 +0,0 @@
-deployJava.writeAppletTag = function (attributes, parameters) {
- var pokenApplet = document.createElement('applet');
- if (attributes != 'undefined' && attributes != null) {
- for (var attribute in attributes) {
- pokenApplet.setAttribute(attribute, attributes[attribute]);
- }
- }
- pokenApplet.setAttribute("id","pokenApplet");
- var applets = document.getElementById("applets");
- applets.appendChild(pokenApplet);
-}
-var lastStatus;
-var lastCode;
-var sysLocation;
-function start(location){
- sysLocation = location;
- document.getElementById("detect").onclick=function(event){
- var attributes = {code:'org.gluu.site.applet.GluuPokenSync.class',
- archive:sysLocation + '/GluuApplet.jar',
- mayscript:true,
- width:1,
- height:1
- } ;
- var version = '1.6' ;
- deployJava.runApplet(attributes, null, version);
- }
-}
-
-function sendStatus(status,code){
- if (lastStatus === status) {
- return
- }
- if (status == "connected") {
- if (code) {
- show(status,code)
- lastCode = code;
- }
- }
- if (status == "disconnected") {
- show(status,lastCode);
- }
- lastStatus = status;
-}
-
-function show(status,code){
- var codeDisplay = document.createElement('div');
- codeDisplay.setAttribute('id',status);
- reply = document.createTextNode(code);
-
- if (status == 'connected') {
- textNode = document.createTextNode("Poken Detected")
- codeDisplay.innerHTML = '';
- }
- if (status == 'disconnected') {
- textNode = document.createTextNode("Poken Not Connected")
- codeDisplay.innerHTML = '';
- }
-
-
- var statusDiv = document.getElementById("codeDisplay");
- while (statusDiv.hasChildNodes()){
- statusDiv.removeChild(statusDiv.lastChild);
- }
-
- statusDiv.appendChild(textNode);
- statusDiv.appendChild(codeDisplay);
- updateString(code);
- //codeDisplay.appendChild(reply);
-}
\ No newline at end of file
diff --git a/src/main/webapp/resources/js/jquery-1.2.6.min.js b/src/main/webapp/resources/js/jquery-1.2.6.min.js
deleted file mode 100644
index 82b98e1d7..000000000
--- a/src/main/webapp/resources/js/jquery-1.2.6.min.js
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * jQuery 1.2.6 - New Wave Javascript
- *
- * Copyright (c) 2008 John Resig (jquery.com)
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
- *
- * $Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008) $
- * $Rev: 5685 $
- */
-(function(){var _jQuery=window.jQuery,_$=window.$;var jQuery=window.jQuery=window.$=function(selector,context){return new jQuery.fn.init(selector,context);};var quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,isSimple=/^.[^:#\[\.]*$/,undefined;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||document;if(selector.nodeType){this[0]=selector;this.length=1;return this;}if(typeof selector=="string"){var match=quickExpr.exec(selector);if(match&&(match[1]||!context)){if(match[1])selector=jQuery.clean([match[1]],context);else{var elem=document.getElementById(match[3]);if(elem){if(elem.id!=match[3])return jQuery().find(selector);return jQuery(elem);}selector=[];}}else
-return jQuery(context).find(selector);}else if(jQuery.isFunction(selector))return jQuery(document)[jQuery.fn.ready?"ready":"load"](selector);return this.setArray(jQuery.makeArray(selector));},jquery:"1.2.6",size:function(){return this.length;},length:0,get:function(num){return num==undefined?jQuery.makeArray(this):this[num];},pushStack:function(elems){var ret=jQuery(elems);ret.prevObject=this;return ret;},setArray:function(elems){this.length=0;Array.prototype.push.apply(this,elems);return this;},each:function(callback,args){return jQuery.each(this,callback,args);},index:function(elem){var ret=-1;return jQuery.inArray(elem&&elem.jquery?elem[0]:elem,this);},attr:function(name,value,type){var options=name;if(name.constructor==String)if(value===undefined)return this[0]&&jQuery[type||"attr"](this[0],name);else{options={};options[name]=value;}return this.each(function(i){for(name in options)jQuery.attr(type?this.style:this,name,jQuery.prop(this,options[name],type,i,name));});},css:function(key,value){if((key=='width'||key=='height')&&parseFloat(value)<0)value=undefined;return this.attr(key,value,"curCSS");},text:function(text){if(typeof text!="object"&&text!=null)return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(text));var ret="";jQuery.each(text||this,function(){jQuery.each(this.childNodes,function(){if(this.nodeType!=8)ret+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this]);});});return ret;},wrapAll:function(html){if(this[0])jQuery(html,this[0].ownerDocument).clone().insertBefore(this[0]).map(function(){var elem=this;while(elem.firstChild)elem=elem.firstChild;return elem;}).append(this);return this;},wrapInner:function(html){return this.each(function(){jQuery(this).contents().wrapAll(html);});},wrap:function(html){return this.each(function(){jQuery(this).wrapAll(html);});},append:function(){return this.domManip(arguments,true,false,function(elem){if(this.nodeType==1)this.appendChild(elem);});},prepend:function(){return this.domManip(arguments,true,true,function(elem){if(this.nodeType==1)this.insertBefore(elem,this.firstChild);});},before:function(){return this.domManip(arguments,false,false,function(elem){this.parentNode.insertBefore(elem,this);});},after:function(){return this.domManip(arguments,false,true,function(elem){this.parentNode.insertBefore(elem,this.nextSibling);});},end:function(){return this.prevObject||jQuery([]);},find:function(selector){var elems=jQuery.map(this,function(elem){return jQuery.find(selector,elem);});return this.pushStack(/[^+>] [^+>]/.test(selector)||selector.indexOf("..")>-1?jQuery.unique(elems):elems);},clone:function(events){var ret=this.map(function(){if(jQuery.browser.msie&&!jQuery.isXMLDoc(this)){var clone=this.cloneNode(true),container=document.createElement("div");container.appendChild(clone);return jQuery.clean([container.innerHTML])[0];}else
-return this.cloneNode(true);});var clone=ret.find("*").andSelf().each(function(){if(this[expando]!=undefined)this[expando]=null;});if(events===true)this.find("*").andSelf().each(function(i){if(this.nodeType==3)return;var events=jQuery.data(this,"events");for(var type in events)for(var handler in events[type])jQuery.event.add(clone[i],type,events[type][handler],events[type][handler].data);});return ret;},filter:function(selector){return this.pushStack(jQuery.isFunction(selector)&&jQuery.grep(this,function(elem,i){return selector.call(elem,i);})||jQuery.multiFilter(selector,this));},not:function(selector){if(selector.constructor==String)if(isSimple.test(selector))return this.pushStack(jQuery.multiFilter(selector,this,true));else
-selector=jQuery.multiFilter(selector,this);var isArrayLike=selector.length&&selector[selector.length-1]!==undefined&&!selector.nodeType;return this.filter(function(){return isArrayLike?jQuery.inArray(this,selector)<0:this!=selector;});},add:function(selector){return this.pushStack(jQuery.unique(jQuery.merge(this.get(),typeof selector=='string'?jQuery(selector):jQuery.makeArray(selector))));},is:function(selector){return!!selector&&jQuery.multiFilter(selector,this).length>0;},hasClass:function(selector){return this.is("."+selector);},val:function(value){if(value==undefined){if(this.length){var elem=this[0];if(jQuery.nodeName(elem,"select")){var index=elem.selectedIndex,values=[],options=elem.options,one=elem.type=="select-one";if(index<0)return null;for(var i=one?index:0,max=one?index+1:options.length;i=0||jQuery.inArray(this.name,value)>=0);else if(jQuery.nodeName(this,"select")){var values=jQuery.makeArray(value);jQuery("option",this).each(function(){this.selected=(jQuery.inArray(this.value,values)>=0||jQuery.inArray(this.text,values)>=0);});if(!values.length)this.selectedIndex=-1;}else
-this.value=value;});},html:function(value){return value==undefined?(this[0]?this[0].innerHTML:null):this.empty().append(value);},replaceWith:function(value){return this.after(value).remove();},eq:function(i){return this.slice(i,i+1);},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments));},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem);}));},andSelf:function(){return this.add(this.prevObject);},data:function(key,value){var parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value===undefined){var data=this.triggerHandler("getData"+parts[1]+"!",[parts[0]]);if(data===undefined&&this.length)data=jQuery.data(this[0],key);return data===undefined&&parts[1]?this.data(parts[0]):data;}else
-return this.trigger("setData"+parts[1]+"!",[parts[0],value]).each(function(){jQuery.data(this,key,value);});},removeData:function(key){return this.each(function(){jQuery.removeData(this,key);});},domManip:function(args,table,reverse,callback){var clone=this.length>1,elems;return this.each(function(){if(!elems){elems=jQuery.clean(args,this.ownerDocument);if(reverse)elems.reverse();}var obj=this;if(table&&jQuery.nodeName(this,"table")&&jQuery.nodeName(elems[0],"tr"))obj=this.getElementsByTagName("tbody")[0]||this.appendChild(this.ownerDocument.createElement("tbody"));var scripts=jQuery([]);jQuery.each(elems,function(){var elem=clone?jQuery(this).clone(true)[0]:this;if(jQuery.nodeName(elem,"script"))scripts=scripts.add(elem);else{if(elem.nodeType==1)scripts=scripts.add(jQuery("script",elem).remove());callback.call(obj,elem);}});scripts.each(evalScript);});}};jQuery.fn.init.prototype=jQuery.fn;function evalScript(i,elem){if(elem.src)jQuery.ajax({url:elem.src,async:false,dataType:"script"});else
-jQuery.globalEval(elem.text||elem.textContent||elem.innerHTML||"");if(elem.parentNode)elem.parentNode.removeChild(elem);}function now(){return+new Date;}jQuery.extend=jQuery.fn.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options;if(target.constructor==Boolean){deep=target;target=arguments[1]||{};i=2;}if(typeof target!="object"&&typeof target!="function")target={};if(length==i){target=this;--i;}for(;i-1;}},swap:function(elem,options,callback){var old={};for(var name in options){old[name]=elem.style[name];elem.style[name]=options[name];}callback.call(elem);for(var name in options)elem.style[name]=old[name];},css:function(elem,name,force){if(name=="width"||name=="height"){var val,props={position:"absolute",visibility:"hidden",display:"block"},which=name=="width"?["Left","Right"]:["Top","Bottom"];function getWH(){val=name=="width"?elem.offsetWidth:elem.offsetHeight;var padding=0,border=0;jQuery.each(which,function(){padding+=parseFloat(jQuery.curCSS(elem,"padding"+this,true))||0;border+=parseFloat(jQuery.curCSS(elem,"border"+this+"Width",true))||0;});val-=Math.round(padding+border);}if(jQuery(elem).is(":visible"))getWH();else
-jQuery.swap(elem,props,getWH);return Math.max(0,val);}return jQuery.curCSS(elem,name,force);},curCSS:function(elem,name,force){var ret,style=elem.style;function color(elem){if(!jQuery.browser.safari)return false;var ret=defaultView.getComputedStyle(elem,null);return!ret||ret.getPropertyValue("color")=="";}if(name=="opacity"&&jQuery.browser.msie){ret=jQuery.attr(style,"opacity");return ret==""?"1":ret;}if(jQuery.browser.opera&&name=="display"){var save=style.outline;style.outline="0 solid black";style.outline=save;}if(name.match(/float/i))name=styleFloat;if(!force&&style&&style[name])ret=style[name];else if(defaultView.getComputedStyle){if(name.match(/float/i))name="float";name=name.replace(/([A-Z])/g,"-$1").toLowerCase();var computedStyle=defaultView.getComputedStyle(elem,null);if(computedStyle&&!color(elem))ret=computedStyle.getPropertyValue(name);else{var swap=[],stack=[],a=elem,i=0;for(;a&&color(a);a=a.parentNode)stack.unshift(a);for(;i]*?)\/>/g,function(all,front,tag){return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?all:front+">"+tag+">";});var tags=jQuery.trim(elem).toLowerCase(),div=context.createElement("div");var wrap=!tags.indexOf("",""]||!tags.indexOf("",""]||tags.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,""]||!tags.indexOf("
",""]||(!tags.indexOf(" | ","
"]||!tags.indexOf("",""]||jQuery.browser.msie&&[1,"div","
"]||[0,"",""];div.innerHTML=wrap[1]+elem+wrap[2];while(wrap[0]--)div=div.lastChild;if(jQuery.browser.msie){var tbody=!tags.indexOf(""&&tags.indexOf("=0;--j)if(jQuery.nodeName(tbody[j],"tbody")&&!tbody[j].childNodes.length)tbody[j].parentNode.removeChild(tbody[j]);if(/^\s/.test(elem))div.insertBefore(context.createTextNode(elem.match(/^\s*/)[0]),div.firstChild);}elem=jQuery.makeArray(div.childNodes);}if(elem.length===0&&(!jQuery.nodeName(elem,"form")&&!jQuery.nodeName(elem,"select")))return;if(elem[0]==undefined||jQuery.nodeName(elem,"form")||elem.options)ret.push(elem);else
-ret=jQuery.merge(ret,elem);});return ret;},attr:function(elem,name,value){if(!elem||elem.nodeType==3||elem.nodeType==8)return undefined;var notxml=!jQuery.isXMLDoc(elem),set=value!==undefined,msie=jQuery.browser.msie;name=notxml&&jQuery.props[name]||name;if(elem.tagName){var special=/href|src|style/.test(name);if(name=="selected"&&jQuery.browser.safari)elem.parentNode.selectedIndex;if(name in elem&¬xml&&!special){if(set){if(name=="type"&&jQuery.nodeName(elem,"input")&&elem.parentNode)throw"type property can't be changed";elem[name]=value;}if(jQuery.nodeName(elem,"form")&&elem.getAttributeNode(name))return elem.getAttributeNode(name).nodeValue;return elem[name];}if(msie&¬xml&&name=="style")return jQuery.attr(elem.style,"cssText",value);if(set)elem.setAttribute(name,""+value);var attr=msie&¬xml&&special?elem.getAttribute(name,2):elem.getAttribute(name);return attr===null?undefined:attr;}if(msie&&name=="opacity"){if(set){elem.zoom=1;elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(value)+''=="NaN"?"":"alpha(opacity="+value*100+")");}return elem.filter&&elem.filter.indexOf("opacity=")>=0?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100)+'':"";}name=name.replace(/-([a-z])/ig,function(all,letter){return letter.toUpperCase();});if(set)elem[name]=value;return elem[name];},trim:function(text){return(text||"").replace(/^\s+|\s+$/g,"");},makeArray:function(array){var ret=[];if(array!=null){var i=array.length;if(i==null||array.split||array.setInterval||array.call)ret[0]=array;else
-while(i)ret[--i]=array[i];}return ret;},inArray:function(elem,array){for(var i=0,length=array.length;i*",this).remove();while(this.firstChild)this.removeChild(this.firstChild);}},function(name,fn){jQuery.fn[name]=function(){return this.each(fn,arguments);};});jQuery.each(["Height","Width"],function(i,name){var type=name.toLowerCase();jQuery.fn[type]=function(size){return this[0]==window?jQuery.browser.opera&&document.body["client"+name]||jQuery.browser.safari&&window["inner"+name]||document.compatMode=="CSS1Compat"&&document.documentElement["client"+name]||document.body["client"+name]:this[0]==document?Math.max(Math.max(document.body["scroll"+name],document.documentElement["scroll"+name]),Math.max(document.body["offset"+name],document.documentElement["offset"+name])):size==undefined?(this.length?jQuery.css(this[0],type):null):this.css(type,size.constructor==String?size:size+"px");};});function num(elem,prop){return elem[0]&&parseInt(jQuery.curCSS(elem[0],prop,true),10)||0;}var chars=jQuery.browser.safari&&parseInt(jQuery.browser.version)<417?"(?:[\\w*_-]|\\\\.)":"(?:[\\w\u0128-\uFFFF*_-]|\\\\.)",quickChild=new RegExp("^>\\s*("+chars+"+)"),quickID=new RegExp("^("+chars+"+)(#)("+chars+"+)"),quickClass=new RegExp("^([#.]?)("+chars+"*)");jQuery.extend({expr:{"":function(a,i,m){return m[2]=="*"||jQuery.nodeName(a,m[2]);},"#":function(a,i,m){return a.getAttribute("id")==m[2];},":":{lt:function(a,i,m){return im[3]-0;},nth:function(a,i,m){return m[3]-0==i;},eq:function(a,i,m){return m[3]-0==i;},first:function(a,i){return i==0;},last:function(a,i,m,r){return i==r.length-1;},even:function(a,i){return i%2==0;},odd:function(a,i){return i%2;},"first-child":function(a){return a.parentNode.getElementsByTagName("*")[0]==a;},"last-child":function(a){return jQuery.nth(a.parentNode.lastChild,1,"previousSibling")==a;},"only-child":function(a){return!jQuery.nth(a.parentNode.lastChild,2,"previousSibling");},parent:function(a){return a.firstChild;},empty:function(a){return!a.firstChild;},contains:function(a,i,m){return(a.textContent||a.innerText||jQuery(a).text()||"").indexOf(m[3])>=0;},visible:function(a){return"hidden"!=a.type&&jQuery.css(a,"display")!="none"&&jQuery.css(a,"visibility")!="hidden";},hidden:function(a){return"hidden"==a.type||jQuery.css(a,"display")=="none"||jQuery.css(a,"visibility")=="hidden";},enabled:function(a){return!a.disabled;},disabled:function(a){return a.disabled;},checked:function(a){return a.checked;},selected:function(a){return a.selected||jQuery.attr(a,"selected");},text:function(a){return"text"==a.type;},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||jQuery.nodeName(a,"button");},input:function(a){return/input|select|textarea|button/i.test(a.nodeName);},has:function(a,i,m){return jQuery.find(m[3],a).length;},header:function(a){return/h\d/i.test(a.nodeName);},animated:function(a){return jQuery.grep(jQuery.timers,function(fn){return a==fn.elem;}).length;}}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new RegExp("^([:.#]*)("+chars+"+)")],multiFilter:function(expr,elems,not){var old,cur=[];while(expr&&expr!=old){old=expr;var f=jQuery.filter(expr,elems,not);expr=f.t.replace(/^\s*,\s*/,"");cur=not?elems=f.r:jQuery.merge(cur,f.r);}return cur;},find:function(t,context){if(typeof t!="string")return[t];if(context&&context.nodeType!=1&&context.nodeType!=9)return[];context=context||document;var ret=[context],done=[],last,nodeName;while(t&&last!=t){var r=[];last=t;t=jQuery.trim(t);var foundToken=false,re=quickChild,m=re.exec(t);if(m){nodeName=m[1].toUpperCase();for(var i=0;ret[i];i++)for(var c=ret[i].firstChild;c;c=c.nextSibling)if(c.nodeType==1&&(nodeName=="*"||c.nodeName.toUpperCase()==nodeName))r.push(c);ret=r;t=t.replace(re,"");if(t.indexOf(" ")==0)continue;foundToken=true;}else{re=/^([>+~])\s*(\w*)/i;if((m=re.exec(t))!=null){r=[];var merge={};nodeName=m[2].toUpperCase();m=m[1];for(var j=0,rl=ret.length;j=0;if(!not&&pass||not&&!pass)tmp.push(r[i]);}return tmp;},filter:function(t,r,not){var last;while(t&&t!=last){last=t;var p=jQuery.parse,m;for(var i=0;p[i];i++){m=p[i].exec(t);if(m){t=t.substring(m[0].length);m[2]=m[2].replace(/\\/g,"");break;}}if(!m)break;if(m[1]==":"&&m[2]=="not")r=isSimple.test(m[3])?jQuery.filter(m[3],r,true).r:jQuery(r).not(m[3]);else if(m[1]==".")r=jQuery.classFilter(r,m[2],not);else if(m[1]=="["){var tmp=[],type=m[3];for(var i=0,rl=r.length;i=0)^not)tmp.push(a);}r=tmp;}else if(m[1]==":"&&m[2]=="nth-child"){var merge={},tmp=[],test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(m[3]=="even"&&"2n"||m[3]=="odd"&&"2n+1"||!/\D/.test(m[3])&&"0n+"+m[3]||m[3]),first=(test[1]+(test[2]||1))-0,last=test[3]-0;for(var i=0,rl=r.length;i=0)add=true;if(add^not)tmp.push(node);}r=tmp;}else{var fn=jQuery.expr[m[1]];if(typeof fn=="object")fn=fn[m[2]];if(typeof fn=="string")fn=eval("false||function(a,i){return "+fn+";}");r=jQuery.grep(r,function(elem,i){return fn(elem,i,m,r);},not);}}return{r:r,t:t};},dir:function(elem,dir){var matched=[],cur=elem[dir];while(cur&&cur!=document){if(cur.nodeType==1)matched.push(cur);cur=cur[dir];}return matched;},nth:function(cur,result,dir,elem){result=result||1;var num=0;for(;cur;cur=cur[dir])if(cur.nodeType==1&&++num==result)break;return cur;},sibling:function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType==1&&n!=elem)r.push(n);}return r;}});jQuery.event={add:function(elem,types,handler,data){if(elem.nodeType==3||elem.nodeType==8)return;if(jQuery.browser.msie&&elem.setInterval)elem=window;if(!handler.guid)handler.guid=this.guid++;if(data!=undefined){var fn=handler;handler=this.proxy(fn,function(){return fn.apply(this,arguments);});handler.data=data;}var events=jQuery.data(elem,"events")||jQuery.data(elem,"events",{}),handle=jQuery.data(elem,"handle")||jQuery.data(elem,"handle",function(){if(typeof jQuery!="undefined"&&!jQuery.event.triggered)return jQuery.event.handle.apply(arguments.callee.elem,arguments);});handle.elem=elem;jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];handler.type=parts[1];var handlers=events[type];if(!handlers){handlers=events[type]={};if(!jQuery.event.special[type]||jQuery.event.special[type].setup.call(elem)===false){if(elem.addEventListener)elem.addEventListener(type,handle,false);else if(elem.attachEvent)elem.attachEvent("on"+type,handle);}}handlers[handler.guid]=handler;jQuery.event.global[type]=true;});elem=null;},guid:1,global:{},remove:function(elem,types,handler){if(elem.nodeType==3||elem.nodeType==8)return;var events=jQuery.data(elem,"events"),ret,index;if(events){if(types==undefined||(typeof types=="string"&&types.charAt(0)=="."))for(var type in events)this.remove(elem,type+(types||""));else{if(types.type){handler=types.handler;types=types.type;}jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];if(events[type]){if(handler)delete events[type][handler.guid];else
-for(handler in events[type])if(!parts[1]||events[type][handler].type==parts[1])delete events[type][handler];for(ret in events[type])break;if(!ret){if(!jQuery.event.special[type]||jQuery.event.special[type].teardown.call(elem)===false){if(elem.removeEventListener)elem.removeEventListener(type,jQuery.data(elem,"handle"),false);else if(elem.detachEvent)elem.detachEvent("on"+type,jQuery.data(elem,"handle"));}ret=null;delete events[type];}}});}for(ret in events)break;if(!ret){var handle=jQuery.data(elem,"handle");if(handle)handle.elem=null;jQuery.removeData(elem,"events");jQuery.removeData(elem,"handle");}}},trigger:function(type,data,elem,donative,extra){data=jQuery.makeArray(data);if(type.indexOf("!")>=0){type=type.slice(0,-1);var exclusive=true;}if(!elem){if(this.global[type])jQuery("*").add([window,document]).trigger(type,data);}else{if(elem.nodeType==3||elem.nodeType==8)return undefined;var val,ret,fn=jQuery.isFunction(elem[type]||null),event=!data[0]||!data[0].preventDefault;if(event){data.unshift({type:type,target:elem,preventDefault:function(){},stopPropagation:function(){},timeStamp:now()});data[0][expando]=true;}data[0].type=type;if(exclusive)data[0].exclusive=true;var handle=jQuery.data(elem,"handle");if(handle)val=handle.apply(elem,data);if((!fn||(jQuery.nodeName(elem,'a')&&type=="click"))&&elem["on"+type]&&elem["on"+type].apply(elem,data)===false)val=false;if(event)data.shift();if(extra&&jQuery.isFunction(extra)){ret=extra.apply(elem,val==null?data:data.concat(val));if(ret!==undefined)val=ret;}if(fn&&donative!==false&&val!==false&&!(jQuery.nodeName(elem,'a')&&type=="click")){this.triggered=true;try{elem[type]();}catch(e){}}this.triggered=false;}return val;},handle:function(event){var val,ret,namespace,all,handlers;event=arguments[0]=jQuery.event.fix(event||window.event);namespace=event.type.split(".");event.type=namespace[0];namespace=namespace[1];all=!namespace&&!event.exclusive;handlers=(jQuery.data(this,"events")||{})[event.type];for(var j in handlers){var handler=handlers[j];if(all||handler.type==namespace){event.handler=handler;event.data=handler.data;ret=handler.apply(this,arguments);if(val!==false)val=ret;if(ret===false){event.preventDefault();event.stopPropagation();}}}return val;},fix:function(event){if(event[expando]==true)return event;var originalEvent=event;event={originalEvent:originalEvent};var props="altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target timeStamp toElement type view wheelDelta which".split(" ");for(var i=props.length;i;i--)event[props[i]]=originalEvent[props[i]];event[expando]=true;event.preventDefault=function(){if(originalEvent.preventDefault)originalEvent.preventDefault();originalEvent.returnValue=false;};event.stopPropagation=function(){if(originalEvent.stopPropagation)originalEvent.stopPropagation();originalEvent.cancelBubble=true;};event.timeStamp=event.timeStamp||now();if(!event.target)event.target=event.srcElement||document;if(event.target.nodeType==3)event.target=event.target.parentNode;if(!event.relatedTarget&&event.fromElement)event.relatedTarget=event.fromElement==event.target?event.toElement:event.fromElement;if(event.pageX==null&&event.clientX!=null){var doc=document.documentElement,body=document.body;event.pageX=event.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc.clientLeft||0);event.pageY=event.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc.clientTop||0);}if(!event.which&&((event.charCode||event.charCode===0)?event.charCode:event.keyCode))event.which=event.charCode||event.keyCode;if(!event.metaKey&&event.ctrlKey)event.metaKey=event.ctrlKey;if(!event.which&&event.button)event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)));return event;},proxy:function(fn,proxy){proxy.guid=fn.guid=fn.guid||proxy.guid||this.guid++;return proxy;},special:{ready:{setup:function(){bindReady();return;},teardown:function(){return;}},mouseenter:{setup:function(){if(jQuery.browser.msie)return false;jQuery(this).bind("mouseover",jQuery.event.special.mouseenter.handler);return true;},teardown:function(){if(jQuery.browser.msie)return false;jQuery(this).unbind("mouseover",jQuery.event.special.mouseenter.handler);return true;},handler:function(event){if(withinElement(event,this))return true;event.type="mouseenter";return jQuery.event.handle.apply(this,arguments);}},mouseleave:{setup:function(){if(jQuery.browser.msie)return false;jQuery(this).bind("mouseout",jQuery.event.special.mouseleave.handler);return true;},teardown:function(){if(jQuery.browser.msie)return false;jQuery(this).unbind("mouseout",jQuery.event.special.mouseleave.handler);return true;},handler:function(event){if(withinElement(event,this))return true;event.type="mouseleave";return jQuery.event.handle.apply(this,arguments);}}}};jQuery.fn.extend({bind:function(type,data,fn){return type=="unload"?this.one(type,data,fn):this.each(function(){jQuery.event.add(this,type,fn||data,fn&&data);});},one:function(type,data,fn){var one=jQuery.event.proxy(fn||data,function(event){jQuery(this).unbind(event,one);return(fn||data).apply(this,arguments);});return this.each(function(){jQuery.event.add(this,type,one,fn&&data);});},unbind:function(type,fn){return this.each(function(){jQuery.event.remove(this,type,fn);});},trigger:function(type,data,fn){return this.each(function(){jQuery.event.trigger(type,data,this,true,fn);});},triggerHandler:function(type,data,fn){return this[0]&&jQuery.event.trigger(type,data,this[0],false,fn);},toggle:function(fn){var args=arguments,i=1;while(i=0){var selector=url.slice(off,url.length);url=url.slice(0,off);}callback=callback||function(){};var type="GET";if(params)if(jQuery.isFunction(params)){callback=params;params=null;}else{params=jQuery.param(params);type="POST";}var self=this;jQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(res,status){if(status=="success"||status=="notmodified")self.html(selector?jQuery("").append(res.responseText.replace(/