function _pap_combined (stationcalletters,newwindow,localtarget,twidth,theight){
	var localmode = true;
	if(localtarget == "" || localtarget == undefined){ localmode = false }
	if(twidth == "" || twidth == undefined){ twidth = 765 };
	if(theight == ""|| theight == undefined){ theight = 665 };
	document.write('<div style="padding: 4px; margin: 0px; background-color: #ccc; font-family: \'lucida unicode\', \'lucida grande\', \'trebuchet ms\', verdana, helvetica, arial, sans-serif; font-size: 11px; line-height: 14px; color: #636363;">');
	document.write('<div style="color: #ce0000; text-align: right; font-size: 14px; line-height: 16px; text-transform: uppercase; margin-bottom: 2px; letter-spacing: 1px;">news & public affairs</div>');
	document.write('<div style="background-color: #ce0000; color: #fff; padding: 2px; margin-bottom: 2px; text-align: right; font-size: 12px; text-transform: uppercase;">VIDEO ON DEMAND</div>');
	document.write('<div style="border-top: 1px solid #fff; padding: 3px;"><img src="http://www.pbs.org/newshour/video/modules/support/art/nhlogo.gif" width="120" height="33" alt="The NewsHour" /></div>');
	document.write('<div style="background-color: #f0f0f0; 	background: url(http://www.pbs.org/newshour/video/modules/support/art/bgstory.gif); margin-bottom: 10px;" onclick="_pap_open('+localmode+','+newwindow+',\'mod=0&pkg=22052009&seg=1&bra=news&bri=1&stn='+stationcalletters+'\',\''+localtarget+'\',\'/newshour/video/stnmodule.html\','+twidth+','+theight+',\'+stationcallletters+\')"><div style="padding: 6px;">');
	document.write('<img src="http://www.pbs.org/newshour/video/images/small/jan-june09/0522_gm.jpg" width="50" height="50" alt="" style="margin-right: 5px;" align="left" /><span style="color: #ce0000; font-size: 16px; line-height: 18px;">General Motors May be Headed for Bankruptcy</span>');
	document.write('<br />Kwame Holman provides an update on reports that General Motors is headed toward a bankruptcy filing before June.</div><div style="twidth: 100%; text-align: right;"><span style="background-color: #ce0000; twidth: 85px; color: #fff; padding: 2px 4px 2px 4px;" onclick="_pap_open('+localmode+','+newwindow+',\'mod=0&pkg=22052009&seg=1&bra=news&bri=1&stn='+stationcalletters+'\',\''+localtarget+'\',\'/newshour/video/stnmodule.html\','+twidth+','+theight+',\'+stationcallletters+\')"> WATCH NOW &raquo;</span></div></div>');
	document.write('<div style="border-top: 1px solid #fff; padding-top: 2px; padding: 3px;"><img src="http://www.pbs.org/newshour/video/modules/support/art/fllogo.gif" width="75" height="21" alt="Frontline" /></div>');
	document.write('<div style="background-color: #f0f0f0; 	background: url(http://www.pbs.org/newshour/video/modules/support/art/bgstory.gif); margin-bottom: 10px;" onclick="_pap_open('+localmode+','+newwindow+',\'mod=1&pkg=2614&bra=frol&bri=2&stn='+stationcalletters+'\',\''+localtarget+'\',\'/wgbh/pages/frontline/video/flv/stnmodule.html\','+twidth+','+theight+',\'+stationcallletters+\')">');
	document.write('<div style="padding: 6px;">');
	document.write('<img src="http://www.pbs.org/wgbh/pages/frontline/art/viewimages/50/2704.jpg" width="50" height="50" alt="" style="margin-right: 5px;" align="left" /><span style="color: #ce0000; font-size: 16px; line-height: 18px;"onclick="_pap_open('+localmode+','+newwindow+',\'mod=1&pkg=2704&bra=frol&bri=2&stn='+stationcalletters+'\',\''+localtarget+'\',\'/wgbh/pages/frontline/video/flv/stnmodule.html\','+twidth+','+theight+',\'+stationcallletters+\')">The Hugo Chavez Show</span><br />');
	document.write('Controversial, bombastic, he believes he is destined to change Venezuela and the whole of Latin America. Who is Hugo Chavez? And where is he headed?</div>');
	document.write('<div style="width: 100%; text-align: right;"><span style="background-color: #ce0000; width: 85px; color: #fff; padding: 2px 4px 2px 4px;"> WATCH NOW &raquo;</span></div></div>');
	document.write('</div>');
}

function _pap_open (localmode,spawnmode,target,localtarget,defaultbase,twidth,theight,stationcalletters){
	var url = localtarget + '?' + target;
	if(localtarget.indexOf('?') != -1){
		url = localtarget + '&' + target;
	}
	if(!localmode){ url = 'http://www.pbs.org' + defaultbase + '?' + target; }
	if(spawnmode){
		window.open(url,'publicaffairs','status,height='+theight+',width='+twidth+',scrollbars=no,resizable=no,toolbar=no');
	} else {
		location.href = url;
	}
}

