// JavaScript Document
	
function querySt(respString, ji) {
hu = respString;
gy = hu.split("&");
for (i=0;i<gy.length;i++) {
ft = gy[i].split("=");
if (ft[0] == ji) {
return ft[1];
}
}
}

	function LoadTweets( feedID )
	{
		new TWTR.Widget({
		  version: 2,
		  id: feedID, 
		  type: 'profile',
		  rpp: 6,
		  interval: 6000,
		  width: 'auto',
		  height: 300,
		  theme: {
			shell: {
			  background: '#000066',
			  color: '#f7cd23'
			},
			tweets: {
			  background: '#000033',
			  color: '#f6fa84',
			  links: '#4aed05'
			}
		  },
		  features: {
			scrollbar: true,
			loop: false,
			live: false,
			hashtags: true,
			timestamp: true,
			avatars: false,
			behavior: 'all'
		  }
		}).render().setUser('yngling').start();
	}
	
	function SetContactSubmit()
	{
		$("#ajax-contact-form").submit(function()
		{
	 
			// 'this' refers to the current submitted form
			var str = $(this).serialize();
		 
			$.ajax({
				type: "POST",
				url: "contacted.php",
				data: str,
				success: function(msg){
		 
					$("#note").ajaxComplete(function(event, request, settings)
					{
		 
						if(msg == 'OK') // Message Sent? Show the 'Thank You' message and hide the form
						{
							result = '<div class="notification_ok">Your message has been sent. Thank you!</div>';
							$("#contactwrapper").hide();
						}
						else
						{
							result = msg;
						}
		 
						$(this).html(result);
		 
					});
		 
				},
				error: function(){
					$("#contactform").html("sorry, something went wrong there... maybe try later...");
				}

		 
			});
		 
			return false;
		 
		});	
	}
	
	function Blog( LoadType )
	{
		// alert( "Loading: " + LoadType );
		
		$("#blogpage").load( "blog.php?showpost=" + LoadType );
		
		return false;
		
	}
	
	function LoadDisco( CatNo )
	{
		
		$("#discobutton").attr("href", "discog.php?cat=" + CatNo);
		
		$("#discobutton").click();
		
		$("#discobutton").attr("href", "discog.php" );		
		
		// $("#discopage").load( "discog.php?cat=" + CatNo);
		
		return false;		
	}
