// -----------------------------------------------------------------------------------
//
// Sophie Casson
// Page developed by Ara Yazedjian
// -----------------------------------------------------------------------------------
/*--------------------------------------------------------------------------*/




/*--------------------------------------------------------------------------*/

// Establish CSS-driven events via Behaviour script
var myrules = {

	'body' :  function(el){
			Effect.Center('WindowBox');
		window.onresize = function(el){
			Effect.Center('WindowBox');
		}
	},
	'img.MouseOver' : function(el){
		setMouseOver(el);
		element.onmouseover = function(){
			mouseGoesOver(this);
		}
		element.onclick = function(){
		}
		element.onmouseout = function(){
			mouseGoesOut(this);
		}
	},	
	'#icon_up_a img'  : function(){
		element.onload = function(el){
		}

		element.onclick = function(el){
			scrollUp('TextContentContainer', 'text1Container', '400');
		}
	},
	'#icon_down_a img'  : function(){
		element.onload = function(el){
		}
		element.onclick = function(el){
			scrollDown('TextContentContainer', 'text1Container', '400');
		}
	},
	'#icon_up_b img'  : function(){
		element.onload = function(el){
		}

		element.onclick = function(el){
			scrollUp('TextContentContainer', 'text2Container', '400');
		}
	},
	'#icon_down_b img'  : function(){
		element.onload = function(el){
		}
		element.onclick = function(el){
			scrollDown('TextContentContainer', 'text2Container', '400');
		}
	},

	a : function(element){
		element.onfocus = function(){
			this.blur();
		}
	}
		

};


// Add window.onload event to initialize
Behaviour.apply();
