
// JavaScript Document

 var Rules = {
	 	
		'#download-li:mouseover, #icons:mouseover': function(element) {
			$('language-dropdown').style.visibility = "visible";
					
		},
		'#download-li:mouseout': function(element) {
			$('language-dropdown').style.visibility = "hidden";
					
		},
		
		'#ln-en:mouseover': function(element) {
			$('download-a').style.backgroundPosition = " 0 72px";
			$('download-icon-id').style.visibility = "visible";
		},
		'#ln-en:mouseout': function(element) {
			$('download-a').style.backgroundPosition = " 0 0";
			$('download-icon-id').style.visibility = "hidden";
		},
		
		'#ln-fr:mouseover, #ln-de:mouseover, #ln-es:mouseover, #ln-nl:mouseover': function(element) {
			$('download-a').style.backgroundPosition = " 0 0";
			$('download-icon-id').style.visibility = "visible";
		},
		'#ln-fr:mouseout, #ln-de:mouseout, #ln-es:mouseout, #ln-nl:mouseout': function(element) {
			$('download-a').style.backgroundPosition = " 0 0";
			$('download-icon-id').style.visibility = "hidden";
		},
		
		'.nav-live:mouseover': function(element) {
			element.style.backgroundPosition = " 0 72px";
			$(element.title +'-icon-id').style.visibility = "visible";
			$('language-dropdown').style.visibility = "hidden";
		},
		
		'.nav-live:mouseout': function(element) {
			element.style.backgroundPosition = " 0 0px";
			$(element.title +'-icon-id').style.visibility = "hidden";
					
		},
		
		'.nav-soon:mouseover': function(element) {
			element.style.backgroundPosition = " 0 36px";
			$(element.title +'-icon-id').style.visibility = "visible";
			$('language-dropdown').style.visibility = "hidden";
		},
		
		'.nav-soon:mouseout': function(element) {
			element.style.backgroundPosition = " 0 0px";
			$(element.title +'-icon-id').style.visibility = "hidden";
					
		},
		
		'#button-invent-img:mouseover': function(element) {
			element.src = "/media/images/button-invent-on.jpg";
		},
		
		'#button-invent-img:mouseout': function(element) {
			if(element.className != 'clicked'){
				element.src = "/media/images/button-invent-off.jpg";
			}
		},
		
		'#button-invent-img:click': function(element) {
			element.className = 'clicked';
			element.src = "/media/images/button-invent-on.jpg";
    		$("mediaplayer").sendEvent("LOAD","http://hadlow-pro.flexifoil.com/media/invent_hadlowpro_hi.FLV");
			$('button-revolve-img').src= 	"/media/images/button-revolve-off.jpg";
			$('button-revolve-img').className= 	"";
		},
		
		'#button-revolve-img:mouseover': function(element) {
			element.src = "/media/images/button-revolve-on.jpg";
		},
		
		'#button-revolve-img:mouseout': function(element) {
			if(element.className != 'clicked'){
				element.src = "/media/images/button-revolve-off.jpg";
			}
		},
		
		'#button-revolve-img:click': function(element) {
			element.className = 'clicked';
			element.src = "/media/images/button-revolve-on.jpg";
    		$("mediaplayer").sendEvent("LOAD","http://flexifoilvideos.s3.amazonaws.com/Revolve2008-web.flv");
			$('button-invent-img').src= 	"/media/images/button-invent-off.jpg";
			$('button-invent-img').className= 	"";
		},
		
		'#back-button-link:mouseover': function(element) {
			//alert("goo");
			$('back-button-link-img').src = "/media/images/back-button-on.jpg";
		},
		
		'#back-button-link:mouseout': function(element) {
			$('back-button-link-img').src = "/media/images/back-button-off.jpg";
		},
		
		'#ah-link-img:mouseover': function(element) {
			//alert("goo");
			$('ah-link-img').src = "/media/images/ah-on.gif";
		},
		
		'#ah-link-img:mouseout': function(element) {
			$('ah-link-img').src = "/media/images/ah-off.gif";
		},
		
		'#qt img:mouseover': function(element) {
			//alert("goo");
			element.src = "/media/images/qt-on.gif";
		},
		
		'#qt img:mouseout': function(element) {
			element.src = "/media/images/qt-off.gif";
		}
		,
		
		'#ipod img:mouseover': function(element) {
			//alert("goo");
			element.src = "/media/images/ipod-on.gif";
		},
		
		'#ipod img:mouseout': function(element) {
			element.src = "/media/images/ipod-off.gif";
		},
		
		'#features-button-1:click': function(element) {
			//alert("goo");
			$("mediaplayer").sendEvent("LOAD","http://hadlowpro.com/media/flv/six_strut_system.flv");
			$('features-text').innerHTML = "The addition of an extra strut has seen the kites incredible performance leap forward an extra notch. The additional strut supports the profile better to help it drive through kite loops. It also helps to improve the feedback you get from the bar as the kite has a more direct feel - this direct feel enables the you to instinctively feel what the kite is doing and where it is in the sky.";
		},
		'#features-button-2:click': function(element) {
			//alert("goo");
			$("mediaplayer").sendEvent("LOAD","http://hadlowpro.com/media/flv/wingtip_batterns.flv");
			$('features-text').innerHTML = "The Hadlow pros have oversized wingtips to aid the kite's fast turning ability and a narrow front tube for fast kite speed. These can mean that the kite can be tricky to launch especially in rough conditions. To help the kite relaunch the new design incorporates inflatable wingtip batons across the whole range. The smaller sizes 5.5, 7, 9, retain optional rigid baton, to provide direct turning response.";
		},
		'#features-button-3:click': function(element) {
			//alert("goo");
			$("mediaplayer").sendEvent("LOAD","http://hadlowpro.com/media/flv/profile_aerofoil_mod.flv");
			$('features-text').innerHTML = "Significant improvements have been achieved by designing a new aerofoil shape. The new AH PRO 9m and 11m kites race to the top of the window, delivering a punchy drive that is required for Aaron's powered riding style.";
		},
		'#features-button-4:click': function(element) {
			//alert("goo");
			$("mediaplayer").sendEvent("LOAD","http://hadlowpro.com/media/flv/reinforced_le_tube.flv");
			$('features-text').innerHTML = "The ultra-thin Leading Edge is supported in the centre section by two lines. This helps to maintain the correct Leading Edge shape and increase the kite power production. When in 4-line mode the effect is even more pronounced. The two four meter extensions are attached to the front lines which means the tow point of the kite is less effected when the kite is loaded up, thereby keeping the grunt in the kite. ";
		},
		'#features-button-5:click': function(element) {
			//alert("goo");
			$("mediaplayer").sendEvent("LOAD","http://hadlowpro.com/media/flv/ultra_thin_le_tube.flv");
			$('features-text').innerHTML = "Increases the speed through the window and therefore the maneuverability of the kite.";
		},
		'#features-button-6:click': function(element) {
			//alert("goo");
			$("mediaplayer").sendEvent("LOAD","http://hadlowpro.com/media/flv/dacron_cage.flv");
			$('features-text').innerHTML = "The kite is protected by Dacron reinforcement strips. These strips run from wingtip to wingtip along the leading edge and down the struts. Dacron is only placed on areas of the kite that need them, providing strength to high stress and wearable areas of the kite.";
		},
		
		
		
		
		
		
		
		   
 }