// JavaScript Document
jQuery(document).ready(function(){
	$("#menubottom a").hover(
		function(){
			
			var iconName = $(this).find("img").attr("src");
			var origen = iconName.split("x.")[0];
			$(this).find("img").attr({src: "" + origen + "on1.gif"});
			
			
			$(this).find("span").attr({
				"style": 'display:inline'
			});
			$(this).find("span").animate({opacity: 1, top: "-60"}, {queue:false, duration:400});
		}, 
		function(){
			var iconName = $(this).find("img").attr("src");
			var origen = iconName.split("on1.")[0];
			$(this).find("img").attr({src: "" + origen + "x.gif"});
			$(this).find("span").animate({opacity: 0, top: "-50"}, {queue:false, duration:400}, "linear",
				function(){
					$(this).find("span").attr({"style": 'display:none'});			
				}
			);
		});
	
	$("#astrategie").bind("click", function(){
		$("#topimg").attr("src","images/top_strategie.jpg");							
	});
	
	$("#aconcepts").bind("click", function(){
		$("#topimg").attr("src","images/top_creativeconcepts.jpg");							
	});
	
	$("#adesign").bind("click", function(){
		$("#topimg").attr("src","images/top_corporatebranddesign.jpg");							
	});
	
	$("#aproduction").bind("click", function(){
		$("#topimg").attr("src","images/top_production.jpg");							
	});

	$("#afollowup").bind("click", function(){
		$("#topimg").attr("src","images/top_followup.jpg");							
	});
	
	
});


function displayInfo() {
	var eerste   = 'ma';
	var tweede   = 'il';
	var derde    = 'to:';
	var adres    = 'sales';
	var domein   = 'g-design';
	var punt     = '.';
	var extensie = 'eu'; 
	document.write('<a href="');
	document.write(eerste+tweede+derde);
	document.write(adres);
	document.write('&#64;');
	document.write(domein);
	document.write(punt);
	document.write(extensie);  
	document.write('" class="maillink">'); 
	document.write(adres);
	document.write('&#64;');
	document.write(domein);
	document.write(punt);
	document.write(extensie);				
	document.write('</a>');
}


