	var Transition = new Class({
		Implements: [Options],
		options: {
		//Properties
		relevantContainer: '',
		contentContainer: '',
		landingPath: ''},
		
		//Constructor
		initialize: function(options){
			this.setOptions(options);
			this.startKore(this.options.contentContainer, this.options.relevantContainer);

		},
		
		//Assign all CSS relevance and Event Listeners
		startKore : function(contentContainer, relevantContainer){
			//Assign Ids to the menu item and as well store into an array
			var selectedLink = "empty";
			var menuCount = 0;
			var contentPath = new Array();
			$$(relevantContainer).each(function(menuItem){
				
				//Remove any whitespaces and replace with underscores
				//IE 7 and below fix
				var menuString = menuItem.get('text');
				menuString = menuString.replace(" ","-");
												
				menuItem.set('id', menuString);
				contentPath[menuCount] = menuItem.get('id');
				menuCount++;
				
			});
			
			
			//Pass through each array item and assign listeners
			contentPath.each(function(pathItem){

				
				$(pathItem).addEvents({
					'click' : function(){
						if(selectedLink == "empty" || selectedLink != pathItem){
							
						pathItem = pathItem.toLowerCase();
						selectedLink = pathItem;
						
						new Request({
							url: pathItem + ".php",
							onRequest: function(){
								
								$('content').set('html', '<div id="content-Loader"></div>');
								var loader = new Fx.Morph($('content'));
								loader.start.delay(0, loader, {'opacity': 1});
								
							},
							onSuccess: function(response){
								
								var timer = function(){
									$('content').setStyle('opacity', 0);
									$('content').set('html', response);
									var loader = new Fx.Morph($('content'));
									loader.start.delay(100, loader, {'opacity': [0,1]});	
									var stateObj = { foo: "bar" };
									history.pushState(stateObj, pathItem, "?page=" + pathItem);
								};
		
									timer.delay(600);
									
									
								
								
								
							},
							onFailure: function(){
								$('content').set('html', 'Problem occured loading page. Please refresh this page and try again.');
							}
						}).send();
						
						}}
				});
				
			});
		}
	
	});
