
function printpop() {
var printme = document.all.story.innerHTML;

mywin=window.open();
 mywin.document.open();
 mywin.document.write('<STYLE>div.headline{ margin-left: 5px; color: #000000; text-align: left;font-size:large; margin-right: 40px;font-family: times,"times new roman"}font.caption {font-size:10px; color:#000000;}</STYLE>');
mywin.document.write('<DIV id="area"></DIV>');
 mywin.document.write('<CENTER><B>Thank you for visiting www.courierpostonline.com</B></CENTER>');
 mywin.document.write('<IMG SRC="http://www.courierpostonline.com/images/printhit.gif" height="1" width="1">');
mywin.document.all.area.innerHTML  = printme;

mywin.document.close();



 mywin.focus();
 mywin.print(); 
}



function jSlink (elink) {
document.location = document.affils.cgiurl.value + "weatherwrapper.pl?URL=http://www.gannettonline.com/external/weathernews/" + elink + "&AFFIL=" + document.affils.affil.value 
}

function jStech (elink) {
document.location = document.affils.cgiurl.value + "techwrapper.pl?URL=http://www.gannettonline.com/e/" + elink + "&AFFIL=" + document.affils.affil.value 
}



function setprop2(){
here=location.href;
thisPage = here.substring( here.lastIndexOf( "/" ) + 1 );
letters = thisPage.split('') ;
firstletter = letters[0];
secondletter = letters[1];
type = new Array("metro","sports","business","living","opinion");
slug = new Array("m","s","b","f","o");

for(i=0;i<=type.length;i++){
if(firstletter == slug[i] && !isNaN(secondletter) ){
prop2= type[i];
} // end if
} // end for
} // end function

if(typeof(prop2)=="undefined"){
setprop2();
}

function setprop3(){
here=location.href.toLowerCase();
locarray = here.split("/");
thisDir = locarray[locarray.length - 2];

if(locarray[0] == "http:"){
 prop3= thisDir;
} // end if
else{
 prop3= "cached";
} // end else

} //end function

if(typeof(prop3)=="undefined"){
setprop3();
}




function NewWindow(height,width,url) 
{window.open(url,"ShowProdWindow","menubars=0,scrollbars=1,resizable=1,height="+height+",width="+width); 
}

