5 * -------------------------------------------------------------
8 * Purpose: initialize overlib
9 * Taken from the original Smarty
10 * http://smarty.php.net
11 * -------------------------------------------------------------
13 function tpl_function_popup_init($params, &$template_object)
16 if (!empty($params['zindex']))
18 $zindex = $params['zindex'];
21 if (!empty($params['src']))
23 return '<div id="overDiv" style="position:absolute; visibility:hidden; z-index:'.$zindex.';"></div>' . "\n"
24 . '<script type="text/javascript" language="JavaScript" src="'.$params['src'].'"></script>' . "\n";
28 throw new Template_Exception("popup_init: missing src parameter", $template_object);