
function onClickLogonMenu() 
{
	$sel = 	jQuery("#logon_dialog");
	$sel.fadeIn("slow");
}

function onClickLogonCancel()
{
	$sel = 	jQuery("#logon_dialog");
	$sel.fadeOut("slow");
}

function postProcess() {
	if (isMobile)
	  mobilizeHrefs();
}

function mobilizeHrefs() {
		$('a#aflickr').attr('href','http://m.flickr.com/#/photos/akwebb/');		
}

function hookLogon() {
	  jQuery('#logon_item').click(function() {
    	  jQuery('#logon_dialog').fadeIn('slow', function() {
	      });
	  });		
}

function hookLogout() {
	  jQuery('#logout_item').click(function() {
    	  jQuery('#logon_dialog').fadeOut('slow', function() {
	      });
	  });
}

function showLabel(labelName)
{
	$(".label:not(" + labelName + ")").fadeOut(800); 
	$(labelName).fadeIn(1000);
}

function fadeStuff()
{
		$("#arrow_upper").fadeIn(2000);
		$(".iqr").click(function(){$("#qr_image").fadeIn(100);$("#sil").fadeOut(300);$("#info").fadeOut(300);});
		$("#qr_image").click(function(){$(".qr").fadeOut(800);$("#qr_image").fadeOut(300);$("#sil").fadeIn(1000);$("#info").fadeIn(1000);$(".qr").fadeOut(800);});		
		$("#info").hover(function(){$(".icon").fadeIn(1000);$("#arrow_upper").fadeOut(600);$("#arrow_lower").fadeIn(2000);});
		$("#sil").hover(function(){$(".icon").fadeIn(1000);$("#arrow_upper").fadeOut(600);$("#arrow_lower").fadeIn(2000);});	  

		$(".iqr").hover(function(){showLabel(".qr")});		
		$(".iemail").hover(function(){showLabel(".email")});
		$(".ifacebook").hover(function(){showLabel(".facebook")});
		$(".ilive").hover(function(){showLabel(".live")});		
		$(".iflickr").hover(function(){showLabel(".flickr")});
		$(".iakda").hover(function(){showLabel(".akda")});		
		$(".iportal").hover(function(){showLabel(".portal")});		
		$(".igplus").hover(function(){showLabel(".gplus")});		
}
