// dynamoney article toolkit
// HP Print
function __TABBLO_TPT_LOAD(){Tabblo.embedded.sites.SettingsObject.preprocess.apply({Properties:{template:	'news' },FixedContent:{'logo':'http://o.aolcdn.com/art/ch_pf/print-logo'},Content:{'pagetitle':   { match: 'css', selector:'h1' }, 'text':{ match: 'css', selector:'.article>h1,.article>h2,.article>h3,.articleTxt,.articleCpRght', outputTagToo: true  }} }, []); Tabblo.embedded.printabulous();}
function MakePDF() { var tpS = document.createElement('script');tpS.setAttribute('type','text/javascript');tpS.setAttribute('charset','utf-8'); tpS.setAttribute('src','http://h30405.www3.hp.com/edit/tptboot/1.0');document.getElementsByTagName('body').item(0).appendChild(tpS);}
function pdfPrint(url){MakePDF();}
function showHpPop(iShow){
    // nothing
}
// set channel specific omniture vars for print
function TrackPDF(){
    var s_265=s_gi('aolpf'); 
    s_265.linkTrackVars='none';
    s_265.tl(this,'o','HP Print');
}

// Font Resize 
function switchFont(type, obj)
{
   if (type == 1) {
      document.getElementById("spanSm").innerHTML = "A";
      document.getElementById("spanMd").innerHTML = "<a href=\"javascript:void(0)\" onclick=\"switchFont(2, 'mediumText')\" rel=\"mediumText\" id=\"textMedium\" class=\"fontswitch\" title=\"medium font\">A</a>";
      document.getElementById("spanLg").innerHTML = "<a href=\"javascript:void(0)\" onclick=\"switchFont(3, 'largeText')\" rel=\"largeText\" id=\"textLarge\" class=\"fontswitch\" title=\"large font\">A</a>";
   } else if (type == 2) {
      document.getElementById("spanSm").innerHTML = "<a href=\"javascript:void(0)\" onclick=\"switchFont(1, 'smallText')\" rel=\"smallText\" id=\"textSmall\" class=\"fontswitch\" title=\"small font\">A</a>";
      document.getElementById("spanMd").innerHTML = "A";
      document.getElementById("spanLg").innerHTML = "<a href=\"javascript:void(0)\" onclick=\"switchFont(3, 'largeText')\" rel=\"largeText\" id=\"textLarge\" class=\"fontswitch\" title=\"large font\">A</a>";
   } else if (type == 3) {
      document.getElementById("spanSm").innerHTML = "<a href=\"javascript:void(0)\" onclick=\"switchFont(1, 'smallText')\" rel=\"smallText\" id=\"textSmall\" class=\"fontswitch\" title=\"small font\">A</a>";
      document.getElementById("spanMd").innerHTML = "<a href=\"javascript:void(0)\" onclick=\"switchFont(2, 'mediumText')\" rel=\"mediumText\" id=\"textMedium\" class=\"fontswitch\" title=\"medium font\">A</a>";
      document.getElementById("spanLg").innerHTML = "A";
   }
   // var object = obj.getAttribute("rel");
   var i = 1;
   var articleStr; 
	document.getElementById("articleHdln").className = obj;
	var flag = true;
	while (flag) {
	   try {
	       articleStr = "articleTxt" + i;
	       i++;
	       document.getElementById(articleStr).className = "articleTxt " +obj;
	   } catch (e) {
			flag = false;	   
	   }
	}
    return false;
}

