/** * @author Alexander Farkas * v. 1.1 */ jQuery.noConflict(); (function($){ if(!document.defaultView || !document.defaultView.getComputedStyle){ var oldCurCSS = jQuery.curCSS; jQuery.curCSS = function(elem, name, force){ if(name !== 'backgroundPosition' || !elem.currentStyle || elem.currentStyle[ name ]){ return oldCurCSS.apply(this, arguments); } var style = elem.style; if ( !force && style && style[ name ] ){ return style[ name ]; } return oldCurCSS(elem, 'backgroundPositionX', force) +' '+ oldCurCSS(elem, 'backgroundPositionY', force); }; } })(jQuery); (function($) { function toArray(strg){ strg = strg.replace(/left|top/g,'0px'); strg = strg.replace(/right|bottom/g,'100%'); strg = strg.replace(/([0-9\.]+)(\s|\)|$)/g,"$1px$2"); var res = strg.match(/(-?[0-9\.]+)(px|\%|em|pt)\s(-?[0-9\.]+)(px|\%|em|pt)/); return [parseFloat(res[1],10),res[2],parseFloat(res[3],10),res[4]]; } $.fx.step. backgroundPosition = function(fx) { if (!fx.bgPosReady) { var start = $.curCSS(fx.elem,'backgroundPosition'); if(!start){//FF2 no inline-style fallback start = '0px 0px'; } start = toArray(start); fx.start = [start[0],start[2]]; var end = toArray(fx.options.curAnim.backgroundPosition); fx.end = [end[0],end[2]]; fx.unit = [end[1],end[3]]; fx.bgPosReady = true; } var nowPosX = []; nowPosX[0] = ((fx.end[0] - fx.start[0]) * fx.pos) + fx.start[0] + fx.unit[0]; nowPosX[1] = ((fx.end[1] - fx.start[1]) * fx.pos) + fx.start[1] + fx.unit[1]; fx.elem.style.backgroundPosition = nowPosX[0]+' '+nowPosX[1]; }; })(jQuery); (function($) { $(document).ready(function(){ function imageanim(){ $("#anim").animate({backgroundPosition:"(0% 100%)"},4000).animate({backgroundPosition:"(100% 100%)"},4000).animate({backgroundPosition:"(100% 0%)"},4000).animate({backgroundPosition:"(0% 0%)"},4000); } imageanim(); setInterval(imageanim, 16000); }); })(jQuery); // SLIDESWICHE !!!!!!!!!!!! function slideSwitch1() { var $active = jQuery('.slideshow1 IMG.active'); if ( $active.length == 0 ) $active = jQuery('.slideshow1 IMG:last'); // use this to pull the images in the order they appear in the markup var $next = $active.next().length ? $active.next() : jQuery('.slideshow1 IMG:first'); $active.addClass('last-active'); $next.css({opacity: 0.0}) .addClass('active') .animate({opacity: 1.0}, 1000, function() { $active.removeClass('active last-active'); }); } jQuery(function() { setInterval( "slideSwitch1()", 3630 ); }); function slideSwitch2() { var $active = jQuery('.slideshow2 IMG.active'); if ( $active.length == 0 ) $active = jQuery('.slideshow2 IMG:last'); // use this to pull the images in the order they appear in the markup var $next = $active.next().length ? $active.next() : jQuery('.slideshow2 IMG:first'); $active.addClass('last-active'); $next.css({opacity: 0.0}) .addClass('active') .animate({opacity: 1.0}, 1000, function() { $active.removeClass('active last-active'); }); } jQuery(function() { setInterval( "slideSwitch2()", 3755 ); }); function slideSwitch3() { var $active = jQuery('.slideshow3 IMG.active'); if ( $active.length == 0 ) $active = jQuery('.slideshow3 IMG:last'); // use this to pull the images in the order they appear in the markup var $next = $active.next().length ? $active.next() : jQuery('.slideshow3 IMG:first'); $active.addClass('last-active'); $next.css({opacity: 0.0}) .addClass('active') .animate({opacity: 1.0}, 1000, function() { $active.removeClass('active last-active'); }); } jQuery(function() { setInterval( "slideSwitch3()", 3635 ); }); function slideSwitch4() { var $active = jQuery('.slideshow4 IMG.active'); if ( $active.length == 0 ) $active = jQuery('.slideshow4 IMG:last'); // use this to pull the images in the order they appear in the markup var $next = $active.next().length ? $active.next() : jQuery('.slideshow4 IMG:first'); $active.addClass('last-active'); $next.css({opacity: 0.0}) .addClass('active') .animate({opacity: 1.0}, 1000, function() { $active.removeClass('active last-active'); }); } jQuery(function() { setInterval( "slideSwitch4()", 3404 ); }); function slideSwitch5() { var $active = jQuery('.slideshow5 IMG.active'); if ( $active.length == 0 ) $active = jQuery('.slideshow5 IMG:last'); // use this to pull the images in the order they appear in the markup var $next = $active.next().length ? $active.next() : jQuery('.slideshow5 IMG:first'); $active.addClass('last-active'); $next.css({opacity: 0.0}) .addClass('active') .animate({opacity: 1.0}, 1000, function() { $active.removeClass('active last-active'); }); } jQuery(function() { setInterval( "slideSwitch5()", 3221 ); }); function slideSwitch6() { var $active = jQuery('.slideshow6 IMG.active'); if ( $active.length == 0 ) $active = jQuery('.slideshow6 IMG:last'); // use this to pull the images in the order they appear in the markup var $next = $active.next().length ? $active.next() : jQuery('.slideshow6 IMG:first'); $active.addClass('last-active'); $next.css({opacity: 0.0}) .addClass('active') .animate({opacity: 1.0}, 1000, function() { $active.removeClass('active last-active'); }); } jQuery(function() { setInterval( "slideSwitch6()", 3473 ); }); function slideSwitch7() { var $active = jQuery('.slideshow7 IMG.active'); if ( $active.length == 0 ) $active = jQuery('.slideshow7 IMG:last'); // use this to pull the images in the order they appear in the markup var $next = $active.next().length ? $active.next() : jQuery('.slideshow7 IMG:first'); $active.addClass('last-active'); $next.css({opacity: 0.0}) .addClass('active') .animate({opacity: 1.0}, 1000, function() { $active.removeClass('active last-active'); }); } jQuery(function() { setInterval( "slideSwitch7()", 3224 ); }); function slideSwitch8() { var $active = jQuery('.slideshow8 IMG.active'); if ( $active.length == 0 ) $active = jQuery('.slideshow8 IMG:last'); // use this to pull the images in the order they appear in the markup var $next = $active.next().length ? $active.next() : jQuery('.slideshow8 IMG:first'); $active.addClass('last-active'); $next.css({opacity: 0.0}) .addClass('active') .animate({opacity: 1.0}, 1000, function() { $active.removeClass('active last-active'); }); } jQuery(function() { setInterval( "slideSwitch8()", 3897 ); }); function slideSwitch9() { var $active = jQuery('.slideshow9 IMG.active'); if ( $active.length == 0 ) $active = jQuery('.slideshow9 IMG:last'); // use this to pull the images in the order they appear in the markup var $next = $active.next().length ? $active.next() : jQuery('.slideshow9 IMG:first'); $active.addClass('last-active'); $next.css({opacity: 0.0}) .addClass('active') .animate({opacity: 1.0}, 1000, function() { $active.removeClass('active last-active'); }); } jQuery(function() { setInterval( "slideSwitch9()", 3565 ); }); function slideSwitch10() { var $active = jQuery('.slideshow10 IMG.active'); if ( $active.length == 0 ) $active = jQuery('.slideshow10 IMG:last'); // use this to pull the images in the order they appear in the markup var $next = $active.next().length ? $active.next() : jQuery('.slideshow10 IMG:first'); $active.addClass('last-active'); $next.css({opacity: 0.0}) .addClass('active') .animate({opacity: 1.0}, 1000, function() { $active.removeClass('active last-active'); }); } jQuery(function() { setInterval( "slideSwitch10()", 3216 ); }); function slideSwitch11() { var $active = jQuery('.slideshow11 IMG.active'); if ( $active.length == 0 ) $active = jQuery('.slideshow11 IMG:last'); // use this to pull the images in the order they appear in the markup var $next = $active.next().length ? $active.next() : jQuery('.slideshow11 IMG:first'); $active.addClass('last-active'); $next.css({opacity: 0.0}) .addClass('active') .animate({opacity: 1.0}, 1000, function() { $active.removeClass('active last-active'); }); } jQuery(function() { setInterval( "slideSwitch11()", 3803 ); }); function slideSwitch12() { var $active = jQuery('.slideshow12 IMG.active'); if ( $active.length == 0 ) $active = jQuery('.slideshow12 IMG:last'); // use this to pull the images in the order they appear in the markup var $next = $active.next().length ? $active.next() : jQuery('.slideshow12 IMG:first'); $active.addClass('last-active'); $next.css({opacity: 0.0}) .addClass('active') .animate({opacity: 1.0}, 1000, function() { $active.removeClass('active last-active'); }); } jQuery(function() { setInterval( "slideSwitch12()", 3549 ); }); function slideSwitch13() { var $active = jQuery('.slideshow13 IMG.active'); if ( $active.length == 0 ) $active = jQuery('.slideshow13 IMG:last'); // use this to pull the images in the order they appear in the markup var $next = $active.next().length ? $active.next() : jQuery('.slideshow13 IMG:first'); $active.addClass('last-active'); $next.css({opacity: 0.0}) .addClass('active') .animate({opacity: 1.0}, 1000, function() { $active.removeClass('active last-active'); }); } jQuery(function() { setInterval( "slideSwitch13()", 3444 ); }); function slideSwitch14() { var $active = jQuery('.slideshow14 IMG.active'); if ( $active.length == 0 ) $active = jQuery('.slideshow14 IMG:last'); // use this to pull the images in the order they appear in the markup var $next = $active.next().length ? $active.next() : jQuery('.slideshow14 IMG:first'); $active.addClass('last-active'); $next.css({opacity: 0.0}) .addClass('active') .animate({opacity: 1.0}, 1000, function() { $active.removeClass('active last-active'); }); } jQuery(function() { setInterval( "slideSwitch14()", 3861 ); }); function slideSwitch15() { var $active = jQuery('.slideshow15 IMG.active'); if ( $active.length == 0 ) $active = jQuery('.slideshow15 IMG:last'); // use this to pull the images in the order they appear in the markup var $next = $active.next().length ? $active.next() : jQuery('.slideshow15 IMG:first'); $active.addClass('last-active'); $next.css({opacity: 0.0}) .addClass('active') .animate({opacity: 1.0}, 1000, function() { $active.removeClass('active last-active'); }); } jQuery(function() { setInterval( "slideSwitch15()", 3203 ); }); function slideSwitch16() { var $active = jQuery('.slideshow16 IMG.active'); if ( $active.length == 0 ) $active = jQuery('.slideshow16 IMG:last'); // use this to pull the images in the order they appear in the markup var $next = $active.next().length ? $active.next() : jQuery('.slideshow16 IMG:first'); $active.addClass('last-active'); $next.css({opacity: 0.0}) .addClass('active') .animate({opacity: 1.0}, 1000, function() { $active.removeClass('active last-active'); }); } jQuery(function() { setInterval( "slideSwitch16()", 3538 ); }); function slideSwitch17() { var $active = jQuery('.slideshow17 IMG.active'); if ( $active.length == 0 ) $active = jQuery('.slideshow17 IMG:last'); // use this to pull the images in the order they appear in the markup var $next = $active.next().length ? $active.next() : jQuery('.slideshow17 IMG:first'); $active.addClass('last-active'); $next.css({opacity: 0.0}) .addClass('active') .animate({opacity: 1.0}, 1000, function() { $active.removeClass('active last-active'); }); } jQuery(function() { setInterval( "slideSwitch17()", 3736 ); }); function slideSwitch18() { var $active = jQuery('.slideshow18 IMG.active'); if ( $active.length == 0 ) $active = jQuery('.slideshow18 IMG:last'); // use this to pull the images in the order they appear in the markup var $next = $active.next().length ? $active.next() : jQuery('.slideshow18 IMG:first'); $active.addClass('last-active'); $next.css({opacity: 0.0}) .addClass('active') .animate({opacity: 1.0}, 1000, function() { $active.removeClass('active last-active'); }); } jQuery(function() { setInterval( "slideSwitch18()", 3145 ); }); function slideSwitch19() { var $active = jQuery('.slideshow19 IMG.active'); if ( $active.length == 0 ) $active = jQuery('.slideshow19 IMG:last'); // use this to pull the images in the order they appear in the markup var $next = $active.next().length ? $active.next() : jQuery('.slideshow19 IMG:first'); $active.addClass('last-active'); $next.css({opacity: 0.0}) .addClass('active') .animate({opacity: 1.0}, 1000, function() { $active.removeClass('active last-active'); }); } jQuery(function() { setInterval( "slideSwitch19()", 3412 ); }); function slideSwitch20() { var $active = jQuery('.slideshow20 IMG.active'); if ( $active.length == 0 ) $active = jQuery('.slideshow20 IMG:last'); // use this to pull the images in the order they appear in the markup var $next = $active.next().length ? $active.next() : jQuery('.slideshow20 IMG:first'); $active.addClass('last-active'); $next.css({opacity: 0.0}) .addClass('active') .animate({opacity: 1.0}, 1000, function() { $active.removeClass('active last-active'); }); } jQuery(function() { setInterval( "slideSwitch20()", 3938 ); }); function slideSwitch() { var $active = jQuery('.slideshow IMG.active'); if ( $active.length == 0 ) $active = jQuery('.slideshow IMG:last'); // use this to pull the images in the order they appear in the markup var $next = $active.next().length ? $active.next() : jQuery('.slideshow IMG:first'); $active.addClass('last-active'); $next.css({opacity: 0.0}) .addClass('active') .animate({opacity: 1.0}, 1000, function() { $active.removeClass('active last-active'); }); } jQuery(function() { setInterval( "slideSwitch()", 3000 ); }); // END OF SLIDESWICHE !!!!!!!!!!!! // When the document loads do everything inside here ... jQuery(document).ready(function(){ // When a link is clicked jQuery("a.tab").click(function () { // switch all tabs off jQuery(".active").removeClass("active"); // switch this tab on jQuery(this).addClass("active"); // slide all content up jQuery(".content").slideUp(); // slide this content up var content_show = jQuery(this).attr("title"); jQuery("#"+content_show).slideDown(); }); }); function pokaz_zakladkea(nazwa) { if (nazwa == 'lead') { document.getElementById("avlead").style.display = "block"; document.getElementById("avbrass").style.display = "none"; document.getElementById("avsolo").style.display = "none"; document.getElementById("avlinklead").style.fontWeight = "bold"; document.getElementById("avlinkbrass").style.fontWeight = "normal"; document.getElementById("avlinksolo").style.fontWeight = "normal"; }; if (nazwa == 'brass') { document.getElementById("avlead").style.display = "none"; document.getElementById("avbrass").style.display = "block"; document.getElementById("avsolo").style.display = "none"; document.getElementById("avlinklead").style.fontWeight = "normal"; document.getElementById("avlinkbrass").style.fontWeight = "bold"; document.getElementById("avlinksolo").style.fontWeight = "normal"; }; if (nazwa == 'solo') { document.getElementById("avlead").style.display = "none"; document.getElementById("avbrass").style.display = "none"; document.getElementById("avsolo").style.display = "block"; document.getElementById("avlinklead").style.fontWeight = "normal"; document.getElementById("avlinkbrass").style.fontWeight = "normal"; document.getElementById("avlinksolo").style.fontWeight = "bold"; }; };