
$(document).ready(function() {
    var txtBox = $('#search-holder .text');
    var default_search_value = txtBox.val();
    txtBox.focus(function() {
        if (txtBox.val() == default_search_value) {
            txtBox.val('');
        }
    });
});

$(document).ready(function () {
    $("a[rel^='prettyPhoto']").prettyPhoto({
        showTitle: false, /* true/false */
        allowresize: false, /* true/false */
        default_width: 500,
        default_height: 640,
        theme: 'light_square', /* light_rounded / dark_rounded / light_square / dark_square / facebook */
        iframe_markup: '<iframe src ="{path}" width="{width}" height="{height}" frameborder="no" class="prettyphoto-iframe" scrolling="auto"></iframe>'
    });
});
$(document).ready(function () {
    $("a[rel^='ppPhoto']").prettyPhoto();
});

$(document).ready(function () {
    $('.btn-zoom').click(function () {
        $('#main-product-image-link').click();        
        return false;
    });
});

$(document).ready(function () {
    var mainFeatures = $('#main-features');
    var documentation = $('#documentation');
    var orderingInfo = $('#ordering-info');

    var mainFeaturesTable = $('#main-features-table');
    var documentationTable = $('#documentation-table');
    var orderingInfoTable = $('#ordering-info-table');
    mainFeatures.click(function () {
        mainFeaturesTable.show();
        documentationTable.hide();
        orderingInfoTable.hide();
        mainFeatures.parent().addClass('active');
        documentation.parent().removeClass('active');
        orderingInfo.parent().removeClass('active');
        return false;
    });
    documentation.click(function () {
        mainFeaturesTable.hide();
        documentationTable.show();
        orderingInfoTable.hide();
        mainFeatures.parent().removeClass('active');
        documentation.parent().addClass('active');
        orderingInfo.parent().removeClass('active');
        return false;
    });
    orderingInfo.click(function () {
        mainFeaturesTable.hide();
        documentationTable.hide();
        orderingInfoTable.show();
        mainFeatures.parent().removeClass('active');
        documentation.parent().removeClass('active');
        orderingInfo.parent().addClass('active');
        return false;
    });
});   

