   /**
    * GOLLUM the wikipedia browser
    *
    * This program is free software; you can redistribute it and/or modify
    * it under the terms of the GPL.
    *
    * Copyright(c) 2005 by Harald Hanek. All rights reserved.
    *
    * To contact the author write to: harald.hanek@easycp.de
    * The latest version of Wikipedia Browser can be obtained from: http://www.gollum-browser.com
    */
	
var Global={find : function(id)
{return document.getElementById(id);},
win_w : function()
{return(browser.isIE5up)?document.body.clientWidth:window.innerWidth-32;},
win_h : function()
{return(browser.isIE5up)?document.body.clientHeight-1:window.innerHeight-32;},
check_mail : function(email)
{if(email.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/)!= -1)return true;else return false;},
unescape : function(text)
{text=text.replace(/&gt;/g,'>');text=text.replace(/&lt;/g,'<');return text;},
escape : function(text)
{text=text.replace(/>/g,'&gt;');text=text.replace(/</g,'&lt;');return text;},
isFunction : function(a)
{return typeof a=='function';},
isNull : function(a)
{return typeof a=='object'&&!a;},
isObject : function(a)
{return(a&&typeof a=='object')||Global.isFunction(a);},
isString : function(a)
{return typeof a=='string';},
isUndefined : function(a)
{return typeof a=='undefined';},
stopEvent : function(ev)
{if(typeof ev=='undefined')ev=window.event;if(browser.isIE5up)
{ev.cancelBubble=true;ev.returnValue=false;}else{ev.preventDefault();ev.stopPropagation();}},
addEvent : function(el,evname,func)
{if(browser.isIE5up)el.attachEvent("on"+evname,func);else el.addEventListener(evname,func,true);},
removeEvent : function(el,evname,func)
{if(browser.isIE5up)el.detachEvent("on"+evname,func);else el.removeEventListener(evname,func,true);},
setAttribute : function(element,attName,attValue)
{if(attValue==null||attValue.length==0)
element.removeAttribute(attName,0);else
element.setAttribute(attName,attValue,0);}};