			
			// This function finds Elements by classname
			document.getElementsByClassName = function(cl) {
				var retnode = [];
				var myclass = new RegExp('\\b'+cl+'\\b');
				var elem = this.getElementsByTagName('*');
				for (var i = 0; i < elem.length; i++) {
				var classes = elem[i].className;
				if (myclass.test(classes)) retnode.push(elem[i]);
				}
				return retnode;
			};
			

			//created by: Sanne Koopman
			//for: Malmberg praxis bulletin
			//date: 2-20-2007
			
			//****** Adding googlecode in the onclick event of an a href in the class you add to the function
			//****** By example: addGoogleCode("contentbody");
			//****** Searches throug contentbody for a href's and add the onClick code to every a href which includes 'sites/files'
		
			function addGoogleCode(className){
				var strCurrentClass = document.getElementsByClassName(className)				
				var strElements = strCurrentClass[0].getElementsByTagName('a');
					if(strCurrentClass.length > 0){
						for(var i = 0;i<strElements.length;i++ ){		
							var strA =  strElements[i];
							var strHref = strA.href.toLowerCase()
							var numHref = strHref.indexOf('sites/files');
							
							if (numHref > 0){
								var strHref = strHref.split('/files/')[1]
								var strStripped = strHref.split('.')[0]
								
								strA.onclick=function() {
									urchinTracker ('/downloads/"+strStripped+"')
								}
							}
						}
				}
			}