Page = {
	fonts:[75,87.5,100,112.5,125],
	fontSize:2,
	load:function() {
		this.fontSizeLinks();
		this.setHeights();
	},
	fontSizeLinks:function() {
		if(HW.getCookie('fontSize') !== null) {
			this.fontSize = HW.getCookie('fontSize');
			this.setFontSize();
		}
		var obj = this;
		if($('font_increase')) {
			$('font_increase').onclick = function(e) {
				if(obj.fontSize < obj.fonts.length-1) {
					obj.fontSize++;
					obj.setFontSize();
				}
				HW.preventDefault(e);
			}
		}
		if($('font_decrease')) {
			$('font_decrease').onclick = function(e) {
				if(obj.fontSize > 0) {
					obj.fontSize--;
					obj.setFontSize();
				}
				HW.preventDefault(e);
			}
		}
	},
	setFontSize:function() {
		HW.clearCookie('fontSize');
		HW.setCookie('fontSize',this.fontSize);
		s = {
			fontSize:this.fonts[this.fontSize]+'%'
		}
		HW.setStyle(document.body,s);
		this.setHeights();
	},
	setHeights:function() {
		var m = $('primaryContent');
		var s = $('supportContent');
		if(m && s && m.offsetHeight>s.offsetHeight) {
			var style = HW.getStyle(s);
			st = {
				height:m.offsetHeight-parseInt(style.paddingTop)-parseInt(style.paddingBottom)+'px'
			}
			HW.setStyle(s,st);
		}
	}
}
HW.attachEvent(window,'load',function() {Page.load();});

HW.Modules.load('FormInputs');
HW.Modules.load('DropDown');

HW.onLoaded(function() {
	new HW.FormInputs.ClearDefault("inputSearch");
	HW.DropDown.add('dropDownLink','dropDownParent','dropDownContent','dropDownOpen',null);
});
