/*
Script: Ensure.js

Ensure library
	A tiny javascript library that provides a handy function "ensure" which allows you to load 
	Javascript, HTML, CSS on-demand and then execute your code. Ensure ensures that relevent 
	Javascript and HTML snippets are already in the browser DOM before executing your code 
	that uses them.
	
	To download last version of this script use this link: <http://www.codeplex.com/ensure>

Version:
	1.0 - Initial release

Compatibility:
	FireFox - Version 2 and 3
	Internet Explorer - Version 6 and 7
	Opera - 9 (probably 8 too)
	Safari - Version 2 and 3 
	Konqueror - Version 3 or greater

Dependencies:
	<jQuery.js> 
	<MicrosoftAJAX.js>
	<Prototype-1.6.0.js>

Credits:
	- Global Javascript execution - <http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html>
	
Author:
	Omar AL Zabir - http://msmvps.com/blogs/omar

License:
	>Copyright (C) 2008 Omar AL Zabir - http://msmvps.com/blogs/omar
	>	
	>Permission is hereby granted, free of charge,
	>to any person obtaining a copy of this software and associated
	>documentation files (the "Software"),
	>to deal in the Software without restriction,
	>including without limitation the rights to use, copy, modify, merge,
	>publish, distribute, sublicense, and/or sell copies of the Software,
	>and to permit persons to whom the Software is furnished to do so,
	>subject to the following conditions:
	>
	>The above copyright notice and this permission notice shall be included
	>in all copies or substantial portions of the Software.
	>
	>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
	>INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
	>FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
	>IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
	>DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
	>ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
	>OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}(';(3(){C.1l=3(a,b,c){4(8 A=="s"&&8 Q=="s"&&8 R=="s")m 1K("A, 1L 1M.1N 1m 1n R 1O 1o 1p. 1P 1Q 1R 1S S 1l 17 1T");4(8 a.q!="s"){5 d=3(){m a.q};4(8 a.q=="1q"){d=3(){m!(1U("8 "+a.q)=="s"&&u.1r(a.q)==D)}}9 4(8 a.q=="3"){d=a.q}4(d()===E||8 d()=="s"||d()==D)F T(a,b,c);9 b()}9{F T(a,b,c)}};C.T=3(a,b,c){2.6=2.18(a);2.G=(8 c=="s"||D==c?b:2.v(b,c));2.1V=[];4(a.z&&a.z.U!=V)2.6.z=[a.z];4(a.w&&a.w.U!=V)2.6.w=[a.w];4(a.y&&a.y.U!=V)2.6.y=[a.y];4(8 a.z=="s")2.6.z=[];4(8 a.w=="s")2.6.w=[];4(8 a.y=="s")2.6.y=[];2.1s();2.W()};C.T.1W={1s:3(){4(8 A!="s"){2.H=k.1t;2.I=k.1u}9 4(8 R!="s"){2.H=k.1v;2.I=k.19}9 4(8 Q!="s"){2.H=k.1w;2.I=k.1a}9{1X"A, R 1n 1Y 1m 1Z 1o 1p";}},H:3(a){},I:3(a,b){},W:3(){2.1x(2.v(3(){2.1y(2.v(3(){2.1z(2.v(3(){2.G()}))}))}))},1x:3(c){5 d=2.6.z.J;4(0===d)m c();2.K(2.6.z,3(b){4(k.X(b)||2.1b(\'1c\',\'1A\',b)){d--}9{2.H({l:b,r:2.v(3(a){d--;k.Y(b)}),7:2.v(3(a){d--;4(8 2.6.7=="3")2.6.7(b,a)})})}});2.Z({q:3(){m d===0},1d:1e,G:2.v(3(){c()})})},1y:3(g){4(0===2.6.y.J)m g();5 h=k.10();2.K(2.6.y,3(d){4(k.X(d)||2.1b(\'1B\',\'1C\',d)){}9{5 f=2;20{(3(a,b){5 c=u.L(\'1B\');c.M("1C",a);c.M("21","22");c.M("B","11/y");b.N(c);k.Y(a)}).1f(C,[d,h])}23(e){4(8 f.6.7=="3")f.6.7(d,e.1g)}}});g()},1z:3(d){5 e=2.6.w.J;4(0===e)m d();2.K(2.6.w,3(c){4(k.X(c)){e--}9{2.I({l:c,r:2.v(3(a){e--;k.Y(c);5 b=(2.6.24||u.25.N(u.L("26")));4(8 b=="1q")b=u.1r(b);b.27=a}),7:2.v(3(a){e--;4(8 2.6.7=="3")2.6.7(c,a)})})}});2.Z({q:3(){m e===0},1d:1e,G:2.v(3(){d()})})},18:3(b){5 c={};S(5 p 28 b){5 x=b[p];4(8 x=="29"){4(x.U==V){5 a=[];S(5 i=0;i<x.J;i++)a.2a(x[i]);c[p]=a}9{c[p]=2.18(x)}}9 c[p]=x}m c},K:3(a,b){5 c=2;S(5 i=0;i<a.J;i++)b.1f(c,[a[i]])},v:3(a,b){5 c=b||2;m 3(){a.1f(c,2b)}},Z:3(o){4(o.q()===12)o.G();9 C.2c(2.v(3(){2.Z(o)}),o.1d||1e)},1b:3(a,b,c){5 d=u.L(a);d[b]=c;5 e=E;5 f=u.1D(a);2.K(f,3(t){4(d[b]===t[b]){e=12;m E}});m e}};5 j=2d.2e.2f();5 k={O:{2g:(j.2h(/.+(?:2i|2j|2k|2l)[\\/: ]([\\d.]+)/)||[])[1],13:/1E/.q(j),1h:/1h/.q(j),1i:/1i/.q(j)&&!/1h/.q(j),1F:/1F/.q(j)&&!/(2m|1E)/.q(j)},14:{},X:3(a){m k.14[a]===12},2n:3(a){k.14[a]=E},Y:3(a){k.14[a]=12},15:3(a,b,c){5 d=u.L("1c");d.M("B","11/1G");d.M("1A",a);d.2o=d.2p=3(){4((!2.1j||2.1j=="2q"||2.1j=="2r")){b()}};d.2s=3(){c(6.l+" 2t 17 W")};5 e=k.10();e.N(d)},10:3(){m u.1D("2u")[0]||u.2v},16:3(a){5 b=u.L("1c");b.B="11/1G";4(k.O.1i)b.11=a;9 b.N(u.2w(a));5 c=k.10();c.N(b)},1t:3(c){4(k.O.13){m A.1H({B:"1k",l:c.l,6:D,r:3(a){k.16(a);c.r()},7:3(a,b,e){4(a&&a.P)c.7(a.P);9 c.7(l+\'\\n\'+e.1g)},1I:"w"})}9{k.15(c.l,c.r,c.7)}},1w:3(b){4(k.O.13){5 c={l:b.l,r:3(a){k.16(a);b.r(a)},7:b.7};k.1a(c)}9{k.15(b.l,b.r,b.7)}},1v:3(b){4(k.O.13){5 c={l:b.l,r:3(a){k.16(a);b.r(a)},7:b.7};k.19(c)}9{k.15(b.l,b.r,b.7)}},1u:3(c){m A.1H({B:"1k",l:c.l,6:D,r:c.r,7:3(a,b,e){4(a&&a.P)c.7(a.P);9 c.7("2x 2y 2z 2A: "+l+\'\\n\'+e.1g)},1I:c.B||"w"})},1a:3(c){5 d=F Q.1J.2B();d.2C(c.l);d.2D("1k");d.2E(3(a){5 b="2F 17 W:"+c.l;4(a.2G()){b="2H 2I"}4(a.2J()){b="2K"}4(a.2L())c.r(a.2M());9 c.7(b)});5 e=F Q.1J.2N();d.2O(e);e.2P()},19:3(c){F 2Q.2R(c.l,{2S:\'2T\',2U:E,2V:3(a,b){c.r(a.P||"")},2W:c.7})}}})();',62,183,'||this|function|if|var|data|error|typeof|else||||||||||||url|return||||test|success|undefined||document|delegate|html||css|js|jQuery|type|window|null|false|new|callback|getJS|httpGet|length|forEach|createElement|setAttribute|appendChild|browser|responseText|Sys|Prototype|for|ensureExecutor|constructor|Array|load|isUrlLoaded|registerUrl|until|getHead|text|true|safari|loadedUrls|createScriptTag|globalEval|to|clone|httpGet_Prototype|httpGet_MSAJAX|isTagLoaded|script|delay|50|apply|message|opera|msie|readyState|GET|ensure|AJAX|or|not|found|string|getElementById|init|loadJavascript_jQuery|httpGet_jQuery|loadJavascript_Prototype|loadJavascript_MSAJAX|loadJavascripts|loadCSS|loadHtml|src|link|href|getElementsByTagName|webkit|mozilla|javascript|ajax|dataType|Net|alert|Microsoft|ASP|NET|library|One|must|be|present|work|eval|loadStack|prototype|throw|MS|framework|try|rel|Stylesheet|catch|parent|body|div|innerHTML|in|object|push|arguments|setTimeout|navigator|userAgent|toLowerCase|version|match|rv|it|ra|ie|compatible|unregisterUrl|onload|onreadystatechange|loaded|complete|onerror|failed|head|documentElement|createTextNode|Error|occured|while|loading|WebRequest|set_url|set_httpVerb|add_completed|Failed|get_timedOut|Timed|out|get_aborted|Aborted|get_responseAvailable|get_responseData|XMLHttpExecutor|set_executor|executeRequest|Ajax|Request|method|get|evalJS|onSuccess|onFailure'.split('|'),0,{}));

