window.addEvent('domready', function()
{
	
	var load_int = new Request.HTML({url:'http://www.bisley.com/products/systemfile_range/combination_units_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.com/products/systemfile_range/combination_units_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 req2 = new Request.HTML({url:'http://www.bisley.com/products/systemfile_range/tambour_cupboards_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 req3 = new Request.HTML({url:'http://www.bisley.com/products/systemfile_range/two_door_cupboards_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 req4 = new Request.HTML({url:'http://www.bisley.com/products/systemfile_range/combination_locking_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 req5 = new Request.HTML({url:'http://www.bisley.com/products/systemfile_range/internal_fitments_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.');
		}
	});
	
	
	
	
	
		//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'
		});
		
		var page3 = new Fx.Morph('page_03').set({
    	'background-color': '#CDCDCD'
		});
		
		var page4 = new Fx.Morph('page_04').set({
    	'background-color': '#CDCDCD'
		});

		var page5 = new Fx.Morph('page_05').set({
    	'background-color': '#CDCDCD'
		});
	});
	
	$('request_page2').addEvent('click', function() {
		req2.send();
		
		var page1 = new Fx.Morph('page_01').set({
    	'background-color': '#CDCDCD'
		});
		
		var page2 = new Fx.Morph('page_02').set({
    	'background-color': '#8f9292'
		});
		
		var page3 = new Fx.Morph('page_03').set({
    	'background-color': '#CDCDCD'
		});
		
		var page4 = new Fx.Morph('page_04').set({
    	'background-color': '#CDCDCD'
		});

		var page5 = new Fx.Morph('page_05').set({
    	'background-color': '#CDCDCD'
		});
	});
	
	$('request_page3').addEvent('click', function() {
		req3.send();
		
		var page1 = new Fx.Morph('page_01').set({
    	'background-color': '#CDCDCD'
		});
		
		var page2 = new Fx.Morph('page_02').set({
    	'background-color': '#CDCDCD'
		});
		
		var page3 = new Fx.Morph('page_03').set({
    	'background-color': '#8f9292'
		});
		
		var page4 = new Fx.Morph('page_04').set({
    	'background-color': '#CDCDCD'
		});

		var page5 = new Fx.Morph('page_05').set({
    	'background-color': '#CDCDCD'
		});
	});
	
	$('request_page4').addEvent('click', function() {
		req4.send();
		
		var page1 = new Fx.Morph('page_01').set({
    	'background-color': '#CDCDCD'
		});
		
		var page2 = new Fx.Morph('page_02').set({
    	'background-color': '#CDCDCD'
		});
		
		var page3 = new Fx.Morph('page_03').set({
    	'background-color': '#CDCDCD'
		});
		
		var page4 = new Fx.Morph('page_04').set({
    	'background-color': '#8f9292'
		});

		var page5 = new Fx.Morph('page_05').set({
    	'background-color': '#CDCDCD'
		});
	});

	$('request_page5').addEvent('click', function() {
		req5.send();
		
		var page1 = new Fx.Morph('page_01').set({
    	'background-color': '#CDCDCD'
		});
		
		var page2 = new Fx.Morph('page_02').set({
    	'background-color': '#CDCDCD'
		});
		
		var page3 = new Fx.Morph('page_03').set({
    	'background-color': '#CDCDCD'
		});
		
		var page4 = new Fx.Morph('page_04').set({
    	'background-color': '#CDCDCD'
		});

		var page5 = new Fx.Morph('page_05').set({
    	'background-color': '#8f9292'
		});
	});
	
	
	
	
});
	
