
function efProductSSShow(fx_product) {

    var so = new SWFObject('/ctl/graphics/slideshow.swf', 'SOmonoSlideshow', '350', '350', '7', '#ffffff');
    so.addVariable('imageScaleMode', 'noScale');		
    so.addVariable('showLogo', 'false');
    so.addVariable('showVersionInfo', 'false');	
    so.addVariable('preloadImages', '2');	
    so.addVariable('controlAlign', 'bottomRight');						
    so.addVariable('controlDelay', '1');					
    so.addVariable('controlShowOnStartDelay', '2');					
    so.addVariable('controlFadeInAreaSize', '60');					
    so.addVariable('controlRoundedCorners', '5');					
    so.addVariable('backgroundColor', 'ffffff');					
    so.addVariable('imageAlign', 'topCenter');					
    so.addVariable('controlPadding', '6');		
    so.addParam("wmode", "opaque");			
    so.addVariable('controlIconRollOverColor', 'D24AFF');				
    so.addVariable('dataFile', '/site/web/products/slideshowconfig.asp?product=' + fx_product + '&rnd='+ Math.random().toString());
    so.write('efProductSlideShow');
    
}


function efProductSHSwatches(fx_field) {

    var varSwatchDiv = document.getElementById('efProductFieldSwatch' + fx_field);
    
    if (varSwatchDiv.className=='sc_hid') {
        varSwatchDiv.className = 'sc_productfieldswatchshow';
        ajaxgetdata('/site/web/products/ajax_swatches.cnx?field=' + fx_field, '', 'efProductFieldSwatch' + fx_field,'efProductFieldSwatch' + fx_field, 1)
        document.getElementById('enProductOptionCont' + fx_field).innerHTML='<a href=\'javascript:efProductSHSwatches(' + fx_field + ')\'>Hide Swatches</a>';
    } else {
        varSwatchDiv.innerHTML = '';
        varSwatchDiv.className = 'sc_hid';
        document.getElementById('enProductOptionCont' + fx_field).innerHTML='<a href=\'javascript:efProductSHSwatches(' + fx_field + ')\'>Show Swatches</a>';
    }

}


function efProductSwatchPreview(fx_field, fx_option) {


    document.getElementById('efProductOPSwatch' + fx_field).style.backgroundImage='url(/net/content/' + efAYField[fx_field][fx_option][5] + ')';
    document.getElementById('efProductOPTitle' + fx_field).innerHTML=efAYField[fx_field][fx_option][1];
    document.getElementById('efProductOPPrice' + fx_field).innerHTML=efAYField[fx_field][fx_option][6];
}


function efProductsSwatchSelect(fx_field, fx_id) {

    efAYField[fx_field][1] = fx_id;
    efProductPriceUpdate(efAYField[fx_field][fx_id][3]);
    efProductSwatchShowSet(fx_field);
    
}

function efProductSwatchShowSet(fx_field) {

    var tArrayID = efAYField[fx_field][1]
    

    if (document.getElementById('efProductOPSwatch' + fx_field)!=null) {

        document.getElementById('efProductOPSwatch' + fx_field).style.backgroundImage = 'url(/net/content/' + efAYField[fx_field][tArrayID][5] + ')';
        
        document.getElementById('efProductOPTitle' + fx_field).innerHTML = efAYField[fx_field][tArrayID][1];
        document.getElementById('efProductOPPrice' + fx_field).innerHTML = efAYField[fx_field][tArrayID][6];
        
    }        
    
    document.getElementById('enProductFieldSelect' + fx_field).selectedIndex = efAYField[fx_field][tArrayID][3];
    
    if (document.getElementById('enProductFieldImg' + fx_field)!=null) {
        document.getElementById('enProductFieldImg' + fx_field).style.backgroundImage = 'url(/net/content/' + efAYField[fx_field][tArrayID][4] + ')';
        document.getElementById('enProductFieldHiddenImg' + fx_field).value = efAYField[fx_field][tArrayID][8];
    }        
    

    



}



function efProductATC() {

    document.forms.cxaProductItem.cxaCartItem_QTY.value = document.getElementById('enProductInfoQTY').value;
    document.forms.cxaProductItem.cxaCartItem_Amount_Unit.value = enProductCurPrice;
    document.forms.cxaProductItem.cxaCartItem_Description.value = enProductCurDescription;
 
    
    cxaCartCurrentProduct(document.forms.cxaProductItem, 'V2.0');
}



//===================================================================
// Offer
//===================================================================


function envyOfferSubmit(fx_form) {
    var var_postdata = formData2QueryString(fx_form);
    ajaxgetdata('/site/content/offer/ajax_form.cnx?cid=show=form', var_postdata, 'envySiteOverContOut','envySiteOverContOut', 1)    
}







//===================================================================
// Menu
//===================================================================

var mmen_cur;
var mmen_curitem = '';
var mmen_stillshow = 0;
var mmen_curitemt = ''

function mmenover(fx_men) {
    if (document.getElementById('mainhov_' + fx_men)!=null) {
        if (mmen_curitemt!='') {
            mmenhide(mmen_curitemt);
        }        
        mmen_curitemt = fx_men;
        clearTimeout(mmen_cur);
        mmen_stillshow = 1;
        mmen_curitem = document.getElementById('mainhov_' + fx_men)    
        mmen_cur = setTimeout('mmenshow(\'' + fx_men + '\') ', 50);
    }        
}

function mmenshow(fx_men) {
    if (document.getElementById('mainhov_' + fx_men)!=null) {
        if (mmen_stillshow==1) {            
            mmen_curitem.className='sc_men';           
        }        
    }        
}

function mmenout(fx_men) {  
    if (document.getElementById('mainhov_' + fx_men)!=null) {
        clearTimeout(mmen_cur); 
        mmen_cur = setTimeout('mmenhide(\'' + fx_men + '\') ', 200);       
    }        
}

function mmenhide(fx_men) {
    if (document.getElementById('mainhov_' + fx_men)!=null) {  
        clearTimeout(mmen_cur);
        if (mmen_curitem!=null) {
            mmen_curitem.className='sc_out';           
        }        
        mmen_stillshow = 0;
    }        
}

function mmenhovto() {
    clearTimeout(mmen_cur);
}

function mmenclearcur() {
    mmenout(mmen_curitemt);
}