'
}, function(data) {
$('a[rel^="prettyPhoto"]').prettyPhoto();
});
/*----------------------------------------------------*/
/* Superfish Mainmenu Section
/*----------------------------------------------------*/
jQuery(function () {
jQuery('ul.sf-menu').stop().superfish();
});
/*----------------------------------------------------*/
/* Revolution Slider Nav Arrow Show Hide
/*----------------------------------------------------*/
jQuery('.fullwidthbanner-container').hover(function () {
jQuery('.tp-leftarrow').stop().animate({
"opacity": 1
}, 'easeIn');
jQuery('.tp-rightarrow').stop().animate({
"opacity": 1
}, 'easeIn');
}, function () {
jQuery('.tp-leftarrow').stop().animate({
"opacity": 0
}, 'easeIn');
jQuery('.tp-rightarrow').stop().animate({
"opacity": 0
}, 'easeIn');
}
);
jQuery('.slider-wrapper').hover(function () {
jQuery('.nivo-prevNav').stop().animate({
"opacity": 1
}, 'easeIn');
jQuery('.nivo-nextNav').stop().animate({
"opacity": 1
}, 'easeIn');
}, function () {
jQuery('.nivo-prevNav').stop().animate({
"opacity": 0
}, 'easeIn');
jQuery('.nivo-nextNav').stop().animate({
"opacity": 0
}, 'easeIn');
}
);
/*----------------------------------------------------*/
/* Accordion Section
/*----------------------------------------------------*/
jQuery('.accordionMod').each(function (index) {
var thisBox = jQuery(this).children(),
thisMainIndex = index + 1;
jQuery(this).attr('id', 'accordion' + thisMainIndex);
thisBox.each(function (i) {
var thisIndex = i + 1,
thisParentIndex = thisMainIndex,
thisMain = jQuery(this).parent().attr('id'),
thisTriggers = jQuery(this).find('.accordion-toggle'),
thisBoxes = jQuery(this).find('.accordion-inner');
jQuery(this).addClass('panel');
thisBoxes.wrap('');
thisTriggers.wrap('');
thisTriggers.attr('data-toggle', 'collapse').attr('data-parent', '#' + thisMain).attr('data-target', '#collapseBox' + thisParentIndex + '_' + thisIndex);
});
jQuery('.accordion-toggle').prepend('');
jQuery("div.accordion-item:first-child .accordion-toggle").addClass("current");
jQuery("div.accordion-item:first-child .icon").addClass("iconActive");
jQuery("div.accordion-item:first-child .panel-collapse").addClass("in");
jQuery('.accordionMod .accordion-toggle').click(function () {
if (jQuery(this).parent().parent().find('.panel-collapse').is('.in')) {
jQuery(this).removeClass('current');
jQuery(this).find('.icon').removeClass('iconActive');
} else {
jQuery(this).addClass('current');
jQuery(this).find('.icon').addClass('iconActive');
}
jQuery(this).parent().parent().siblings().find('.accordion-toggle').removeClass('current');
jQuery(this).parent().parent().siblings().find('.accordion-toggle > .icon').removeClass('iconActive');
});
});
});
/*----------------------------------------------------*/
/* Nivo Slider
/*----------------------------------------------------*/
jQuery(window).load(function() {
jQuery('#nivoslider').nivoSlider({
effect: 'random', // Specify sets like: 'fold,fade,sliceDown'
slices: 15, // For slice animations
boxCols: 8, // For box animations
boxRows: 4, // For box animations
animSpeed: 500, // Slide transition speed
pauseTime: 5000, // How long each slide will show
startSlide: 0, // Set starting Slide (0 index)
directionNav: true, // Next & Prev navigation
controlNav: false, // 1,2,3... navigation
controlNavThumbs: false, // Use thumbnails for Control Nav
pauseOnHover: true, // Stop animation while hovering
manualAdvance: false, // Force manual transitions
prevText: '', // Prev directionNav text
nextText: '', // Next directionNav text
randomStart: false, // Start on a random slide
beforeChange: function(){}, // Triggers before a slide transition
afterChange: function(){}, // Triggers after a slide transition
slideshowEnd: function(){}, // Triggers after all slides have been shown
lastSlide: function(){}, // Triggers when last slide is shown
afterLoad: function(){} // Triggers when slider has loaded
});
});
/*----------------------------------------------------*/
/* Revolution Slider Triggering
/*----------------------------------------------------*/
jQuery(document).ready(function() {
if (jQuery.fn.cssOriginal!=undefined)
jQuery.fn.css = jQuery.fn.cssOriginal;
jQuery('.fullwidthbanner').revolution({
delay: 9000,
startwidth: 1170,
startheight: 470,
onHoverStop: "on",
// Stop Banner Timet at Hover on Slide on/off
thumbWidth: 100,
// Thumb With and Height and Amount (only if navigation Tyope set to thumb !)
thumbHeight: 50,
thumbAmount: 3,
hideThumbs: 0,
navigationType: "none",
// bullet, thumb, none
navigationArrows: "solo",
// nexttobullets, solo (old name verticalcentered), none
navigationStyle: "square",
// round,square,navbar,round-old,square-old,navbar-old, or any from the list in the docu (choose between 50+ different item), custom
navigationHAlign: "center",
// Vertical Align top,center,bottom
navigationVAlign: "top",
// Horizontal Align left,center,right
navigationHOffset: 0,
navigationVOffset: 20,
soloArrowLeftHalign: "left",
soloArrowLeftValign: "center",
soloArrowLeftHOffset: 0,
soloArrowLeftVOffset: 0,
soloArrowRightHalign: "right",
soloArrowRightValign: "center",
soloArrowRightHOffset: 0,
soloArrowRightVOffset: 0,
touchenabled: "on",
// Enable Swipe Function : on/off
stopAtSlide: -1,
// Stop Timer if Slide "x" has been Reached. If stopAfterLoops set to 0, then it stops already in the first Loop at slide X which defined. -1 means do not stop at any slide. stopAfterLoops has no sinn in this case.
stopAfterLoops: -1,
// Stop Timer if All slides has been played "x" times. IT will stop at THe slide which is defined via stopAtSlide:x, if set to -1 slide never stop automatic
hideCaptionAtLimit: 0,
// It Defines if a caption should be shown under a Screen Resolution ( Basod on The Width of Browser)
hideAllCaptionAtLilmit: 0,
// Hide all The Captions if Width of Browser is less then this value
hideSliderAtLimit: 0,
// Hide the whole slider, and stop also functions if Width of Browser is less than this value
fullWidth: "on",
shadow: 0 //0 = no Shadow, 1,2,3 = 3 Different Art of Shadows - (No Shadow in Fullwidth Version !)
});
});
/*----------------------------------------------------*/
/* Carousel Section
/*----------------------------------------------------*/
jQuery('.portfolio-carousel').carousel({interval: false, wrap: false});
jQuery('.client-carousel').carousel({interval: false, wrap: false});
jQuery('.testimonials-carousel').carousel({interval: 5000, pause: "hover"});
$(document).ready(function(){
$("a[rel^='prettyPhoto']").prettyPhoto({
animation_speed: 'fast', /* fast/slow/normal */
slideshow: 5000, /* false OR interval time in ms */
autoplay_slideshow: false, /* true/false */
opacity: 0.80, /* Value between 0 and 1 */
show_title: true, /* true/false */
allow_resize: true, /* Resize the photos bigger than viewport. true/false */
default_width: 500,
default_height: 344,
counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
theme: 'pp_default', /* light_rounded / dark_rounded / light_square / dark_square / facebook */
horizontal_padding: 20, /* The padding on each side of the picture */
hideflash: false, /* Hides all the flash object on a page, set to TRUE if flash appears over prettyPhoto */
wmode: 'opaque', /* Set the flash wmode attribute */
autoplay: true, /* Automatically start videos: True/False */
modal: false, /* If set to true, only the close button will close the window */
deeplinking: true, /* Allow prettyPhoto to update the url to enable deeplinking. */
overlay_gallery: true, /* If set to true, a gallery will overlay the fullscreen image on mouse over */
keyboard_shortcuts: true, /* Set to false if you open forms inside prettyPhoto */
changepicturecallback: function(){}, /* Called everytime an item is shown/changed */
callback: function(){}, /* Called when prettyPhoto is closed */
ie6_fallback: true,
markup: '