// Javascript from Moodle modules
<?php    
/**
 * podcaster javascript
 *
 * @author  Humboldt Universitaet zu Berlin
 *            Christoph Soergel <christoph.soergel@cms.hu-berlin.de>
 * @version 1.0
 * @package podcaster
 *
 **/
if (!defined('MOODLE_INTERNAL')) {
  die('Direct access to this script is forbidden.');    ///  It must be included from a Moodle page
}
?>
<!--
//
function repository_openpopup(url,name,options,fullscreen) {
  fullurl = url;
  windowobj = window.open(fullurl,name,options);
  if (fullscreen) {
     windowobj.moveTo(0,0);
     windowobj.resizeTo(screen.availWidth,screen.availHeight);
  }
  windowobj.focus();
  return false;
}
// -->
wrs_addEvent(window, 'load', function () {	wrs_imageAlignFix();});/* Image align bug: "align" attribute is not standard, so there are browsers that does not support it. */function wrs_imageAlignFix() {	var images = document.getElementsByTagName('img');		for (var i = images.length - 1; i >= 0; --i) {		if (images[i].className == 'Wirisformula') {			images[i].style.verticalAlign = (-images[i].height / 2) + 'px';		}	}}/* Tools *//** * Cross-browser addEventListener/attachEvent function. * @param object element Element target * @param event event Event * @param function func Function to run */function wrs_addEvent(element, event, func) {	if (element.addEventListener) {		element.addEventListener(event, func, false);	}	else if (element.attachEvent) {		element.attachEvent('on' + event, func);	}}
