window.addEvent('domready', function()
{
	
	var load_int = new Request.HTML({url:'http://www.bisley.co.uk/products/multidrawers/a3_series/a3_series_spec.htm', 
		onSuccess: function(html) {
			//Clear the text currently inside the results div.
			$('pmbo_tab_products').set('text', '');
			//Inject the new DOM elements into the results div.
			$('pmbo_tab_products').adopt(html);
		},
		//Our request will most likely succeed, but just in case, we'll add an
		//onFailure method which will let the user know what happened.
		onFailure: function() {
			$('pmbo_tab_products').set('text', 'The request failed.');
		}
	});	
	
	var req1 = new Request.HTML({url:'http://www.bisley.co.uk/products/multidrawers/a3_series/a3_series_spec.htm', 
		onSuccess: function(html) {
			//Clear the text currently inside the results div.
			$('pmbo_tab_products').set('text', '');
			//Inject the new DOM elements into thae results div.
			$('pmbo_tab_products').adopt(html);
		},
		//Our request will most likely succeed, but just in case, we'll add an
		//onFailure method which will let the user know what happened.
		onFailure: function() {
			$('pmbo_tab_products').set('text', 'The request failed.');
		}
	});
	
	

	
	
	
		//load int
		load_int.send();
		
	$('request_page1').addEvent('click', function() {
		req1.send();
		
		var page1 = new Fx.Morph('page_01').set({
    	'background-color': '#8f9292'
		});
		
		var page2 = new Fx.Morph('page_02').set({
    	'background-color': '#CDCDCD'
		});
	});
	
	
	
});
	

