        startList = 
            function() 
            {
                if (document.all && document.getElementById) {
                    navRoot = document.getElementById("menu");
                    for (i = 0; i < navRoot.childNodes.length; i++) {
                        node = navRoot.childNodes[i];
                        if (node.nodeName == "LI") {
                            node.onmouseover = 
                                function() { this.className += " over"; }
                            node.onmouseout = 
                                function() { this.className = this.className.replace(" over", ""); }
                        }
                    }
                }
            }

        function styleAbbr() 
        {
            var oldBodyText, newBodyText, reg;

            if (isIE) {
                oldBodyText = document.body.innerHTML;
                reg = /<ABBR([^>]*)>([^<]*)<\/ABBR>/g;
                newBodyText = oldBodyText.replace(reg, '<ABBR $1><SPAN class=\"abbr\" $1>$2</SPAN></ABBR>');
                document.body.innerHTML = newBodyText;
            }
        }

isIE = (document.all) ? true:false;


window.onload=function(){

		// IE6 Menu Fix
		startList();

		//Page Resizing
		$('page-top-secondary').style.visibility="visible";

		var fx = new Fx.Styles('pagebody', {duration:200, wait:false});
	
		$('page-skin-settings-fixed').addEvent('click', function(){
			fx.start({
				'width': 830
			});
 			document.cookie = 'preferedwidth=830; expires=Thu, 1 Aug 2018 20:00:0 UTC; path=/; domain=nedesigns.com';
			// var PageCookie = Cookie.set('preferedwidth', '830', {duration: 365, domain: 'nedesigns.com', path: '/'});
		});

		$('page-skin-settings-wide').addEvent('click', function(){
			fx.start({
				'width' : 950
			});
			document.cookie = 'preferedwidth=950; expires=Thu, 1 Aug 2018 20:00:0 UTC; path=/; domain=nedesigns.com';
		});
	
		$('page-skin-settings-fluid').addEvent('click', function(){
			fx.start({
				'width' : Window.getScrollWidth() - 40
			});
			document.cookie = 'preferedwidth=elastic; expires=Thu, 1 Aug 2018 20:00:0 UTC; path=/; domain=nedesigns.com';
		});
		
		//Change Post Styles
		$('page-skin-settings-post1').addEvent('click', function(){
			document.cookie = 'preferedpoststyle=1; expires=Thu, 1 Aug 2018 20:00:0 UTC; path=/; domain=nedesigns.com';
			location.reload(true);
		});

		$('page-skin-settings-post2').addEvent('click', function(){
			document.cookie = 'preferedpoststyle=2; expires=Thu, 1 Aug 2018 20:00:0 UTC; path=/; domain=nedesigns.com';
			location.reload(true);
		});
	
		$('page-skin-settings-post3').addEvent('click', function(){
			document.cookie = 'preferedpoststyle=3; expires=Thu, 1 Aug 2018 20:00:0 UTC; path=/; domain=nedesigns.com';
			location.reload(true);
		});

		// Custom ToolTips as Mozilla's don't wrap
		var SkinSettings = new Tips($$('.SkinSetting'));

// 		new SmoothScroll();
	
// 		var url = "http://forums.nedesigns.com/blotter.php";
// 		
// 		new Ajax(url, {
// 			method: 'get',
// 			update: $('blotter-target')
// 		}).request();

};