qa_robusta 0.1.8 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. data/History.txt +4 -0
  2. data/Manifest.txt +41 -4
  3. data/common/lib/gems/.svn/entries +1 -1
  4. data/common/lib/gems/cache/.svn/entries +1 -1
  5. data/common/lib/gems/doc/.svn/entries +1 -1
  6. data/common/lib/gems/gems/.svn/entries +1 -1
  7. data/common/lib/gems/installed/.svn/entries +1 -1
  8. data/common/lib/gems/installed/cache/.svn/entries +1 -1
  9. data/common/lib/gems/installed/doc/.svn/entries +1 -1
  10. data/common/lib/gems/installed/gems/.svn/entries +1 -1
  11. data/common/lib/gems/installed/specifications/.svn/entries +1 -1
  12. data/common/lib/gems/specifications/.svn/entries +1 -1
  13. data/demo/public/images/arrow_left_48.png +0 -0
  14. data/demo/public/images/arrow_right_48.png +0 -0
  15. data/demo/public/images/down.gif +0 -0
  16. data/demo/public/images/header.jpg +0 -0
  17. data/demo/public/images/menu.gif +0 -0
  18. data/demo/public/images/menuhover.gif +0 -0
  19. data/demo/public/javascripts/browser.menu.js +61 -0
  20. data/demo/public/javascripts/cyberconnect_helpers.js +369 -0
  21. data/demo/public/javascripts/jquery-1.5.1.min.js +16 -0
  22. data/demo/public/javascripts/jquery-ui-1.8.10.custom.min.js +1370 -0
  23. data/demo/public/javascripts/jquery.layout.min-1.2.0.js +80 -0
  24. data/demo/public/javascripts/jqueryslidemenu.css +93 -0
  25. data/demo/public/javascripts/jqueryslidemenu.js +48 -0
  26. data/demo/public/javascripts/ui.accordion.js +477 -0
  27. data/demo/public/jquery.ui.all.css +11 -0
  28. data/demo/public/jquery.ui.base.css +11 -0
  29. data/demo/public/jquery.ui.theme.css +252 -0
  30. data/demo/public/jquery_css/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  31. data/demo/public/jquery_css/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  32. data/demo/public/jquery_css/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  33. data/demo/public/jquery_css/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  34. data/demo/public/jquery_css/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  35. data/demo/public/jquery_css/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  36. data/demo/public/jquery_css/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  37. data/demo/public/jquery_css/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  38. data/demo/public/jquery_css/images/ui-icons_222222_256x240.png +0 -0
  39. data/demo/public/jquery_css/images/ui-icons_2e83ff_256x240.png +0 -0
  40. data/demo/public/jquery_css/images/ui-icons_454545_256x240.png +0 -0
  41. data/demo/public/jquery_css/images/ui-icons_888888_256x240.png +0 -0
  42. data/demo/public/jquery_css/images/ui-icons_cd0a0a_256x240.png +0 -0
  43. data/demo/public/jquery_css/jquery-ui-1.8.10.custom.css +573 -0
  44. data/demo/public/jquery_layout.css +14 -0
  45. data/demo/public/jqueryslidemenu.css +93 -0
  46. data/demo/public/menu.css +12 -0
  47. data/demo/public/style.css +193 -1
  48. data/demo/views/index.erb +263 -9
  49. data/lib/qa_robusta.rb +1 -1
  50. data/qa_observer/lib/doc.rb +8 -4
  51. data/qa_observer/lib/form_helpers.rb +1 -1
  52. data/qa_observer/lib/watir.rb +41 -41
  53. data/qa_observer/sites/demo/elements/demo_elements.rb +50 -1
  54. data/qa_observer/sites/demo/flows/demo_flows.rb +32 -7
  55. data/qa_observer/sites/demo/test_cases/home_page.rb +34 -17
  56. data/qa_observer/sites/demo/test_cases/test_element_scroll_to.rb +9 -9
  57. data/qa_observer/sites/demo/test_cases/test_menu.rb +59 -0
  58. data/qa_observer/sites/demo/test_cases/test_registration.rb +140 -0
  59. data/qa_observer/suites/demo_release_decision/release.yaml +23 -0
  60. data/qa_observer/suites/init.rb +45 -2
  61. data/qa_observer/test_runner.rb +3 -5
  62. metadata +45 -9
  63. data/test/test_qa_robusta.rb +0 -8
