$(window).load(function () {
    $('#featured').orbit({ "animation": "horizontal-push", "captions": "true", "bullets": "false" });
	});
jQuery(document).ready(function () {
    jQuery('#mycarousel').jcarousel({ wrap: 'circular', auto: 6, start: -5, scroll: 1 });
$("a[rel=group]").fancybox({'transitionIn': 'elastic', 'transitionOut': 'elastic', 'titlePosition': 'over', 'titleFormat': function (title, currentArray, currentIndex, currentOpts) {
        return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
    }
});
$(".360spin").fancybox({ 'width': 660, 'height': 380, 'autoScale': false, 'transitionIn': 'none', 'transitionOut': 'none', 'type': 'iframe', 'scrolling': 'no' });
$(".techInfo").fancybox({ 'width': 700, 'height': 600, 'autoScale': false, 'transitionIn': 'none', 'transitionOut': 'none', 'type': 'iframe', 'scrolling': 'no' });
$(".infoBox").fancybox({ 'width': 700, 'height': 650, 'autoScale': false, 'transitionIn': 'none', 'transitionOut': 'none', 'type': 'iframe', 'scrolling': 'yes' });
$(".compare").fancybox({ 'width': 780, 'height': 720, 'autoScale': false, 'transitionIn': 'none', 'transitionOut': 'none', 'type': 'iframe', 'scrolling': 'no' });
$(".videoplayer").click(function () {  $.fancybox({ 'padding': 0, 'autoScale': false, 'transitionIn': 'none', 'transitionOut': 'none', 'title': this.title, 'width': 640, 'height': 385, 'href': this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'), 'type': 'swf', 'swf': { 'wmode': 'transparent', 'allowfullscreen': 'true' }   });
    return false;
});

$('#gn_MainNav').dcMegaMenu({ rowItems: '7',  speed: 'fast',  effect: 'fade'});
$("a.switch_thumb").toggle(function () {

    $(this).removeClass("swap");
    $("ul.display").fadeOut("fast", function () {
        $(this).fadeIn("fast").removeClass("thumb_view");
    });
}, function () {
    $(this).addClass("swap");
    $("ul.display").fadeOut("fast", function () {
        $(this).fadeIn("fast").addClass("thumb_view");
    });
});
if ($(window).width() >= 1040) {
    $('.jcarousel-prev, .jcarousel-next').show();
} else {
    $('.jcarousel-prev, .jcarousel-next').hide();
}
});



