$jQuery(document).ready(function() {
    //support page hide/show script
//    $jQuery('a.support-expand').click(function() {
//        $jQuery(this).parent().css({ 'display': 'none' });
//        $jQuery(this).parent().siblings('.image').fadeOut();
//        $jQuery(this).parent().siblings("li.title").css({ 'float': 'left' });
//        $jQuery(this).parent().siblings(".content").slideDown();
//        $jQuery(this).parent().siblings('.close').fadeIn();
//    });


//    $jQuery('a.close').click(function() {
//        $jQuery(this).parent().fadeOut('fast');
//        $jQuery(this).parent().siblings("li.title").css({ 'float': 'right' });
//        $jQuery(this).parent().siblings('.image').fadeIn();
//        $jQuery(this).parent().siblings('.link').fadeIn();
//        $jQuery(this).parent().siblings(".content").slideUp();
//    });

    //support page hide/show script alternative solution
//    $jQuery('a.expand-altenrative').click(function() {
//        $jQuery(this).parent().css({ 'display': 'none' });
//        //$jQuery(this).parent().siblings('.image').fadeOut(); 
//        //$jQuery(this).parent().siblings("li.title").css({'float':'left'}); 
//        $jQuery(this).parent().siblings(".content").slideDown();
//        $jQuery(this).parent().siblings('.close2').fadeIn();
//    });


//    $jQuery('a.close2').click(function() {
//        $jQuery(this).parent().fadeOut();
//        //$jQuery(this).parent().siblings("li.title").css({'float':'right'});
//        //$jQuery(this).parent().siblings('.image').fadeIn();
//        $jQuery(this).parent().siblings('.link').fadeIn();
//        $jQuery(this).parent().siblings(".content").slideUp();
//    });

    //colorbox gallery script
    $jQuery('.link-overlay').colorbox({ inline: true, href: "#details-overlay" });
    $jQuery('.colorbox').colorbox({ inline: false, photo: true, transition: "elastic", initialWidth: "10px", initialHeight: "10px" });

    //product compare tr hover effect
//    $jQuery("tr.item").mouseover(function() {
//        $jQuery(this).children("td").css({ 'background-color': '#f2f1f1' });
//        $jQuery(this).children("td").css({ 'border-color': '#f2f1f1' });
//        $jQuery(this).children(".details").css({ 'background-color': '#fff' });
//        $jQuery(this).children(".details").css({ 'border-color': '#fff' });
//    }).mouseout(function() {
//        $jQuery(this).children("td").css({ 'background': 'none' });
//        $jQuery(this).children("td").css({ 'border-color': '#fff' });
//    });


    //progress bar tooltip
    /*  $jQuery("#progress-bar").children("li").mouseover(function(){
    var position = $jQuery(this).position();
    if (position.left > 710 ) position.left = 570;
    console.log(position.left);
    $jQuery(this).children("span.tooltip").css({'left': position.left });
    $jQuery(this).children("span.tooltip").css({'display':'block'});
    }).mouseout(function(){
    $jQuery(this).children("span.tooltip").css({'display':'none'});
    });*/

});