@@ -0,0 +1,80 @@
1
+ /*
2
+ * jquery.layout 1.2.0
3
+ *
4
+ * Copyright (c) 2008
5
+ * Fabrizio Balliano (http://www.fabrizioballiano.net)
6
+ * Kevin Dalman (http://allpro.net)
7
+ *
8
+ * Dual licensed under the GPL (http://www.gnu.org/licenses/gpl.html)
9
+ * and MIT (http://www.opensource.org/licenses/mit-license.php) licenses.
10
+ *
11
+ * $Date: 2008-12-27 02:17:22 +0100 (sab, 27 dic 2008) $
12
+ * $Rev: 203 $
13
+ *
14
+ * NOTE: For best code readability, view this with a fixed-space font and tabs equal to 4-chars
15
+ */
16
+ (function($){$.fn.layout=function(opts){var
17
+ prefix="ui-layout-",defaults={paneClass:prefix+"pane",resizerClass:prefix+"resizer",togglerClass:prefix+"toggler",togglerInnerClass:prefix+"",buttonClass:prefix+"button",contentSelector:"."+prefix+"content",contentIgnoreSelector:"."+prefix+"ignore"};var options={name:"",scrollToBookmarkOnLoad:true,defaults:{applyDefaultStyles:false,closable:true,resizable:true,slidable:true,contentSelector:defaults.contentSelector,contentIgnoreSelector:defaults.contentIgnoreSelector,paneClass:defaults.paneClass,resizerClass:defaults.resizerClass,togglerClass:defaults.togglerClass,buttonClass:defaults.buttonClass,resizerDragOpacity:1,maskIframesOnResize:true,minSize:0,maxSize:0,spacing_open:6,spacing_closed:6,togglerLength_open:50,togglerLength_closed:50,togglerAlign_open:"center",togglerAlign_closed:"center",togglerTip_open:"Close",togglerTip_closed:"Open",resizerTip:"Resize",sliderTip:"Slide Open",sliderCursor:"pointer",slideTrigger_open:"click",slideTrigger_close:"mouseout",hideTogglerOnSlide:false,togglerContent_open:"",togglerContent_closed:"",showOverflowOnHover:false,enableCursorHotkey:true,customHotkeyModifier:"SHIFT",fxName:"slide",fxSpeed:null,fxSettings:{},initClosed:false,initHidden:false},north:{paneSelector:"."+prefix+"north",size:"auto",resizerCursor:"n-resize"},south:{paneSelector:"."+prefix+"south",size:"auto",resizerCursor:"s-resize"},east:{paneSelector:"."+prefix+"east",size:200,resizerCursor:"e-resize"},west:{paneSelector:"."+prefix+"west",size:200,resizerCursor:"w-resize"},center:{paneSelector:"."+prefix+"center"}};var effects={slide:{all:{duration:"fast"},north:{direction:"up"},south:{direction:"down"},east:{direction:"right"},west:{direction:"left"}},drop:{all:{duration:"slow"},north:{direction:"up"},south:{direction:"down"},east:{direction:"right"},west:{direction:"left"}},scale:{all:{duration:"fast"}}};var config={allPanes:"north,south,east,west,center",borderPanes:"north,south,east,west",zIndex:{resizer_normal:1,pane_normal:2,mask:4,sliding:100,resizing:10000,animation:10000},resizers:{cssReq:{position:"absolute",padding:0,margin:0,fontSize:"1px",textAlign:"left",overflow:"hidden",zIndex:1},cssDef:{background:"#DDD",border:"none"}},togglers:{cssReq:{position:"absolute",display:"block",padding:0,margin:0,overflow:"hidden",textAlign:"center",fontSize:"1px",cursor:"pointer",zIndex:1},cssDef:{background:"#AAA"}},content:{cssReq:{overflow:"auto"},cssDef:{}},defaults:{cssReq:{position:"absolute",margin:0,zIndex:2},cssDef:{padding:"10px",background:"#FFF",border:"1px solid #BBB",overflow:"auto"}},north:{edge:"top",sizeType:"height",dir:"horz",cssReq:{top:0,bottom:"auto",left:0,right:0,width:"auto"}},south:{edge:"bottom",sizeType:"height",dir:"horz",cssReq:{top:"auto",bottom:0,left:0,right:0,width:"auto"}},east:{edge:"right",sizeType:"width",dir:"vert",cssReq:{left:"auto",right:0,top:"auto",bottom:"auto",height:"auto"}},west:{edge:"left",sizeType:"width",dir:"vert",cssReq:{left:0,right:"auto",top:"auto",bottom:"auto",height:"auto"}},center:{dir:"center",cssReq:{left:"auto",right:"auto",top:"auto",bottom:"auto",height:"auto",width:"auto"}}};var state={id:Math.floor(Math.random()*10000),container:{},north:{},south:{},east:{},west:{},center:{}};var
18
+ altEdge={top:"bottom",bottom:"top",left:"right",right:"left"},altSide={north:"south",south:"north",east:"west",west:"east"};var isStr=function(o){if(typeof o=="string")return true;else if(typeof o=="object"){try{var match=o.constructor.toString().match(/string/i);return(match!==null);}catch(e){}}return false;};var str=function(o){if(typeof o=="string"||isStr(o))return $.trim(o);else return o;};var min=function(x,y){return Math.min(x,y);};var max=function(x,y){return Math.max(x,y);};var transformData=function(d){var json={defaults:{fxSettings:{}},north:{fxSettings:{}},south:{fxSettings:{}},east:{fxSettings:{}},west:{fxSettings:{}},center:{fxSettings:{}}};d=d||{};if(d.effects||d.defaults||d.north||d.south||d.west||d.east||d.center)json=$.extend(json,d);else
19
+ $.each(d,function(key,val){a=key.split("__");json[a[1]?a[0]:"defaults"][a[1]?a[1]:a[0]]=val;});return json;};var setFlowCallback=function(action,pane,param){var
20
+ cb=action+","+pane+","+(param?1:0),cP,cbPane;$.each(c.borderPanes.split(","),function(i,p){if(c[p].isMoving){bindCallback(p);return false;}});function bindCallback(p,test){cP=c[p];if(!cP.doCallback){cP.doCallback=true;cP.callback=cb;}else{cpPane=cP.callback.split(",")[1];if(cpPane!=p&&cpPane!=pane)bindCallback(cpPane,true);}}};var execFlowCallback=function(pane){var cP=c[pane];c.isLayoutBusy=false;delete cP.isMoving;if(!cP.doCallback||!cP.callback)return;cP.doCallback=false;var
21
+ cb=cP.callback.split(","),param=(cb[2]>0?true:false);if(cb[0]=="open")open(cb[1],param);else if(cb[0]=="close")close(cb[1],param);if(!cP.doCallback)cP.callback=null;};var execUserCallback=function(pane,v_fn){if(!v_fn)return;var fn;try{if(typeof v_fn=="function")fn=v_fn;else if(typeof v_fn!="string")return;else if(v_fn.indexOf(",")>0){var
22
+ args=v_fn.split(","),fn=eval(args[0]);if(typeof fn=="function"&&args.length>1)return fn(args[1]);}else
23
+ fn=eval(v_fn);if(typeof fn=="function")return fn(pane,$Ps[pane],$.extend({},state[pane]),$.extend({},options[pane]),options.name);}catch(ex){}};var cssNum=function($E,prop){var
24
+ val=0,hidden=false,visibility="";if(!$.browser.msie){if($.curCSS($E[0],"display",true)=="none"){hidden=true;visibility=$.curCSS($E[0],"visibility",true);$E.css({display:"block",visibility:"hidden"});}}val=parseInt($.curCSS($E[0],prop,true),10)||0;if(hidden){$E.css({display:"none"});if(visibility&&visibility!="hidden")$E.css({visibility:visibility});}return val;};var cssW=function(e,outerWidth){var $E;if(isStr(e)){e=str(e);$E=$Ps[e];}else
25
+ $E=$(e);if(outerWidth<=0)return 0;else if(!(outerWidth>0))outerWidth=isStr(e)?getPaneSize(e):$E.outerWidth();if(!$.boxModel)return outerWidth;else
26
+ return outerWidth
27
+ -cssNum($E,"paddingLeft")-cssNum($E,"paddingRight")-($.curCSS($E[0],"borderLeftStyle",true)=="none"?0:cssNum($E,"borderLeftWidth"))-($.curCSS($E[0],"borderRightStyle",true)=="none"?0:cssNum($E,"borderRightWidth"));};var cssH=function(e,outerHeight){var $E;if(isStr(e)){e=str(e);$E=$Ps[e];}else
28
+ $E=$(e);if(outerHeight<=0)return 0;else if(!(outerHeight>0))outerHeight=(isStr(e))?getPaneSize(e):$E.outerHeight();if(!$.boxModel)return outerHeight;else
29
+ return outerHeight
30
+ -cssNum($E,"paddingTop")-cssNum($E,"paddingBottom")-($.curCSS($E[0],"borderTopStyle",true)=="none"?0:cssNum($E,"borderTopWidth"))-($.curCSS($E[0],"borderBottomStyle",true)=="none"?0:cssNum($E,"borderBottomWidth"));};var cssSize=function(pane,outerSize){if(c[pane].dir=="horz")return cssH(pane,outerSize);else
31
+ return cssW(pane,outerSize);};var getPaneSize=function(pane,inclSpace){var
32
+ $P=$Ps[pane],o=options[pane],s=state[pane],oSp=(inclSpace?o.spacing_open:0),cSp=(inclSpace?o.spacing_closed:0);if(!$P||s.isHidden)return 0;else if(s.isClosed||(s.isSliding&&inclSpace))return cSp;else if(c[pane].dir=="horz")return $P.outerHeight()+oSp;else
33
+ return $P.outerWidth()+oSp;};var setPaneMinMaxSizes=function(pane){var
34
+ d=cDims,edge=c[pane].edge,dir=c[pane].dir,o=options[pane],s=state[pane],$P=$Ps[pane],$altPane=$Ps[altSide[pane]],paneSpacing=o.spacing_open,altPaneSpacing=options[altSide[pane]].spacing_open,altPaneSize=(!$altPane?0:(dir=="horz"?$altPane.outerHeight():$altPane.outerWidth())),containerSize=(dir=="horz"?d.innerHeight:d.innerWidth),limitSize=containerSize-paneSpacing-altPaneSize-altPaneSpacing,minSize=s.minSize||0,maxSize=Math.min(s.maxSize||9999,limitSize),minPos,maxPos;switch(pane){case"north":minPos=d.offsetTop+minSize;maxPos=d.offsetTop+maxSize;break;case"west":minPos=d.offsetLeft+minSize;maxPos=d.offsetLeft+maxSize;break;case"south":minPos=d.offsetTop+d.innerHeight-maxSize;maxPos=d.offsetTop+d.innerHeight-minSize;break;case"east":minPos=d.offsetLeft+d.innerWidth-maxSize;maxPos=d.offsetLeft+d.innerWidth-minSize;break;}$.extend(s,{minSize:minSize,maxSize:maxSize,minPosition:minPos,maxPosition:maxPos});};var getPaneDims=function(){var d={top:getPaneSize("north",true),bottom:getPaneSize("south",true),left:getPaneSize("west",true),right:getPaneSize("east",true),width:0,height:0};with(d){width=cDims.innerWidth-left-right;height=cDims.innerHeight-bottom-top;top+=cDims.top;bottom+=cDims.bottom;left+=cDims.left;right+=cDims.right;}return d;};var getElemDims=function($E){var
35
+ d={},e,b,p;$.each("Left,Right,Top,Bottom".split(","),function(){e=str(this);b=d["border"+e]=cssNum($E,"border"+e+"Width");p=d["padding"+e]=cssNum($E,"padding"+e);d["offset"+e]=b+p;if($E==$Container)d[e.toLowerCase()]=($.boxModel?p:0);});d.innerWidth=d.outerWidth=$E.outerWidth();d.innerHeight=d.outerHeight=$E.outerHeight();if($.boxModel){d.innerWidth-=(d.offsetLeft+d.offsetRight);d.innerHeight-=(d.offsetTop+d.offsetBottom);}return d;};var setTimer=function(pane,action,fn,ms){var
36
+ Layout=window.layout=window.layout||{},Timers=Layout.timers=Layout.timers||{},name="layout_"+state.id+"_"+pane+"_"+action;if(Timers[name])return;else Timers[name]=setTimeout(fn,ms);};var clearTimer=function(pane,action){var
37
+ Layout=window.layout=window.layout||{},Timers=Layout.timers=Layout.timers||{},name="layout_"+state.id+"_"+pane+"_"+action;if(Timers[name]){clearTimeout(Timers[name]);delete Timers[name];return true;}else
38
+ return false;};var create=function(){initOptions();initContainer();initPanes();initHandles();initResizable();sizeContent("all");if(options.scrollToBookmarkOnLoad)with(self.location)if(hash)replace(hash);initHotkeys();$(window).resize(function(){var timerID="timerLayout_"+state.id;if(window[timerID])clearTimeout(window[timerID]);window[timerID]=null;if(true||$.browser.msie)window[timerID]=setTimeout(resizeAll,100);else
39
+ resizeAll();});};var initContainer=function(){try{if($Container[0].tagName=="BODY"){$("html").css({height:"100%",overflow:"hidden"});$("body").css({position:"relative",height:"100%",overflow:"hidden",margin:0,padding:0,border:"none"});}else{var
40
+ CSS={overflow:"hidden"},p=$Container.css("position"),h=$Container.css("height");if(!$Container.hasClass("ui-layout-pane")){if(!p||"fixed,absolute,relative".indexOf(p)<0)CSS.position="relative";if(!h||h=="auto")CSS.height="100%";}$Container.css(CSS);}}catch(ex){}cDims=state.container=getElemDims($Container);};var initHotkeys=function(){$.each(c.borderPanes.split(","),function(i,pane){var o=options[pane];if(o.enableCursorHotkey||o.customHotkey){$(document).keydown(keyDown);return false;}});};var initOptions=function(){opts=transformData(opts);if(opts.effects){$.extend(effects,opts.effects);delete opts.effects;}$.each("name,scrollToBookmarkOnLoad".split(","),function(idx,key){if(opts[key]!==undefined)options[key]=opts[key];else if(opts.defaults[key]!==undefined){options[key]=opts.defaults[key];delete opts.defaults[key];}});$.each("paneSelector,resizerCursor,customHotkey".split(","),function(idx,key){delete opts.defaults[key];});$.extend(options.defaults,opts.defaults);c.center=$.extend(true,{},c.defaults,c.center);$.extend(options.center,opts.center);var o_Center=$.extend(true,{},options.defaults,opts.defaults,options.center);$.each("paneClass,contentSelector,contentIgnoreSelector,applyDefaultStyles,showOverflowOnHover".split(","),function(idx,key){options.center[key]=o_Center[key];});var defs=options.defaults;$.each(c.borderPanes.split(","),function(i,pane){c[pane]=$.extend(true,{},c.defaults,c[pane]);o=options[pane]=$.extend(true,{},options.defaults,options[pane],opts.defaults,opts[pane]);if(!o.paneClass)o.paneClass=defaults.paneClass;if(!o.resizerClass)o.resizerClass=defaults.resizerClass;if(!o.togglerClass)o.togglerClass=defaults.togglerClass;$.each(["_open","_close",""],function(i,n){var
41
+ sName="fxName"+n,sSpeed="fxSpeed"+n,sSettings="fxSettings"+n;o[sName]=opts[pane][sName]||opts[pane].fxName||opts.defaults[sName]||opts.defaults.fxName||o[sName]||o.fxName||defs[sName]||defs.fxName||"none";var fxName=o[sName];if(fxName=="none"||!$.effects||!$.effects[fxName]||(!effects[fxName]&&!o[sSettings]&&!o.fxSettings))fxName=o[sName]="none";var
42
+ fx=effects[fxName]||{},fx_all=fx.all||{},fx_pane=fx[pane]||{};o[sSettings]=$.extend({},fx_all,fx_pane,defs.fxSettings||{},defs[sSettings]||{},o.fxSettings,o[sSettings],opts.defaults.fxSettings,opts.defaults[sSettings]||{},opts[pane].fxSettings,opts[pane][sSettings]||{});o[sSpeed]=opts[pane][sSpeed]||opts[pane].fxSpeed||opts.defaults[sSpeed]||opts.defaults.fxSpeed||o[sSpeed]||o[sSettings].duration||o.fxSpeed||o.fxSettings.duration||defs.fxSpeed||defs.fxSettings.duration||fx_pane.duration||fx_all.duration||"normal";});});};var initPanes=function(){$.each(c.allPanes.split(","),function(){var
43
+ pane=str(this),o=options[pane],s=state[pane],fx=s.fx,dir=c[pane].dir,size=o.size=="auto"||isNaN(o.size)?0:o.size,minSize=o.minSize||1,maxSize=o.maxSize||9999,spacing=o.spacing_open||0,sel=o.paneSelector,isIE6=($.browser.msie&&$.browser.version<7),CSS={},$P,$C;$Cs[pane]=false;if(sel.substr(0,1)==="#")$P=$Ps[pane]=$Container.find(sel+":first");else{$P=$Ps[pane]=$Container.children(sel+":first");if(!$P.length)$P=$Ps[pane]=$Container.children("form:first").children(sel+":first");}if(!$P.length){$Ps[pane]=false;return true;}$P.attr("pane",pane).addClass(o.paneClass+" "+o.paneClass+"-"+pane);if(pane!="center"){s.isClosed=false;s.isSliding=false;s.isResizing=false;s.isHidden=false;s.noRoom=false;c[pane].pins=[];}CSS=$.extend({visibility:"visible",display:"block"},c.defaults.cssReq,c[pane].cssReq);if(o.applyDefaultStyles)$.extend(CSS,c.defaults.cssDef,c[pane].cssDef);$P.css(CSS);CSS={};switch(pane){case"north":CSS.top=cDims.top;CSS.left=cDims.left;CSS.right=cDims.right;break;case"south":CSS.bottom=cDims.bottom;CSS.left=cDims.left;CSS.right=cDims.right;break;case"west":CSS.left=cDims.left;break;case"east":CSS.right=cDims.right;break;case"center":}if(dir=="horz"){if(size===0||size=="auto"){$P.css({height:"auto"});size=$P.outerHeight();}size=max(size,minSize);size=min(size,maxSize);size=min(size,cDims.innerHeight-spacing);CSS.height=max(1,cssH(pane,size));s.size=size;s.maxSize=maxSize;s.minSize=max(minSize,size-CSS.height+1);$P.css(CSS);}else if(dir=="vert"){if(size===0||size=="auto"){$P.css({width:"auto",float:"left"});size=$P.outerWidth();$P.css({float:"none"});}size=max(size,minSize);size=min(size,maxSize);size=min(size,cDims.innerWidth-spacing);CSS.width=max(1,cssW(pane,size));s.size=size;s.maxSize=maxSize;s.minSize=max(minSize,size-CSS.width+1);$P.css(CSS);sizeMidPanes(pane,null,true);}else if(pane=="center"){$P.css(CSS);sizeMidPanes("center",null,true);}if(o.initClosed&&o.closable){$P.hide().addClass("closed");s.isClosed=true;}else if(o.initHidden||o.initClosed){hide(pane,true);s.isHidden=true;}else
44
+ $P.addClass("open");if(o.showOverflowOnHover)$P.hover(allowOverflow,resetOverflow);if(o.contentSelector){$C=$Cs[pane]=$P.children(o.contentSelector+":first");if(!$C.length){$Cs[pane]=false;return true;}$C.css(c.content.cssReq);if(o.applyDefaultStyles)$C.css(c.content.cssDef);$P.css({overflow:"hidden"});}});};var initHandles=function(){$.each(c.borderPanes.split(","),function(){var
45
+ pane=str(this),o=options[pane],s=state[pane],rClass=o.resizerClass,tClass=o.togglerClass,$P=$Ps[pane];$Rs[pane]=false;$Ts[pane]=false;if(!$P||(!o.closable&&!o.resizable))return;var
46
+ edge=c[pane].edge,isOpen=$P.is(":visible"),spacing=(isOpen?o.spacing_open:o.spacing_closed),_pane="-"+pane,_state=(isOpen?"-open":"-closed"),$R,$T;$R=$Rs[pane]=$("<span></span>");if(isOpen&&o.resizable);else if(!isOpen&&o.slidable)$R.attr("title",o.sliderTip).css("cursor",o.sliderCursor);$R.attr("id",(o.paneSelector.substr(0,1)=="#"?o.paneSelector.substr(1)+"-resizer":"")).attr("resizer",pane).css(c.resizers.cssReq).css(edge,cDims[edge]+getPaneSize(pane)).addClass(rClass+" "+rClass+_pane+" "+rClass+_state+" "+rClass+_pane+_state).appendTo($Container);if(o.applyDefaultStyles)$R.css(c.resizers.cssDef);if(o.closable){$T=$Ts[pane]=$("<div></div>");$T.attr("id",(o.paneSelector.substr(0,1)=="#"?o.paneSelector.substr(1)+"-toggler":"")).css(c.togglers.cssReq).attr("title",(isOpen?o.togglerTip_open:o.togglerTip_closed)).click(function(evt){toggle(pane);evt.stopPropagation();}).mouseover(function(evt){evt.stopPropagation();}).addClass(tClass+" "+tClass+_pane+" "+tClass+_state+" "+tClass+_pane+_state).appendTo($R);if(o.togglerContent_open)$("<span>"+o.togglerContent_open+"</span>").addClass("content content-open").css("display",s.isClosed?"none":"block").appendTo($T);if(o.togglerContent_closed)$("<span>"+o.togglerContent_closed+"</span>").addClass("content content-closed").css("display",s.isClosed?"block":"none").appendTo($T);if(o.applyDefaultStyles)$T.css(c.togglers.cssDef);if(!isOpen)bindStartSlidingEvent(pane,true);}});sizeHandles("all",true);};var initResizable=function(){var
47
+ draggingAvailable=(typeof $.fn.draggable=="function"),minPosition,maxPosition,edge;$.each(c.borderPanes.split(","),function(){var
48
+ pane=str(this),o=options[pane],s=state[pane];if(!draggingAvailable||!$Ps[pane]||!o.resizable){o.resizable=false;return true;}var
49
+ rClass=o.resizerClass,dragClass=rClass+"-drag",dragPaneClass=rClass+"-"+pane+"-drag",draggingClass=rClass+"-dragging",draggingPaneClass=rClass+"-"+pane+"-dragging",draggingClassSet=false,$P=$Ps[pane],$R=$Rs[pane];if(!s.isClosed)$R.attr("title",o.resizerTip).css("cursor",o.resizerCursor);$R.draggable({containment:$Container[0],axis:(c[pane].dir=="horz"?"y":"x"),delay:200,distance:1,helper:"clone",opacity:o.resizerDragOpacity,zIndex:c.zIndex.resizing,start:function(e,ui){if(false===execUserCallback(pane,o.onresize_start))return false;s.isResizing=true;clearTimer(pane,"closeSlider");$R.addClass(dragClass+" "+dragPaneClass);draggingClassSet=false;var resizerWidth=(pane=="east"||pane=="south"?o.spacing_open:0);setPaneMinMaxSizes(pane);s.minPosition-=resizerWidth;s.maxPosition-=resizerWidth;edge=(c[pane].dir=="horz"?"top":"left");$(o.maskIframesOnResize===true?"iframe":o.maskIframesOnResize).each(function(){$('<div class="ui-layout-mask"/>').css({background:"#fff",opacity:"0.001",zIndex:9,position:"absolute",width:this.offsetWidth+"px",height:this.offsetHeight+"px"}).css($(this).offset()).appendTo(this.parentNode);});},drag:function(e,ui){if(!draggingClassSet){$(".ui-draggable-dragging").addClass(draggingClass+" "+draggingPaneClass).children().css("visibility","hidden");draggingClassSet=true;if(s.isSliding)$Ps[pane].css("zIndex",c.zIndex.sliding);}if(ui.position[edge]<s.minPosition)ui.position[edge]=s.minPosition;else if(ui.position[edge]>s.maxPosition)ui.position[edge]=s.maxPosition;},stop:function(e,ui){var
50
+ dragPos=ui.position,resizerPos,newSize;$R.removeClass(dragClass+" "+dragPaneClass);switch(pane){case"north":resizerPos=dragPos.top;break;case"west":resizerPos=dragPos.left;break;case"south":resizerPos=cDims.outerHeight-dragPos.top-$R.outerHeight();break;case"east":resizerPos=cDims.outerWidth-dragPos.left-$R.outerWidth();break;}newSize=resizerPos-cDims[c[pane].edge];sizePane(pane,newSize);$("div.ui-layout-mask").remove();s.isResizing=false;}});});};var hide=function(pane,onInit){var
51
+ o=options[pane],s=state[pane],$P=$Ps[pane],$R=$Rs[pane];if(!$P||s.isHidden)return;if(false===execUserCallback(pane,o.onhide_start))return;s.isSliding=false;if($R)$R.hide();if(onInit||s.isClosed){s.isClosed=true;s.isHidden=true;$P.hide();sizeMidPanes(c[pane].dir=="horz"?"all":"center");execUserCallback(pane,o.onhide_end||o.onhide);}else{s.isHiding=true;close(pane,false);}};var show=function(pane,openPane){var
52
+ o=options[pane],s=state[pane],$P=$Ps[pane],$R=$Rs[pane];if(!$P||!s.isHidden)return;if(false===execUserCallback(pane,o.onshow_start))return;s.isSliding=false;s.isShowing=true;if($R&&o.spacing_open>0)$R.show();if(openPane===false)close(pane,true);else
53
+ open(pane);};var toggle=function(pane){var s=state[pane];if(s.isHidden)show(pane);else if(s.isClosed)open(pane);else
54
+ close(pane);};var close=function(pane,force,noAnimation){var
55
+ $P=$Ps[pane],$R=$Rs[pane],$T=$Ts[pane],o=options[pane],s=state[pane],doFX=!noAnimation&&!s.isClosed&&(o.fxName_close!="none"),edge=c[pane].edge,rClass=o.resizerClass,tClass=o.togglerClass,_pane="-"+pane,_open="-open",_sliding="-sliding",_closed="-closed",isShowing=s.isShowing,isHiding=s.isHiding;delete s.isShowing;delete s.isHiding;if(!$P||(!o.resizable&&!o.closable))return;else if(!force&&s.isClosed&&!isShowing)return;if(c.isLayoutBusy){setFlowCallback("close",pane,force);return;}if(!isShowing&&false===execUserCallback(pane,o.onclose_start))return;c[pane].isMoving=true;c.isLayoutBusy=true;s.isClosed=true;if(isHiding)s.isHidden=true;else if(isShowing)s.isHidden=false;syncPinBtns(pane,false);if(!s.isSliding)sizeMidPanes(c[pane].dir=="horz"?"all":"center");if($R){$R.css(edge,cDims[edge]).removeClass(rClass+_open+" "+rClass+_pane+_open).removeClass(rClass+_sliding+" "+rClass+_pane+_sliding).addClass(rClass+_closed+" "+rClass+_pane+_closed);if(o.resizable)$R.draggable("disable").css("cursor","default").attr("title","");if($T){$T.removeClass(tClass+_open+" "+tClass+_pane+_open).addClass(tClass+_closed+" "+tClass+_pane+_closed).attr("title",o.togglerTip_closed);}sizeHandles();}if(doFX){lockPaneForFX(pane,true);$P.hide(o.fxName_close,o.fxSettings_close,o.fxSpeed_close,function(){lockPaneForFX(pane,false);if(!s.isClosed)return;close_2();});}else{$P.hide();close_2();}function close_2(){bindStartSlidingEvent(pane,true);if(!isShowing)execUserCallback(pane,o.onclose_end||o.onclose);if(isShowing)execUserCallback(pane,o.onshow_end||o.onshow);if(isHiding)execUserCallback(pane,o.onhide_end||o.onhide);execFlowCallback(pane);}};var open=function(pane,slide,noAnimation){var
56
+ $P=$Ps[pane],$R=$Rs[pane],$T=$Ts[pane],o=options[pane],s=state[pane],doFX=!noAnimation&&s.isClosed&&(o.fxName_open!="none"),edge=c[pane].edge,rClass=o.resizerClass,tClass=o.togglerClass,_pane="-"+pane,_open="-open",_closed="-closed",_sliding="-sliding",isShowing=s.isShowing;delete s.isShowing;if(!$P||(!o.resizable&&!o.closable))return;else if(!s.isClosed&&!s.isSliding)return;if(s.isHidden&&!isShowing){show(pane,true);return;}if(c.isLayoutBusy){setFlowCallback("open",pane,slide);return;}if(false===execUserCallback(pane,o.onopen_start))return;c[pane].isMoving=true;c.isLayoutBusy=true;if(s.isSliding&&!slide)bindStopSlidingEvents(pane,false);s.isClosed=false;if(isShowing)s.isHidden=false;setPaneMinMaxSizes(pane);if(s.size>s.maxSize)$P.css(c[pane].sizeType,max(1,cssSize(pane,s.maxSize)));bindStartSlidingEvent(pane,false);if(doFX){lockPaneForFX(pane,true);$P.show(o.fxName_open,o.fxSettings_open,o.fxSpeed_open,function(){lockPaneForFX(pane,false);if(s.isClosed)return;open_2();});}else{$P.show();open_2();}function open_2(){if(!s.isSliding)sizeMidPanes(c[pane].dir=="vert"?"center":"all");if($R){$R.css(edge,cDims[edge]+getPaneSize(pane)).removeClass(rClass+_closed+" "+rClass+_pane+_closed).addClass(rClass+_open+" "+rClass+_pane+_open).addClass(!s.isSliding?"":rClass+_sliding+" "+rClass+_pane+_sliding);if(o.resizable)$R.draggable("enable").css("cursor",o.resizerCursor).attr("title",o.resizerTip);else
57
+ $R.css("cursor","default");if($T){$T.removeClass(tClass+_closed+" "+tClass+_pane+_closed).addClass(tClass+_open+" "+tClass+_pane+_open).attr("title",o.togglerTip_open);}sizeHandles("all");}sizeContent(pane);syncPinBtns(pane,!s.isSliding);execUserCallback(pane,o.onopen_end||o.onopen);if(isShowing)execUserCallback(pane,o.onshow_end||o.onshow);execFlowCallback(pane);}};var lockPaneForFX=function(pane,doLock){var $P=$Ps[pane];if(doLock){$P.css({zIndex:c.zIndex.animation});if(pane=="south")$P.css({top:cDims.top+cDims.innerHeight-$P.outerHeight()});else if(pane=="east")$P.css({left:cDims.left+cDims.innerWidth-$P.outerWidth()});}else{if(!state[pane].isSliding)$P.css({zIndex:c.zIndex.pane_normal});if(pane=="south")$P.css({top:"auto"});else if(pane=="east")$P.css({left:"auto"});}};var bindStartSlidingEvent=function(pane,enable){var
58
+ o=options[pane],$R=$Rs[pane],trigger=o.slideTrigger_open;if(!$R||!o.slidable)return;if(trigger!="click"&&trigger!="dblclick"&&trigger!="mouseover")trigger="click";$R
59
+ [enable?"bind":"unbind"](trigger,slideOpen).css("cursor",(enable?o.sliderCursor:"default")).attr("title",(enable?o.sliderTip:""));};var bindStopSlidingEvents=function(pane,enable){var
60
+ o=options[pane],s=state[pane],trigger=o.slideTrigger_close,action=(enable?"bind":"unbind"),$P=$Ps[pane],$R=$Rs[pane];s.isSliding=enable;clearTimer(pane,"closeSlider");$P.css({zIndex:(enable?c.zIndex.sliding:c.zIndex.pane_normal)});$R.css({zIndex:(enable?c.zIndex.sliding:c.zIndex.resizer_normal)});if(trigger!="click"&&trigger!="mouseout")trigger="mouseout";if(enable){$P.bind(trigger,slideClosed);$R.bind(trigger,slideClosed);if(trigger="mouseout"){$P.bind("mouseover",cancelMouseOut);$R.bind("mouseover",cancelMouseOut);}}else{$P.unbind(trigger);$R.unbind(trigger);if(trigger="mouseout"){$P.unbind("mouseover");$R.unbind("mouseover");clearTimer(pane,"closeSlider");}}function cancelMouseOut(evt){clearTimer(pane,"closeSlider");evt.stopPropagation();}};var slideOpen=function(){var pane=$(this).attr("resizer");if(state[pane].isClosed){bindStopSlidingEvents(pane,true);open(pane,true);}};var slideClosed=function(){var
61
+ $E=$(this),pane=$E.attr("pane")||$E.attr("resizer"),o=options[pane],s=state[pane];if(s.isClosed||s.isResizing)return;else if(o.slideTrigger_close=="click")close_NOW();else
62
+ setTimer(pane,"closeSlider",close_NOW,300);function close_NOW(){bindStopSlidingEvents(pane,false);if(!s.isClosed)close(pane);}};var sizePane=function(pane,size){var
63
+ edge=c[pane].edge,dir=c[pane].dir,o=options[pane],s=state[pane],$P=$Ps[pane],$R=$Rs[pane];setPaneMinMaxSizes(pane);s.minSize=max(s.minSize,o.minSize);if(o.maxSize>0)s.maxSize=min(s.maxSize,o.maxSize);size=max(size,s.minSize);size=min(size,s.maxSize);s.size=size;$R.css(edge,size+cDims[edge]);$P.css(c[pane].sizeType,max(1,cssSize(pane,size)));if(!s.isSliding)sizeMidPanes(dir=="horz"?"all":"center");sizeHandles();sizeContent(pane);execUserCallback(pane,o.onresize_end||o.onresize);};var sizeMidPanes=function(panes,overrideDims,onInit){if(!panes||panes=="all")panes="east,west,center";var d=getPaneDims();if(overrideDims)$.extend(d,overrideDims);$.each(panes.split(","),function(){if(!$Ps[this])return;var
64
+ pane=str(this),o=options[pane],s=state[pane],$P=$Ps[pane],$R=$Rs[pane],hasRoom=true,CSS={};if(pane=="center"){d=getPaneDims();CSS=$.extend({},d);CSS.width=max(1,cssW(pane,CSS.width));CSS.height=max(1,cssH(pane,CSS.height));hasRoom=(CSS.width>1&&CSS.height>1);if($.browser.msie&&(!$.boxModel||$.browser.version<7)){if($Ps.north)$Ps.north.css({width:cssW($Ps.north,cDims.innerWidth)});if($Ps.south)$Ps.south.css({width:cssW($Ps.south,cDims.innerWidth)});}}else{CSS.top=d.top;CSS.bottom=d.bottom;CSS.height=max(1,cssH(pane,d.height));hasRoom=(CSS.height>1);}if(hasRoom){$P.css(CSS);if(s.noRoom){s.noRoom=false;if(s.isHidden)return;else show(pane,!s.isClosed);}if(!onInit){sizeContent(pane);execUserCallback(pane,o.onresize_end||o.onresize);}}else if(!s.noRoom){s.noRoom=true;if(s.isHidden)return;if(onInit){$P.hide();if($R)$R.hide();}else hide(pane);}});};var sizeContent=function(panes){if(!panes||panes=="all")panes=c.allPanes;$.each(panes.split(","),function(){if(!$Cs[this])return;var
65
+ pane=str(this),ignore=options[pane].contentIgnoreSelector,$P=$Ps[pane],$C=$Cs[pane],e_C=$C[0],height=cssH($P);;$P.children().each(function(){if(this==e_C)return;var $E=$(this);if(!ignore||!$E.is(ignore))height-=$E.outerHeight();});if(height>0)height=cssH($C,height);if(height<1)$C.hide();else
66
+ $C.css({height:height}).show();});};var sizeHandles=function(panes,onInit){if(!panes||panes=="all")panes=c.borderPanes;$.each(panes.split(","),function(){var
67
+ pane=str(this),o=options[pane],s=state[pane],$P=$Ps[pane],$R=$Rs[pane],$T=$Ts[pane];if(!$P||!$R||(!o.resizable&&!o.closable))return;var
68
+ dir=c[pane].dir,_state=(s.isClosed?"_closed":"_open"),spacing=o["spacing"+_state],togAlign=o["togglerAlign"+_state],togLen=o["togglerLength"+_state],paneLen,offset,CSS={};if(spacing==0){$R.hide();return;}else if(!s.noRoom&&!s.isHidden)$R.show();if(dir=="horz"){paneLen=$P.outerWidth();$R.css({width:max(1,cssW($R,paneLen)),height:max(1,cssH($R,spacing)),left:cssNum($P,"left")});}else{paneLen=$P.outerHeight();$R.css({height:max(1,cssH($R,paneLen)),width:max(1,cssW($R,spacing)),top:cDims.top+getPaneSize("north",true)});}if($T){if(togLen==0||(s.isSliding&&o.hideTogglerOnSlide)){$T.hide();return;}else
69
+ $T.show();if(!(togLen>0)||togLen=="100%"||togLen>paneLen){togLen=paneLen;offset=0;}else{if(typeof togAlign=="string"){switch(togAlign){case"top":case"left":offset=0;break;case"bottom":case"right":offset=paneLen-togLen;break;case"middle":case"center":default:offset=Math.floor((paneLen-togLen)/2);}}else{var x=parseInt(togAlign);if(togAlign>=0)offset=x;else offset=paneLen-togLen+x;}}var
70
+ $TC_o=(o.togglerContent_open?$T.children(".content-open"):false),$TC_c=(o.togglerContent_closed?$T.children(".content-closed"):false),$TC=(s.isClosed?$TC_c:$TC_o);if($TC_o)$TC_o.css("display",s.isClosed?"none":"block");if($TC_c)$TC_c.css("display",s.isClosed?"block":"none");if(dir=="horz"){var width=cssW($T,togLen);$T.css({width:max(0,width),height:max(1,cssH($T,spacing)),left:offset});if($TC)$TC.css("marginLeft",Math.floor((width-$TC.outerWidth())/2));}else{var height=cssH($T,togLen);$T.css({height:max(0,height),width:max(1,cssW($T,spacing)),top:offset});if($TC)$TC.css("marginTop",Math.floor((height-$TC.outerHeight())/2));}}if(onInit&&o.initHidden){$R.hide();if($T)$T.hide();}});};var resizeAll=function(){var
71
+ oldW=cDims.innerWidth,oldH=cDims.innerHeight;cDims=state.container=getElemDims($Container);var
72
+ checkH=(cDims.innerHeight<oldH),checkW=(cDims.innerWidth<oldW),s,dir;if(checkH||checkW)$.each(["south","north","east","west"],function(i,pane){s=state[pane];dir=c[pane].dir;if(!s.isClosed&&((checkH&&dir=="horz")||(checkW&&dir=="vert"))){setPaneMinMaxSizes(pane);if(s.size>s.maxSize)sizePane(pane,s.maxSize);}});sizeMidPanes("all");sizeHandles("all");};function keyDown(evt){if(!evt)return true;var code=evt.keyCode;if(code<33)return true;var
73
+ PANE={38:"north",40:"south",37:"west",39:"east"},isCursorKey=(code>=37&&code<=40),ALT=evt.altKey,SHIFT=evt.shiftKey,CTRL=evt.ctrlKey,pane=false,s,o,k,m,el;if(!CTRL&&!SHIFT)return true;else if(isCursorKey&&options[PANE[code]].enableCursorHotkey)pane=PANE[code];else
74
+ $.each(c.borderPanes.split(","),function(i,p){o=options[p];k=o.customHotkey;m=o.customHotkeyModifier;if((SHIFT&&m=="SHIFT")||(CTRL&&m=="CTRL")||(CTRL&&SHIFT)){if(k&&code==(isNaN(k)||k<=9?k.toUpperCase().charCodeAt(0):k)){pane=p;return false;}}});if(!pane)return true;o=options[pane];s=state[pane];if(!o.enableCursorHotkey||s.isHidden||!$Ps[pane])return true;el=evt.target||evt.srcElement;if(el&&SHIFT&&isCursorKey&&(el.tagName=="TEXTAREA"||(el.tagName=="INPUT"&&(code==37||code==39))))return true;toggle(pane);evt.stopPropagation();evt.returnValue=false;return false;};function allowOverflow(elem){if(this&&this.tagName)elem=this;var $P;if(typeof elem=="string")$P=$Ps[elem];else{if($(elem).attr("pane"))$P=$(elem);else $P=$(elem).parents("div[pane]:first");}if(!$P.length)return;var
75
+ pane=$P.attr("pane"),s=state[pane];if(s.cssSaved)resetOverflow(pane);if(s.isSliding||s.isResizing||s.isClosed){s.cssSaved=false;return;}var
76
+ newCSS={zIndex:(c.zIndex.pane_normal+1)},curCSS={},of=$P.css("overflow"),ofX=$P.css("overflowX"),ofY=$P.css("overflowY");if(of!="visible"){curCSS.overflow=of;newCSS.overflow="visible";}if(ofX&&ofX!="visible"&&ofX!="auto"){curCSS.overflowX=ofX;newCSS.overflowX="visible";}if(ofY&&ofY!="visible"&&ofY!="auto"){curCSS.overflowY=ofX;newCSS.overflowY="visible";}s.cssSaved=curCSS;$P.css(newCSS);$.each(c.allPanes.split(","),function(i,p){if(p!=pane)resetOverflow(p);});};function resetOverflow(elem){if(this&&this.tagName)elem=this;var $P;if(typeof elem=="string")$P=$Ps[elem];else{if($(elem).hasClass("ui-layout-pane"))$P=$(elem);else $P=$(elem).parents("div[pane]:first");}if(!$P.length)return;var
77
+ pane=$P.attr("pane"),s=state[pane],CSS=s.cssSaved||{};if(!s.isSliding&&!s.isResizing)$P.css("zIndex",c.zIndex.pane_normal);$P.css(CSS);s.cssSaved=false;};function getBtn(selector,pane,action){var
78
+ $E=$(selector),err="Error Adding Button \n\nInvalid ";if(!$E.length)alert(err+"selector: "+selector);else if(c.borderPanes.indexOf(pane)==-1)alert(err+"pane: "+pane);else{var btn=options[pane].buttonClass+"-"+action;$E.addClass(btn+" "+btn+"-"+pane);return $E;}return false;};function addToggleBtn(selector,pane){var $E=getBtn(selector,pane,"toggle");if($E)$E.attr("title",state[pane].isClosed?"Open":"Close").click(function(evt){toggle(pane);evt.stopPropagation();});};function addOpenBtn(selector,pane){var $E=getBtn(selector,pane,"open");if($E)$E.attr("title","Open").click(function(evt){open(pane);evt.stopPropagation();});};function addCloseBtn(selector,pane){var $E=getBtn(selector,pane,"close");if($E)$E.attr("title","Close").click(function(evt){close(pane);evt.stopPropagation();});};function addPinBtn(selector,pane){var $E=getBtn(selector,pane,"pin");if($E){var s=state[pane];$E.click(function(evt){setPinState($(this),pane,(s.isSliding||s.isClosed));if(s.isSliding||s.isClosed)open(pane);else close(pane);evt.stopPropagation();});setPinState($E,pane,(!s.isClosed&&!s.isSliding));c[pane].pins.push(selector);}};function syncPinBtns(pane,doPin){$.each(c[pane].pins,function(i,selector){setPinState($(selector),pane,doPin);});};function setPinState($Pin,pane,doPin){var updown=$Pin.attr("pin");if(updown&&doPin==(updown=="down"))return;var
79
+ root=options[pane].buttonClass,class1=root+"-pin",class2=class1+"-"+pane,UP1=class1+"-up",UP2=class2+"-up",DN1=class1+"-down",DN2=class2+"-down";$Pin.attr("pin",doPin?"down":"up").attr("title",doPin?"Un-Pin":"Pin").removeClass(doPin?UP1:DN1).removeClass(doPin?UP2:DN2).addClass(doPin?DN1:UP1).addClass(doPin?DN2:UP2);};var
80
+ $Container=$(this).css({overflow:"hidden"}),$Ps={},$Cs={},$Rs={},$Ts={},c=config,cDims=state.container;create();return{options:options,state:state,panes:$Ps,toggle:toggle,open:open,close:close,hide:hide,show:show,resizeContent:sizeContent,sizePane:sizePane,resizeAll:resizeAll,addToggleBtn:addToggleBtn,addOpenBtn:addOpenBtn,addCloseBtn:addCloseBtn,addPinBtn:addPinBtn,allowOverflow:allowOverflow,resetOverflow:resetOverflow,cssWidth:cssW,cssHeight:cssH};}})(jQuery);
@@ -0,0 +1,93 @@
1
+ .jqueryslidemenu{
2
+ font: bold 12px Verdana;
3
+ /*background: #666;*/
4
+ height: 30px;
5
+ }
6
+
7
+ .jqueryslidemenu ul{
8
+ margin: 0;
9
+ padding-top: 5px;
10
+ list-style-type: none;
11
+ z-index: 1
12
+ }
13
+
14
+ /*Top level list items*/
15
+ .jqueryslidemenu ul li{
16
+ position: relative;
17
+ top: -5px;
18
+ display: inline;
19
+ float: left;
20
+ }
21
+
22
+ /*Top level menu link items style*/
23
+ .jqueryslidemenu ul li a{
24
+ display: block;
25
+ background: #666; /*background of tabs (default state)*/
26
+ color: white;
27
+ padding: 8px 2px 0 2px;
28
+ border-right: 1px solid #778;
29
+ color: #2d2b2b;
30
+ text-decoration: none;
31
+
32
+ }
33
+
34
+ * html .jqueryslidemenu ul li a{ /*IE6 hack to get sub menu links to behave correctly*/
35
+ display: inline-block;
36
+ }
37
+
38
+ .jqueryslidemenu ul li a:link, .jqueryslidemenu ul li a:visited{
39
+ }
40
+
41
+ .jqueryslidemenu ul li a:hover{
42
+ background: #666;
43
+ color: white;
44
+ }
45
+
46
+ /*1st sub level menu*/
47
+ .jqueryslidemenu ul li ul{
48
+ position: absolute;
49
+ left: 0;
50
+ display: block;
51
+ visibility: hidden;
52
+ }
53
+
54
+ /*Sub level menu list items (undo style from Top level List Items)*/
55
+ .jqueryslidemenu ul li ul li{
56
+ display: list-item;
57
+ float: none;
58
+ padding: 2px 2px 0 2px;
59
+ }
60
+
61
+ /*All subsequent sub menu levels vertical offset after 1st level sub menu */
62
+ .jqueryslidemenu ul li ul li ul{
63
+ top: 0;
64
+ }
65
+
66
+ /* Sub level menu links style */
67
+ .jqueryslidemenu ul li ul li a{
68
+ font: normal 13px Verdana;
69
+ width: 160px; /*width of sub menus*/
70
+ /* padding: 5px; */
71
+ margin: 0;
72
+ border-top-width: 0;
73
+ border-bottom: 1px solid gray;
74
+ }
75
+
76
+ .jqueryslidemenuz ul li ul li a:hover{ /*sub menus hover style*/
77
+ background: #666;
78
+ color: black;
79
+ }
80
+
81
+ /* ######### CSS classes applied to down and right arrow images ######### */
82
+
83
+ .downarrowclass{
84
+ position: absolute;
85
+ top: 12px;
86
+ right: 7px;
87
+ }
88
+
89
+ .rightarrowclass{
90
+ position: absolute;
91
+ top: 6px;
92
+ right: 5px;
93
+ }
@@ -0,0 +1,48 @@
1
+ /*********************
2
+ //* jQuery Multi Level CSS Menu #2- By Dynamic Drive: http://www.dynamicdrive.com/
3
+ //* Last update: Nov 7th, 08': Limit # of queued animations to minmize animation stuttering
4
+ //* Menu avaiable at DD CSS Library: http://www.dynamicdrive.com/style/
5
+ *********************/
6
+
7
+ //Update: April 12th, 10: Fixed compat issue with jquery 1.4x
8
+
9
+ //Specify full URL to down and right arrow images (23 is padding-right to add to top level LIs with drop downs):
10
+
11
+ (function($){
12
+ $.fn.buildmenu = function() {
13
+ var arrowimages = {down:['downarrowclass', '/images/down.gif', 23],
14
+ right:['rightarrowclass', '/images/right.gif']}
15
+ var jqueryslidemenu = { animateduration: {over: 200, out: 100} }
16
+ var $mainmenu=$("#"+$(this).attr('id')+">ul")
17
+ var $headers=$mainmenu.find("ul").parent()
18
+ $headers.each(function(i){
19
+ var $curobj=$(this)
20
+ var $subul=$(this).find('ul:eq(0)')
21
+ this._dimensions= { w:this.offsetWidth, h:this.offsetHeight,
22
+ subulw:$subul.outerWidth(), subulh:$subul.outerHeight()}
23
+ this.istopheader=$curobj.parents("ul").length==1? true : false
24
+ $subul.css({top:this.istopheader? this._dimensions.h+"px" : 0})
25
+ $curobj.children("a:eq(0)").css(this.istopheader? {paddingRight: arrowimages.down[2]} : {}).append(
26
+ '<img src="'+ (this.istopheader? arrowimages.down[1] : arrowimages.right[1])
27
+ +'" class="' + (this.istopheader? arrowimages.down[0] : arrowimages.right[0])
28
+ + '" style="border:0;" />')
29
+ $curobj.hover( function(e){
30
+ var $targetul=$(this).children("ul:eq(0)")
31
+ this._offsets={left:$(this).offset().left, top:$(this).offset().top}
32
+ var menuleft=this.istopheader? 0 : this._dimensions.w
33
+ menuleft=(this._offsets.left+menuleft+this._dimensions.subulw>$(window).width())? (this.istopheader? -this._dimensions.subulw+this._dimensions.w : -this._dimensions.w) : menuleft
34
+ menuleft += -40
35
+ if ($targetul.queue().length<=1)
36
+ $targetul.css({top: '25px',left:menuleft+"px", width:this._dimensions.subulw+'px'}).slideDown(jqueryslidemenu.animateduration.over)
37
+ },
38
+ function(e){
39
+ var $targetul=$(this).children("ul:eq(0)")
40
+ $targetul.slideUp(jqueryslidemenu.animateduration.out)
41
+ }
42
+ );
43
+ $curobj.click(function(){ $(this).children("ul:eq(0)").hide() });
44
+ })
45
+ $mainmenu.find("ul").css({display:'none', visibility:'visible'})
46
+ }
47
+ })
48
+ (jQuery);
@@ -0,0 +1,477 @@
1
+ /*
2
+ * jQuery UI Accordion 1.7.1
3
+ *
4
+ * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
5
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
6
+ * and GPL (GPL-LICENSE.txt) licenses.
7
+ *
8
+ * http://docs.jquery.com/UI/Accordion
9
+ *
10
+ * Depends:
11
+ * ui.core.js
12
+ */
13
+ (function($) {
14
+
15
+ $.widget("ui.accordion", {
16
+
17
+ _init: function() {
18
+
19
+ var o = this.options, self = this;
20
+ this.running = 0;
21
+
22
+ // if the user set the alwaysOpen option on init
23
+ // then we need to set the collapsible option
24
+ // if they set both on init, collapsible will take priority
25
+ if (o.collapsible == $.ui.accordion.defaults.collapsible &&
26
+ o.alwaysOpen != $.ui.accordion.defaults.alwaysOpen) {
27
+ o.collapsible = !o.alwaysOpen;
28
+ }
29
+
30
+ if ( o.navigation ) {
31
+ var current = this.element.find("a").filter(o.navigationFilter);
32
+ if ( current.length ) {
33
+ if ( current.filter(o.header).length ) {
34
+ this.active = current;
35
+ } else {
36
+ this.active = current.parent().parent().prev();
37
+ current.addClass("ui-accordion-content-active");
38
+ }
39
+ }
40
+ }
41
+
42
+ this.element.addClass("ui-accordion ui-widget ui-helper-reset");
43
+
44
+ // in lack of child-selectors in CSS we need to mark top-LIs in a UL-accordion for some IE-fix
45
+ if (this.element[0].nodeName == "UL") {
46
+ this.element.children("li").addClass("ui-accordion-li-fix");
47
+ }
48
+
49
+ this.headers = this.element.find(o.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all")
50
+ .bind("mouseenter.accordion", function(){ $(this).addClass('ui-state-hover'); })
51
+ .bind("mouseleave.accordion", function(){ $(this).removeClass('ui-state-hover'); })
52
+ .bind("focus.accordion", function(){ $(this).addClass('ui-state-focus'); })
53
+ .bind("blur.accordion", function(){ $(this).removeClass('ui-state-focus'); });
54
+
55
+ this.headers
56
+ .next()
57
+ .addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");
58
+
59
+ this.active = this._findActive(this.active || o.active).toggleClass("ui-state-default").toggleClass("ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");
60
+ this.active.next().addClass('ui-accordion-content-active');
61
+
62
+ //Append icon elements
63
+ $("<span/>").addClass("ui-icon " + o.icons.header).prependTo(this.headers);
64
+ this.active.find(".ui-icon").toggleClass(o.icons.header).toggleClass(o.icons.headerSelected);
65
+
66
+ // IE7-/Win - Extra vertical space in lists fixed
67
+ if ($.browser.msie) {
68
+ this.element.find('a').css('zoom', '1');
69
+ }
70
+
71
+ this.resize();
72
+
73
+ //ARIA
74
+ this.element.attr('role','tablist');
75
+
76
+ this.headers
77
+ .attr('role','tab')
78
+ .bind('keydown', function(event) { return self._keydown(event); })
79
+ .next()
80
+ .attr('role','tabpanel');
81
+
82
+ this.headers
83
+ .not(this.active || "")
84
+ .attr('aria-expanded','false')
85
+ .attr("tabIndex", "-1")
86
+ .next()
87
+ .hide();
88
+
89
+ // make sure at least one header is in the tab order
90
+ if (!this.active.length) {
91
+ this.headers.eq(0).attr('tabIndex','0');
92
+ } else {
93
+ this.active
94
+ .attr('aria-expanded','true')
95
+ .attr('tabIndex', '0');
96
+ }
97
+
98
+ // only need links in taborder for Safari
99
+ if (!$.browser.safari)
100
+ this.headers.find('a').attr('tabIndex','-1');
101
+
102
+ if (o.event) {
103
+ this.headers.bind((o.event) + ".accordion", function(event) { return self._clickHandler.call(self, event, this); });
104
+ }
105
+
106
+ },
107
+
108
+ destroy: function() {
109
+ var o = this.options;
110
+
111
+ this.element
112
+ .removeClass("ui-accordion ui-widget ui-helper-reset")
113
+ .removeAttr("role")
114
+ .unbind('.accordion')
115
+ .removeData('accordion');
116
+
117
+ this.headers
118
+ .unbind(".accordion")
119
+ .removeClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-corner-top")
120
+ .removeAttr("role").removeAttr("aria-expanded").removeAttr("tabindex");
121
+
122
+ this.headers.find("a").removeAttr("tabindex");
123
+ this.headers.children(".ui-icon").remove();
124
+ var contents = this.headers.next().css("display", "").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active");
125
+ if (o.autoHeight || o.fillHeight) {
126
+ contents.css("height", "");
127
+ }
128
+ },
129
+
130
+ _setData: function(key, value) {
131
+ if(key == 'alwaysOpen') { key = 'collapsible'; value = !value; }
132
+ $.widget.prototype._setData.apply(this, arguments);
133
+ },
134
+
135
+ _keydown: function(event) {
136
+
137
+ var o = this.options, keyCode = $.ui.keyCode;
138
+
139
+ if (o.disabled || event.altKey || event.ctrlKey)
140
+ return;
141
+
142
+ var length = this.headers.length;
143
+ var currentIndex = this.headers.index(event.target);
144
+ var toFocus = false;
145
+
146
+ switch(event.keyCode) {
147
+ case keyCode.RIGHT:
148
+ case keyCode.DOWN:
149
+ toFocus = this.headers[(currentIndex + 1) % length];
150
+ break;
151
+ case keyCode.LEFT:
152
+ case keyCode.UP:
153
+ toFocus = this.headers[(currentIndex - 1 + length) % length];
154
+ break;
155
+ case keyCode.SPACE:
156
+ case keyCode.ENTER:
157
+ return this._clickHandler({ target: event.target }, event.target);
158
+ }
159
+
160
+ if (toFocus) {
161
+ $(event.target).attr('tabIndex','-1');
162
+ $(toFocus).attr('tabIndex','0');
163
+ toFocus.focus();
164
+ return false;
165
+ }
166
+
167
+ return true;
168
+
169
+ },
170
+
171
+ resize: function() {
172
+
173
+ var o = this.options, maxHeight;
174
+
175
+ if (o.fillSpace) {
176
+
177
+ if($.browser.msie) { var defOverflow = this.element.parent().css('overflow'); this.element.parent().css('overflow', 'hidden'); }
178
+ maxHeight = this.element.parent().height();
179
+ if($.browser.msie) { this.element.parent().css('overflow', defOverflow); }
180
+
181
+ this.headers.each(function() {
182
+ maxHeight -= $(this).outerHeight();
183
+ });
184
+
185
+ var maxPadding = 0;
186
+ this.headers.next().each(function() {
187
+ maxPadding = Math.max(maxPadding, $(this).innerHeight() - $(this).height());
188
+ }).height(Math.max(0, maxHeight - maxPadding))
189
+ .css('overflow', 'auto');
190
+
191
+ } else if ( o.autoHeight ) {
192
+ maxHeight = 0;
193
+ this.headers.next().each(function() {
194
+ maxHeight = Math.max(maxHeight, $(this).outerHeight());
195
+ }).height(maxHeight);
196
+ }
197
+
198
+ },
199
+
200
+ activate: function(index) {
201
+ // call clickHandler with custom event
202
+ var active = this._findActive(index)[0];
203
+ this._clickHandler({ target: active }, active);
204
+ },
205
+
206
+ _findActive: function(selector) {
207
+ return selector
208
+ ? typeof selector == "number"
209
+ ? this.headers.filter(":eq(" + selector + ")")
210
+ : this.headers.not(this.headers.not(selector))
211
+ : selector === false
212
+ ? $([])
213
+ : this.headers.filter(":eq(0)");
214
+ },
215
+
216
+ _clickHandler: function(event, target) {
217
+
218
+ var o = this.options;
219
+ if (o.disabled) return false;
220
+
221
+ // called only when using activate(false) to close all parts programmatically
222
+ if (!event.target && o.collapsible) {
223
+ this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all")
224
+ .find(".ui-icon").removeClass(o.icons.headerSelected).addClass(o.icons.header);
225
+ this.active.next().addClass('ui-accordion-content-active');
226
+ var toHide = this.active.next(),
227
+ data = {
228
+ options: o,
229
+ newHeader: $([]),
230
+ oldHeader: o.active,
231
+ newContent: $([]),
232
+ oldContent: toHide
233
+ },
234
+ toShow = (this.active = $([]));
235
+ this._toggle(toShow, toHide, data);
236
+ return false;
237
+ }
238
+
239
+ // get the click target
240
+ var clicked = $(event.currentTarget || target);
241
+ var clickedIsActive = clicked[0] == this.active[0];
242
+
243
+ // if animations are still active, or the active header is the target, ignore click
244
+ if (this.running || (!o.collapsible && clickedIsActive)) {
245
+ return false;
246
+ }
247
+
248
+ // switch classes
249
+ this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all")
250
+ .find(".ui-icon").removeClass(o.icons.headerSelected).addClass(o.icons.header);
251
+ this.active.next().addClass('ui-accordion-content-active');
252
+ if (!clickedIsActive) {
253
+ clicked.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top")
254
+ .find(".ui-icon").removeClass(o.icons.header).addClass(o.icons.headerSelected);
255
+ clicked.next().addClass('ui-accordion-content-active');
256
+ }
257
+
258
+ // find elements to show and hide
259
+ var toShow = clicked.next(),
260
+ toHide = this.active.next(),
261
+ data = {
262
+ options: o,
263
+ newHeader: clickedIsActive && o.collapsible ? $([]) : clicked,
264
+ oldHeader: this.active,
265
+ newContent: clickedIsActive && o.collapsible ? $([]) : toShow.find('> *'),
266
+ oldContent: toHide.find('> *')
267
+ },
268
+ down = this.headers.index( this.active[0] ) > this.headers.index( clicked[0] );
269
+
270
+ this.active = clickedIsActive ? $([]) : clicked;
271
+ this._toggle(toShow, toHide, data, clickedIsActive, down);
272
+
273
+ return false;
274
+
275
+ },
276
+
277
+ _toggle: function(toShow, toHide, data, clickedIsActive, down) {
278
+
279
+ var o = this.options, self = this;
280
+
281
+ this.toShow = toShow;
282
+ this.toHide = toHide;
283
+ this.data = data;
284
+
285
+ var complete = function() { if(!self) return; return self._completed.apply(self, arguments); };
286
+
287
+ // trigger changestart event
288
+ this._trigger("changestart", null, this.data);
289
+
290
+ // count elements to animate
291
+ this.running = toHide.size() === 0 ? toShow.size() : toHide.size();
292
+
293
+ if (o.animated) {
294
+
295
+ var animOptions = {};
296
+
297
+ if ( o.collapsible && clickedIsActive ) {
298
+ animOptions = {
299
+ toShow: $([]),
300
+ toHide: toHide,
301
+ complete: complete,
302
+ down: down,
303
+ autoHeight: o.autoHeight || o.fillSpace
304
+ };
305
+ } else {
306
+ animOptions = {
307
+ toShow: toShow,
308
+ toHide: toHide,
309
+ complete: complete,
310
+ down: down,
311
+ autoHeight: o.autoHeight || o.fillSpace
312
+ };
313
+ }
314
+
315
+ if (!o.proxied) {
316
+ o.proxied = o.animated;
317
+ }
318
+
319
+ if (!o.proxiedDuration) {
320
+ o.proxiedDuration = o.duration;
321
+ }
322
+
323
+ o.animated = $.isFunction(o.proxied) ?
324
+ o.proxied(animOptions) : o.proxied;
325
+
326
+ o.duration = $.isFunction(o.proxiedDuration) ?
327
+ o.proxiedDuration(animOptions) : o.proxiedDuration;
328
+
329
+ var animations = $.ui.accordion.animations,
330
+ duration = o.duration,
331
+ easing = o.animated;
332
+
333
+ if (!animations[easing]) {
334
+ animations[easing] = function(options) {
335
+ this.slide(options, {
336
+ easing: easing,
337
+ duration: duration || 700
338
+ });
339
+ };
340
+ }
341
+
342
+ animations[easing](animOptions);
343
+
344
+ } else {
345
+
346
+ if (o.collapsible && clickedIsActive) {
347
+ toShow.toggle();
348
+ } else {
349
+ toHide.hide();
350
+ toShow.show();
351
+ }
352
+
353
+ complete(true);
354
+
355
+ }
356
+
357
+ toHide.prev().attr('aria-expanded','false').attr("tabIndex", "-1").blur();
358
+ toShow.prev().attr('aria-expanded','true').attr("tabIndex", "0").focus();
359
+
360
+ },
361
+
362
+ _completed: function(cancel) {
363
+
364
+ var o = this.options;
365
+
366
+ this.running = cancel ? 0 : --this.running;
367
+ if (this.running) return;
368
+
369
+ if (o.clearStyle) {
370
+ this.toShow.add(this.toHide).css({
371
+ height: "",
372
+ overflow: ""
373
+ });
374
+ }
375
+
376
+ this._trigger('change', null, this.data);
377
+ }
378
+
379
+ });
380
+
381
+
382
+ $.extend($.ui.accordion, {
383
+ version: "1.7.1",
384
+ defaults: {
385
+ active: null,
386
+ alwaysOpen: true, //deprecated, use collapsible
387
+ animated: 'slide',
388
+ autoHeight: true,
389
+ clearStyle: false,
390
+ collapsible: false,
391
+ event: "click",
392
+ fillSpace: false,
393
+ header: "> li > :first-child,> :not(li):even",
394
+ icons: {
395
+ header: "ui-icon-triangle-1-e",
396
+ headerSelected: "ui-icon-triangle-1-s"
397
+ },
398
+ navigation: false,
399
+ navigationFilter: function() {
400
+ return this.href.toLowerCase() == location.href.toLowerCase();
401
+ }
402
+ },
403
+ animations: {
404
+ slide: function(options, additions) {
405
+ options = $.extend({
406
+ easing: "swing",
407
+ duration: 300
408
+ }, options, additions);
409
+ if ( !options.toHide.size() ) {
410
+ options.toShow.animate({height: "show"}, options);
411
+ return;
412
+ }
413
+ if ( !options.toShow.size() ) {
414
+ options.toHide.animate({height: "hide"}, options);
415
+ return;
416
+ }
417
+ var overflow = options.toShow.css('overflow'),
418
+ percentDone,
419
+ showProps = {},
420
+ hideProps = {},
421
+ fxAttrs = [ "height", "paddingTop", "paddingBottom" ],
422
+ originalWidth;
423
+ // fix width before calculating height of hidden element
424
+ var s = options.toShow;
425
+ originalWidth = s[0].style.width;
426
+ s.width( parseInt(s.parent().width(),10) - parseInt(s.css("paddingLeft"),10) - parseInt(s.css("paddingRight"),10) - (parseInt(s.css("borderLeftWidth"),10) || 0) - (parseInt(s.css("borderRightWidth"),10) || 0) );
427
+
428
+ $.each(fxAttrs, function(i, prop) {
429
+ hideProps[prop] = 'hide';
430
+
431
+ var parts = ('' + $.css(options.toShow[0], prop)).match(/^([\d+-.]+)(.*)$/);
432
+ showProps[prop] = {
433
+ value: parts[1],
434
+ unit: parts[2] || 'px'
435
+ };
436
+ });
437
+ options.toShow.css({ height: 0, overflow: 'hidden' }).show();
438
+ options.toHide.filter(":hidden").each(options.complete).end().filter(":visible").animate(hideProps,{
439
+ step: function(now, settings) {
440
+ // only calculate the percent when animating height
441
+ // IE gets very inconsistent results when animating elements
442
+ // with small values, which is common for padding
443
+ if (settings.prop == 'height') {
444
+ percentDone = (settings.now - settings.start) / (settings.end - settings.start);
445
+ }
446
+
447
+ options.toShow[0].style[settings.prop] =
448
+ (percentDone * showProps[settings.prop].value) + showProps[settings.prop].unit;
449
+ },
450
+ duration: options.duration,
451
+ easing: options.easing,
452
+ complete: function() {
453
+ if ( !options.autoHeight ) {
454
+ options.toShow.css("height", "");
455
+ }
456
+ options.toShow.css("width", originalWidth);
457
+ options.toShow.css({overflow: overflow});
458
+ options.complete();
459
+ }
460
+ });
461
+ },
462
+ bounceslide: function(options) {
463
+ this.slide(options, {
464
+ easing: options.down ? "easeOutBounce" : "swing",
465
+ duration: options.down ? 1000 : 200
466
+ });
467
+ },
468
+ easeslide: function(options) {
469
+ this.slide(options, {
470
+ easing: "easeinout",
471
+ duration: 700
472
+ });
473
+ }
474
+ }
475
+ });
476
+
477
+ })(jQuery);