/* elections 2012 */
if(window.station == undefined) {
    window.station = '';
}

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src=\'" + gaJsHost + "google-analytics.com/ga.js\' type=\'text/javascript\'%3E%3C/script%3E"));

try {
        var pageTracker = _gat._getTracker("UA-5828686-3");
        pageTracker._setDomainName("none");
        pageTracker._setAllowLinker(true);
        pageTracker._setCustomVar(1,"Module","election2012",3);
        pageTracker._trackPageview();
} catch(err) {}


/* check for user-defined width */
try {
	if (nprElexWidth) {}
} catch (err) {
	nprElexWidth = '300';
}

try {
	if (nprElexHeight) {}
} catch (err) {
	nprElexHeight = '600';
}

try {
	if (nprElexAudio) {}
} catch (err) {
	nprElexAudio = true;
}

document.write(
'<script type="text/javascript">window.vsitag = {"imp":"npr_election_2012_widget"};</script>',
'<script type="text/javascript" language="javascript" src="http://www.npr.org/include/javascript/zigi.js"></script>',
//'<iframe src="http://www.npr.org/promos/election2012/elex2012.promo.enight.html?station=' + window.station + '&amp;hasAudio=' + nprElexAudio + '" width="' + nprElexWidth + '" height="' + nprElexHeight + '" scrolling="auto" marginheight="0" marginwidth="0" frameborder="0" style="border: 1px solid #CCC;" ></iframe>',
'<iframe src="http://www.npr.org/promos/election2012/elex2012.promo.heds.html?station=' + window.station + '&amp;hasAudio=' + nprElexAudio + '" width="' + nprElexWidth + '" height="' + nprElexHeight + '" scrolling="auto" marginheight="0" marginwidth="0" frameborder="0" style="border: 1px solid #CCC;" ></iframe>',
'');
