//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 2i=d 2h({2j:[2k,2g],s:{23:c},2m:3(s){i.2l(s);i.1s=[];h.12(\'2n\',3(){i.25()}.2d(i))},25:3(){7($(\'X\')&&k.Y(\'m\'))$(\'X\').f(\'1d\',k.Y(\'m\'));i.2b();7(i.s.23){$$(\'.2z\').1q(3(M){8 N=M.1O(\'N\').2y(\'N\').f(\'n\',{});8 r=M.1O(\'r\').f(\'n\',{});7(!r.2C(\'2x-2w\')){d o(\'V\',{\'u\':{\'21\':\'2a\'},\'F\':{\'O\':3(e){e.W();r.n(\'1c\');k.D(r.a(\'g\'),\'c\',{1N:\'/\'})}},\'p\':T+\'v-2r.R\'}).t(M,\'2e\')};d o(\'V\',{\'u\':{\'21\':\'2a\'},\'F\':{\'O\':3(e){e.W();N.n(\'1c\');k.D(r.a(\'g\'),\'24\',{1N:\'/\'})}},\'p\':T+\'v-19-2s.R\'}).t(M,\'2e\');7(k.Y(r.a(\'g\'))==\'24\')N.n(\'2u\')})};i.l(\'l\')},2v:3(){7(k.Y(\'1r\'))q;8 w=$(\'1y\').1E({\'1J\':\'1A\',\'z-1C\':2t,\'J\':-1H,\'1i\':-1H,\'2p\':\'2q\'}).f(\'I\');8 11=w.Q();8 P=h.Q();8 1a=d o(\'14\',{\'g\':\'1a\',\'u\':{\'1J\':\'1A\',\'z-1C\':2,\'J\':0,\'1i\':0,\'G\':0.5,\'2D\':\'#2B\',\'1U\':h.2o().y,\'1P\':P.x}}).t(2A.2E);3 1M(){$(\'1y\').I({\'G\':0});$(\'1a\').I({\'G\':0});k.D(\'1r\',c);h.1n(\'1G\',1k);h.1n(\'U\',1j)};3 1k(){7(!w)q;11=w.Q();P=h.Q();h.1z(\'U\')};3 1j(){7(!w)q;w.I({\'J\':((P.y/2)-(11.y/2))+h.2M().y,\'1i\':((P.x/2)-(11.x/2))})};$(\'39\').12(\'O\',3(E){E.W();1M()});h.12(\'1G\',1k);h.12(\'U\',1j);h.1z(\'U\')},l:3(j){j=$(j);7(!j)q;A=$(j.a(\'g\')+\'-A\');8 2f=d 3a.38(j);7(!j||!A)q;j.f(\'B\',\'1e 1F 1o... 1u 1h.\');8 S=3(){7(j.a(\'B\')==\'1e 1F 1o... 1u 1h.\')j.f(\'B\',\'\');i.1s.1q(3(1x){8 6=1x[0];7($(\'l-6-\'+6.g)&&6.1I==c){$(\'l-6-\'+6.g).37()}7($(\'l-6-\'+6.g)||6.1I){q};8 17=d o(\'14\',{\'g\':\'l-6-\'+6.g,\'1L\':\'1K\',\'B\':\'<b>\'+6.34+\':</b> \'+6.35}).1E({\'3c-1p\':4,\'G\':0}).t(\'l\').I({\'G\':1});8 s=d o(\'14\',{\'1L\':\'1K\'}).3b(d o(\'3e\',{\'B\':\' \'+6.3d,\'u\':{\'3g-2F\':9}})).t(17,\'1p\');7(6.3f){d o(\'V\',{\'1W\':\'1t 1v?\',\'27\':\'1t 1v?\',\'p\':T+\'3h.R\',\'28\':\'29\',\'F\':{\'O\':3(){H.18();d 1f({\'1b\':A.a(\'1Y\')+\'?36=\'+6.g,\'1g\':\'a\',\'13\':c,\'Z\':c,\'1m\':S}).C()}},\'u\':{\'20\':\'1X\'}}).t(s,\'J\');d o(\'V\',{\'1W\':\'16 26\',\'27\':\'16 26?\',\'p\':T+\'33.R\',\'28\':\'29\',\'F\':{\'O\':3(){2N(15+\'2O.1R?16=\'+6.2P,\'2L\',\'2K=0,2G=0,2H=0,2I=0,2J=1,2Q=1,1P=1V,1U=1V\')}},\'u\':{\'20\':\'1X\'}}).t(s,\'J\')};2f.18().2R(17)});(3(){H.C()}).1Q(2Y);7($(\'1l\').K){$(\'1l\').f(\'K\',2c);$(\'1Z\').f({\'K\':2c,\'1d\':\'\'})}}.2d(i);A.f({\'C\':{\'Z\':c,\'13\':c,\'1m\':S},\'F\':{\'2Z\':3(E){E.W();H.18();i.C();$(\'1l\').f(\'K\',c);$(\'1Z\').f(\'K\',c)}}});8 H=d 1f({\'1b\':A.a(\'1Y\'),\'1g\':\'a\',\'13\':c,\'Z\':c,\'1m\':S});H.C()},30:3(10){8 v=$(10);8 L=$(10+\'2X\');v.a(\'n\').1c();(3(){k.D(10,v.a(\'n\').1T)}).1Q(2W);7(L){L.f(\'p\',(v.a(\'n\').1T?L.p.1S(\'19\',\'22\'):L.p.1S(\'22\',\'19\')))}},2b:3(){7(!$(\'X\'))q;m=$(\'X\').a(\'1d\').2S();$(\'2T\').f(\'B\',\'1e 2U... 2V 1h.\');7(m)k.D(\'m\',m);d 1f({\'1g\':\'a\',\'Z\':c,\'13\':c,\'1b\':15+\'1B/1w/1D/31.1R\'}).C(\'32=\'+15+\'1B/1w/1D/&m=\'+m)}});',62,204,'|||function|||shout|if|var||get||true|new||set|id|window|this|box|Cookie|shoutbox|zipCode|slide|Element|src|return|li|options|inject|styles|module|pmWindow||||form|html|send|write||events|opacity|shoutboxAjax|morph|top|disabled|moduleImage|el|table|click|win|getSize|png|ajaxComplete|imagePath|scroll|img|stop|txtZipCode|read|evalScripts|tableID|info|addEvent|evalResponse|div|extraForumPath|IP|newShout|cancel|min|pmOverlay|url|toggle|value|Loading|Request|method|wait|left|pmScroll|pmResize|txtShoutBtn|onComplete|removeEvent|Messages|bottom|each|pmHide|messages|Delete|Please|Shout|mods|item|pmNotice|fireEvent|absolute|functions|index|weather|setStyles|Shoutbox|resize|300|deleted|position|smText|class|pmRemove|path|getParent|width|delay|asp|replace|open|height|425|alt|pointer|action|txtShout|cursor|float|max|moduleOptions|minimized|load|Ban|title|align|absmiddle|right|getWeather|false|bind|before|scroller|Options|Class|iPortalX|Implements|Events|setOptions|initialize|domready|getScrollSize|display|block|close|arrow|100|hide|openPMWindow|disable|no|getNext|moduleTitle|document|000000|hasClass|background|body|size|location|status|menubar|scrollbars|toolbar|BanIP|getScroll|openWin|pop_up_IP_blocking|ip|resizable|toElement|toInt|weatherBox|Weather|please|550|_image|3000|submit|moduleToggle|get_weather|Path|ban|author|message|DID|dispose|Scroll|pmClose|Fx|adopt|padding|time|span|admin|font|delete'.split('|'),0,{}))

//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){
	var 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;
	}
}

//load portal engine
portalEngine = new iPortalX();

//add acoordion effect to parts of the portal
window.addEvent('domready', function() {
	
	//get window sizes
	var windowWidth = window.getSize().x - 100;
	var windowHeight = window.getSize().y - 100;
	
	//setup accordions
	if ($$('.accord-title')) new Accordion($$('.accord-title').setStyle('cursor','pointer'),$$('.accord-body'));

	var maxSize = 400;

	// forum image resizer
	$$('.forum-post img').addEvent('load', function(e) {
		if (this.width > maxSize) {
			this.width = maxSize;
		} else if (this.height > maxSize) {
			this.height = maxSize;
		} else {
			return;
		};

		new Element('a', {
			'href': '../aspjpeg_resize.asp?Height=' + windowHeight + '&Width=' + windowWidth + '&Path=' + this.src,
			'rel': 'lightbox'
		}).wraps(this).slimbox();

		this.setStyles({
			'display': 'block',
			'padding': 4,
			'background': '#FFF',
			'border': '2px solid #000'
		});
	});
});


