	function SetIndex(in_element, in_value) { 
		var list = document.getElementById(in_element); 
		if(list&&list.options.length){ 
			for(var i=0; i<list.options.length; i++){ 
				if(list.options[i].value == in_value){
					list.selectedIndex = i; 
					return; 
				} 
			} 
		} 
	}

	function setCookie(c_name,value,exdays){
		var exdate=new Date();
		exdate.setDate(exdate.getDate() + exdays);
		var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString()+"; path=/");
		document.cookie=c_name + "=" + c_value;

		var c_value2=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString()+"; path=/members");
		document.cookie=c_name + "=" + c_value2;
	}

	function getCookie(c_name){
		var i,x,y,ARRcookies=document.cookie.split(";");
		for (i=0;i<ARRcookies.length;i++)
		{
		  x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));
		  y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);
		  x=x.replace(/^\s+|\s+$/g,"");
		  if (x==c_name)
			{
			return unescape(y);
			}
		  }
	}
	
	function showPlayerNote(playernotedivid){
		$('#'+playernotedivid).dialog({modal:true, height:200, width:400});
	}

// Google Analytics
	var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-21905368-1']);
  _gaq.push(['_trackPageview']);
  (function() {
	var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
// End Google Analytics
