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

								var sPath = window.location.pathname;
								var $sPage = sPath.substring(sPath.lastIndexOf('/') + 1);

								if ($sPage == "") {
									$sPage = "home";
								}
																
								$("a[href*='/go/'],a[href*='/links/'],a[href*='/out/'],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"));
									}
									
									if ($container_id != "") {
										$container_id += " section";
									}
									
									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|links|out)\/(.*)(\/|'|"|$)/;
									myregexp.exec(str);

									var $room_name_string = (RegExp.$3);
									
									if ($room_name_string == "") {
											$room_name_string = "noroom/";
									}
																		
									//var $virtual_request_url = String("/goals/" + $room_name_string + sPage + elementType + "/" + valueOrAnchor + titleText + "/" + $container_id + "-4");
									
									//"page:" + sPage + "/partofpage:" + $container_id + "/" + "clickedon:" + elementType + "/" + "title:" + titleText + "/"  + valueOrAnchor + "room name:" + $room_name_string;									
									
									//alert($virtual_request_url);

									//_gaq.push(['_trackPageview',$virtual_request_url]);
									
									var $id_clicked = String(elementType + "/" + valueOrAnchor + titleText + "/" + $container_id + "-6");

									createCookie('page_clicked', $sPage,0);
									createCookie('room_clicked',$room_name_string,0);
									createCookie('id_clicked', $id_clicked ,0);
									});
								});

