<?php
/**
* @version $Id: botcorrectpng.php 2006-03-27 $
* @package Joomla
* @copyright Copyright (C) 2006 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/

// no direct access
defined( '_VALID_MOS' ) or die( 'Restricted access' );

$_MAMBOTS->registerFunction( 'onAfterStart', 'botCorrectPNG' );

function botCorrectPNG( ) {
	global $mosConfig_live_site, $mainframe;


/** Conditional comments to hide this includes from other browsers than IE 5.5+ */
	$script_correctpng = "\n<!-- CorrectPNG! Module : compliance patch for microsoft browsers -->\n<!--[if gte IE 5.5000]>\n";
	$script_correctpng .= "<!--[if lte IE 7]><script language=\"JavaScript\" src=\"" . $mosConfig_live_site . "/mambots/system/botcorrectpng/correctpng.js\"></script><![endif]-->";
	$script_correctpng .= "\n<![endif]-->\n";
	$mainframe->addCustomHeadTag($script_correctpng);

}
?>