function clickQuote(){
  if (!document.getElementsByTagName || !document.createElement || !document.createTextNode) return false;
	
	var quote = document.getElementById('testimonials');
	var sidebar = document.getElementById('secondary');
	
	if(quote && sidebar && isDecendant(quote, sidebar)){
		var bq = quote.getElementsByTagName("blockquote");
		
		for (var i=0; i<bq.length; i++) {
			var url = bq[i].getAttribute("cite");
			var quoteChildren = bq[i].getElementsByTagName('*');
			var elem = quoteChildren[quoteChildren.length - 1];
			var link = document.createElement("a");
			var link_text = document.createTextNode(" additional testimonials");
			link.appendChild(link_text);
			link.setAttribute("href",url);
			var superscript = document.createElement("sup");
			superscript.appendChild(link);
			// add the markup to the last element node in the blockquote
			elem.appendChild(superscript);
		}
		
		quote.onclick = function() {
			window.location=url;
			}
		quote.style.cursor = "pointer";
	}	
	
		
	
}


addLoadEvent(clickQuote);


function isDecendant(decendant,ancestor){
    return ((decendant.parentNode==ancestor)  ||
        (decendant.parentNode!=document) &&
            isDecendant(decendant.parentNode,ancestor));
}
