/* 2010 Pepsi Clutch (topic_id=9643746) */

function showArchive() {
	bam.popModule.show({
		htmlContent    : '<iframe src="/sponsors/pepsi/clutch/y2010/archive.jsp" width="736" height="360" frameborder="0" marginheight="0" marginwidth="0"></iframe>', 
		width          : 736,
		height 		   : 360,
		overlayOpacity : 0.8,
		preShow        : function(){},
		postShow       : function(){}
	});
}

var poll_key = "ZsyXiOGrDJfpcsDpPJws39UYT2A0";

$(function(){
	bam.loadSync("/shared/scripts/bam/bam.poll.js","/shared/scripts/bam/bam.popModule.js");
	bam.popModule.init({
		css        : "/sponsors/pepsi/clutch/y2010/popModule.css",
		overlayCss : "/shared/css/bam/bam.overlay.css"
	});

/*
	$('#vtppoll').prepend('<div id="pollHeader"><strong>Vote Now</strong> for the Pepsi<br /> Clutch Performer of the Year</div><div id="pollContainer" class="p_'+poll_key+'"><div id="pollQuestion" class="pollQuestion"></div><div id="pollAnswers"><form class="pollForm" name="pollForm"></form></div></div><div id="resultsContainer"></div>');

	var poll_vtp = new bam.poll.Poll({
		key:				poll_key,
		showResults:		"yes",
		submitImg:			"/sponsors/pepsi/clutch/y2010/images/poll_submit.jpg",
		sortOrder:			"ascending", // ascending | descending
		sortType:			"text", // text | number | last-name
		sortResultsByCount:	"no", // yes | no
	    resultType:			"percent", // percent | count
		showTotalVotes:		"no", // yes | no
		columns:			"1",
		resultsText:		"Thanks for voting. Check back at the end of October when the 2010 MLB Clutch Performer of the Year will be announced.", // default results text	
		resultsCallback:	function(){
			$('#vtppoll').append('<iframe src="http://fls.doubleclick.net/activityi;src=2155040;type=pepsi572;cat=mlbcl036;ord=' + ran_number + '?" width="1" height="1" frameborder="0"></iframe>');
		}	
	});
	
	poll_vtp.init();
// */
	
});
