


/*
$(document).ready(function(){ 
$('.countrylinks').collapser({
target: 'next',
targetOnly: 'div',
expandHtml: 'Select your language',
collapseHtml: 'Close',
expandClass: 'expArrow',
collapseClass: 'collArrow'
});
$('.productlinks').collapser({
target: 'next',
targetOnly: 'ul',
expandHtml: 'Expand Text',
collapseHtml: 'Collapse Text',
expandClass: 'expArrow',
collapseClass: 'collArrow'
});
});
function mainmenu(){
$(" #nav ul ").css({display: "none"}); // Opera Fix
$(" #nav li").hover(function(){
$(this).find('ul:first').css({visibility: "visible",display: "none"}).show(400);
},function(){
$(this).find('ul:first').css({visibility: "hidden"});
});
} 
$(document).ready(function(){					
mainmenu();
});
end of sarahs
*/

$(document).ready(function(){

	//$("div.subnav").parent().append("<span></span>"); //Only shows drop down trigger when js is enabled (Adds empty span tag after ul.subnav*)

	$("ul.topnav li.expand").hover(function() { //When trigger is clicked...

		//Following events are applied to the subnav itself (moving subnav up and down)
		
		$(this).parent().find("div.subnav").slideDown('fast').show(); //Drop down the subnav on click
		$(this).parent().find("div.subnav0").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav1").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav2").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav3").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav4").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav5").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav6").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up

		$(this).parent().hover(function() {
		}, function(){
			$(this).parent().find("div.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		});

		//Following events are applied to the trigger (Hover events for the trigger)
		}).hover(function() {
			$(this).addClass("subhover"); //On hover over, add class "subhover"
		}, function(){	//On Hover Out
			$(this).removeClass("subhover"); //On hover out, remove class "subhover"
	});
	
	
	$("ul.topnav li.expand0").hover(function() { //When trigger is clicked...
				
		//Following events are applied to the subnav itself (moving subnav up and down)
						
		$(this).parent().find("div.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav0").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav1").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav2").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav3").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav4").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav5").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav6").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
				
				$(this).parent().hover(function() {
				}, function(){
					$(this).parent().find("div.subnav0").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
				});
		
				//Following events are applied to the trigger (Hover events for the trigger)
				}).hover(function() {
					$(this).addClass("subhover"); //On hover over, add class "subhover"
				}, function(){	//On Hover Out
					$(this).removeClass("subhover"); //On hover out, remove class "subhover"
	});
	
	
	$("ul.topnav li.expand1").hover(function() { //When trigger is clicked...
	
		//Following events are applied to the subnav itself (moving subnav up and down)
			
		$(this).parent().find("div.subnav1").slideDown('fast').show(); //Drop down the subnav on click
		$(this).parent().find("div.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav0").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav2").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav3").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav4").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav5").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav6").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
	
			$(this).parent().hover(function() {
			}, function(){
				$(this).parent().find("div.subnav1").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
			});
	
			//Following events are applied to the trigger (Hover events for the trigger)
			}).hover(function() {
				$(this).addClass("subhover"); //On hover over, add class "subhover"
			}, function(){	//On Hover Out
				$(this).removeClass("subhover"); //On hover out, remove class "subhover"
	});
	
	$("ul.topnav li.expand2").hover(function() { //When trigger is clicked...
		
		//Following events are applied to the subnav itself (moving subnav up and down)
				
		$(this).parent().find("div.subnav2").slideDown('fast').show(); //Drop down the subnav on click
		$(this).parent().find("div.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav0").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav1").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav3").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav4").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav5").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav6").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		
				$(this).parent().hover(function() {
				}, function(){
					$(this).parent().find("div.subnav2").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
				});
		
				//Following events are applied to the trigger (Hover events for the trigger)
				}).hover(function() {
					$(this).addClass("subhover"); //On hover over, add class "subhover"
				}, function(){	//On Hover Out
					$(this).removeClass("subhover"); //On hover out, remove class "subhover"
	});
	
	
	
	$("ul.topnav li.expand3").hover(function() { //When trigger is clicked...
			
		//Following events are applied to the subnav itself (moving subnav up and down)
					
		$(this).parent().find("div.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav0").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav1").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav2").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav3").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav4").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav5").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav6").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
			
			$(this).parent().hover(function() {
			}, function(){
				$(this).parent().find("div.subnav3").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
			});
	
			//Following events are applied to the trigger (Hover events for the trigger)
			}).hover(function() {
				$(this).addClass("subhover"); //On hover over, add class "subhover"
			}, function(){	//On Hover Out
				$(this).removeClass("subhover"); //On hover out, remove class "subhover"
	});
	
	$("ul.topnav li.expand4").hover(function() { //When trigger is clicked...
				
		//Following events are applied to the subnav itself (moving subnav up and down)
					
		$(this).parent().find("div.subnav4").slideDown('fast').show(); //Drop down the subnav on click
		$(this).parent().find("div.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav0").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav1").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav2").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav3").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav5").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav6").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
				
			$(this).parent().hover(function() {
			}, function(){
				$(this).parent().find("div.subnav4").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
			});
		
			//Following events are applied to the trigger (Hover events for the trigger)
			}).hover(function() {
				$(this).addClass("subhover"); //On hover over, add class "subhover"
			}, function(){	//On Hover Out
				$(this).removeClass("subhover"); //On hover out, remove class "subhover"
	});
	
	$("ul.topnav li.expand5").hover(function() { //When trigger is clicked...
				
		//Following events are applied to the subnav itself (moving subnav up and down)
					
		$(this).parent().find("div.subnav5").slideDown('fast').show(); //Drop down the subnav on click
		$(this).parent().find("div.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav0").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav1").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav2").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav3").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav4").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav6").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
				
			$(this).parent().hover(function() {
			}, function(){
				$(this).parent().find("div.subnav5").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
			});
		
			//Following events are applied to the trigger (Hover events for the trigger)
			}).hover(function() {
				$(this).addClass("subhover"); //On hover over, add class "subhover"
			}, function(){	//On Hover Out
				$(this).removeClass("subhover"); //On hover out, remove class "subhover"
	});
	
	
	$("ul.topnav li.expand6").hover(function() { //When trigger is clicked...
					
		//Following events are applied to the subnav itself (moving subnav up and down)
						
		$(this).parent().find("div.subnav6").slideDown('fast').show(); //Drop down the subnav on click
		$(this).parent().find("div.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav0").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav1").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav2").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav3").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav4").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		$(this).parent().find("div.subnav5").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
					
			$(this).parent().hover(function() {
			}, function(){
				$(this).parent().find("div.subnav6").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
			});
			
			//Following events are applied to the trigger (Hover events for the trigger)
			}).hover(function() {
				$(this).addClass("subhover"); //On hover over, add class "subhover"
			}, function(){	//On Hover Out
				$(this).removeClass("subhover"); //On hover out, remove class "subhover"
	});
	
	
	

});


$j(document).ready(function() {
		$j("#langselect").click(function() {
				if ($j("#openCloseIdentifier").is(":hidden")) {
						$j("#slider").animate({
								marginTop: "-18em"
						}, 500);
						$j("#btn").html('Select your language');
						$j("#openCloseIdentifier").show();
				} else {
						$j("#slider").animate({
								marginTop: "0"
						}, 500);
						$j("#btn").html('<b>Close</b>');
						$j("#openCloseIdentifier").hide();
				}
		});
});
