$(function() { $("a[rel=lightbox]").lightbox({ fitToScreen: true, imageClickClose: false }); // $('a[rel=lightbox]').lightBox(); // Select all links that contains lightbox in the attribute rel // $('a').lightBox(); $('#m1').hover(function() { $('#m1').animate({opacity: 0.6}, 600); }, function() { $('#m1').animate({opacity: 0}, 600); }); $('#m2').hover(function() { $('#m2').animate({opacity: 0.6}, 600); }, function() { $('#m2').animate({opacity: 0}, 600); }); $('#m3').hover(function() { $('#m3').animate({opacity: 0.6}, 600); }, function() { $('#m3').animate({opacity: 0}, 600); }); $('#m4').hover(function() { $('#m4').animate({opacity: 0.6}, 600); }, function() { $('#m4').animate({opacity: 0}, 600); }); $('#m5').hover(function() { $('#m5').animate({opacity: 0.6}, 600); }, function() { $('#m5').animate({opacity: 0}, 600); }); $('#m6').hover(function() { $('#m6').animate({opacity: 0.6}, 600); }, function() { $('#m6').animate({opacity: 0}, 600); }); $('#m7').hover(function() { $('#m7').animate({opacity: 0.6}, 600); }, function() { $('#m7').animate({opacity: 0}, 600); }); $('#m8').hover(function() { $('#m8').animate({opacity: 0.6}, 600); }, function() { $('#m8').animate({opacity: 0}, 600); }); $('#m9').hover(function() { $('#m9').animate({opacity: 0.6}, 600); }, function() { $('#m9').animate({opacity: 0}, 600); }); $('#m10').hover(function() { $('#m10').animate({opacity: 0.6}, 600); }, function() { $('#m10').animate({opacity: 0}, 600); }); $('#m11').hover(function() { $('#m11').animate({opacity: 0.6}, 600); }, function() { $('#m11').animate({opacity: 0}, 600); }); $.fn.clearForm = function() { return this.each(function() { var type = this.type, tag = this.tagName.toLowerCase(); if (tag == 'form') return $(':input',this).clearForm(); if (type == 'text' || type == 'password' || tag == 'textarea') this.value = ''; else if (type == 'checkbox' || type == 'radio') this.checked = false; else if (tag == 'select') this.selectedIndex = -1; }); }; /* var theInt = null; var $crosslink, $navthumb; var curclicked = 0; theInterval = function(cur){ clearInterval(theInt); if( typeof cur != 'undefined' ) curclicked = cur; $crosslink.removeClass("active-thumb"); $navthumb.eq(curclicked).parent().addClass("active-thumb"); $(".stripNav ul li a").eq(curclicked).trigger('click'); theInt = setInterval(function(){ $crosslink.removeClass("active-thumb"); $navthumb.eq(curclicked).parent().addClass("active-thumb"); $(".stripNav ul li a").eq(curclicked).trigger('click'); curclicked++; if( 4 == curclicked ) curclicked = 0; }, 5000); }; $(function(){ $("#main-photo-slider").codaSlider(); $navthumb = $(".nav-thumb"); $crosslink = $(".cross-link"); $navthumb .click(function() { var $this = $(this); theInterval($this.parent().attr('href').slice(1) - 1); return false; }); theInterval(); }); */ });