﻿/// <reference path='~/jQuery/jQuery-vsdoc.js' />
var _aup = Object()

_aup.OnLoad = function() {
	// Position the About Us div
	_aup.Div = $('#aboutUs').css({ left: _mp.Frame.width - _mp.Frame.padding - _aup.width - 8 + 'px' })
	_aup.SelectedMenu = $('.menu.aboutUs.sel')
	// Pre-load the about us text image
	var img = new Image()
	img.src = _aup.imgSrc
	_aup.Div.append(img)
	_aup.image = $('#aboutUs img')
}

_aup.DrawPage = function() {
	var height = _aup.image.height() - 8
	_aup.Div.css({ top: _mp.LogoMenu.logoTop - height + 'px' })
	_aup.image.css({ opacity: 1 })
						.animate({ opacity: 'show' }, { duration: 1000 })
	return _aup.SelectedMenu;
}

_aup.HidePage = function() {
	_aup.image.hide();
}

