Thank you to anyone who has already donated - your generous donations helped make three months of treatment possible.
My brother Nate continues to fight stage IV Hodgkin's lymphoma. He's just 31, with a wife and baby girl. They have no active income (since he's been unable to return to work), no insurance, and cannot afford the treatment he needs. Nate and his family need your help. Please consider a donation, every dollar helps. Thanks.
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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 |
jQuerynoConflict; jQuerydocumentreadyfunction // activates the lightbox page, if you are using a dark color scheme use another theme parameter my_lightbox"a[rel^='prettyPhoto'], a[rel^='lightbox']"; //k_form(); //controls the contact form k_menu; // controls the dropdown menu k_pixelperfect; // accordion slider jQuery"#featured"not'.fadeslider, .newsslider'kricordion slides: '.featured'// wich element inside the container should serve as slide animationSpeed: 900// animation duration in milliseconds autorotation: true// autorotation true or false? autorotationSpeed:5// duration between autorotation switch in Seconds event: 'mouseover'// event to focus a slide: mouseover or click imageShadow:true// should the image get a drop shadow to the left imageShadowStrength:0.5 // how dark should that shadow be, recommended values: between 0.3 and 0.8, allowed between 0 and 1 ; // fading slider jQuery'.fadeslider'kriesi_fade_slider slides: '.featured'// wich element inside the container should serve as slide animationSpeed: 900// animation duration in milliseconds autorotation: true// autorotation true or false? autorotationSpeed:5// duration between autorotation switch in Seconds appendControlls: '#feature_wrap' //element to append the controlls to ; // news slider jQuery'.newsslider'kriesi_news_slider slides: '.featured'// wich element inside the container should serve as slide animationSpeed: 900// animation duration in milliseconds autorotation: true// autorotation true or false? autorotationSpeed:5 // duration between autorotation switch in Seconds ; jQuery'.ajax_form'kriesi_ajax_form; // activates contact form jQuery'.news_form'kriesi_ajax_form; // activates news submit form jQuery'#main'kriesi_image_preloaderdelay:200; // activates preloader for non-slideshow images jQuery'input:text'kriesi_empty_input; // comment form improvement ; // ------------------------------------------------------------------------------------------- // input field improvements // ------------------------------------------------------------------------------------------- function$ return thiseachfunction var currentField = $this; currentFieldmethods = startingValue: currentFieldval var currentValue = currentFieldval; ifcurrentFieldmethodsstartingValue == currentValue currentFieldval''; var currentValue = currentFieldval; ifcurrentValue == '' currentFieldvalcurrentFieldmethodsstartingValue; ; currentFieldbind'focus'currentFieldmethodsresetValue; currentFieldbind'blur'currentFieldmethodsrestoreValue; ; jQuery; // ------------------------------------------------------------------------------------------- // The Image preloader // ------------------------------------------------------------------------------------------- function$ var defaults = fadeInSpeed: 600 maxLoops: 10 callback: '' delay:500 ; var options = $extenddefaultsvariables; return thiseachfunction var container = $this images = $'img'thiscssopacity:0visibility:'visible'display:'block' parent = imagesparent imageCount = imageslength interval = '' allImages = images ; var methods = imageseachfunctioni ifthiscomplete == true images = imagesnotthis; ; ifimageslength && optionsmaxLoops >= 0 optionsmaxLoops--; setTimeoutmethodscheckImage500; else methodsshowImages; allImageseachfunctioni var currentImage = $this; setTimeoutfunction currentImageanimateopacity:1optionsfadeInSpeedfunction ifallImageslength == i+1 methodscallbacki; ; optionsdelay*i+1; ; if variables instanceof Function callback = variables; if callback instanceof Function callbackcallthis; ifoptionscallback != '' optionscallback; ; methodscheckImage; ; ; jQuery; // ------------------------------------------------------------------------------------------- // The Fade Slider // ------------------------------------------------------------------------------------------- function$ var defaults = slides: '>div'// wich element inside the container should serve as slide animationSpeed: 900// animation duration autorotation: true// autorotation true or false? autorotationSpeed:3// duration between autorotation switch in Seconds appendControlls: '' backgroundOpacity:0.8 // opacity for background ; var options = $extenddefaultsoptions; return thiseachfunction var slideWrapper = $this slides = slideWrapperfindoptionsslidescssdisplay:'none'zIndex:0 slideCount = slideslength currentSlideNumber = 0 interval current_class = 'active_item' controlls = '' skipSwitch = true; slidesfind'.feature_excerpt'css'opacity'optionsbackgroundOpacity; slideWrappermethods = slidesfilter':eq(0)'csszIndex:2display:'block'; ifslideCount <= 1 slideWrapperkriesi_image_preloaderdelay:200; else slideWrapperkriesi_image_preloadercallback:slideWrappermethodspreloadingDonedelay:200; if optionsappendControlls controlls = $'<div></div>'addClass'slidecontrolls'cssposition:'absolute'appendTooptionsappendControlls; slideseachfunctioni var controller = $'<span class="ie6fix '+current_class+'"></span>'appendTocontrolls; controllerbind'click'currentSlideNumber: islideWrappermethodsswitchSlide; current_class = ""; ; skipSwitch = false; ifoptionsautorotation slideWrappermethodsautorotate; var noAction = false; ifpassed != undefined && !skipSwitch ifcurrentSlideNumber != passeddatacurrentSlideNumber currentSlideNumber = passeddatacurrentSlideNumber; else noAction = true; ifpassed != undefined clearIntervalinterval; if!skipSwitch && noAction == false skipSwitch = true; var currentSlide = slidesfilter':visible' nextSlide = slidesfilter':eq('+currentSlideNumber+')'; ifoptionsappendControlls controllsfind'.active_item'removeClass'active_item'; controllsfind'span:eq('+currentSlideNumber+')'addClass'active_item'; currentSlidecsszIndex:4; nextSlidecsszIndex:2display:'block'; currentSlidefadeOutoptionsanimationSpeedfunction currentSlidecsszIndex:0display:"none"; skipSwitch = false; ; interval = setIntervalfunction currentSlideNumber ++; ifcurrentSlideNumber == slideCount currentSlideNumber = 0; slideWrappermethodsswitchSlide; parseIntoptionsautorotationSpeed * 1000; ; slideWrappermethodsinit; ; jQuery; // ------------------------------------------------------------------------------------------- // The News Slider // ------------------------------------------------------------------------------------------- function$ var defaults = slides: '>div'// wich element inside the container should serve as slide animationSpeed: 900// animation duration autorotation: true// autorotation true or false? autorotationSpeed:3// duration between autorotation switch in Seconds easing: 'easeOutQuint' backgroundOpacity:0.8 // opacity for background ; var options = $extenddefaultsoptions; return thiseachfunction var slideWrapper = $this slides = slideWrapperfindoptionsslidescssdisplay:'none'zIndex:0 slideCount = slideslength accelerator = 0// accelerator of scrolling speed scrollInterval = ''// var that stores the setInterval id mousePos = ''// current mouse position moving = false// scrollbar currently moving or not? controllWindowHeight = 0// height of the wrapping element that hides overflow controllWindowPart = 0// mouseoverpart of the wrapping element that hides overflow itemWindowHeight = 0// height of element to move current_class = 'active_item' skipSwitch = true currentSlideNumber = 0 newsSelect ='' newsItems = ''; slidesfind'.feature_excerpt'css'opacity'optionsbackgroundOpacity; slideWrappermethods = newsSelect = $'<div></div>'addClass'newsselect'appendToslideWrapper; newsItems = $'<div></div>'addClass'newsItems'appendTonewsSelect; fadeout = $'<div></div>'addClass'fadeout'addClass'ie6fix'appendToslideWrapper; slidesfilter':eq(0)'csszIndex:2display:'block'; slideseachfunctioni var slide = $this url = slidefind'a'attr'href' controll = $'<a class="single_item '+current_class+'"></a>'appendTonewsItemsattr'href'url; current_class =''; slidefind'.feature_excerpt .sliderheading, .feature_excerpt .sliderdate'cloneappendTocontroll; controllbind'click'currentSlideNumber: islideWrappermethodsswitchSlide; ; controllWindowHeight = newsSelectheight; controllWindowPart = controllWindowHeight/3; itemWindowHeight = newsItemsheight; ifslideCount > 1 slideWrapperkriesi_image_preloaderdelay:200; slideWrappermethodspreloadingDone; skipSwitch = false; var offset = newsSelectoffset; newsSelectmousemovefunctione mousePos = epageY - offsettop; if!moving scrollInterval = setIntervalfunction slideWrappermethodsscrollItemmousePos; 25; moving = true; ; newsSelectbind'mouseleave'function clearIntervalscrollInterval; moving = false; accelerator = 0; ; var movement = 0 percent = controllWindowPart / 100 modifier = 10 currentTop = parseIntnewsItemscss'top'; accelerator = accelerator <= 2 ? accelerator + 0.5 : accelerator; ifmousePos < controllWindowPart movement = controllWindowPart - mousePos / percent * accelerator; newPos = currentTop + movement/modifier; ifcurrentTop < 0 if newPos > 0 newPos = 0; newsItemscsstop:newPos + "px"; else ifmousePos > controllWindowPart * 2 movement = mousePos - controllWindowPart * 2 / percent * accelerator; newPos = currentTop + movement/modifier * -1; ifcurrentTop * -1 < itemWindowHeight - controllWindowHeight if newPos * -1 > itemWindowHeight - controllWindowHeight newPos = controllWindowHeight - itemWindowHeight; newsItemscsstop:newPos + "px"; else accelerator = 0; var noAction = false; ifpassed != undefined && !skipSwitch ifcurrentSlideNumber != passeddatacurrentSlideNumber currentSlideNumber = passeddatacurrentSlideNumber; else noAction = true; ifpassed != undefined // clearInterval(interval); if!skipSwitch && noAction == false skipSwitch = true; var currentSlide = slidesfilter':visible' nextSlide = slidesfilter':eq('+currentSlideNumber+')'; newsSelectfind'.active_item'removeClass'active_item'; newsSelectfind'a:eq('+currentSlideNumber+')'addClass'active_item'; currentSlidecsszIndex:4; nextSlidecsszIndex:2display:'block'; currentSlidefadeOutoptionsanimationSpeedfunction currentSlidecsszIndex:0display:"none"; skipSwitch = false; ; return false; //autorotation not yet supportet ; slideWrappermethodsinit; ; jQuery; // ------------------------------------------------------------------------------------------- // The Main accordion slider - KRICORDION // Dependencies: equalheight function, kriesi_image_preoloader. jquery easing // // ------------------------------------------------------------------------------------------- function$ var defaults = slides: '>div'// wich element inside the container should serve as slide animationSpeed: 900// animation duration autorotation: true// autorotation true or false? autorotationSpeed:3// duration between autorotation switch in Seconds easing: 'easeOutQuint'// animation easing, more options at the bottom of this file event: 'mouseover'// event to focus a slide: mouseover or click imageShadow:true// should the image get a drop shadow to the left imageShadowStrength:0.5// how dark should that shadow be, recommended values: between 0.3 and 0.8, allowed between 0 and 1 fontOpacity: 1// opacity for font, if set to 1 it will be stronger but most browsers got a small rendering glitch at 1 backgroundOpacity:0.8 // opacity for background ; // merge default values with the values that were passed with the function call var options = $extenddefaultsoptions; return thiseachfunction // save some jQuery selections into variables, also calculate base values for each slide var slideWrapper = $this// element that holds the slides slides = slideWrapperfindoptionsslidescss'display''block'// the slides slide_count = slideslength// number of slides slide_width = slideWrapperwidth / slide_count // width of the slides expand_slide = slideswidth// size of a slide when expanded, defined in css, class ".featured" by default minimized_slide = slideWrapperwidth - expand_slide / slide_count - 1// remaining width is shared among the non-active slides overlay_modifier = 200 *1- optionsimageShadowStrength//increases the size of the minimized image div to avoid flickering excerptWrapper = slideWrapperfind'.feature_excerpt' interval = '' current_slide = 0; //modify excerptWrapper and re-select it, also add positioning span ------------------------- excerptWrapperwrap'<span class="feature_excerpt"></span>'removeClass'feature_excerpt'addClass'position_excerpt'; excerptWrapper = slideWrapperfind'.feature_excerpt'css'opacity'optionsbackgroundOpacity; // ------------------------------------------------------------------------------------------- //equal heights for all excerpt containers, then hide basic excerpt content ----------------- excerptWrapperequalHeightsfind'.position_excerpt'cssdisplay:'block'opacity:0position:'absolute'; var excerptWrapperHeight = excerptWrapperheight; // ------------------------------------------------------------------------------------------- //iterate each slide and set new base values, also set positions for acitve and inactive states and event handlers slideseachfunctioni var this_slide = $this// current slide element this_slide_a = this_slidefind'a'// a tag inside the element real_excerpt = this_slidefind'.position_excerpt'// wrapper to center the excerpt content verticaly real_excerpt_height = real_excerptheight// height of the excerpt content slide_heading =this_slidefind'.sliderheading'// slide heading cloned_heading = slide_headingcloneappendTothis_slide_a // clone heading for heading only view addClass'heading_clone' cssopacity:optionsfontOpacitywidth:slide_width-30 clone_height = cloned_headingheight; // height of clone heading, needed to center verticaly as well this_slidecss'backgroundPosition'parseIntslide_width/2-8 + 'px ' + parseIntthis_slideheight- real_excerpt_height/2 -8 + 'px'; cloned_headingcssbottom: excerptWrapperHeight-clone_height/2 +9; //center clone heading real_excerptcssbottom: excerptWrapperHeight-real_excerpt_height/2 +9; //center real excerpt this_slidedata //save data of each slide via jquerys data method 'data' this_slides_position: i * slide_width// position if no item is active pos_active_higher: i * minimized_slide// position of the item if a higher item is active pos_active_lower: i-1 * minimized_slide + expand_slide // position of the item if a lower item is active ; //set base properties this_slidecsszIndex:i+1left: i * slide_widthwidth:slide_width + overlay_modifier; //apply the fading div if option is set to do so ifoptionsimageShadow this_slidefind'>a'prepend'<span class="fadeout ie6fix"></span>'; ; // calls the preloader, kriesi_image_preloader plugin needed jQuery'#featured'kriesi_image_preloadercallback:add_functionality; //set autorotation --------------------------------------------------------------------------- ifoptionsautorotation interval = setIntervalfunction autorotation; parseIntoptionsautorotationSpeed * 1000; slideseachfunctioni var this_slide = $this real_excerpt = this_slidefind'.position_excerpt' cloned_heading = this_slidefind'.heading_clone'; //set mouseover or click event this_slidebindoptionseventfunctioneventcontinue_autoslide //stop autoslide on userinteraction if!continue_autoslide clearIntervalinterval var objData = this_slidedata 'data' ; //on mouseover expand current slide to full size and fadeIn real content real_excerptstopanimateopacity:optionsfontOpacityoptionsanimationSpeedoptionseasing; cloned_headingstopanimateopacity:0optionsanimationSpeedoptionseasing; this_slidestopanimate width: expand_slide + overlay_modifier * 1.2 left: objDatapos_active_higher optionsanimationSpeedoptionseasing; //set and all other slides to small size slideseachfunctionj if i !== j var this_slide = $this real_excerpt = this_slidefind'.position_excerpt' cloned_heading = this_slidefind'.heading_clone' objData = this_slidedata 'data' new_pos = objDatapos_active_higher; ifi < j new_pos = objDatapos_active_lower; this_slidestopanimateleft: new_poswidth:minimized_slide + overlay_modifieroptionsanimationSpeedoptionseasing; real_excerptstopanimateopacity:0optionsanimationSpeedoptionseasing; cloned_headingstopanimateopacity:optionsfontOpacityoptionsanimationSpeedoptionseasing; ; ; ; //set mouseout event: expand all slides to no-slide-active position and width slideWrapperbind'mouseleave'function slideseachfunctioni var this_slide = $this real_excerpt = this_slidefind'.position_excerpt' cloned_heading = this_slidefind'.heading_clone' objData = this_slidedata 'data' new_pos = objDatathis_slides_position; this_slidestopanimateleft: new_poswidth:slide_width + overlay_modifieroptionsanimationSpeedoptionseasing; real_excerptstopanimateopacity:0optionsanimationSpeedoptionseasing; cloned_headingstopanimateopacity:optionsfontOpacityoptionsanimationSpeedoptionseasing; ; ; // autorotation function for the image slider ifslide_count == current_slide slideWrappertrigger'mouseleave'; current_slide = 0; else slidesfilter':eq('+current_slide+')'triggeroptionseventtrue; current_slide ++; ; ; jQuery; // ------------------------------------------------------------------------------------------- // END KRICORDION // ------------------------------------------------------------------------------------------- // k_menu controlls the dropdown menus and improves them with javascript jQuery".nav a, .catnav a"removeAttr'title'; jQuery" .nav ul, .catnav ul "cssdisplay: "none"; // Opera Fix // remove the last border from category menu item if there are 7 items, that border is not needed ifjQuery".catnav>li"length >= 7 jQuery".catnav>li:last"addClass'noborder'; //set equal height for all category main items, in case a description is too long var mainitem = jQuery".catnav>li>a"; mainitemeachfunction ifjQuerythisheight < 34 jQuerythiscssheight:"34px"; ; mainitemequalHeights; //smooth drop downs jQuery".nav li, .catnav li"eachfunction var $sublist = jQuerythisfind'ul:first'; jQuerythishoverfunction $subliststopcssoverflow:"hidden"height:"auto"display:"none"slideDown400function jQuerythiscssoverflow:"visible"height:"auto"; ; function $subliststopslideUp400function jQuerythiscssoverflow:"hidden"display:"none"; ; ; ; //equalHeights by james padolsey return thisheightMathmaxapplynull thismapfunction return jQuerythisheight get ; ; // sometimes some elements are offset by one or two pixels. // this isnt anything bad but i really like pixel perfection, therefore this function adds some css rules for specific browsers :) ifjQuerybrowsermsie && jQuerybrowserversion < 7 || jQuerybrowseropera jQuery'#headextras #searchsubmit'csstop:"10px"; //same size for sidebars: jQuery'.sidebar'equalHeights; var usedCSS = 1; jQuery'link'eachfunction styleURL = jQuerythisattr'href'; CSSnumber = styleURLmatch/style(\d).css/; ifCSSnumber && CSSnumberlength > 0 usedCSS = CSSnumber1; ; var theme_selected = 'light_rounded'; if usedCSS == 2 || usedCSS == 4 theme_selected = 'dark_rounded'; jQuery$elementsprettyPhoto "theme": theme_selected /* light_rounded / dark_rounded / light_square / dark_square */ ; jQuery$elementseachfunction var $image = jQuerythiscontents"img"; $newclass = 'lightbox_video'; ifjQuerythisattr'href'match/(jpg|gif|jpeg|png|tif)/ $newclass = 'lightbox_image'; if $imagelength > 0 ifjQuerybrowsermsie && jQuerybrowserversion < 7 jQuerythisaddClass'ie6_lightbox'; var $bg = jQuery"<span class='"+$newclass+" ie6fix'></span>"appendTojQuerythis; jQuerythisbind'mouseenter'function $height = $imageheight; $width = $imagewidth; $pos = $imageposition; $bgcssheight:$heightwidth:$widthtop:$postopleft:$posleft; ; ; jQuery$elementscontents"img"hoverfunction jQuerythisstopanimateopacity:0.5400; function jQuerythisstopanimateopacity:1400; ; function$ var defaults = sendPath: 'send.php' responseContainer: '.ajaxresponse' ; var options = $extenddefaultsoptions; return thiseachfunction var form = $this send = formElements: formfind'textarea, select, input:text, input[type=hidden]' validationError:false button : formfind'input:submit' datastring : '' ; sendbuttonbind'click'checkElements; sendbuttonfadeOut300; $ajax type: "POST" url: optionssendPath data:senddatastring var message = $"<div'></div>"addClassoptionsresponseContainer css'display''none' insertBeforeform htmlresponse; formslideUp400functionmessageslideDown400sendformElementsval'';; ; // reset validation var and send data sendvalidationError = false; senddatastring = 'ajax=true'; sendformElementseachfunctioni var currentElement = $this surroundingElement = currentElementparent value = currentElementval name = currentElementattr'name' classes = currentElementattr'class' nomatch = true; senddatastring += "&" + name + "=" + value; ifclassesmatch/is_empty/ ifvalue == '' surroundingElementattr"class"""addClass"error"; sendvalidationError = true; else surroundingElementattr"class"""addClass"valid"; nomatch = false; ifclassesmatch/is_email/ if!valuematch/^\w[\w|\.|\-]+@\w[\w|\.|\-]+\.[a-zA-Z]{2,4}$/ surroundingElementattr"class"""addClass"error"; sendvalidationError = true; else surroundingElementattr"class"""addClass"valid"; nomatch = false; ifnomatch && value != '' surroundingElementattr"class"""addClass"valid"; ; ifsendvalidationError == false send_ajax_form; return false; ; jQuery; /* * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ */ // t: current time, b: begInnIng value, c: change In value, d: duration jQueryeasing'jswing' = jQueryeasing'swing'; jQueryextend jQueryeasing def: 'easeOutQuad' //alert(jQuery.easing.default); return jQueryeasingjQueryeasingdefxtbcd; return c*t/=d*t + b; return -c *t/=d*t-2 + b; if t/=d/2 < 1 return c/2*t*t + b; return -c/2 * --t*t-2 - 1 + b; return c*t/=d*t*t + b; return c*t=t/d-1*t*t + 1 + b; if t/=d/2 < 1 return c/2*t*t*t + b; return c/2*t-=2*t*t + 2 + b; return c*t/=d*t*t*t + b; return -c * t=t/d-1*t*t*t - 1 + b; if t/=d/2 < 1 return c/2*t*t*t*t + b; return -c/2 * t-=2*t*t*t - 2 + b; return c*t/=d*t*t*t*t + b; return c*t=t/d-1*t*t*t*t + 1 + b; if t/=d/2 < 1 return c/2*t*t*t*t*t + b; return c/2*t-=2*t*t*t*t + 2 + b; return -c * Mathcost/d * MathPI/2 + c + b; return c * Mathsint/d * MathPI/2 + b; return -c/2 * MathcosMathPI*t/d - 1 + b; return t==0 ? b : c * Mathpow210 * t/d - 1 + b; return t==d ? b+c : c * -Mathpow2-10 * t/d + 1 + b; if t==0 return b; if t==d return b+c; if t/=d/2 < 1 return c/2 * Mathpow210 * t - 1 + b; return c/2 * -Mathpow2-10 * --t + 2 + b; return -c * Mathsqrt1 - t/=d*t - 1 + b; return c * Mathsqrt1 - t=t/d-1*t + b; if t/=d/2 < 1 return -c/2 * Mathsqrt1 - t*t - 1 + b; return c/2 * Mathsqrt1 - t-=2*t + 1 + b; var s=1.70158;var p=0;var a=c; if t==0 return b; if t/=d==1 return b+c; if !p p=d*3; if a < Mathabsc a=c; var s=p/4; else var s = p/2*MathPI * Mathasin c/a; return -a*Mathpow210*t-=1 * Mathsin t*d-s*2*MathPI/p + b; var s=1.70158;var p=0;var a=c; if t==0 return b; if t/=d==1 return b+c; if !p p=d*3; if a < Mathabsc a=c; var s=p/4; else var s = p/2*MathPI * Mathasin c/a; return a*Mathpow2-10*t * Mathsin t*d-s*2*MathPI/p + c + b; var s=1.70158;var p=0;var a=c; if t==0 return b; if t/=d/2==2 return b+c; if !p p=d*3*1.5; if a < Mathabsc a=c; var s=p/4; else var s = p/2*MathPI * Mathasin c/a; if t < 1 return -5*a*Mathpow210*t-=1 * Mathsin t*d-s*2*MathPI/p + b; return a*Mathpow2-10*t-=1 * Mathsin t*d-s*2*MathPI/p *5 + c + b; if s == undefined s = 1.70158; return c*t/=d*t*s+1*t - s + b; if s == undefined s = 1.70158; return c*t=t/d-1*t*s+1*t + s + 1 + b; if s == undefined s = 1.70158; if t/=d/2 < 1 return c/2*t*t*s*=1.525+1*t - s + b; return c/2*t-=2*t*s*=1.525+1*t + s + 2 + b; return c - jQueryeasingeaseOutBounce xd-t0cd + b; if t/=d < 1/2.75 return c*7.5625*t*t + b; else if t < 2/2.75 return c*7.5625*t-=1.5/2.75*t + 75 + b; else if t < 2.5/2.75 return c*7.5625*t-=2.25/2.75*t + 9375 + b; else return c*7.5625*t-=2.625/2.75*t + 984375 + b; if t < d/2 return jQueryeasingeaseInBounce xt*20cd * 5 + b; return jQueryeasingeaseOutBounce xt*2-d0cd * 5 + c*5 + b; ; 21 |