1 jQuery(document).ready(function($) { 2 3 if ($.browser.msie && $.browser.version < 7) return; // Don't execute code if it's IE6 or below cause it doesn't support it. 4 5 $(".fade").fadeTo(1, 1); 6 $(".fade").hover( 7 function () { 8 $(this).fadeTo("fast", 0.6); 9 }, 10 function () { 11 $(this).fadeTo("slow", 1); 12 } 13 ); 14 15 $('a[href=#top]').click(function(){ 16 $('html, body').animate({scrollTop:0}, 'slow'); 17 return false; 18 }); 19 20 /* initialize prettyphoto */ 21 $("a[rel^='prettyPhoto']").prettyPhoto({ 22 theme: 'light_rounded' 23 }); 24 25 26 $(".toggle_title").toggle( 27 function(){ 28 $(this).addClass('toggle_active'); 29 $(this).siblings('.toggle_content').slideDown("fast"); 30 }, 31 function(){ 32 $(this).removeClass('toggle_active'); 33 $(this).siblings('.toggle_content').slideUp("fast"); 34 } 35 ); 36 37 $(".tabs_container").each(function(){ 38 $("ul.tabs",this).tabs("div.panes > div", {tabs:'li',effect: 'fade', fadeOutSpeed: -400}); 39 }); 40 $(".mini_tabs_container").each(function(){ 41 $("ul.mini_tabs",this).tabs("div.panes > div", {tabs:'li',effect: 'fade', fadeOutSpeed: -400}); 42 }); 43 $.tools.tabs.addEffect("slide", function(i, done) { 44 this.getPanes().slideUp(); 45 this.getPanes().eq(i).slideDown(function() { 46 done.call(); 47 }); 48 }); 49 50 /* Contact Form Processing */ 51 $('#buttonsend').click( function() { 52 53 var name = $('#contactname').val(); 54 var subject = $('#contactsubject').val(); 55 var email = $('#contactemail').val(); 56 var message = $('#contactmessage').val(); 57 var siteurl = $('#siteurl').val(); 58 var sendto = $('#sendto').val(); 59 60 $('.loading').fadeIn('fast'); 61 62 if (name != "" && subject != "" && email != "" && message != "") 63 { 64 65 $.ajax( 66 { 67 url: siteurl+'/sendemail.php', 68 type: 'POST', 69 data: "name=" + name + "&subject=" + subject + "&email=" + email + "&message=" + message+ "&sendto=" + sendto, 70 success: function(result) 71 { 72 $('.loading').fadeOut('fast'); 73 if(result == "email_error") { 74 $('#contactemail').next('.require').text(' !'); 75 } else { 76 $('#contactname, #contactsubject, #contactemail, #contactmessage').val(""); 77 $('.success-message').show().fadeOut(8000, function(){ $(this).remove(); }); 78 } 79 } 80 } 81 ); 82 return false; 83 84 } 85 else 86 { 87 $('.loading').fadeOut('fast'); 88 if(name == "") $('#contactname').next('.require').text(' !'); 89 if(subject == "") $('#contactsubject').next('.require').text(' !'); 90 if(email == "" ) $('#contactemail').next('.require').text(' !'); 91 if(message == "") $('#contactmessage').next('.require').text(' !'); 92 return false; 93 } 94 }); 95 96 $('#contactname, #contactsubject, #contactemail,#contactmessage').focus(function(){ 97 $(this).next('.require').text(' *'); 98 }); 99 100 }); 101
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.