
function Quote(_theQuote, _quoter, _position, _company){
	this.theQuote = _theQuote;
	this.quoter = _quoter;
	this.position = _position;
	this.company = _company;
}

function getRandomQuote(){
	if (allQuotes.length > 0){
		return 	allQuotes[Math.floor(Math.random() * allQuotes.length)]; 
	} else {
		return new Quote("", "", "", "");
	}
	
}

function injectQuoteToPage(){
	var currentQuote = getRandomQuote();
	
	var quoteHtml = '';
	quoteHtml += "<div class='quotebox_quote'>";
	quoteHtml += currentQuote.theQuote;
	quoteHtml += "</div>";

	quoteHtml += "<div class='quotebox_endquote'>";
	quoteHtml += "<img class='quotebox_endquote_img' src='/global/img/quote_end.gif'>";
	quoteHtml += "</div>";
	
	quoteHtml += "<div class='quotebox_attribute'>";
	quoteHtml += currentQuote.quoter + "<br/>" + currentQuote.position + "<br/>" + currentQuote.company;
	quoteHtml += "</div>";

	document.getElementById("theQuoteHolder").innerHTML = quoteHtml;
}


var allQuotes = [];

//adap.tv
allQuotes.push(new Quote("Adap.tv is fortunate to have a productive, long-running partnership with ScanScout, involving a number of shared customers. We often recommend ScanScout to OneSource publishers, since they provide strong technology and excellent monetization.", "Teg Grenager", "Founder and VP Product", "Adap.tv"));

//akamai
//allQuotes.push(new Quote("ScanScout's in-stream video advertising is an effective solution to increase revenue. ScanScout has done a great job with our video customers, making them significant money.", "Tim Napoleon", "Chief Strategist Digital Media", "Akamai Technologies"));


//publicis modem
allQuotes.push(new Quote("ScanScout's proprietary technology and strong reach have made it a popular choice among advertisers who want to take advantage of in-stream video's branding capabilities. The comScore rankings back up what advertisers have known for some time: ScanScout is the premier in-stream ad provider for brands intent on connecting with any targeted audience.", "Yong Sung", "Media Supervisor", "Publicis Modem"));

//liverail
allQuotes.push(new Quote("LiveRail enjoys an excellent partnership with ScanScout - their knowledgeable, responsive team and ease of integration enable us to work quickly and effectively with a large number of mutual publishers. We look forward to expanding this relationship as the market for online video monetization continues to grow.", "Niccolo Pantucci", "EVP", "LiveRail"));

//brightcove
allQuotes.push(new Quote("Scanscout is a Premier Partner in the Brightcove Alliance, offering a powerful advertising solution for Brightcove publishers. The integration is easy, and their combination of pre-roll and overlay ads ensures 100% fill rate and helps publishers to monetize their videos effectively.", "Chris Johnston", "Director, Ad Product Management & Technology Partnerships", "Brightcove"));

//theplatform
allQuotes.push(new Quote("Many of thePlatform's customers have an ad-supported business model for their online video.  ScanScout is a great ad network partner that can help our customers achieve their business objectives.", "Jordan Friedman", "Sr. Mgr. Business Development", "thePlatform"));