<?php

/**  
  @package    catalog::templates::content
  @author     Loaded Commerce
  @copyright  Copyright 2003-2014 Loaded Commerce, LLC
  @copyright  Portions Copyright 2003 osCommerce
  @copyright  Template built on DevKit http://www.bootstraptor.com under GPL license 
  @license    https://github.com/loadedcommerce/loaded7/blob/master/LICENSE.txt
  @version    $Id: checkout_payment_template.php v1.0 2013-08-08 datazen $
*/
if ($lC_Payment->hasIframeParams()) {
    $params = utility::nvp2arr($lC_Payment->getIframeParams());
    $fWidth = isset($params['width']) && empty($params['width']) === false ? $params['width'] : '550px';
    $fHeight = isset($params['height']) && empty($params['height']) === false ? $params['height'] : '550px';
    $fScroll = isset($params['scroll']) && empty($params['scroll']) === false ? $params['scroll'] : 'no';
    $fStyle = isset($params['margin-left']) && empty($params['margin-left']) === false ? 'style="margin-left:' . $params['margin-left'] . '"' : null;
} else {
    $fWidth = '550px';
    $fHeight = '550px';
    $fScroll = 'no';
    $fStyle = null;
}
$secureUrl = $lC_Payment->hasIframeURL() ? substr($lC_Payment->getIframeURL(), 0, strpos($lC_Payment->getIframeURL(), '?')) : ($lC_Payment->hasRelayURL() ? $lC_Payment->getRelayURL() : NULL);
$isIE = isset($_SESSION['browserName']) && $_SESSION['browserName'] == 'msie' ? true : false;
if ($isIE && ($lC_Payment->selected_module = 'lC_Payment_authorizenet_cc')) {
    $fWidth = '650px';
    $fHeight = '550px';
    $fScroll = 'yes';
    $fStyle = null;
}