jQuery(document).ready(function($) {

				var sPath = window.location.pathname;
				var $sPage = sPath;

				if ($sPage == "" || $sPage == "/") {
					$sPage = "home";
				}
				$("a[href*='/go/'],a[href*='/mene/'],a[href*='/links/'],a[href*='/out/'],a[href*='/linker/'],input[onclick*='/links/']").live('click',function(){
					
					var $container_id = jQuery.trim($(this).parents("div").attr("id"));

					
					if ($container_id == "") {
						$container_id = "class-" + jQuery.trim($(this).parents("div").attr("class"));
					}
					
					var valueOrAnchor = "";
					var elementType = "";
					var str = "";

					if($(this).is("a")){
						str = $(this).attr("href");		
						valueOrAnchor =  jQuery.trim(($(this).text())) + "/";
						elementType = "link";
					}else if ($(this).is("input")){
						str = jQuery.trim($(this).attr("onclick"));
						valueOrAnchor = jQuery.trim($(this).attr("value")) + "/";
						elementType = "button";
					}
					
					titleText = jQuery.trim($(this).attr("title"));
					
					var myregexp = /(.*)\/(go|mene|links|out|linker)\/(.*)(\/|'|"|$)/;
					myregexp.exec(str);

					var $room_name_string = (RegExp.$3);
					
					if ($room_name_string == "") {
							$room_name_string = "noroom/";
					}
														
					var $id_clicked = String(elementType + "/" + valueOrAnchor + titleText + "/" + $container_id );

					// Send to Google Analytics
					 var _gaq2 = _gaq || [];
					_gaq2.push(['_trackEvent', $room_name_string, $sPage, $id_clicked] );
				});

		});
		
								
