if(!window.Seraphim) {
	alert('You must include Seraphim.js!');
}
var MatthewBalogh = Class.create(Seraphim,{
	Name			: 'MatthewBalogh',
	Version		: '1.0',
	Author		: 'Matt Balogh <matt.balogh@eurorscg.com>',
	Creation	: 'Weds October 28 15:27:00 2009',
	initialize: function($super, args){
		args = (args) ? args : {};
		//this.sessionId = (args.sessionId) ? args.sessionId : 0;
		this.isResumeOpen = false;
		
		$super(args);
	},
	init: function($super, args){
		args = (args) ? args : {};

		Event.observe(window, 'resize',
			function() {
				this.alignBackground();
				//this.alignLogoFrames();
			}.bind(this)
		);
		
		this.alignBackground();
		//this.frameLogos();

		$super(args);
	},
	alignBackground: function() {
		$(document.body).setStyle({
			'backgroundPosition': '0px '+(this.getBrowserHeight()-480)+'px'
		});
	},
	alignLogoFrames: function(){
		$$('div.logo').each(function(el,ind){
			Element.clonePosition(
				$('logoFrame'+ind),
				$(el), {
					"offsetLeft": 0,
					"offsetTop": 0,
					"setWidth": false,
					"setHeight": false
				}
			);
		});
	},
	frameLogos: function() {
		$$('div.logo').each(function(el,ind){
			var divFrame = new Element('div', {
				id: 'logoFrame'+ind
			});
			$(divFrame).addClassName('logoFrame');

			var imgFrame = new Element('img', {
				width: 129,
				height: 74,
				src: '/images/logo/logoFrame.png',
				alt: ''
			});
			
			Element.clonePosition(
				$(divFrame),
				$(el), {
					"offsetLeft": 0,
					"offsetTop": 0,
					"setWidth": false,
					"setHeight": false
				}
			);
			$(divFrame).appendChild(imgFrame);
			$('content').appendChild(divFrame);
		});
	},
	printResume: function(){
		if(this.isResumeOpen) {
			new Effect.Morph($('bodyCopy'), {
				style: 'height: 600px', // CSS Properties
				duration: 1.5 // Core Effect properties
			});
			this.isResumeOpen = false;
		} else {
			new Effect.Morph($('bodyCopy'), {
				style: 'height: 2100px',
				duration: 1.5
			});
			this.isResumeOpen = true;
		}

		return false;
	}
});
