/*
	Name: vsBlockQuotes
	Author: Rui Pereira
	URI: http://iRui.ac/

	This work is licensed under a Creative Commons License
	http://creativecommons.org/licenses/by/2.5/
*/


/*
	Version 1.0 - 2007/02/11
*/	

function vsProcessBlockQuotes() {
	var quotes = document.getElementsByTagName("blockquote");
	
	for(var i=0; i<quotes.length; i++) {
		var innerBlock = document.createElement("DIV");
		innerBlock.className = "blockquote-inner";
		quotes[i].appendChild(innerBlock);
		while(quotes[i].childNodes.length>1) {
			innerBlock.appendChild(quotes[i].childNodes[0]);
		}
	}	
}

// Event Listener
// by Scott Andrew - http://scottandrew.com
// edited by Mark Wubben, <useCapture> is now set to false

function addEvent(obj, evType, fn){
	if(obj.addEventListener){
		obj.addEventListener(evType, fn, false); 
		return true;
	} else if (obj.attachEvent){
		var r = obj.attachEvent('on'+evType, fn);
		return r;
	} else {
		return false;
	}
}	

// Register the init of Sliders on the onload event of the page
addEvent(window, "load", vsProcessBlockQuotes);





