├── REAME.md ├── images ├── 1.jpg ├── 2.jpg ├── 3.jpg ├── 4.jpg └── 5.jpg ├── 微信截图_20180902105557.png ├── js ├── gallery_init.js ├── move.js ├── text.js ├── time.js ├── makesnake.js ├── roundabout_shapes.js ├── heart.js ├── snowstorm.js ├── roundabout.js └── ga.js ├── README.md ├── css └── style.css ├── index.html └── jquery └── jquery.js /REAME.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zpeng1989/html_js_to_girlfirend_by_oneday/HEAD/REAME.md -------------------------------------------------------------------------------- /images/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zpeng1989/html_js_to_girlfirend_by_oneday/HEAD/images/1.jpg -------------------------------------------------------------------------------- /images/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zpeng1989/html_js_to_girlfirend_by_oneday/HEAD/images/2.jpg -------------------------------------------------------------------------------- /images/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zpeng1989/html_js_to_girlfirend_by_oneday/HEAD/images/3.jpg -------------------------------------------------------------------------------- /images/4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zpeng1989/html_js_to_girlfirend_by_oneday/HEAD/images/4.jpg -------------------------------------------------------------------------------- /images/5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zpeng1989/html_js_to_girlfirend_by_oneday/HEAD/images/5.jpg -------------------------------------------------------------------------------- /微信截图_20180902105557.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zpeng1989/html_js_to_girlfirend_by_oneday/HEAD/微信截图_20180902105557.png -------------------------------------------------------------------------------- /js/gallery_init.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function() { 2 | $('#myRoundabout').roundabout({ 3 | shape: 'figure8', 4 | minOpacity: 1 5 | }); 6 | }); -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # html_js_to_girlfirend_by_oneday 2 | 给女朋友的网页设计 3 | 4 | 在index.html中修改需要的的文字; 5 | 6 | 在js的文件中,修改time.js和move.js与之对应的文字;可以修改文本右下角的文本及鼠标对应的文本; 7 | 8 | 在images中修改相对应的图片,格式jpg,五张设计; 9 | 10 | 如下图: 11 | ![Image text](微信截图_20180902105557.png) 12 | -------------------------------------------------------------------------------- /js/move.js: -------------------------------------------------------------------------------- 1 | function move(){ 2 | //获取移动的DIV对象 3 | var obj = document.getElementById("container"); 4 | //设置样式定位属性,让div从当前文档流中拖出。 5 | //这样,他属于整个活动窗体。可以层叠。 6 | obj.style.position = "absolute"; 7 | obj.style.opacity = 0; 8 | //动画计数器。 9 | var num = 0; 10 | //获得移动div,在整个活动区域的X坐标 11 | var left = 630; 12 | //获得移动div,在整个活动区域的Y坐标 13 | var top = 220; 14 | //使用定时器移动DIV 15 | var timer = setInterval(function(){ //移动的函数 16 | if(num==105){ //移动105次 17 | clearInterval(timer); 18 | } 19 | //通过left样式属性设置。必须带单位 20 | obj.style.left = left + "px"; 21 | //通过top样式属性设置,必须带单位 22 | obj.style.top = top - num * 2 + "px"; 23 | //计数器加一 24 | obj.style.opacity = num / 140.0; 25 | num++; 26 | },190); 27 | } 28 | -------------------------------------------------------------------------------- /js/text.js: -------------------------------------------------------------------------------- 1 | var charIndex = -1; 2 | var stringLength = 0; 3 | var inputText; 4 | function writeContent(init){ 5 | if(init){ 6 | inputText = document.getElementById('contentToWrite').innerHTML; 7 | } 8 | if(charIndex==-1){ 9 | charIndex = 0; 10 | stringLength = inputText.length; 11 | } 12 | var initString = document.getElementById('myContent').innerHTML; 13 | initString = initString.replace(/' || nextFourChars=='
'){ 18 | theChar = '
'; 19 | charIndex+=3; 20 | } 21 | initString = initString + theChar + "_"; 22 | document.getElementById('myContent').innerHTML = initString; 23 | 24 | charIndex = charIndex/1 +1; 25 | if(charIndex%2==1){ 26 | document.getElementById('blink').style.display='none'; 27 | }else{ 28 | document.getElementById('blink').style.display='inline'; 29 | } 30 | 31 | if(charIndex<=stringLength){ 32 | setTimeout('writeContent(false)',140); 33 | }else{ 34 | blinkSpan(); 35 | } 36 | } 37 | 38 | var currentStyle = 'inline'; 39 | function blinkSpan(){ 40 | if(currentStyle=='inline'){ 41 | currentStyle='none'; 42 | }else{ 43 | currentStyle='inline'; 44 | } 45 | document.getElementById('blink').style.display = currentStyle; 46 | setTimeout('blinkSpan()',100); 47 | } 48 | -------------------------------------------------------------------------------- /js/time.js: -------------------------------------------------------------------------------- 1 | function showTime() { 2 | var currentDate = new Date(); 3 | var startDate = new Date(2014, 01, 01); 4 | var date3 = currentDate-startDate; 5 | var days=Math.floor(date3/(24*3600*1000)); 6 | var leave1=date3%(24*3600*1000); //计算天数后剩余的毫秒数 7 | var hours=Math.floor(leave1/(3600*1000)); 8 | var leave2=leave1%(3600*1000); //计算小时数后剩余的毫秒数 9 | var minutes=Math.floor(leave2/(60*1000)); 10 | var leave3=leave2%(60*1000); //计算分钟数后剩余的毫秒数 11 | var seconds=Math.round(leave3/1000); 12 | if (minutes < 10) 13 | minutes = "0" + minutes; 14 | if (seconds < 10) 15 | seconds = "0" + seconds; 16 | var currentTimeString = "Dear Anyone:
" 17 | + "I have been in love with you for:
" 18 | + "     " 19 | + "" + days +" day " 20 | + "" + hours+" hour " 21 | +"" + minutes+" min " 22 | +"" +seconds+" sec
" 23 | + "                    只愿执子之手,与子偕老.
" 24 | + "                                   " 25 | + "----somebody 2018-09-01"; 26 | document.getElementById("show").innerHTML=currentTimeString; //改这地方 27 | window.setTimeout("showTime()", 1000); 28 | } 29 | -------------------------------------------------------------------------------- /js/makesnake.js: -------------------------------------------------------------------------------- 1 | var x,y; //鼠标当前在页面上的位置 2 | var step=10; //字符显示间距,为了好看,step=0则字符显示没有间距 3 | var message="I miss you"; //跟随鼠标要显示的字符串 4 | message=message.split(""); //将字符串分割为字符数组 5 | 6 | var xpos=new Array() //存储每个字符的x位置的数组 7 | for (i=0;i"); 18 | document.write(message[i]); 19 | document.write(""); 20 | } 21 | 22 | if (document.layers){ 23 | document.captureEvents(Event.MOUSEMOVE); 24 | } 25 | 26 | function handlerMM(e){ //从事件得到鼠标光标在页面上的位置 27 | e=e||window.event; 28 | x = (document.layers) ? e.pageX : document.body.scrollLeft+e.clientX-220; 29 | y = (document.layers) ? e.pageY : document.body.scrollTop+e.clientY-35; 30 | } 31 | 32 | function makesnake() { //重定位每个字符的位置 33 | if (document.all) { //如果是IE 34 | for (i=message.length-1; i>=1; i--) { 35 | xpos[i]=xpos[i-1]+step; //从尾向头确定字符的位置,每个字符为前一个字符“历史”水平坐标+step间隔, 36 | //这样随着光标移动事件,就能得到一个动态的波浪状的显示效果 37 | ypos[i]=ypos[i-1]; //垂直坐标为前一字符的历史“垂直”坐标,后一个字符跟踪前一个字符运动 38 | } 39 | xpos[0]=x+step //第一个字符的坐标位置紧跟鼠标光标 40 | ypos[0]=y 41 | //上面的算法将保证,如果鼠标光标移动到新位置,则连续调用makenake将会使这些字符一个接一个的移动的新位置 42 | // 该算法显示字符串就有点象人类的游行队伍一样, 43 | 44 | for (i=0; i<=message.length-1; i++) { 45 | var thisspan = eval("span"+(i)+".style"); //妙用eval根据字符串得到该字符串表示的对象 46 | thisspan.posLeft=xpos[i]; 47 | thisspan.posTop=ypos[i]; 48 | } 49 | } 50 | else{ 51 | for (i=message.length-1; i>=1; i--) { 52 | xpos[i]=xpos[i-1]+step; 53 | ypos[i]=ypos[i-1]; 54 | } 55 | xpos[0]=x+step; 56 | ypos[0]=y; 57 | for (i=0; i<=message.length-1; i++) { 58 | var thisspan = document.getElementById("span"+i).style; 59 | thisspan.left=xpos[i]; 60 | thisspan.top=ypos[i]; 61 | } 62 | } 63 | var timer=setTimeout("makesnake()",10) //设置10毫秒的定时器来连续调用makesnake(),时刻刷新显示字符串的位置。 64 | } 65 | document.onmousemove = handlerMM; -------------------------------------------------------------------------------- /css/style.css: -------------------------------------------------------------------------------- 1 | 2 | /* Global properties ======================================================== */ 3 | body { 4 | background:#6f599c; 5 | background-image:url(../images/bg.jpg) ; 6 | text-align:left; 7 | } 8 | 9 | /* Global Structure ============================================================= */ 10 | /* Header */ 11 | #header{ 12 | position:absolute; 13 | left:0px; 14 | top:5px; 15 | overflow:hidden; 16 | height:70px; 17 | font-family:Microsoft YaHei; 18 | font-weight: 900; 19 | font-size:40px; 20 | padding-bottom:5px; 21 | width: 100%; 22 | filter:alpha(opacity=70); 23 | -moz-opacity:0.7; 24 | opacity:0.7; 25 | } 26 | 27 | #myContent{ 28 | position:absolute; 29 | left:80px; 30 | top:130px; 31 | overflow:hidden; 32 | text-shadow: 2px 3px 3px #000; 33 | font-family:Microsoft YaHei; 34 | font-style:italic; 35 | font-weight:500; 36 | font-size:20px; 37 | color:#CCCCCC; 38 | } 39 | 40 | #container{ 41 | overflow:hidden; 42 | position:absolute; 43 | left:630px; 44 | top:220px; 45 | width:650px; 46 | opacity:0; 47 | filter:alpha(opacity=0.7) 48 | } 49 | 50 | #title{ 51 | position:absolute; 52 | left:28%; 53 | top:0px; 54 | padding:10px; 55 | overflow:hidden; 56 | text-shadow: 2px 3px 3px #222; 57 | color:#CCCCCC; 58 | } 59 | 60 | #footer { 61 | position:absolute; 62 | left:32%; 63 | top:91%; 64 | overflow:hidden; 65 | text-shadow: 2px 3px 3px #222; 66 | font-family:Microsoft YaHei; 67 | font-style:italic; 68 | font-size:20px; 69 | color:#CCCCCC; 70 | } 71 | 72 | 73 | 74 | #time{ 75 | position:absolute; 76 | left:750px; 77 | top:400px; 78 | overflow:hidden; 79 | } 80 | 81 | #show{ 82 | color:#CCCCCC; 83 | text-shadow: 2px 3px 3px #222; 84 | font-family:Microsoft YaHei; 85 | font-style:italic; 86 | font-size:20px; 87 | } 88 | 89 | 90 | #bg{ 91 | overflow:hidden; 92 | } 93 | 94 | .roundabout-holder { 95 | width:600px; 96 | height:400px; 97 | margin:0 auto; 98 | } 99 | .roundabout-moveable-item { 100 | width: 350px; 101 | height: 222px; 102 | cursor: pointer; 103 | border:3px solid #ccc; 104 | border:3px solid rgba(0, 0, 0, 0.08); 105 | border-radius:4px; 106 | -moz-border-radius:4px; 107 | -webkit-border-radius:4px; 108 | } 109 | .roundabout-moveable-item img{ 110 | width:100%; 111 | } 112 | .roundabout-in-focus { 113 | border:3px solid rgba(0, 0, 0, 0.2); 114 | } 115 | 116 | ol, ul { 117 | list-style: none; 118 | } 119 | 120 | img { 121 | vertical-align:top; 122 | } 123 | 124 | .spanstyle{ 125 | color:#CCFF99; 126 | font-family:courier; 127 | text-shadow: 2px 2px 1px #222; 128 | font-style:italic; 129 | font-weight:600; 130 | font-size:20px; 131 | position:absolute; /* 绝对定位 */ 132 | top:-50px; 133 | overflow:hidden; 134 | } 135 | 136 | 137 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 34 | 35 | 36 | 37 | 41 | 42 | 43 |
44 | 65 | 66 | 69 | 70 | 71 | 72 | 73 | 74 |
75 |
    76 |
  • 77 |
  • 78 |
  • 79 |
  • 80 |
  • 81 |
82 |
83 | 84 | 87 | 88 |
89 | 90 |
91 | 92 | 93 | 94 |
95 | 96 | 99 |
100 | 101 | 102 | 103 | -------------------------------------------------------------------------------- /js/roundabout_shapes.js: -------------------------------------------------------------------------------- 1 | /** 2 | * jQuery Roundabout Shapes v1.1 3 | * http://fredhq.com/projects/roundabout-shapes/ 4 | * 5 | * Provides additional paths along which items can move for the 6 | * jQuery Roundabout plugin (v1.0+). 7 | * 8 | * Terms of Use // jQuery Roundabout Shapes 9 | * 10 | * Open source under the BSD license 11 | * 12 | * Copyright (c) 2009, Fred LeBlanc 13 | * All rights reserved. 14 | * 15 | * Redistribution and use in source and binary forms, with or without 16 | * modification, are permitted provided that the following conditions are met: 17 | * 18 | * - Redistributions of source code must retain the above copyright 19 | * notice, this list of conditions and the following disclaimer. 20 | * - Redistributions in binary form must reproduce the above 21 | * copyright notice, this list of conditions and the following 22 | * disclaimer in the documentation and/or other materials provided 23 | * with the distribution. 24 | * - Neither the name of the author nor the names of its contributors 25 | * may be used to endorse or promote products derived from this 26 | * software without specific prior written permission. 27 | * 28 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 29 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 30 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 31 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 32 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 33 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 34 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 35 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 36 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 37 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 38 | * POSSIBILITY OF SUCH DAMAGE. 39 | */ 40 | jQuery.extend(jQuery.roundabout_shape, 41 | { 42 | theJuggler: function(r, a, t) { 43 | return { 44 | x: Math.sin(r + a), 45 | y: Math.tan(Math.exp(Math.log(r)) + a) / (t - 1), 46 | z: (Math.cos(r + a) + 1) / 2, 47 | scale: (Math.sin(r + Math.PI/2 + a) / 2) + 0.5 48 | }; 49 | }, 50 | figure8: function(r, a, t) { 51 | return { 52 | x: Math.sin(r * 2 + a), 53 | y: (Math.sin(r + Math.PI/2 + a) / 8) * t, 54 | z: (Math.cos(r + a) + 1) / 2, 55 | scale: (Math.sin(r + Math.PI/2 + a) / 2) + 0.5 56 | }; 57 | }, 58 | waterWheel: function(r, a, t) { 59 | return { 60 | x: (Math.sin(r + Math.PI/2 + a) / 8) * t, 61 | y: Math.sin(r + a) / (Math.PI/2), 62 | z: (Math.cos(r + a) + 1) / 2, 63 | scale: (Math.sin(r + Math.PI/2 + a) / 2) + 0.5 64 | }; 65 | }, 66 | square: function(r, a, t) { 67 | var sq_x, sq_y, sq_z; 68 | 69 | if (r <= Math.PI/2) { 70 | sq_x = (2/Math.PI) * r; 71 | sq_y = -(2/Math.PI) * r + 1; 72 | sq_z = -(1/Math.PI) * r + 1; 73 | } else if (r > Math.PI/2 && r <= Math.PI) { 74 | sq_x = -(2/Math.PI) * r + 2; 75 | sq_y = -(2/Math.PI) * r + 1; 76 | sq_z = -(1/Math.PI) * r + 1; 77 | } else if (r > Math.PI && r <= (3 * Math.PI) / 2) { 78 | sq_x = -(2/Math.PI) * r + 2; 79 | sq_y = (2/Math.PI) * r - 3; 80 | sq_z = (1/Math.PI) * r - 1; 81 | } else { 82 | sq_x = (2/Math.PI) * r - 4; 83 | sq_y = (2/Math.PI) * r - 3; 84 | sq_z = (1/Math.PI) * r - 1; 85 | } 86 | 87 | return { 88 | x: sq_x, 89 | y: sq_y * t, 90 | z: sq_z, 91 | scale: sq_z 92 | } 93 | }, 94 | conveyorBeltLeft: function(r, a, t) { 95 | return { 96 | x: -Math.cos(r + a), 97 | y: (Math.cos(r + 3*Math.PI/2 + a) / 8) * t, 98 | z: (Math.sin(r + a) + 1) / 2, 99 | scale: (Math.sin(r + Math.PI/2 + a) / 2) + 0.5 100 | }; 101 | }, 102 | conveyorBeltRight: function(r, a, t) { 103 | return { 104 | x: Math.cos(r + a), 105 | y: (Math.cos(r + 3*Math.PI/2 + a) / 8) * t, 106 | z: (Math.sin(r + a) + 1) / 2, 107 | scale: (Math.sin(r + Math.PI/2 + a) / 2) + 0.5 108 | }; 109 | }, 110 | goodbyeCruelWorld: function(r, a, t) { 111 | return { 112 | x: Math.sin(r + a), 113 | y: (Math.tan(r + 3*Math.PI/2 + a) / 8) * (t + 0.5), 114 | z: (Math.sin(r + a) + 1) / 2, 115 | scale: (Math.sin(r + Math.PI/2 + a) / 2) + 0.5 116 | }; 117 | }, 118 | diagonalRingLeft: function(r, a, t) { 119 | return { 120 | x: Math.sin(r + a), 121 | y: -Math.cos(r + Math.tan(Math.cos(a))) / (t + 1.5), 122 | z: (Math.cos(r + a) + 1) / 2, 123 | scale: (Math.sin(r + Math.PI/2 + a) / 2) + 0.5 124 | }; 125 | }, 126 | diagonalRingRight: function(r, a, t) { 127 | return { 128 | x: Math.sin(r + a), 129 | y: Math.cos(r + Math.tan(Math.cos(a))) / (t + 1.5), 130 | z: (Math.cos(r + a) + 1) / 2, 131 | scale: (Math.sin(r + Math.PI/2 + a) / 2) + 0.5 132 | }; 133 | }, 134 | rollerCoaster: function(r, a, t) { 135 | return { 136 | x: Math.sin(r + a), 137 | y: Math.sin((2 + t) * r), 138 | z: (Math.cos(r + a) + 1) / 2, 139 | scale: (Math.sin(r + Math.PI/2 + a) / 2) + 0.5 140 | } 141 | }, 142 | tearDrop: function(r, a, t) { 143 | return { 144 | x: Math.sin(r + a), 145 | y: -Math.sin(r/2 + t) + 0.35, 146 | z: (Math.cos(r + a) + 1) / 2, 147 | scale: (Math.sin(r + Math.PI/2 + a) / 2) + 0.5 148 | } 149 | } 150 | }); -------------------------------------------------------------------------------- /js/heart.js: -------------------------------------------------------------------------------- 1 | (function ($) { 2 | 3 | function Vector(x, y) { 4 | this.x = x; 5 | this.y = y; 6 | }; 7 | Vector.prototype = { 8 | rotate: function (theta) { 9 | var x = this.x; 10 | var y = this.y; 11 | this.x = Math.cos(theta) * x - Math.sin(theta) * y; 12 | this.y = Math.sin(theta) * x + Math.cos(theta) * y; 13 | return this; 14 | }, 15 | mult: function (f) { 16 | this.x *= f; 17 | this.y *= f; 18 | return this; 19 | }, 20 | clone: function () { 21 | return new Vector(this.x, this.y); 22 | }, 23 | length: function () { 24 | return Math.sqrt(this.x * this.x + this.y * this.y); 25 | }, 26 | subtract: function (v) { 27 | this.x -= v.x; 28 | this.y -= v.y; 29 | return this; 30 | }, 31 | set: function (x, y) { 32 | this.x = x; 33 | this.y = y; 34 | return this; 35 | } 36 | }; 37 | 38 | function Petal(stretchA, stretchB, startAngle, angle, growFactor, bloom) { 39 | this.stretchA = stretchA; 40 | this.stretchB = stretchB; 41 | this.startAngle = startAngle; 42 | this.angle = angle; 43 | this.bloom = bloom; 44 | this.growFactor = growFactor; 45 | this.r = 1; 46 | this.isfinished = false; 47 | } 48 | Petal.prototype = { 49 | draw: function () { 50 | var ctx = this.bloom.garden.ctx; 51 | var v1, v2, v3, v4; 52 | v1 = new Vector(0, this.r).rotate(Garden.degrad(this.startAngle)); 53 | v2 = v1.clone().rotate(Garden.degrad(this.angle)); 54 | v3 = v1.clone().mult(this.stretchA); //.rotate(this.tanAngleA); 55 | v4 = v2.clone().mult(this.stretchB); //.rotate(this.tanAngleB); 56 | ctx.strokeStyle = this.bloom.c; 57 | ctx.beginPath(); 58 | ctx.moveTo(v1.x, v1.y); 59 | ctx.bezierCurveTo(v3.x, v3.y, v4.x, v4.y, v2.x, v2.y); 60 | ctx.stroke(); 61 | }, 62 | render: function () { 63 | if (this.r <= this.bloom.r) { 64 | this.r += this.growFactor; // / 10; 65 | this.draw(); 66 | } else { 67 | this.isfinished = true; 68 | } 69 | } 70 | } 71 | function Bloom(p, r, c, pc, garden) { 72 | this.p = p; 73 | this.r = r; 74 | this.c = c; 75 | this.pc = pc; 76 | this.petals = []; 77 | this.garden = garden; 78 | this.init(); 79 | this.garden.addBloom(this); 80 | } 81 | Bloom.prototype = { 82 | draw: function () { 83 | var p, isfinished = true; 84 | this.garden.ctx.save(); 85 | this.garden.ctx.translate(this.p.x, this.p.y); 86 | for (var i = 0; i < this.petals.length; i++) { 87 | p = this.petals[i]; 88 | p.render(); 89 | isfinished *= p.isfinished; 90 | } 91 | this.garden.ctx.restore(); 92 | if (isfinished == true) { 93 | this.garden.removeBloom(this); 94 | } 95 | }, 96 | init: function () { 97 | var angle = 360 / this.pc; 98 | var startAngle = Garden.randomInt(0, 90); 99 | for (var i = 0; i < this.pc; i++) { 100 | this.petals.push(new Petal(Garden.random(Garden.options.petalStretch.min, Garden.options.petalStretch.max), Garden.random(Garden.options.petalStretch.min, Garden.options.petalStretch.max), startAngle + i * angle, angle, Garden.random(Garden.options.growFactor.min, Garden.options.growFactor.max), this)); 101 | } 102 | } 103 | } 104 | 105 | function Garden(ctx, element) { 106 | this.blooms = []; 107 | this.element = element; 108 | this.ctx = ctx; 109 | } 110 | Garden.prototype = { 111 | render: function () { 112 | for (var i = 0; i < this.blooms.length; i++) { 113 | this.blooms[i].draw(); 114 | } 115 | }, 116 | addBloom: function (b) { 117 | this.blooms.push(b); 118 | }, 119 | removeBloom: function (b) { 120 | var bloom; 121 | for (var i = 0; i < this.blooms.length; i++) { 122 | bloom = this.blooms[i]; 123 | if (bloom === b) { 124 | this.blooms.splice(i, 1); 125 | return this; 126 | } 127 | } 128 | }, 129 | createRandomBloom: function (x, y, Size) { 130 | //Garden.randomInt(Garden.options.bloomRadius.min, Garden.options.bloomRadius.max), 131 | this.createBloom(x, y, 132 | Size, 133 | Garden.randomrgba(Garden.options.color.min, Garden.options.color.max, Garden.options.color.opacity), 134 | Garden.randomInt(Garden.options.petalCount.min, Garden.options.petalCount.max)); 135 | }, 136 | createBloom: function (x, y, r, c, pc) { 137 | new Bloom(new Vector(x, y), r, c, pc, this); 138 | }, 139 | clear: function () { 140 | this.blooms = []; 141 | this.ctx.clearRect(0, 0, this.element.width, this.element.height); 142 | } 143 | } 144 | 145 | Garden.options = { 146 | petalCount: { 147 | min: 9, 148 | max: 13 149 | }, 150 | petalStretch: { 151 | min: 0.9, 152 | max: 3 153 | }, 154 | growFactor: { 155 | min: 0.1, 156 | max: 1 157 | }, 158 | bloomRadius: { 159 | min: 5, 160 | max: 10 161 | }, 162 | density: 50, 163 | growSpeed: 1000 / 30, 164 | color: { 165 | min: 0, 166 | max: 90, 167 | opacity: 0.05 168 | }, 169 | tanAngle: 90 170 | }; 171 | Garden.random = function (min, max) { 172 | return Math.random() * (max - min) + min; 173 | }; 174 | Garden.randomInt = function (min, max) { 175 | return Math.floor(Math.random() * (max - min + 1)) + min; 176 | }; 177 | Garden.circle = 2 * Math.PI; 178 | Garden.degrad = function (angle) { 179 | return Garden.circle / 360 * angle; 180 | }; 181 | Garden.raddeg = function (angle) { 182 | return angle / Garden.circle * 360; 183 | }; 184 | Garden.rgba = function (r, g, b, a) { 185 | return 'rgba(' + r + ',' + g + ',' + b + ',' + a + ')'; 186 | }; 187 | Garden.randomrgba = function (min, max, a) { 188 | //return Garden.rgba(Math.round(Garden.random(250, 255)), Math.round(Garden.random(200, 210)), Math.round(Garden.random(200, 210)), 0.05);//紫色 189 | return Garden.rgba(Math.round(Garden.random(180, 250)), Math.round(Garden.random(80, 255)), Math.round(Garden.random(50, 180)), 0.15);//橙色,粉红,紫色 190 | }; 191 | 192 | $(function () { 193 | 194 | $window = $(window); 195 | 196 | // garden 197 | var gardenCtx, gardenCanvas, $garden, garden; 198 | 199 | // saveCanvas 200 | var saveCtx, saveCanvas; 201 | 202 | // setup save 203 | saveCanvas = $("#garden")[0]; 204 | saveCanvas.width = $window.width(); 205 | saveCanvas.height = $window.height(); 206 | saveCtx = saveCanvas.getContext("2d"); 207 | saveCtx.globalCompositeOperation = "lighter"; 208 | 209 | // setup garden 210 | $garden = $("#garden"); 211 | gardenCanvas = $garden[0]; 212 | gardenCanvas.width = $window.width(); 213 | gardenCanvas.height = $window.height() - 20; 214 | gardenCtx = gardenCanvas.getContext("2d"); 215 | gardenCtx.globalCompositeOperation = "lighter"; 216 | garden = new Garden(gardenCtx, gardenCanvas); 217 | 218 | // renderLoop 219 | setInterval(function () { 220 | garden.render(); 221 | }, Garden.options.growSpeed); 222 | 223 | //--------------------------------------------------------------- 224 | //Draw My Picture 225 | var r = 18; 226 | var flag = 0; 227 | var time, temp = 800; 228 | var radian = Math.PI;//弧度 229 | var radianDecrement = Math.PI / 370 * 2;;//弧度增量 230 | var heartX, heartY; 231 | var LX = 700, LY = 370; 232 | var URowX = LX, URowY = LY; 233 | var DRowX = LX, DRowY = LY; 234 | var LRollX = LX, LRollY = LY; 235 | var RRollX = LX, RRollY = LY; 236 | 237 | for(var i=0;i<350;i++){ 238 | time = 30*(i + temp); 239 | setTimeout(drawHeart, time); 240 | } 241 | 242 | 243 | 244 | for(var j = 0; j < 20; j++){ 245 | //setTimeout(drawRect_URow, 60 * j + 35000); 246 | } 247 | 248 | for(var j = 0; j < 21; j++){ 249 | //setTimeout(drawRect_DRow, 60 * j + 20 * 65 + 36000); 250 | } 251 | 252 | for(var j = 0; j < 5; j++){ 253 | //setTimeout(drawRect_LRoll, 60 * j + 20 * 65 + 37000); 254 | } 255 | 256 | for(var j = 0; j < 5; j++){ 257 | //setTimeout(drawRect_RRoll, 60 * j + 20 * 65 + 38000); 258 | } 259 | 260 | function drawRect_URow(){ 261 | garden.createRandomBloom(URowX, URowY, 12); 262 | URowX = URowX + 25; 263 | } 264 | 265 | function drawRect_DRow(){ 266 | garden.createRandomBloom(DRowX, DRowY + 185, 12); 267 | DRowX = DRowX + 25; 268 | } 269 | 270 | function drawRect_LRoll(){ 271 | garden.createRandomBloom(LRollX, LRollY, 12); 272 | LRollY = LRollY + 25; 273 | } 274 | 275 | function drawRect_RRoll(){ 276 | garden.createRandomBloom(RRollX + 500, RRollY, 12); 277 | RRollY = RRollY + 25; 278 | } 279 | 280 | function drawHeart(){ 281 | flag++; 282 | heartX = getX(radian); 283 | heartY = getY(radian); 284 | radian += radianDecrement; 285 | if(flag < 31){ 286 | if(flag%8==0){ 287 | garden.createRandomBloom(heartX, heartY, 12); 288 | } 289 | }else if(flag % 4 == 0){ 290 | if(radian>Math.PI+300*radianDecrement) 291 | garden.createRandomBloom(heartX, heartY, 56 - (5.51) *(radian)); 292 | else if(!(radian<=Math.PI+205*radianDecrement&&radian>=Math.PI+180*radianDecrement))//只是让变得好看 293 | garden.createRandomBloom(heartX, heartY, 12); 294 | } 295 | } 296 | 297 | function getX(t) {//由弧度得到 X 坐标 298 | return 305+r*(16*Math.pow(Math.sin(t),3)); 299 | } 300 | 301 | function getY(t) {//由弧度得到 Y 坐标 302 | return 295-r*(13*Math.cos(t)-5*Math.cos(2*t)-2*Math.cos(3*t)-Math.cos(4*t)); 303 | } 304 | //--------------------------------------------------------------- 305 | }); 306 | })(jQuery); -------------------------------------------------------------------------------- /js/snowstorm.js: -------------------------------------------------------------------------------- 1 | /** @license 2 | * DHTML Snowstorm! JavaScript-based Snow for web pages 3 | * -------------------------------------------------------- 4 | * Version 1.0.0 5 | * Copyright (c) 2012, Mike_TDX. All rights reserved. 6 | */ 7 | 8 | /*global window, document, navigator, clearInterval, setInterval */ 9 | /*jslint white: false, onevar: true, plusplus: false, undef: true, nomen: true, eqeqeq: true, bitwise: true, regexp: true, newcap: true, immed: true */ 10 | 11 | var snowStorm = (function(window, document) { 12 | 13 | // --- common properties --- 14 | 15 | this.autoStart = true; // Whether the snow should start automatically or not. 16 | this.flakesMax = 640; // Limit total amount of snow made (falling + sticking) 17 | this.flakesMaxActive = 80; // Limit amount of snow falling at once (less = lower CPU use) 18 | this.animationInterval = 40; // Theoretical "miliseconds per frame" measurement. 20 = fast + smooth, but high CPU use. 50 = more conservative, but slower 19 | this.excludeMobile = true; // Snow is likely to be bad news for mobile phones' CPUs (and batteries.) By default, be nice. 20 | this.flakeBottom = null; // Integer for Y axis snow limit, 0 or null for "full-screen" snow effect 21 | this.followMouse = true; // Snow movement can respond to the user's mouse 22 | this.snowColor = '#FFFFFF'; // Don't eat (or use?) yellow snow. 23 | this.snowCharacter = '•'; // • = bullet, · is square on some systems etc. 24 | this.snowStick = true; // Whether or not snow should "stick" at the bottom. When off, will never collect. 25 | this.targetElement = null; // element which snow will be appended to (null = document.body) - can be an element ID eg. 'myDiv', or a DOM node reference 26 | this.useMeltEffect = true; // When recycling fallen snow (or rarely, when falling), have it "melt" and fade out if browser supports it 27 | this.useTwinkleEffect = false; // Allow snow to randomly "flicker" in and out of view while falling 28 | this.usePositionFixed = false; // true = snow does not shift vertically when scrolling. May increase CPU load, disabled by default - if enabled, used only where supported 29 | 30 | // --- less-used bits --- 31 | 32 | this.freezeOnBlur = true; // Only snow when the window is in focus (foreground.) Saves CPU. 33 | this.flakeLeftOffset = 0; // Left margin/gutter space on edge of container (eg. browser window.) Bump up these values if seeing horizontal scrollbars. 34 | this.flakeRightOffset = 0; // Right margin/gutter space on edge of container 35 | this.flakeWidth = 8; // Max pixel width reserved for snow element 36 | this.flakeHeight = 8; // Max pixel height reserved for snow element 37 | this.vMaxX = 5; // Maximum X velocity range for snow 38 | this.vMaxY = 4; // Maximum Y velocity range for snow 39 | this.zIndex = 0; // CSS stacking order applied to each snowflake 40 | 41 | // --- End of user section --- 42 | 43 | var s = this, storm = this, i, 44 | // UA sniffing and backCompat rendering mode checks for fixed position, etc. 45 | isIE = navigator.userAgent.match(/msie/i), 46 | isIE6 = navigator.userAgent.match(/msie 6/i), 47 | isWin98 = navigator.appVersion.match(/windows 98/i), 48 | isMobile = navigator.userAgent.match(/mobile|opera m(ob|in)/i), 49 | isBackCompatIE = (isIE && document.compatMode === 'BackCompat'), 50 | noFixed = (isMobile || isBackCompatIE || isIE6), 51 | screenX = null, screenX2 = null, screenY = null, scrollY = null, vRndX = null, vRndY = null, 52 | windOffset = 1, 53 | windMultiplier = 2, 54 | flakeTypes = 6, 55 | fixedForEverything = false, 56 | opacitySupported = (function(){ 57 | try { 58 | document.createElement('div').style.opacity = '0.5'; 59 | } catch(e) { 60 | return false; 61 | } 62 | return true; 63 | }()), 64 | didInit = false, 65 | docFrag = document.createDocumentFragment(); 66 | 67 | this.timers = []; 68 | this.flakes = []; 69 | this.disabled = false; 70 | this.active = false; 71 | this.meltFrameCount = 20; 72 | this.meltFrames = []; 73 | 74 | this.events = (function() { 75 | 76 | var old = (!window.addEventListener && window.attachEvent), slice = Array.prototype.slice, 77 | evt = { 78 | add: (old?'attachEvent':'addEventListener'), 79 | remove: (old?'detachEvent':'removeEventListener') 80 | }; 81 | 82 | function getArgs(oArgs) { 83 | var args = slice.call(oArgs), len = args.length; 84 | if (old) { 85 | args[1] = 'on' + args[1]; // prefix 86 | if (len > 3) { 87 | args.pop(); // no capture 88 | } 89 | } else if (len === 3) { 90 | args.push(false); 91 | } 92 | return args; 93 | } 94 | 95 | function apply(args, sType) { 96 | var element = args.shift(), 97 | method = [evt[sType]]; 98 | if (old) { 99 | element[method](args[0], args[1]); 100 | } else { 101 | element[method].apply(element, args); 102 | } 103 | } 104 | 105 | function addEvent() { 106 | apply(getArgs(arguments), 'add'); 107 | } 108 | 109 | function removeEvent() { 110 | apply(getArgs(arguments), 'remove'); 111 | } 112 | 113 | return { 114 | add: addEvent, 115 | remove: removeEvent 116 | }; 117 | 118 | }()); 119 | 120 | function rnd(n,min) { 121 | if (isNaN(min)) { 122 | min = 0; 123 | } 124 | return (Math.random()*n)+min; 125 | } 126 | 127 | function plusMinus(n) { 128 | return (parseInt(rnd(2),10)===1?n*-1:n); 129 | } 130 | 131 | this.randomizeWind = function() { 132 | var i; 133 | vRndX = plusMinus(rnd(s.vMaxX,0.2)); 134 | vRndY = rnd(s.vMaxY,0.2); 135 | if (this.flakes) { 136 | for (i=0; i=0 && s.vX<0.2) { 295 | s.vX = 0.2; 296 | } else if (s.vX<0 && s.vX>-0.2) { 297 | s.vX = -0.2; 298 | } 299 | if (s.vY>=0 && s.vY<0.2) { 300 | s.vY = 0.2; 301 | } 302 | }; 303 | 304 | this.move = function() { 305 | var vX = s.vX*windOffset, yDiff; 306 | s.x += vX; 307 | s.y += (s.vY*s.vAmp); 308 | if (s.x >= screenX || screenX-s.x < storm.flakeWidth) { // X-axis scroll check 309 | s.x = 0; 310 | } else if (vX < 0 && s.x-storm.flakeLeftOffset < -storm.flakeWidth) { 311 | s.x = screenX-storm.flakeWidth-1; // flakeWidth; 312 | } 313 | s.refresh(); 314 | yDiff = screenY+scrollY-s.y; 315 | if (yDiff0.998) { 324 | // ~1/1000 chance of melting mid-air, with each frame 325 | s.melting = true; 326 | s.melt(); 327 | // only incrementally melt one frame 328 | // s.melting = false; 329 | } 330 | if (storm.useTwinkleEffect) { 331 | if (!s.twinkleFrame) { 332 | if (Math.random()>0.9) { 333 | s.twinkleFrame = parseInt(Math.random()*20,10); 334 | } 335 | } else { 336 | s.twinkleFrame--; 337 | s.o.style.visibility = (s.twinkleFrame && s.twinkleFrame%2===0?'hidden':'visible'); 338 | } 339 | } 340 | } 341 | }; 342 | 343 | this.animate = function() { 344 | // main animation loop 345 | // move, check status, die etc. 346 | s.move(); 347 | }; 348 | 349 | this.setVelocities = function() { 350 | s.vX = vRndX+rnd(storm.vMaxX*0.12,0.1); 351 | s.vY = vRndY+rnd(storm.vMaxY*0.12,0.1); 352 | }; 353 | 354 | this.setOpacity = function(o,opacity) { 355 | if (!opacitySupported) { 356 | return false; 357 | } 358 | o.style.opacity = opacity; 359 | }; 360 | 361 | this.melt = function() { 362 | if (!storm.useMeltEffect || !s.melting) { 363 | s.recycle(); 364 | } else { 365 | if (s.meltFrame < s.meltFrameCount) { 366 | s.setOpacity(s.o,s.meltFrames[s.meltFrame]); 367 | s.o.style.fontSize = s.fontSize-(s.fontSize*(s.meltFrame/s.meltFrameCount))+'px'; 368 | s.o.style.lineHeight = storm.flakeHeight+2+(storm.flakeHeight*0.75*(s.meltFrame/s.meltFrameCount))+'px'; 369 | s.meltFrame++; 370 | } else { 371 | s.recycle(); 372 | } 373 | } 374 | }; 375 | 376 | this.recycle = function() { 377 | s.o.style.display = 'none'; 378 | s.o.style.position = (fixedForEverything?'fixed':'absolute'); 379 | s.o.style.bottom = 'auto'; 380 | s.setVelocities(); 381 | s.vCheck(); 382 | s.meltFrame = 0; 383 | s.melting = false; 384 | s.setOpacity(s.o,1); 385 | s.o.style.padding = '0px'; 386 | s.o.style.margin = '0px'; 387 | s.o.style.fontSize = s.fontSize+'px'; 388 | s.o.style.lineHeight = (storm.flakeHeight+2)+'px'; 389 | s.o.style.textAlign = 'center'; 390 | s.o.style.verticalAlign = 'baseline'; 391 | s.x = parseInt(rnd(screenX-storm.flakeWidth-20),10); 392 | s.y = parseInt(rnd(screenY)*-1,10)-storm.flakeHeight; 393 | s.refresh(); 394 | s.o.style.display = 'block'; 395 | s.active = 1; 396 | }; 397 | 398 | this.recycle(); // set up x/y coords etc. 399 | this.refresh(); 400 | 401 | }; 402 | 403 | this.snow = function() { 404 | var active = 0, used = 0, waiting = 0, flake = null, i; 405 | for (i=s.flakes.length; i--;) { 406 | if (s.flakes[i].active === 1) { 407 | s.flakes[i].move(); 408 | active++; 409 | } else if (s.flakes[i].active === 0) { 410 | used++; 411 | } else { 412 | waiting++; 413 | } 414 | if (s.flakes[i].melting) { 415 | s.flakes[i].melt(); 416 | } 417 | } 418 | if (actives.flakesMaxActive) { 444 | s.flakes[s.flakes.length-1].active = -1; 445 | } 446 | } 447 | storm.targetElement.appendChild(docFrag); 448 | }; 449 | 450 | this.timerInit = function() { 451 | s.timers = (!isWin98?[setInterval(s.snow,s.animationInterval)]:[setInterval(s.snow,s.animationInterval*3),setInterval(s.snow,s.animationInterval)]); 452 | }; 453 | 454 | this.init = function() { 455 | var i; 456 | for (i=0; i range.lower) { 347 | jQuery(this).roundabout_animateToDelta(bearing - range.lower, duration, easing); 348 | break; 349 | } 350 | j++; 351 | } 352 | } else { 353 | // clockwise 354 | while (true) { 355 | range = { lower: jQuery.roundabout_toFloat(period * j), upper: jQuery.roundabout_toFloat(period * (j + 1)) }; 356 | range.upper = (j == length - 1) ? 360.0 : range.upper; // adjust for javascript being bad at floats 357 | 358 | if (bearing >= range.lower && bearing < range.upper) { 359 | jQuery(this).roundabout_animateToDelta(bearing - range.upper, duration, easing); 360 | break; 361 | } 362 | j++; 363 | } 364 | } 365 | } 366 | }); 367 | return this; 368 | }; 369 | 370 | jQuery.fn.roundabout_animateToNextChild = function() { 371 | return this.roundabout_animateToNearbyChild(arguments, 'next'); 372 | }; 373 | 374 | jQuery.fn.roundabout_animateToPreviousChild = function() { 375 | return this.roundabout_animateToNearbyChild(arguments, 'previous'); 376 | }; 377 | 378 | // moves a given angle to the focus by the shortest means possible 379 | jQuery.fn.roundabout_animateAngleToFocus = function(target) { 380 | var duration = arguments[1], easing = arguments[2]; 381 | this.each(function(i) { 382 | var delta = jQuery.roundabout_getBearing(jQuery(this)) - target; 383 | delta = (Math.abs(360.0 - delta) < Math.abs(0.0 - delta)) ? 360.0 - delta : 0.0 - delta; 384 | delta = (delta > 180) ? -(360.0 - delta) : delta; 385 | 386 | if (delta !== 0) { 387 | jQuery(this).roundabout_animateToDelta(delta, duration, easing); 388 | } 389 | }); 390 | return this; 391 | }; 392 | 393 | jQuery.fn.roundabout_updateChildPositions = function() { 394 | this.each(function(i) { 395 | var ref = jQuery(this), data = ref.data('roundabout'); 396 | var inFocus = -1; 397 | var info = { 398 | bearing: jQuery.roundabout_getBearing(ref), 399 | tilt: data.tilt, 400 | stage: { width: Math.floor(ref.width() * 0.9), height: Math.floor(ref.height() * 0.9) }, 401 | animating: data.animating, 402 | inFocus: data.childInFocus, 403 | focusBearingRad: jQuery.roundabout_degToRad(data.focusBearing), 404 | shape: jQuery.roundabout_shape[data.shape] || jQuery.roundabout_shape[jQuery.roundabout_shape.def] 405 | }; 406 | info.midStage = { width: info.stage.width / 2, height: info.stage.height / 2 }; 407 | info.nudge = { width: info.midStage.width + info.stage.width * 0.05, height: info.midStage.height + info.stage.height * 0.05 }; 408 | info.zValues = { min: data.minZ, max: data.maxZ, diff: data.maxZ - data.minZ }; 409 | info.opacity = { min: data.minOpacity, max: data.maxOpacity, diff: data.maxOpacity - data.minOpacity }; 410 | info.scale = { min: data.minScale, max: data.maxScale, diff: data.maxScale - data.minScale }; 411 | 412 | // update child positions 413 | ref.children(data.childSelector).each(function(i) { 414 | if (jQuery.roundabout_updateChildPosition(jQuery(this), ref, info, i) && info.animating === 0) { 415 | inFocus = i; 416 | jQuery(this).addClass('roundabout-in-focus'); 417 | } else { 418 | jQuery(this).removeClass('roundabout-in-focus'); 419 | } 420 | }); 421 | 422 | // update status of who is in focus 423 | if (inFocus !== info.inFocus) { 424 | jQuery.roundabout_triggerEvent(ref, info.inFocus, 'blur'); 425 | 426 | if (inFocus !== -1) { 427 | jQuery.roundabout_triggerEvent(ref, inFocus, 'focus'); 428 | } 429 | 430 | data.childInFocus = inFocus; 431 | } 432 | }); 433 | return this; 434 | }; 435 | 436 | //---------------- 437 | 438 | jQuery.roundabout_getBearing = function(el) { 439 | return jQuery.roundabout_toFloat(el.data('roundabout').bearing) % 360; 440 | }; 441 | 442 | jQuery.roundabout_degToRad = function(degrees) { 443 | return (degrees % 360.0) * Math.PI / 180.0; 444 | }; 445 | 446 | jQuery.roundabout_isInFocus = function(el, target) { 447 | return (jQuery.roundabout_getBearing(el) % 360 === (target % 360)); 448 | }; 449 | 450 | jQuery.roundabout_triggerEvent = function(el, child, eventType) { 451 | return (child < 0) ? this : jQuery(el.children(el.data('roundabout').childSelector)[child]).trigger(eventType); 452 | }; 453 | 454 | jQuery.roundabout_toFloat = function(number) { 455 | number = Math.round(parseFloat(number) * 1000) / 1000; 456 | return parseFloat(number.toFixed(2)); 457 | }; 458 | 459 | jQuery.roundabout_updateChildPosition = function(child, container, info, childPos) { 460 | var ref = jQuery(child), data = ref.data('roundabout'), out = []; 461 | var rad = jQuery.roundabout_degToRad((360.0 - ref.data('roundabout').degrees) + info.bearing); 462 | 463 | // adjust radians to be between 0 and Math.PI * 2 464 | while (rad < 0) { 465 | rad = rad + Math.PI * 2; 466 | } 467 | while (rad > Math.PI * 2) { 468 | rad = rad - Math.PI * 2; 469 | } 470 | 471 | var factors = info.shape(rad, info.focusBearingRad, info.tilt); // obj with x, y, z, and scale values 472 | 473 | // correct 474 | factors.scale = (factors.scale > 1) ? 1 : factors.scale; 475 | factors.adjustedScale = (info.scale.min + (info.scale.diff * factors.scale)).toFixed(4); 476 | factors.width = (factors.adjustedScale * data.startWidth).toFixed(4); 477 | factors.height = (factors.adjustedScale * data.startHeight).toFixed(4); 478 | 479 | // alter item 480 | ref 481 | .css('left', ((factors.x * info.midStage.width + info.nudge.width) - factors.width / 2.0).toFixed(1) + 'px') 482 | .css('top', ((factors.y * info.midStage.height + info.nudge.height) - factors.height / 2.0).toFixed(1) + 'px') 483 | .css('width', factors.width + 'px') 484 | .css('height', factors.height + 'px') 485 | .css('opacity', (info.opacity.min + (info.opacity.diff * factors.scale)).toFixed(2)) 486 | .css('z-index', Math.round(info.zValues.min + (info.zValues.diff * factors.z))) 487 | .css('font-size', (factors.adjustedScale * data.startFontSize).toFixed(2) + 'px') 488 | .attr('current-scale', factors.adjustedScale); 489 | 490 | if (container.data('roundabout').debug === true) { 491 | out.push('
'); 492 | out.push('Child ' + childPos + '
'); 493 | out.push('left: ' + ref.css('left') + '
top: ' + ref.css('top') + '
'); 494 | out.push('width: ' + ref.css('width') + '
opacity: ' + ref.css('opacity') + '
'); 495 | out.push('z-index: ' + ref.css('z-index') + '
font-size: ' + ref.css('font-size') + '
'); 496 | out.push('scale: ' + ref.attr('current-scale')); 497 | out.push('
'); 498 | 499 | ref.html(out.join('')); 500 | } 501 | 502 | return jQuery.roundabout_isInFocus(container, ref.data('roundabout').degrees); 503 | }; -------------------------------------------------------------------------------- /js/ga.js: -------------------------------------------------------------------------------- 1 | (function(){var g=void 0,h=!0,i=null,l=!1,aa=encodeURIComponent,ba=Infinity,ca=setTimeout,da=isNaN,m=Math,ea=decodeURIComponent;function ha(a,b){return a.name=b} 2 | var n="push",ia="test",ja="slice",p="replace",ka="load",la="floor",ma="charAt",na="value",q="indexOf",oa="match",pa="port",qa="createElement",ra="path",r="name",u="host",v="toString",w="length",x="prototype",sa="clientWidth",y="split",ta="stopPropagation",ua="scope",z="location",va="search",A="protocol",wa="clientHeight",xa="href",B="substring",ya="apply",za="navigator",C="join",D="toLowerCase",E;function Aa(a,b){switch(b){case 0:return""+a;case 1:return 1*a;case 2:return!!a;case 3:return 1E3*a}return a}function Ba(a){return"function"==typeof a}function Ca(a){return a!=g&&-1<(a.constructor+"")[q]("String")}function F(a,b){return g==a||"-"==a&&!b||""==a}function Da(a){if(!a||""==a)return"";for(;a&&-1<" \n\r\t"[q](a[ma](0));)a=a[B](1);for(;a&&-1<" \n\r\t"[q](a[ma](a[w]-1));)a=a[B](0,a[w]-1);return a}function Ea(){return m.round(2147483647*m.random())}function Fa(){} 3 | function G(a,b){if(aa instanceof Function)return b?encodeURI(a):aa(a);H(68);return escape(a)}function I(a){a=a[y]("+")[C](" ");if(ea instanceof Function)try{return ea(a)}catch(b){H(17)}else H(68);return unescape(a)}var Ga=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,!!d):a.attachEvent&&a.attachEvent("on"+b,c)},Ha=function(a,b,c,d){a.removeEventListener?a.removeEventListener(b,c,!!d):a.detachEvent&&a.detachEvent("on"+b,c)}; 4 | function Ia(a,b){if(a){var c=J[qa]("script");c.type="text/javascript";c.async=h;c.src=a;c.id=b;var d=J.getElementsByTagName("script")[0];d.parentNode.insertBefore(c,d);return c}}function K(a){return a&&0a[y]("/")[0][q](":")&&(a=k+f[2][B](0,f[2].lastIndexOf("/"))+"/"+a);d.href=a;e=c(d);return{protocol:(d[A]||"")[D](),host:e[0], 6 | port:e[1],path:e[2],Oa:d[va]||"",url:a||""}}function Na(a,b){function c(b,c){a.contains(b)||a.set(b,[]);a.get(b)[n](c)}for(var d=Da(b)[y]("&"),e=0;ef?c(d[e],"1"):c(d[e][B](0,f),d[e][B](f+1))}}function Pa(a,b){if(F(a)||"["==a[ma](0)&&"]"==a[ma](a[w]-1))return"-";var c=J.domain;return a[q](c+(b&&"/"!=b?b:""))==(0==a[q]("http://")?7:0==a[q]("https://")?8:0)?"0":a};var Qa=0;function Ra(a,b,c){!(1<=Qa)&&!(1<=100*m.random())&&(a=["utmt=error","utmerr="+a,"utmwv=5.3.9","utmn="+Ea(),"utmsp=1"],b&&a[n]("api="+b),c&&a[n]("msg="+G(c[B](0,100))),M.w&&a[n]("aip=1"),Sa(a[C]("&")),Qa++)};var Ta=0,Ua={};function N(a){return Va("x"+Ta++,a)}function Va(a,b){Ua[a]=!!b;return a} 7 | var Wa=N(),Xa=Va("anonymizeIp"),Ya=N(),$a=N(),ab=N(),bb=N(),O=N(),P=N(),cb=N(),db=N(),eb=N(),fb=N(),gb=N(),hb=N(),ib=N(),jb=N(),kb=N(),lb=N(),nb=N(),ob=N(),pb=N(),qb=N(),rb=N(),sb=N(),tb=N(),ub=N(),vb=N(),wb=N(),xb=N(),yb=N(),zb=N(),Ab=N(),Bb=N(),Cb=N(),Db=N(),Eb=N(),Fb=N(h),Gb=Va("currencyCode"),Hb=Va("page"),Ib=Va("title"),Jb=N(),Kb=N(),Lb=N(),Mb=N(),Nb=N(),Ob=N(),Pb=N(),Qb=N(),Rb=N(),Q=N(h),Sb=N(h),Tb=N(h),Ub=N(h),Vb=N(h),Wb=N(h),Zb=N(h),$b=N(h),ac=N(h),bc=N(h),cc=N(h),R=N(h),dc=N(h),ec=N(h),fc= 8 | N(h),gc=N(h),hc=N(h),ic=N(h),jc=N(h),S=N(h),kc=N(h),lc=N(h),mc=N(h),nc=N(h),oc=N(h),pc=N(h),qc=N(h),rc=Va("campaignParams"),sc=N(),tc=Va("hitCallback"),uc=N();N();var vc=N(),wc=N(),xc=N(),yc=N(),zc=N(),Ac=N(),Bc=N(),Cc=N(),Dc=N(),Ec=N(),Fc=N(),Gc=N(),Hc=N(),Ic=N();N();var Mc=N(),Nc=N(),Oc=N();function Pc(a){var b=this.plugins_;if(b)return b.get(a)}var T=function(a,b,c,d){a[b]=function(){try{return d!=g&&H(d),c[ya](this,arguments)}catch(a){throw Ra("exc",b,a&&a[r]),a;}}},Qc=function(a,b,c,d){U[x][a]=function(){try{return H(c),Aa(this.a.get(b),d)}catch(e){throw Ra("exc",a,e&&e[r]),e;}}},V=function(a,b,c,d,e){U[x][a]=function(f){try{H(c),e==g?this.a.set(b,Aa(f,d)):this.a.set(b,e)}catch(j){throw Ra("exc",a,j&&j[r]),j;}}};var Rc=RegExp(/(^|\.)doubleclick\.net$/i),Sc=function(a,b){return Rc[ia](J[z].hostname)?h:"/"!==b?l:(0==a[q]("www.google.")||0==a[q](".google.")||0==a[q]("google."))&&!(-1b[w]||ad(b[0],c))return l;b=b[ja](1)[C](".")[y]("|");0=b[w])return h;b=b[1][y](-1==b[1][q](",")? 13 | "^":",");for(c=0;cb[w]||ad(b[0],c))return a.set(ec,g),a.set(fc,g),a.set(gc,g),a.set(ic,g),a.set(jc,g),a.set(nc,g),a.set(oc,g),a.set(pc,g),a.set(qc,g),a.set(S,g),a.set(kc,g),a.set(lc,g),a.set(mc,g),l;a.set(ec,1*b[1]);a.set(fc,1*b[2]);a.set(gc,1*b[3]);var d=b[ja](4)[C](".");b=function(a){return(a=d[oa](a+"=(.*?)(?:\\|utm|$)"))&&2==a[w]?a[1]:g};c=function(b,c){c?(c=e?I(c):c[y]("%20")[C](" "),a.set(b,c)):a.set(b,g)};-1==d[q]("=")&&(d=I(d));var e="2"==b("utmcvr"); 15 | c(ic,b("utmcid"));c(jc,b("utmccn"));c(nc,b("utmcsr"));c(oc,b("utmcmd"));c(pc,b("utmctr"));c(qc,b("utmcct"));c(S,b("utmgclid"));c(kc,b("utmgclsrc"));c(lc,b("utmdclid"));c(mc,b("utmdsid"));return h},ad=function(a,b){return b?a!=b:!/^\d+$/[ia](a)};var Uc=function(){this.filters=[]};Uc[x].add=function(a,b){this.filters[n]({name:a,s:b})};Uc[x].execute=function(a){try{for(var b=0;b=100*a.get(vb)&&a[ta]()}function kd(a){ld(a.get(Wa))&&a[ta]()}function md(a){"file:"==J[z][A]&&a[ta]()}function nd(a){a.get(Ib)||a.set(Ib,J.title,h);a.get(Hb)||a.set(Hb,J[z].pathname+J[z][va],h)};var od=new function(){var a=[];this.set=function(b){a[b]=h};this.Xa=function(){for(var b=[],c=0;c=b[0]||0>=b[1]?"":b[C]("x");a.Wa=d}catch(k){H(135)}qd=a}},td=function(){sd();for(var a= 17 | qd,b=W[za],a=b.appName+b.version+a.language+b.platform+b.userAgent+a.javaEnabled+a.Q+a.P+(J.cookie?J.cookie:"")+(J.referrer?J.referrer:""),b=a[w],c=W.history[w];0d?(this.i=b[B](0,d),this.l=b[B](d+1,c),this.h=b[B](c+1)):(this.i=b[B](0,d),this.h=b[B](d+1));this.k=a[ja](1);this.Ma=!this.l&&"_require"==this.h;this.J=!this.i&&!this.l&&"_provide"==this.h}},Y=function(){T(Y[x],"push",Y[x][n],5);T(Y[x],"_getPlugin",Pc,121);T(Y[x], 19 | "_createAsyncTracker",Y[x].Sa,33);T(Y[x],"_getAsyncTracker",Y[x].Ta,34);this.I=new Ja;this.p=[]};E=Y[x];E.Na=function(a,b,c){var d=this.I.get(a);if(!Ba(d))return l;b.plugins_=b.plugins_||new Ja;b.plugins_.set(a,new d(b,c||{}));return h};E.push=function(a){var b=Z.Va[ya](this,arguments),b=Z.p.concat(b);for(Z.p=[];0e?b+"#"+d:b+"&"+d;c="";f=b[q]("?");0f?b+"?"+d+c:b+"&"+d+c},$d=function(a,b,c,d){for(var e=0;3>e;e++){for(var f=0;3>f;f++){if(d==Yc(a+b+c))return H(127),[b,c];var j=b[p](/ /g,"%20"), 31 | k=c[p](/ /g,"%20");if(d==Yc(a+j+k))return H(128),[j,k];j=j[p](/\+/g,"%20");k=k[p](/\+/g,"%20");if(d==Yc(a+j+k))return H(129),[j,k];try{var s=b[oa]("utmctr=(.*?)(?:\\|utm|$)");if(s&&2==s[w]&&(j=b[p](s[1],G(I(s[1]))),d==Yc(a+j+c)))return H(139),[j,c]}catch(t){}b=I(b)}c=I(c)}};var de="|",fe=function(a,b,c,d,e,f,j,k,s){var t=ee(a,b);t||(t={},a.get(Cb)[n](t));t.id_=b;t.affiliation_=c;t.total_=d;t.tax_=e;t.shipping_=f;t.city_=j;t.state_=k;t.country_=s;t.items_=t.items_||[];return t},ge=function(a,b,c,d,e,f,j){a=ee(a,b)||fe(a,b,"",0,0,0,"","","");var k;a:{if(a&&a.items_){k=a.items_;for(var s=0;sb[w])&&/^\d+$/[ia](b[0])&&(b[0]=""+c,Fd(a,"__utmx",b[C]("."),g))},be=function(a,b){var c=$c(a.get(O),pd("__utmx"));"-"==c&&(c="");return b?G(c):c};var ke=function(a,b){var c=m.min(a.b(Dc,0),100);if(a.b(Q,0)%100>=c)return l;a:{if(c=(c=W.performance||W.webkitPerformance)&&c.timing){var d=c.navigationStart;if(0==d)H(133);else{c=[c.loadEventStart-d,c.domainLookupEnd-c.domainLookupStart,c.connectEnd-c.connectStart,c.responseStart-c.requestStart,c.responseEnd-c.responseStart,c.fetchStart-d,c.domInteractive-d,c.domContentLoadedEventStart-d];break a}}c=g}c||(W.top!=W?c=g:(d=(c=W.external)&&c.onloadT,c&&!c.isValidLoadTime&&(d=g),2147483648c[d]){d=l;break a}d=h}d?b(je(c)):b(je(c[ja](0,1)))}else Ga(W,"load",function(){ke(a,b)},l);return h},me=function(a,b,c,d){var e=new yd;e.f(14,90,b[B](0,500));e.f(14,91,a[B](0,150));e.f(14,92,""+le(c));d!=g&&e.f(14,93,d[B](0,500));e.o(14,90,c);return e},le=function(a){return da(a)||0>a?0:5E3>a?10*m[la](a/10):5E4>a?100*m[la](a/100):41E5>a?1E3*m[la](a/ 34 | 1E3):41E5},je=function(a){for(var b=new yd,c=0;c=f)return l;c=1*(""+c);if(""==a||(!wd(a)||""==b||!wd(b)||!xd(c)||da(c)||0>c||0>f||100=a||a>e.get(yb))a=l;else if(!b||!c||128=a&&Ca(b)&&""!=b){var c=this.get(Fc)||[];c[a]=b;this.set(Fc,c)}};E.V=function(a){a=""+a;if(a[oa](/^[A-Za-z0-9]{1,5}$/)){var b=this.get(Ic)||[];b[n](a);this.set(Ic,b)}};E.v=function(){this.a[ka]()};E.Ba=function(a){a&&""!=a&&(this.set(Tb,a),this.a.j("var"))};var ne=function(a){"trans"!==a.get(sc)&&500<=a.b(cc,0)&&a[ta]();if("event"===a.get(sc)){var b=(new Date).getTime(),c=a.b(dc,0),d=a.b(Zb,0),c=m[la](1*((b-(c!=d?c:1E3*c))/1E3));0=a.b(R,0)&&a[ta]()}},pe=function(a){"event"===a.get(sc)&&a.set(R,m.max(0,a.b(R,10)-1))};var qe=function(){var a=[];this.add=function(b,c,d){d&&(c=G(""+c));a[n](b+"="+c)};this.toString=function(){return a[C]("&")}},re=function(a,b){(b||2!=a.get(xb))&&a.z(cc)},se=function(a,b){b.add("utmwv","5.3.9");b.add("utms",a.get(cc));b.add("utmn",Ea());var c=J[z].hostname;F(c)||b.add("utmhn",c,h);c=a.get(vb);100!=c&&b.add("utmsp",c,h)},te=function(a,b){b.add("utmac",Da(a.get(Wa)));a.get(Oc)&&b.add("utmxkey",a.get(Oc),h);a.get(vc)&&b.add("utmni",1);var c=a.get(Ic);c&&0=a[w]){var e=b;b=c||Be()+"/__utm.gif?";var f=new Image(1,1);f.src=b+a;f.onload=function(){f.onload=i;f.onerror=i;e()};f.onerror=function(){f.onload=i;f.onerror=i;e()}}else if(8192>=a[w]){var j=b;if(0<=W[za].userAgent[q]("Firefox")&& 52 | ![].reduce)throw new De(a[w]);var k;b=Be()+"/p/__utm.gif";if(c=W.XDomainRequest)k=new c,k.open("POST",b);else if(c=W.XMLHttpRequest)c=new c,"withCredentials"in c&&(k=c,k.open("POST",b,h),k.setRequestHeader("Content-Type","text/plain"));k?(k.onreadystatechange=function(){4==k.readyState&&(j(),k=i)},k.send(a),b=h):b=g;b||Ee(a,j)}else throw new Ce(a[w]);},Ee=function(a,b){if(J.body){a=aa(a);try{var c=J[qa]('')}catch(d){c=J[qa]("iframe"),ha(c,a)}c.height="0";c.width="0"; 53 | c.style.display="none";c.style.visibility="hidden";var e=J[z],e=Be()+"/u/post_iframe.html#"+aa(e[A]+"//"+e[u]+"/favicon.ico"),f=function(){c.src="";c.parentNode&&c.parentNode.removeChild(c)};Ga(W,"beforeunload",f);var j=l,k=0,s=function(){if(!j){try{if(9>21:b}return b};})(); 60 | -------------------------------------------------------------------------------- /jquery/jquery.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * jQuery JavaScript Library v1.4.2 3 | * http://jquery.com/ 4 | * 5 | * Copyright 2010, John Resig 6 | * Dual licensed under the MIT or GPL Version 2 licenses. 7 | * http://jquery.org/license 8 | * 9 | * Includes Sizzle.js 10 | * http://sizzlejs.com/ 11 | * Copyright 2010, The Dojo Foundation 12 | * Released under the MIT, BSD, and GPL Licenses. 13 | * 14 | * Date: Sat Feb 13 22:33:48 2010 -0500 15 | */ 16 | (function(A,w){function ma(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(ma,1);return}c.ready()}}function Qa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function X(a,b,d,f,e,j){var i=a.length;if(typeof b==="object"){for(var o in b)X(a,o,b[o],f,e,d);return a}if(d!==w){f=!j&&f&&c.isFunction(d);for(o=0;o)[^>]*$|^#([\w-]+)$/,Ua=/^.[^:#\[\.,]*$/,Va=/\S/, 21 | Wa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Xa=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,P=navigator.userAgent,xa=false,Q=[],L,$=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,ba=Array.prototype.push,R=Array.prototype.slice,ya=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!b){this.context=s;this[0]=s.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((d=Ta.exec(a))&& 22 | (d[1]||!b))if(d[1]){f=b?b.ownerDocument||b:s;if(a=Xa.exec(a))if(c.isPlainObject(b)){a=[s.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[f.createElement(a[1])];else{a=sa([d[1]],[f]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}return c.merge(this,a)}else{if(b=s.getElementById(d[2])){if(b.id!==d[2])return T.find(a);this.length=1;this[0]=b}this.context=s;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=s;a=s.getElementsByTagName(a);return c.merge(this, 23 | a)}else return!b||b.jquery?(b||T).find(a):c(b).find(a);else if(c.isFunction(a))return T.ready(a);if(a.selector!==w){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){var f=c();c.isArray(a)?ba.apply(f,a):c.merge(f,a);f.prevObject=this;f.context=this.context;if(b=== 24 | "find")f.selector=this.selector+(this.selector?" ":"")+d;else if(b)f.selector=this.selector+"."+b+"("+d+")";return f},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&&Q.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(R.apply(this,arguments),"slice",R.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this, 25 | function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b
a"; 34 | var e=d.getElementsByTagName("*"),j=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!j)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(j.getAttribute("style")),hrefNormalized:j.getAttribute("href")==="/a",opacity:/^0.55$/.test(j.style.opacity),cssFloat:!!j.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:s.createElement("select").appendChild(s.createElement("option")).selected, 35 | parentNode:d.removeChild(d.appendChild(s.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(s.createTextNode("window."+f+"=1;"))}catch(i){}a.insertBefore(b,a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f]}try{delete b.test}catch(o){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function k(){c.support.noCloneEvent= 36 | false;d.detachEvent("onclick",k)});d.cloneNode(true).fireEvent("onclick")}d=s.createElement("div");d.innerHTML="";a=s.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var k=s.createElement("div");k.style.width=k.style.paddingLeft="1px";s.body.appendChild(k);c.boxModel=c.support.boxModel=k.offsetWidth===2;s.body.removeChild(k).style.display="none"});a=function(k){var n= 37 | s.createElement("div");k="on"+k;var r=k in n;if(!r){n.setAttribute(k,"return;");r=typeof n[k]==="function"}return r};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=j=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var G="jQuery"+J(),Ya=0,za={};c.extend({cache:{},expando:G,noData:{embed:true,object:true, 38 | applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var f=a[G],e=c.cache;if(!f&&typeof b==="string"&&d===w)return null;f||(f=++Ya);if(typeof b==="object"){a[G]=f;e[f]=c.extend(true,{},b)}else if(!e[f]){a[G]=f;e[f]={}}a=e[f];if(d!==w)a[b]=d;return typeof b==="string"?a[b]:a}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var d=a[G],f=c.cache,e=f[d];if(b){if(e){delete e[b];c.isEmptyObject(e)&&c.removeData(a)}}else{if(c.support.deleteExpando)delete a[c.expando]; 39 | else a.removeAttribute&&a.removeAttribute(c.expando);delete f[d]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===w){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(f===w&&this.length)f=c.data(this[0],a);return f===w&&d[1]?this.data(d[0]):f}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this, 40 | a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if(f==="inprogress")f=d.shift();if(f){b==="fx"&&d.unshift("inprogress");f.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b=== 41 | w)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var Aa=/[\n\t]/g,ca=/\s+/,Za=/\r/g,$a=/href|src|style/,ab=/(button|input)/i,bb=/(button|input|object|select|textarea)/i, 42 | cb=/^(a|area)$/i,Ba=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(n){var r=c(this);r.addClass(a.call(this,n,r.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ca),d=0,f=this.length;d-1)return true;return false},val:function(a){if(a===w){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options;b=b.type==="select-one";if(d<0)return null;var j=b?d:0;for(d=b?d+1:e.length;j=0;else if(c.nodeName(this,"select")){var u=c.makeArray(r);c("option",this).each(function(){this.selected= 47 | c.inArray(c(this).val(),u)>=0});if(!u.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return w;if(f&&b in c.attrFn)return c(a)[b](d);f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==w;b=f&&c.props[b]||b;if(a.nodeType===1){var j=$a.test(b);if(b in a&&f&&!j){if(e){b==="type"&&ab.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed"); 48 | a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:bb.test(a.nodeName)||cb.test(a.nodeName)&&a.href?0:w;return a[b]}if(!c.support.style&&f&&b==="style"){if(e)a.style.cssText=""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&j?a.getAttribute(b,2):a.getAttribute(b);return a===null?w:a}return c.style(a,b,d)}});var O=/\.(.*)$/,db=function(a){return a.replace(/[^\w\s\.\|`]/g, 49 | function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==A&&!a.frameElement)a=A;var e,j;if(d.handler){e=d;d=e.handler}if(!d.guid)d.guid=c.guid++;if(j=c.data(a)){var i=j.events=j.events||{},o=j.handle;if(!o)j.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,arguments):w};o.elem=a;b=b.split(" ");for(var k,n=0,r;k=b[n++];){j=e?c.extend({},e):{handler:d,data:f};if(k.indexOf(".")>-1){r=k.split("."); 50 | k=r.shift();j.namespace=r.slice(0).sort().join(".")}else{r=[];j.namespace=""}j.type=k;j.guid=d.guid;var u=i[k],z=c.event.special[k]||{};if(!u){u=i[k]=[];if(!z.setup||z.setup.call(a,f,r,o)===false)if(a.addEventListener)a.addEventListener(k,o,false);else a.attachEvent&&a.attachEvent("on"+k,o)}if(z.add){z.add.call(a,j);if(!j.handler.guid)j.handler.guid=d.guid}u.push(j);c.event.global[k]=true}a=null}}},global:{},remove:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){var e,j=0,i,o,k,n,r,u,z=c.data(a), 51 | C=z&&z.events;if(z&&C){if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(e in C)c.event.remove(a,e+b)}else{for(b=b.split(" ");e=b[j++];){n=e;i=e.indexOf(".")<0;o=[];if(!i){o=e.split(".");e=o.shift();k=new RegExp("(^|\\.)"+c.map(o.slice(0).sort(),db).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(r=C[e])if(d){n=c.event.special[e]||{};for(B=f||0;B=0){a.type= 53 | e=e.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[e]&&c.each(c.cache,function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return w;a.result=w;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(f=c.data(d,"handle"))&&f.apply(d,b);f=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+e]&&d["on"+e].apply(d,b)===false)a.result=false}catch(j){}if(!a.isPropagationStopped()&& 54 | f)c.event.trigger(a,b,f,true);else if(!a.isDefaultPrevented()){f=a.target;var i,o=c.nodeName(f,"a")&&e==="click",k=c.event.special[e]||{};if((!k._default||k._default.call(d,a)===false)&&!o&&!(f&&f.nodeName&&c.noData[f.nodeName.toLowerCase()])){try{if(f[e]){if(i=f["on"+e])f["on"+e]=null;c.event.triggered=true;f[e]()}}catch(n){}if(i)f["on"+e]=i;c.event.triggered=false}}},handle:function(a){var b,d,f,e;a=arguments[0]=c.event.fix(a||A.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive; 55 | if(!b){d=a.type.split(".");a.type=d.shift();f=new RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}e=c.data(this,"events");d=e[a.type];if(e&&d){d=d.slice(0);e=0;for(var j=d.length;e-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},fa=function(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Fa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data", 63 | e);if(!(f===w||e===f))if(f!=null||e){a.type="change";return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:fa,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return fa.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return fa.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a, 64 | "_change_data",Fa(a))}},setup:function(){if(this.type==="file")return false;for(var a in ea)c.event.add(this,a+".specialChange",ea[a]);return da.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return da.test(this.nodeName)}};ea=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c.event.special[b]={setup:function(){this.addEventListener(a, 65 | d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){e=f;f=w}var i=b==="one"?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments)}):e;if(d==="unload"&&b!=="one")this.one(d,f,e);else{j=0;for(var o=this.length;j0){y=t;break}}t=t[g]}m[q]=y}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g, 71 | e=0,j=Object.prototype.toString,i=false,o=true;[0,0].sort(function(){o=false;return 0});var k=function(g,h,l,m){l=l||[];var q=h=h||s;if(h.nodeType!==1&&h.nodeType!==9)return[];if(!g||typeof g!=="string")return l;for(var p=[],v,t,y,S,H=true,M=x(h),I=g;(f.exec(""),v=f.exec(I))!==null;){I=v[3];p.push(v[1]);if(v[2]){S=v[3];break}}if(p.length>1&&r.exec(g))if(p.length===2&&n.relative[p[0]])t=ga(p[0]+p[1],h);else for(t=n.relative[p[0]]?[h]:k(p.shift(),h);p.length;){g=p.shift();if(n.relative[g])g+=p.shift(); 72 | t=ga(g,t)}else{if(!m&&p.length>1&&h.nodeType===9&&!M&&n.match.ID.test(p[0])&&!n.match.ID.test(p[p.length-1])){v=k.find(p.shift(),h,M);h=v.expr?k.filter(v.expr,v.set)[0]:v.set[0]}if(h){v=m?{expr:p.pop(),set:z(m)}:k.find(p.pop(),p.length===1&&(p[0]==="~"||p[0]==="+")&&h.parentNode?h.parentNode:h,M);t=v.expr?k.filter(v.expr,v.set):v.set;if(p.length>0)y=z(t);else H=false;for(;p.length;){var D=p.pop();v=D;if(n.relative[D])v=p.pop();else D="";if(v==null)v=h;n.relative[D](y,v,M)}}else y=[]}y||(y=t);y||k.error(D|| 73 | g);if(j.call(y)==="[object Array]")if(H)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g])))l.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&l.push(t[g]);else l.push.apply(l,y);else z(y,l);if(S){k(S,q,l,m);k.uniqueSort(l)}return l};k.uniqueSort=function(g){if(B){i=o;g.sort(B);if(i)for(var h=1;h":function(g,h){var l=typeof h==="string";if(l&&!/\W/.test(h)){h=h.toLowerCase();for(var m=0,q=g.length;m=0))l||m.push(v);else if(l)h[p]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()}, 80 | CHILD:function(g){if(g[1]==="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,l,m,q,p){h=g[1].replace(/\\/g,"");if(!p&&n.attrMap[h])g[1]=n.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,l,m,q){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,h);else{g=k.filter(g[3],h,l,true^q);l||m.push.apply(m, 81 | g);return false}else if(n.match.POS.test(g[0])||n.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,h,l){return!!k(l[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)}, 82 | text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}}, 83 | setFilters:{first:function(g,h){return h===0},last:function(g,h,l,m){return h===m.length-1},even:function(g,h){return h%2===0},odd:function(g,h){return h%2===1},lt:function(g,h,l){return hl[3]-0},nth:function(g,h,l){return l[3]-0===h},eq:function(g,h,l){return l[3]-0===h}},filter:{PSEUDO:function(g,h,l,m){var q=h[1],p=n.filters[q];if(p)return p(g,l,h,m);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h= 84 | h[3];l=0;for(m=h.length;l=0}},ID:function(g,h){return g.nodeType===1&&g.getAttribute("id")===h},TAG:function(g,h){return h==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===h},CLASS:function(g,h){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(h)>-1},ATTR:function(g,h){var l=h[1];g=n.attrHandle[l]?n.attrHandle[l](g):g[l]!=null?g[l]:g.getAttribute(l);l=g+"";var m=h[2];h=h[4];return g==null?m==="!=":m=== 86 | "="?l===h:m==="*="?l.indexOf(h)>=0:m==="~="?(" "+l+" ").indexOf(h)>=0:!h?l&&g!==false:m==="!="?l!==h:m==="^="?l.indexOf(h)===0:m==="$="?l.substr(l.length-h.length)===h:m==="|="?l===h||l.substr(0,h.length+1)===h+"-":false},POS:function(g,h,l,m){var q=n.setFilters[h[2]];if(q)return q(g,l,h,m)}}},r=n.match.POS;for(var u in n.match){n.match[u]=new RegExp(n.match[u].source+/(?![^\[]*\])(?![^\(]*\))/.source);n.leftMatch[u]=new RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[u].source.replace(/\\(\d+)/g,function(g, 87 | h){return"\\"+(h-0+1)}))}var z=function(g,h){g=Array.prototype.slice.call(g,0);if(h){h.push.apply(h,g);return h}return g};try{Array.prototype.slice.call(s.documentElement.childNodes,0)}catch(C){z=function(g,h){h=h||[];if(j.call(g)==="[object Array]")Array.prototype.push.apply(h,g);else if(typeof g.length==="number")for(var l=0,m=g.length;l";var l=s.documentElement;l.insertBefore(g,l.firstChild);if(s.getElementById(h)){n.find.ID=function(m,q,p){if(typeof q.getElementById!=="undefined"&&!p)return(q=q.getElementById(m[1]))?q.id===m[1]||typeof q.getAttributeNode!=="undefined"&& 90 | q.getAttributeNode("id").nodeValue===m[1]?[q]:w:[]};n.filter.ID=function(m,q){var p=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&p&&p.nodeValue===q}}l.removeChild(g);l=g=null})();(function(){var g=s.createElement("div");g.appendChild(s.createComment(""));if(g.getElementsByTagName("*").length>0)n.find.TAG=function(h,l){l=l.getElementsByTagName(h[1]);if(h[1]==="*"){h=[];for(var m=0;l[m];m++)l[m].nodeType===1&&h.push(l[m]);l=h}return l};g.innerHTML=""; 91 | if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(h){return h.getAttribute("href",2)};g=null})();s.querySelectorAll&&function(){var g=k,h=s.createElement("div");h.innerHTML="

";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){k=function(m,q,p,v){q=q||s;if(!v&&q.nodeType===9&&!x(q))try{return z(q.querySelectorAll(m),p)}catch(t){}return g(m,q,p,v)};for(var l in g)k[l]=g[l];h=null}}(); 92 | (function(){var g=s.createElement("div");g.innerHTML="
";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){n.order.splice(1,0,"CLASS");n.find.CLASS=function(h,l,m){if(typeof l.getElementsByClassName!=="undefined"&&!m)return l.getElementsByClassName(h[1])};g=null}}})();var E=s.compareDocumentPosition?function(g,h){return!!(g.compareDocumentPosition(h)&16)}: 93 | function(g,h){return g!==h&&(g.contains?g.contains(h):true)},x=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},ga=function(g,h){var l=[],m="",q;for(h=h.nodeType?[h]:h;q=n.match.PSEUDO.exec(g);){m+=q[0];g=g.replace(n.match.PSEUDO,"")}g=n.relative[g]?g+"*":g;q=0;for(var p=h.length;q=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f0)for(var j=d;j0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,j= 96 | {},i;if(f&&a.length){e=0;for(var o=a.length;e-1:c(f).is(e)){d.push({selector:i,elem:f});delete j[i]}}f=f.parentNode}}return d}var k=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(n,r){for(;r&&r.ownerDocument&&r!==b;){if(k?k.index(r)>-1:c(r).is(a))return r;r=r.parentNode}return null})},index:function(a){if(!a||typeof a=== 97 | "string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(qa(a[0])||qa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode", 98 | d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")? 99 | a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);eb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||gb.test(f))&&fb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||a.nodeType!==1||!c(a).is(d));){a.nodeType=== 100 | 1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ja=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ka=/(<([\w:]+)[^>]*?)\/>/g,hb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,La=/<([\w:]+)/,ib=/"},F={option:[1,""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]};F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!c.support.htmlSerialize)F._default=[1,"div
","
"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d= 102 | c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==w)return this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this}, 103 | wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})}, 104 | prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b, 105 | this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,f;(f=this[d])!=null;d++)if(!a||c.filter(a,[f]).length){if(!b&&f.nodeType===1){c.cleanData(f.getElementsByTagName("*"));c.cleanData([f])}f.parentNode&&f.parentNode.removeChild(f)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild); 106 | return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ja,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(V,"")],f)[0]}else return this.cloneNode(true)});if(a===true){ra(this,b);ra(this.find("*"),b.find("*"))}return b},html:function(a){if(a===w)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ja, 107 | ""):null;else if(typeof a==="string"&&!ta.test(a)&&(c.support.leadingWhitespace||!V.test(a))&&!F[(La.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ka,Ma);try{for(var b=0,d=this.length;b0||e.cacheable||this.length>1?k.cloneNode(true):k)}o.length&&c.each(o,Qa)}return this}});c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var f=[];d=c(d);var e=this.length===1&&this[0].parentNode;if(e&&e.nodeType===11&&e.childNodes.length===1&&d.length===1){d[b](this[0]); 111 | return this}else{e=0;for(var j=d.length;e0?this.clone(true):this).get();c.fn[b].apply(c(d[e]),i);f=f.concat(i)}return this.pushStack(f,a,d.selector)}}});c.extend({clean:function(a,b,d,f){b=b||s;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||s;for(var e=[],j=0,i;(i=a[j])!=null;j++){if(typeof i==="number")i+="";if(i){if(typeof i==="string"&&!jb.test(i))i=b.createTextNode(i);else if(typeof i==="string"){i=i.replace(Ka,Ma);var o=(La.exec(i)||["", 112 | ""])[1].toLowerCase(),k=F[o]||F._default,n=k[0],r=b.createElement("div");for(r.innerHTML=k[1]+i+k[2];n--;)r=r.lastChild;if(!c.support.tbody){n=ib.test(i);o=o==="table"&&!n?r.firstChild&&r.firstChild.childNodes:k[1]===""&&!n?r.childNodes:[];for(k=o.length-1;k>=0;--k)c.nodeName(o[k],"tbody")&&!o[k].childNodes.length&&o[k].parentNode.removeChild(o[k])}!c.support.leadingWhitespace&&V.test(i)&&r.insertBefore(b.createTextNode(V.exec(i)[0]),r.firstChild);i=r.childNodes}if(i.nodeType)e.push(i);else e= 113 | c.merge(e,i)}}if(d)for(j=0;e[j];j++)if(f&&c.nodeName(e[j],"script")&&(!e[j].type||e[j].type.toLowerCase()==="text/javascript"))f.push(e[j].parentNode?e[j].parentNode.removeChild(e[j]):e[j]);else{e[j].nodeType===1&&e.splice.apply(e,[j+1,0].concat(c.makeArray(e[j].getElementsByTagName("script"))));d.appendChild(e[j])}return e},cleanData:function(a){for(var b,d,f=c.cache,e=c.event.special,j=c.support.deleteExpando,i=0,o;(o=a[i])!=null;i++)if(d=o[c.expando]){b=f[d];if(b.events)for(var k in b.events)e[k]? 114 | c.event.remove(o,k):Ca(o,k,b.handle);if(j)delete o[c.expando];else o.removeAttribute&&o.removeAttribute(c.expando);delete f[d]}}});var kb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Na=/alpha\([^)]*\)/,Oa=/opacity=([^)]*)/,ha=/float/i,ia=/-([a-z])/ig,lb=/([A-Z])/g,mb=/^-?\d+(?:px)?$/i,nb=/^-?\d/,ob={position:"absolute",visibility:"hidden",display:"block"},pb=["Left","Right"],qb=["Top","Bottom"],rb=s.defaultView&&s.defaultView.getComputedStyle,Pa=c.support.cssFloat?"cssFloat":"styleFloat",ja= 115 | function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return X(this,a,b,true,function(d,f,e){if(e===w)return c.curCSS(d,f);if(typeof e==="number"&&!kb.test(f))e+="px";c.style(d,f,e)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return w;if((b==="width"||b==="height")&&parseFloat(d)<0)d=w;var f=a.style||a,e=d!==w;if(!c.support.opacity&&b==="opacity"){if(e){f.zoom=1;b=parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")";a=f.filter||c.curCSS(a,"filter")||"";f.filter= 116 | Na.test(a)?a.replace(Na,b):b}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(Oa.exec(f.filter)[1])/100+"":""}if(ha.test(b))b=Pa;b=b.replace(ia,ja);if(e)f[b]=d;return f[b]},css:function(a,b,d,f){if(b==="width"||b==="height"){var e,j=b==="width"?pb:qb;function i(){e=b==="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&c.each(j,function(){f||(e-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(f==="margin")e+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else e-=parseFloat(c.curCSS(a, 117 | "border"+this+"Width",true))||0})}a.offsetWidth!==0?i():c.swap(a,ob,i);return Math.max(0,Math.round(e))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var f,e=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){f=Oa.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return f===""?"1":f}if(ha.test(b))b=Pa;if(!d&&e&&e[b])f=e[b];else if(rb){if(ha.test(b))b="float";b=b.replace(lb,"-$1").toLowerCase();e=a.ownerDocument.defaultView;if(!e)return null;if(a=e.getComputedStyle(a,null))f= 118 | a.getPropertyValue(b);if(b==="opacity"&&f==="")f="1"}else if(a.currentStyle){d=b.replace(ia,ja);f=a.currentStyle[b]||a.currentStyle[d];if(!mb.test(f)&&nb.test(f)){b=e.left;var j=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;e.left=d==="fontSize"?"1em":f||0;f=e.pixelLeft+"px";e.left=b;a.runtimeStyle.left=j}}return f},swap:function(a,b,d){var f={};for(var e in b){f[e]=a.style[e];a.style[e]=b[e]}d.call(a);for(e in b)a.style[e]=f[e]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b= 119 | a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!f?true:b>0&&d>0&&!f?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var sb=J(),tb=//gi,ub=/select|textarea/i,vb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,N=/=\?(&|$)/,ka=/\?/,wb=/(\?|&)_=.*?(&|$)/,xb=/^(\w+:)?\/\/([^\/?#]+)/,yb=/%20/g,zb=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!== 120 | "string")return zb.call(this,a);else if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var e=a.slice(f,a.length);a=a.slice(0,f)}f="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);f="POST"}var j=this;c.ajax({url:a,type:f,dataType:"html",data:b,complete:function(i,o){if(o==="success"||o==="notmodified")j.html(e?c("
").append(i.responseText.replace(tb,"")).find(e):i.responseText);d&&j.each(d,[i.responseText,o,i])}});return this}, 121 | serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ub.test(this.nodeName)||vb.test(this.type))}).map(function(a,b){a=c(this).val();return a==null?null:c.isArray(a)?c.map(a,function(d){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "), 122 | function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:f})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:f})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href, 123 | global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:A.XMLHttpRequest&&(A.location.protocol!=="file:"||!A.ActiveXObject)?function(){return new A.XMLHttpRequest}:function(){try{return new A.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(a){function b(){e.success&& 124 | e.success.call(k,o,i,x);e.global&&f("ajaxSuccess",[x,e])}function d(){e.complete&&e.complete.call(k,x,i);e.global&&f("ajaxComplete",[x,e]);e.global&&!--c.active&&c.event.trigger("ajaxStop")}function f(q,p){(e.context?c(e.context):c.event).trigger(q,p)}var e=c.extend(true,{},c.ajaxSettings,a),j,i,o,k=a&&a.context||e,n=e.type.toUpperCase();if(e.data&&e.processData&&typeof e.data!=="string")e.data=c.param(e.data,e.traditional);if(e.dataType==="jsonp"){if(n==="GET")N.test(e.url)||(e.url+=(ka.test(e.url)? 125 | "&":"?")+(e.jsonp||"callback")+"=?");else if(!e.data||!N.test(e.data))e.data=(e.data?e.data+"&":"")+(e.jsonp||"callback")+"=?";e.dataType="json"}if(e.dataType==="json"&&(e.data&&N.test(e.data)||N.test(e.url))){j=e.jsonpCallback||"jsonp"+sb++;if(e.data)e.data=(e.data+"").replace(N,"="+j+"$1");e.url=e.url.replace(N,"="+j+"$1");e.dataType="script";A[j]=A[j]||function(q){o=q;b();d();A[j]=w;try{delete A[j]}catch(p){}z&&z.removeChild(C)}}if(e.dataType==="script"&&e.cache===null)e.cache=false;if(e.cache=== 126 | false&&n==="GET"){var r=J(),u=e.url.replace(wb,"$1_="+r+"$2");e.url=u+(u===e.url?(ka.test(e.url)?"&":"?")+"_="+r:"")}if(e.data&&n==="GET")e.url+=(ka.test(e.url)?"&":"?")+e.data;e.global&&!c.active++&&c.event.trigger("ajaxStart");r=(r=xb.exec(e.url))&&(r[1]&&r[1]!==location.protocol||r[2]!==location.host);if(e.dataType==="script"&&n==="GET"&&r){var z=s.getElementsByTagName("head")[0]||s.documentElement,C=s.createElement("script");C.src=e.url;if(e.scriptCharset)C.charset=e.scriptCharset;if(!j){var B= 127 | false;C.onload=C.onreadystatechange=function(){if(!B&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){B=true;b();d();C.onload=C.onreadystatechange=null;z&&C.parentNode&&z.removeChild(C)}}}z.insertBefore(C,z.firstChild);return w}var E=false,x=e.xhr();if(x){e.username?x.open(n,e.url,e.async,e.username,e.password):x.open(n,e.url,e.async);try{if(e.data||a&&a.contentType)x.setRequestHeader("Content-Type",e.contentType);if(e.ifModified){c.lastModified[e.url]&&x.setRequestHeader("If-Modified-Since", 128 | c.lastModified[e.url]);c.etag[e.url]&&x.setRequestHeader("If-None-Match",c.etag[e.url])}r||x.setRequestHeader("X-Requested-With","XMLHttpRequest");x.setRequestHeader("Accept",e.dataType&&e.accepts[e.dataType]?e.accepts[e.dataType]+", */*":e.accepts._default)}catch(ga){}if(e.beforeSend&&e.beforeSend.call(k,x,e)===false){e.global&&!--c.active&&c.event.trigger("ajaxStop");x.abort();return false}e.global&&f("ajaxSend",[x,e]);var g=x.onreadystatechange=function(q){if(!x||x.readyState===0||q==="abort"){E|| 129 | d();E=true;if(x)x.onreadystatechange=c.noop}else if(!E&&x&&(x.readyState===4||q==="timeout")){E=true;x.onreadystatechange=c.noop;i=q==="timeout"?"timeout":!c.httpSuccess(x)?"error":e.ifModified&&c.httpNotModified(x,e.url)?"notmodified":"success";var p;if(i==="success")try{o=c.httpData(x,e.dataType,e)}catch(v){i="parsererror";p=v}if(i==="success"||i==="notmodified")j||b();else c.handleError(e,x,i,p);d();q==="timeout"&&x.abort();if(e.async)x=null}};try{var h=x.abort;x.abort=function(){x&&h.call(x); 130 | g("abort")}}catch(l){}e.async&&e.timeout>0&&setTimeout(function(){x&&!E&&g("timeout")},e.timeout);try{x.send(n==="POST"||n==="PUT"||n==="DELETE"?e.data:null)}catch(m){c.handleError(e,x,null,m);d()}e.async||g();return x}},handleError:function(a,b,d,f){if(a.error)a.error.call(a.context||a,b,d,f);if(a.global)(a.context?c(a.context):c.event).trigger("ajaxError",[b,a,f])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status=== 131 | 1223||a.status===0}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),f=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(f)c.etag[b]=f;return a.status===304||a.status===0},httpData:function(a,b,d){var f=a.getResponseHeader("content-type")||"",e=b==="xml"||!b&&f.indexOf("xml")>=0;a=e?a.responseXML:a.responseText;e&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b=== 132 | "json"||!b&&f.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&f.indexOf("javascript")>=0)c.globalEval(a);return a},param:function(a,b){function d(i,o){if(c.isArray(o))c.each(o,function(k,n){b||/\[\]$/.test(i)?f(i,n):d(i+"["+(typeof n==="object"||c.isArray(n)?k:"")+"]",n)});else!b&&o!=null&&typeof o==="object"?c.each(o,function(k,n){d(i+"["+k+"]",n)}):f(i,o)}function f(i,o){o=c.isFunction(o)?o():o;e[e.length]=encodeURIComponent(i)+"="+encodeURIComponent(o)}var e=[];if(b===w)b=c.ajaxSettings.traditional; 133 | if(c.isArray(a)||a.jquery)c.each(a,function(){f(this.name,this.value)});else for(var j in a)d(j,a[j]);return e.join("&").replace(yb,"+")}});var la={},Ab=/toggle|show|hide/,Bb=/^([+-]=)?([\d+-.]+)(.*)$/,W,va=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a||a===0)return this.animate(K("show",3),a,b);else{a=0;for(b=this.length;a").appendTo("body");f=e.css("display");if(f==="none")f="block";e.remove();la[d]=f}c.data(this[a],"olddisplay",f)}}a=0;for(b=this.length;a=0;f--)if(d[f].elem===this){b&&d[f](true);d.splice(f,1)}});b||this.dequeue();return this}});c.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(d,f){return this.animate(b,d,f)}});c.extend({speed:function(a,b,d){var f=a&&typeof a==="object"?a:{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};f.duration=c.fx.off?0:typeof f.duration=== 139 | "number"?f.duration:c.fx.speeds[f.duration]||c.fx.speeds._default;f.old=f.complete;f.complete=function(){f.queue!==false&&c(this).dequeue();c.isFunction(f.old)&&f.old.call(this)};return f},easing:{linear:function(a,b,d,f){return d+f*a},swing:function(a,b,d,f){return(-Math.cos(a*Math.PI)/2+0.5)*f+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]|| 140 | c.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function f(j){return e.step(j)}this.startTime=J();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start; 141 | this.pos=this.state=0;var e=this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!W)W=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=J(),d=true;if(a||b>=this.options.duration+this.startTime){this.now= 142 | this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var f in this.options.curAnim)if(this.options.curAnim[f]!==true)d=false;if(d){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=c.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var e in this.options.curAnim)c.style(this.elem, 143 | e,this.options.orig[e]);this.options.complete.call(this.elem)}return false}else{e=b-this.startTime;this.state=e/this.options.duration;a=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b
"; 149 | a.insertBefore(b,a.firstChild);d=b.firstChild;f=d.firstChild;e=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==5;this.doesAddBorderForTableAndCells=e.offsetTop===5;f.style.position="fixed";f.style.top="20px";this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15;f.style.position=f.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==j;a.removeChild(b); 150 | c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,"marginTop",true))||0;d+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(c.curCSS(a,"position")))a.style.position="relative";var f=c(a),e=f.offset(),j=parseInt(c.curCSS(a,"top",true),10)||0,i=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b))b=b.call(a, 151 | d,e);d={top:b.top-e.top+j,left:b.left-e.left+i};"using"in b?b.using.call(a,d):f.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",true))||0;f.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;f.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:d.top- 152 | f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||s.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(f){var e=this[0],j;if(!e)return null;if(f!==w)return this.each(function(){if(j=wa(this))j.scrollTo(!a?f:c(j).scrollLeft(),a?f:c(j).scrollTop());else this[d]=f});else return(j=wa(e))?"pageXOffset"in j?j[a?"pageYOffset": 153 | "pageXOffset"]:c.support.boxModel&&j.document.documentElement[d]||j.document.body[d]:e[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],d,false,"padding"):null};c.fn["outer"+b]=function(f){return this[0]?c.css(this[0],d,false,f?"margin":"border"):null};c.fn[d]=function(f){var e=this[0];if(!e)return f==null?null:this;if(c.isFunction(f))return this.each(function(j){var i=c(this);i[d](f.call(this,j,i[d]()))});return"scrollTo"in 154 | e&&e.document?e.document.compatMode==="CSS1Compat"&&e.document.documentElement["client"+b]||e.document.body["client"+b]:e.nodeType===9?Math.max(e.documentElement["client"+b],e.body["scroll"+b],e.documentElement["scroll"+b],e.body["offset"+b],e.documentElement["offset"+b]):f===w?c.css(e,d):this.css(d,typeof f==="string"?f:f+"px")}});A.jQuery=A.$=c})(window); 155 | --------------------------------------------------------------------------------