//Eikona Trigger/Eikona Three version - Lucas Tsolakian, Archetypon var jQ = jQuery.noConflict(); //menu function navMenu(){ jQ("#navContainer>ul>li>ul").hide(); jQ("#navContainer li:has(ul)").hover(function () { jQ(this).children("a").click(function () { return false; }); }); jQ("#navContainer li").hover(function(){ jQ(this).find('ul:first').css("display", "none").fadeIn(350); },function(){ jQ(this).find('ul:first').fadeOut(0); }); } jQ(function(){ navMenu(); }); function superbgimage_show(img) { jQ('#superbgimage').css('background', 'none'); jQ('#showtitle p.imagecount').html('image ' + img + ' of ' + jQ.superbg_imgIndex); jQ('#showtitle p.title').html(jQ('#photos a' + "[rel='" + img + "']").attr('title')); // jQ('#info-slide').delay(1000).fadeIn('slow'); } jQ(document).ready(function(){ jQ('#photos').superbgimage(); //buttons fade slide jQ('.button-slide').fadeTo('slow', 1.00); jQ('.button-slide').hover( function () { jQ(this).fadeTo('fast', 0.50); }, function () { jQ(this).fadeTo('fast', 1.00); } ); //image fade jQ('.image-fade').fadeTo('slow', 1.00); jQ('.image-fade').hover( function () { jQ(this).fadeTo('fast', 0.50); }, function () { jQ(this).fadeTo('fast', 1.00); } ); //slide buttons jQ("#controls").delay(2000).animate({"right": "+=35px"}, "slow"); jQ("#right-slide").click(function () { return jQ('#photos').nextSlide(); }); jQ("#left-slide").click(function () { return jQ('#photos').prevSlide(); }); jQ("#thumbs-slide").click(function () { jQ("#content").fadeToggle('fast'); jQ("#photos").fadeToggle(); jQ("#wrapper").fadeToggle(); jQ(this).toggleClass("active"); return false; }); jQ("#info-slide").toggle( function() { jQ("#container2").slideToggle("slow"); jQ(this).css("-webkit-transform", "rotate(45deg)").css("-webkit-transition", "all 0.5s ease-in-out").css("-moz-transform", "rotate(45deg)").css("-moz-transition", "all 0.5s ease-in-out").css("-o-transform", "rotate(45deg)").css("-o-transition", "all 0.5s ease-in-out").css("filter", "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)").css("transform", "rotate(45deg)").css("transition", "all 0.5s ease-in-out"); }, function() { jQ("#container2").slideToggle("slow"); jQ(this).css("-webkit-transform", "rotate(0deg)").css("-webkit-transition", "all 0.5s ease-in-out").css("-moz-transform", "rotate(0deg)").css("-moz-transition", "all 0.5s ease-in-out").css("-o-transform", "rotate(0deg)").css("-o-transition", "all 0.5s ease-in-out").css("filter", "progid:DXImageTransform.Microsoft.BasicImage(rotation=0)").css("transform", "rotate(0deg)").css("transition", "all 0.5s ease-in-out"); }); jQ.fn.fadeToggle = function(slow, easing, callback) { return this.animate({opacity: 'toggle'}, slow, easing, callback); }; //thumbs hide jQ("#photos a").click(function () { jQ("#content").fadeToggle(500); jQ("#photos").fadeToggle(); jQ("#wrapper").fadeToggle(); jQ("#thumbsSlide").toggleClass("active"); return false; }); // prev slide jQ('a.prev').click(function() { return jQ('#photos').prevSlide(); }); // next slide jQ('a.next').click(function() { return jQ('#photos').nextSlide(); }); jQ(document).keydown(function(e) { switch(e.keyCode) { // User pressed “right” arrow case 39: return jQ('#photos').nextSlide(); break; // User pressed “left” arrow case 37: return jQ('#photos').prevSlide(); break; } }); });