/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
function swapButton(id, on) {
    if(on) {
        document.getElementById(id).className = id+"-over";
    } else {
        document.getElementById(id).className = id+"-off";
    }
}

function styleList(listobj, on) {    
    if(on) {
        jQuery(listobj).addClass("over");
    } else {
        jQuery(listobj).removeClass("over");
    }
}

/**
 * EC Lightbox ::
 */
function showBigImage(obj){
    id=jQuery(obj).attr('id');
    jQuery('#'+id+'-img').addClass('show-bigger-immage');
    jQuery('#'+id+'-img').show();
}

function hideBigImage(obj){
    id=jQuery(obj).attr('id');
    jQuery('#'+id+'-img').removeClass('show-bigger-immage');
    jQuery('#'+id+'-img').hide();
}

/**
 * Start ::
 */
jQuery(function () {
    /*
     * 3)  Add to Cart Button in Product Page ::
     *  // Move it from its box to the custom box just under the products orientation image
     **/
    if(jQuery('.price-box').length==1 && jQuery('#custom_add_to_cart').length==1) {        
        jQuery('#custom_add_to_cart').html(jQuery('.price-box').html());
        jQuery('.price-box').remove();
    }
    // MOve product colateral box ::
    if(jQuery('#info_tabs_container').length==1 && jQuery('.product-collateral').length==1) {
        jQuery('#info_tabs_container').html(jQuery('.product-collateral').html());
        jQuery('.product-collateral').remove();
    }


});
