function mn(){
	
	// create link element
	var mn_link = document.createElement('a');
	mn_link.setAttribute('href', 'http://www.mylesnoton.com');
	mn_link.setAttribute('id', 'mn_link');
	mn_link.setAttribute('style', 'float: right; position: relative;');
	
	// create the logo element
	var mn_img = document.createElement('img');
	mn_img.setAttribute('id', 'mn_logo');
	mn_img.setAttribute('src', '/assets/images/mnlogosmall.png');
	mn_img.setAttribute('alt', 'Designed by Myles Noton');
	
	// get the root div element
	var mn = document.getElementById('mn');
	
	// Add the link element to the root div
	mn.appendChild(mn_link);

	if(document.addEventListener){
		
		// add the image to the link element
		document.getElementById('mn_link').appendChild(mn_img);
		
		document.getElementById('mn_logo').addEventListener('mouseover', function(e){
			// Try to get the container element
			var mn_container = document.getElementById('mn_container');
			
			// If the container element does not exist we need to create it, if not we just need to unhide it
			if(mn_container == null){
				var mn_container = document.createElement('div');
				
				mn_container.setAttribute('id', 'mn_container');
				mn_container.setAttribute('style', 'z-index: 10000; display: none; margin-top:-110px; margin-left: -108px; position:absolute; background-image: url(http://www.mylesnoton.com/assets/images/mn_badge.png); width: 237px; height: 108px;');
				document.getElementById('mn').appendChild(mn_container);
				
	
				// create link element
				var mn_fb_link = document.createElement('a');
				mn_fb_link.setAttribute('href', 'http://www.facebook.com/mylesnoton');
				mn_fb_link.setAttribute('id', 'mn_fb_link');
				document.getElementById('mn_container').appendChild(mn_fb_link);
				

				// create link element
				var mn_twitter_link = document.createElement('a');
				mn_twitter_link.setAttribute('href', 'http://www.twitter.com/mylesnoton');
				mn_twitter_link.setAttribute('id', 'mn_twitter_link');			
				document.getElementById('mn_container').appendChild(mn_twitter_link);
				
				// add icons
				var mn_fb = document.createElement('img');
				mn_fb.setAttribute('id', 'fb');
				mn_fb.setAttribute('src', 'http://www.mylesnoton.com/assets/images/fb_icon.png');
				mn_fb.setAttribute('alt', 'Follow me on Facebook');
				mn_fb.setAttribute('style', 'margin-top: 66px;  float: left; margin-left:180px;');
				document.getElementById('mn_fb_link').appendChild(mn_fb);

				var mn_twitter = document.createElement('img');
				mn_twitter.setAttribute('id', 'twitter');
				mn_twitter.setAttribute('src', 'http://www.mylesnoton.com/assets/images/twitter_icon.png');
				mn_twitter.setAttribute('alt', 'Follow me on Twitter');
				mn_twitter.setAttribute('style', 'margin-top: 66px; float: left; margin-left: 5px;');
				document.getElementById('mn_twitter_link').appendChild(mn_twitter);
				
				mn_container.style.display = 'block';
				
			} else {
				mn_container.style.display = 'block';
			}
			
			document.getElementById('mn_container').addEventListener('mouseout', function(e){
				document.getElementById('mn_container').style.display = 'none';
			}, true);
			
			document.getElementById('twitter').addEventListener('mouseover', function(e){
				document.getElementById('mn_container').style.display = 'block';
			}, true);
			
			document.getElementById('fb').addEventListener('mouseover', function(e){
				document.getElementById('mn_container').style.display = 'block';
			}, true);
			
			document.getElementById('twitter').addEventListener('mouseout', function(e){
				document.getElementById('mn_container').style.display = 'block';
			}, true);
			
			document.getElementById('fb').addEventListener('mouseout', function(e){
				document.getElementById('mn_container').style.display = 'block';
			}, true);
			
		}, true);
		
	} else {

		// add the image to the link element
		document.getElementById('mn_link').appendChild(mn_img);
		
		document.getElementById('mn_logo').attachEvent('onmouseover', function(e){
			// Try to get the container element
			var mn_container = document.getElementById('mn_container');
			
			// If the container element does not exist we need to create it, if not we just need to unhide it
			if(mn_container == null){
				var mn_container = document.createElement('div');
				
				mn_container.setAttribute('id', 'mn_container');
				mn_container.setAttribute('style', 'z-index: 10000; display: none; margin-top:-110px; margin-left: -108px; position:absolute; background-image: url(http://www.mylesnoton.com/assets/images/mn_badge.png); width: 237px; height: 108px;');
				document.getElementById('mn').appendChild(mn_container);
				
	
				// create link element
				var mn_fb_link = document.createElement('a');
				mn_fb_link.setAttribute('href', 'http://www.facebook.com/mylesnoton');
				mn_fb_link.setAttribute('id', 'mn_fb_link');
				document.getElementById('mn_container').appendChild(mn_fb_link);
				

				// create link element
				var mn_twitter_link = document.createElement('a');
				mn_twitter_link.setAttribute('href', 'http://www.twitter.com/mylesnoton');
				mn_twitter_link.setAttribute('id', 'mn_twitter_link');			
				document.getElementById('mn_container').appendChild(mn_twitter_link);
				
				// add icons
				var mn_fb = document.createElement('img');
				mn_fb.setAttribute('id', 'fb');
				mn_fb.setAttribute('src', 'http://www.mylesnoton.com/assets/images/fb_icon.png');
				mn_fb.setAttribute('alt', 'Follow me on Facebook');
				mn_fb.setAttribute('style', 'margin-top: 66px;  float: left; margin-left:180px;');
				document.getElementById('mn_fb_link').appendChild(mn_fb);

				var mn_twitter = document.createElement('img');
				mn_twitter.setAttribute('id', 'twitter');
				mn_twitter.setAttribute('src', 'http://www.mylesnoton.com/assets/images/twitter_icon.png');
				mn_twitter.setAttribute('alt', 'Follow me on Twitter');
				mn_twitter.setAttribute('style', 'margin-top: 66px; float: left; margin-left: 5px;');
				document.getElementById('mn_twitter_link').appendChild(mn_twitter);
				
				mn_container.style.display = 'block';
				
				
			} else {
				mn_container.style.display = 'block';
			}
			
			document.getElementById('mn_container').attachEvent('onmouseout', function(e){
				document.getElementById('mn_container').style.display = 'none';
			});	
			
			document.getElementById('mn_twitter_link').attachEvent('onmouseover', function(e){
				document.getElementById('mn_container').style.display = 'block';
			});
			
			document.getElementById('mn_fb_link').attachEvent('onmouseover', function(e){
				document.getElementById('mn_container').style.display = 'block';
			});
			
			document.getElementById('mn_twitter_link').attachEvent('onmouseout', function(e){
				document.getElementById('mn_container').style.display = 'block';
			});
			
			document.getElementById('mn_fb_link').attachEvent('onmouseout', function(e){
				document.getElementById('mn_container').style.display = 'block';
			});

			
		});
		
	}
}
