jQuery(document).ready(function() { jQuery('#mainContentIn').addClass('mciNone'); jQuery('#slide').cycle({ fx: 'fade', timeout: 7000, pause: 1, after: onAfter, next: '.next-dest', prev: '.prev-dest' }); // function onAfter(curr,next,opts) { var msg = (opts.currSlide + 1) + ' / ' + opts.slideCount; jQuery('.count').html(msg); }; // jQuery('#eve_slide').cycle({ fx: 'scrollUp', //next: '#eve_slide', timeout: 5000, pause: 1 }); }); jQuery('.menuBottom li a').corner('8px, cc:#DBDAD5'); window.addEvent('domready',function(){ // var overFx_sales = []; var topFx_sales = []; var bottomFx_sales = []; var over_sales = false; $$('.box span.sales').each(function(el,i){ overFx_sales[i] = new Fx.Morph(el, {duration:300, wait:false,transition:Fx.Transitions.Expo.easeOut}).set({'opacity':0, 'background-color': '#0294C7'}) }); $$('.box a.sales .top').each(function(el,i){ topFx_sales[i] = new Fx.Morph(el, {duration:250, wait:false,transition:Fx.Transitions.Expo.easeOut}).set({'opacity':0.3, 'margin-top':'-89px'}) }); $$('.box a.sales .bottom').each(function(el,i){ bottomFx_sales[i] = new Fx.Morph(el, {duration:250, wait:false,transition:Fx.Transitions.Expo.easeOut}).set({'opacity':0.3, 'margin-top':'4px'}) }); $$('.box a.sales').each(function(el,i){ el.addEvents({ 'mouseover': function(e){ if(over_sales == false){ overFx_sales[i].start({'opacity':1}); topFx_sales[i].start({'margin-top':'-4px', 'opacity':1}); bottomFx_sales[i].start({'margin-top':'-131px', 'opacity':1}); over_sales = true; } }, 'mouseleave': function(e){ if(over_sales == true) { overFx_sales[i].start({'opacity':0}); topFx_sales[i].start({'margin-top':'-89px', 'opacity':0.3}); bottomFx_sales[i].start({'margin-top':'4px', 'opacity':0.3}); over_sales = false; } } }); }); var overFx_blog = []; var topFx_blog = []; var bottomFx_blog = []; var over_blog = false; $$('.box span.blog').each(function(el,i){ overFx_blog[i] = new Fx.Morph(el, {duration:300, wait:false,transition:Fx.Transitions.Expo.easeOut}).set({'opacity':0, 'background-color': '#F15A29'}) }); $$('.box a.blog .top').each(function(el,i){ topFx_blog[i] = new Fx.Morph(el, {duration:250, wait:false,transition:Fx.Transitions.Expo.easeOut}).set({'opacity':0.3, 'margin-top':'-89px'}) }); $$('.box a.blog .bottom').each(function(el,i){ bottomFx_blog[i] = new Fx.Morph(el, {duration:250, wait:false,transition:Fx.Transitions.Expo.easeOut}).set({'opacity':0.3, 'margin-top':'4px'}) }); $$('.box a.blog').each(function(el,i){ el.addEvents({ 'mouseover': function(e){ if(over_blog == false){ overFx_blog[i].start({'opacity':1}); topFx_blog[i].start({'margin-top':'-4px', 'opacity':1}); bottomFx_blog[i].start({'margin-top':'-131px', 'opacity':1}); over_blog = true; } }, 'mouseleave': function(e){ if(over_blog == true) { overFx_blog[i].start({'opacity':0}); topFx_blog[i].start({'margin-top':'-89px', 'opacity':0.3}); bottomFx_blog[i].start({'margin-top':'4px', 'opacity':0.3}); over_blog = false; } } }); }); var overFx_mag = []; var topFx_mag = []; var bottomFx_mag = []; var over_mag = false; $$('.box span.mag').each(function(el,i){ overFx_mag[i] = new Fx.Morph(el, {duration:300, wait:false,transition:Fx.Transitions.Expo.easeOut}).set({'opacity':0, 'background-color': '#00A79D'}) }); $$('.box a.mag .top').each(function(el,i){ topFx_mag[i] = new Fx.Morph(el, {duration:250, wait:false,transition:Fx.Transitions.Expo.easeOut}).set({'opacity':0.3, 'margin-top':'-89px'}) }); $$('.box a.mag .bottom').each(function(el,i){ bottomFx_mag[i] = new Fx.Morph(el, {duration:250, wait:false,transition:Fx.Transitions.Expo.easeOut}).set({'opacity':0.3, 'margin-top':'4px'}) }); $$('.box a.mag').each(function(el,i){ el.addEvents({ 'mouseover': function(e){ if(over_mag == false){ overFx_mag[i].start({'opacity':1}); topFx_mag[i].start({'margin-top':'-4px', 'opacity':1}); bottomFx_mag[i].start({'margin-top':'-131px', 'opacity':1}); over_mag = true; } }, 'mouseleave': function(e){ if(over_mag == true) { overFx_mag[i].start({'opacity':0}); topFx_mag[i].start({'margin-top':'-89px', 'opacity':0.3}); bottomFx_mag[i].start({'margin-top':'4px', 'opacity':0.3}); over_mag = false; } } }); }); var overFx_cine = []; var topFx_cine = []; var bottomFx_cine = []; var over_cine = false; $$('.box span.cine').each(function(el,i){ overFx_cine[i] = new Fx.Morph(el, {duration:300, wait:false,transition:Fx.Transitions.Expo.easeOut}).set({'opacity':0, 'background-color': '#FBB040'}) }); $$('.box a.cine .top').each(function(el,i){ topFx_cine[i] = new Fx.Morph(el, {duration:250, wait:false,transition:Fx.Transitions.Expo.easeOut}).set({'opacity':0.3, 'margin-top':'-89px'}) }); $$('.box a.cine .bottom').each(function(el,i){ bottomFx_cine[i] = new Fx.Morph(el, {duration:250, wait:false,transition:Fx.Transitions.Expo.easeOut}).set({'opacity':0.3, 'margin-top':'4px'}) }); $$('.box a.cine').each(function(el,i){ el.addEvents({ 'mouseover': function(e){ if(over_cine == false){ overFx_cine[i].start({'opacity':1}); topFx_cine[i].start({'margin-top':'-4px', 'opacity':1}); bottomFx_cine[i].start({'margin-top':'-131px', 'opacity':1}); over_cine = true; } }, 'mouseleave': function(e){ if(over_cine == true) { overFx_cine[i].start({'opacity':0}); topFx_cine[i].start({'margin-top':'-89px', 'opacity':0.3}); bottomFx_cine[i].start({'margin-top':'4px', 'opacity':0.3}); over_cine = false; } } }); }); var overFx_bb = []; var topFx_bb = []; var bottomFx_bb = []; var over_bb = false; $$('.box span.bb').each(function(el,i){ overFx_bb[i] = new Fx.Morph(el, {duration:300, wait:false,transition:Fx.Transitions.Expo.easeOut}).set({'opacity':0, 'background-color': '#BAD405'}) }); $$('.box div.bb .top').each(function(el,i){ topFx_bb[i] = new Fx.Morph(el, {duration:250, wait:false,transition:Fx.Transitions.Expo.easeOut}).set({'opacity':1, 'margin-top':'-183px'}) }); $$('.box div.bb .bottom').each(function(el,i){ bottomFx_bb[i] = new Fx.Morph(el, {duration:250, wait:false,transition:Fx.Transitions.Expo.easeOut}).set({'opacity':0.3, 'margin-top':'4px'}) }); // $$('.box div.bb').each(function(el,i){ el.addEvents({ 'mouseover': function(e){ if(over_bb == false){ overFx_bb[i].start({'opacity':1}); topFx_bb[i].start({'margin-top':'-4px', 'opacity':1}); bottomFx_bb[i].start({'margin-top':'-37px', 'opacity':1}); over_bb = true; } }, 'mouseleave': function(e){ if(over_bb == true) { overFx_bb[i].start({'opacity':0}); topFx_bb[i].start({'margin-top':'-183px', 'opacity':0.3}); bottomFx_bb[i].start({'margin-top':'4px', 'opacity':0.3}); over_bb = false; } } }); }); });