﻿/*
*   Release notes
*   ----------------------------------------------------------------
*   Name: Property - Site specific - custom function control
*   Authors: R&D / Special Projects
*   Version: 2.0
*   Last modified: 19 Feb 2009 by Tinna
*
*   Note: This file is maintained in the .NET solution "ecShop".
*   Do not modify it directly on the server.
*                                            
*   Naming conventions:                                
*   - global variables: _ecshopXXXX
*   - functions: ecShopXXX()
*
*   Last modified:
*   Removed variables to Shop Settings Control 
*/


/* 
*   ecShop Checkout functions
*   -------------------------------------
*   You can use the below functions to 
*   add any code/function calls
*   that are customized per site
*
*/

/*function _ecShopPostStep1() {
// This will be called while going from step1 to step2
}
function _ecShopPostStep2() {
// This will be called while going from step2 to step3
}
function _ecShopPostStep3() {
// This will be called while going from step3 to step4
}*/

function _ecShopPostStep2Webpayment() {   
    var contentContainer = document.getElementById("content_container");
    
    if(contentContainer) {
        contentContainer.className = "";
        
        hideObject("second_container");
        
        var contentArea = document.getElementById("content_area");
        
        if(contentArea) {
            contentArea.className = "right_sidebar";
        }
        
        var step3 = document.getElementById("ecshopfx_container_step3");
        
        if(step3) {
            step3.className = "valitor-frame";
        }
        
        var iframe = document.getElementById("webpayment");
        
        if(iframe) {
            iframe.setAttribute("scrolling", "no");
        }
    }
}

// This will be called when webpayment is completed
function _ecshopPostWebpayment() {
    var contentContainer = document.getElementById("content_container");
    
    if(contentContainer) {
        contentContainer.className = "right_menu";
        
        showObject("second_container");
        
        var contentArea = document.getElementById("content_area");
        
        if(contentArea) {
            contentArea.className = "";
        }
        
        var step3 = document.getElementById("ecshopfx_container_step3");
        
        if(step3) {
            step3.className = "";
        }
    }
}
