//iportalx portal engine
eval(function(p,a,c,k,e,d){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--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[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}('8 27=a 29({o:{},26:3(o){h.28(o);h.1n=[];e.G(\'2l\',3(){h.1O();h.j(\'j\')}.Y(h))},1O:3(){7($(\'Q\')&&m.18(\'i\'))$(\'Q\').f(\'S\',m.18(\'i\'));h.1P();$$(\'.D-2j\').1k(3(1Q){1Q.c(\'N\').2c()}.Y(h))},2d:3(){7(m.18(\'1U\'))l;8 n=$(\'1T\').1q({\'1A\':\'20\',\'w\':-1E,\'Z\':-1E,\'2f\':\'2h\'}).f(\'F\');8 M=n.H();8 z=e.H();8 T=a q(\'16\',{\'k\':\'T\',\'P\':{\'1A\':\'20\',\'w\':0,\'Z\':0,\'t\':0.5,\'2g\':\'#2b\',\'1W\':e.2k().y,\'1X\':z.x}}).B(2i.2a);3 1y(){$(\'1T\').F({\'t\':0});$(\'T\').F({\'t\':0});m.15(\'1U\',d);e.1F(\'1r\',14);e.1F(\'O\',13)};3 14(){7(!n)l;M=n.H();z=e.H();e.1j(\'O\')};3 13(){7(!n)l;n.F({\'w\':((z.y/2)-(M.y/2))+e.23().y,\'Z\':((z.x/2)-(M.x/2))})};$(\'2e\').G(\'W\',3(E){E.1G();1y()});e.G(\'1r\',14);e.G(\'O\',13);e.1j(\'O\')},j:3(g){g=$(g);7(!g)l;r=$(g.c(\'k\')+\'-r\');8 22=a 25.24(g);7(!g||!r)l;g.f(\'p\',\'17 1p 1x... 21 19.\');8 J=3(){7(g.c(\'p\')==\'17 1p 1x... 21 19.\')g.f(\'p\',\'\');h.1n.1k(3(1w){8 6=1w[0];7($(\'j-6-\'+6.k)&&6.1t==d){$(\'j-6-\'+6.k).2t()}7($(\'j-6-\'+6.k)||6.1t){l};8 X=a q(\'16\',{\'k\':\'j-6-\'+6.k,\'1e\':\'1l\',\'p\':\'<b>\'+6.2V+\':</b> \'+6.2Y}).1q({\'2S-1m\':4,\'t\':0}).B(\'j\').F({\'t\':1});8 o=a q(\'16\',{\'1e\':\'1l\'}).2L(a q(\'2O\',{\'p\':\' \'+6.2R,\'P\':{\'2P-2Q\':9}})).B(X,\'1m\');7(6.2N){a q(\'1u\',{\'1o\':\'1s 1v?\',\'1z\':\'1s 1v?\',\'u\':1f+\'2M.1d\',\'1h\':\'1i\',\'11\':{\'W\':3(){v.R();a 1b({\'12\':r.c(\'1S\')+\'?2X=\'+6.k,\'1c\':\'c\',\'K\':d,\'L\':d,\'1a\':J}).s()}},\'P\':{\'1Z\':\'1Y\'}}).B(o,\'w\');a q(\'1u\',{\'1o\':\'U 1g\',\'1z\':\'U 1g?\',\'u\':1f+\'2W.1d\',\'1h\':\'1i\',\'11\':{\'W\':3(){2T(10+\'2m.1N?U=\'+6.2K,\'2I\',\'2J=0,2u=0,2v=0,2w=0,2s=1,2r=1,1X=1V,1W=1V\')}},\'P\':{\'1Z\':\'1Y\'}}).B(o,\'w\')};22.R().2n(X)});(3(){v.s()}).1B(2o);7($(\'V\').A){$(\'V\').f(\'A\',1R);$(\'1H\').f({\'A\':1R,\'S\':\'\'})}}.Y(h);r.f({\'s\':{\'L\':d,\'K\':d,\'1a\':J},\'11\':{\'2p\':3(E){E.1G();v.R();h.s();$(\'V\').f(\'A\',d);$(\'1H\').f(\'A\',d)}}});8 v=a 1b({\'12\':r.c(\'1S\'),\'1c\':\'c\',\'K\':d,\'L\':d,\'1a\':J});v.s()},2q:3(I){8 D=$(I);8 C=$(I+\'2x\');D.c(\'N\').2y();(3(){m.15(I,D.c(\'N\').1C)}).1B(2F);7(C){C.f(\'u\',(D.c(\'N\').1C?C.u.1D(\'1J\',\'1I\'):C.u.1D(\'1I\',\'1J\')))}},1P:3(){7(!$(\'Q\'))l;i=$(\'Q\').c(\'S\').2G();$(\'2H\').f(\'p\',\'17 2E... 2D 19.\');7(i)m.15(\'i\',i);a 1b({\'1c\':\'c\',\'L\':d,\'K\':d,\'12\':10+\'1K/1L/1M/2z.1N\'}).s(\'2A=\'+10+\'1K/1L/1M/&i=\'+i)}}).2B(a 2C,a 2U);',62,185,'|||function|||shout|if|var||new||get|true|window|set|box|this|zipCode|shoutbox|id|return|Cookie|pmWindow|options|html|Element|form|send|opacity|src|shoutboxAjax|top|||win|disabled|inject|moduleImage|module||morph|addEvent|getSize|tableID|ajaxComplete|evalResponse|evalScripts|info|slide|scroll|styles|txtZipCode|cancel|value|pmOverlay|IP|txtShoutBtn|click|newShout|bind|left|extraForumPath|events|url|pmScroll|pmResize|write|div|Loading|read|wait|onComplete|Request|method|png|class|imagePath|Ban|align|absmiddle|fireEvent|each|smText|bottom|messages|alt|Shoutbox|setStyles|resize|Delete|deleted|img|Shout|item|Messages|pmRemove|title|position|delay|open|replace|300|removeEvent|stop|txtShout|max|min|functions|mods|weather|asp|load|getWeather|el|false|action|pmNotice|pmHide|425|height|width|pointer|cursor|absolute|Please|scroller|getScroll|Scroll|Fx|initialize|iPortalX|setOptions|Class|body|000000|hide|openPMWindow|pmClose|display|background|block|document|close|getScrollSize|domready|pop_up_IP_blocking|toElement|3000|submit|moduleToggle|resizable|scrollbars|dispose|location|status|menubar|_image|toggle|get_weather|Path|implement|Events|please|Weather|550|toInt|weatherBox|BanIP|toolbar|ip|adopt|delete|admin|span|font|size|time|padding|openWin|Options|author|ban|DID|message'.split('|'),0,{}))

//load portal engine
var portalEngine = new iPortalX();

//load chat
new Asset.javascript('/chat/js/aspchatnow.js', {id: 'aspchatnowJS'});


window.addEvent('domready', function() {
	if (!$$('pre')) return;

	new Asset.css('/modules/js/sh_style.css');
	new Asset.javascript('/modules/js/sh_main.min.js');
	new Asset.javascript('/modules/js/sh_javascript.js', {
		onload: function() {
			sh_highlightDocument();
		}
	});
});

window.addEvent('domready', function() {
	if (!$$('.accord-title')) return;

	//setup accordions
	new Accordion($$('.accord-title').setStyle('cursor','pointer'),$$('.accord-body'));
});

//Function to jump to another forum
function ForumJump(URL) {
	if (URL.options[URL.selectedIndex].value != "") self.location.href = URL.options[URL.selectedIndex].value;
	return true;
}

//Function to open pop up window
function openWin(theURL,winName,features) {
  	window.open(theURL,winName,features);
}

//Function to open preview post window
function OpenPreviewWindow(targetPage, formName){

	now = new Date

	//Open the window first
   	openWin('','preview','toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,width=680,height=400')

   	//Now submit form to the new window
   	formName.action = targetPage + "?ID=" + now.getTime();
	formName.target = "preview";
	formName.submit();
}

//Function to check avatar image
function AvatarImage(objImage, newSize) {
	imgWidth = objImage.width;
	imgHeight = objImage.height;

	if (imgWidth > newSize) {
		objImage.width = newSize;
	}

	if (imgHeight > newSize) {
		objImage.height = newSize;
	}
}