function translateToHCode()
{
    if (typeof(tbm_section) != "undefined")
    {
        tbm_section = tbm_section.replace(/\//, " - ");
    }

    if (typeof(tbm_subsection) != "undefined")
    {
        tbm_subsection = tbm_subsection.replace(/\//, " - ");
    }

    if (typeof(tbm_page_name) != "undefined")
    {
        s.pageName=tbm_page_name.replace(/<[a-zA-Z\/][^>]*>/g,"");

        //remove session id
        s.pageName=s.pageName.replace(/\;jsessionid\=.{23}/g,"");
    }
    else
    {
        s.pageName="tbm - " + document.location.pathname + " - " + document.title;

        //remove html
        s.pageName=s.pageName.replace(/<[a-zA-Z\/][^>]*>/g,"");

        //remove session id
        s.pageName=s.pageName.replace(/\;jsessionid\=.{23}/g,"");
    }

    if(typeof(tbm_channel) != "undefined")
    {
        s.channel=(tbm_channel.indexOf("tbm - ")>=0)?tbm_channel:"tbm - " + tbm_channel;
    }
    else if(typeof(tbm_section) != "undefined")
    {
        s.channel=(tbm_section.indexOf("tbm - ")>=0)?tbm_section.split('/')[0]:"tbm - " + tbm_section.split('/')[0];
    }
    else if (typeof(tbm_hierarchy) != "undefined")
    {
        s.channel=(tbm_hierarchy.indexOf("tbm - ")>=0)?tbm_hierarchy.split('|')[0]:"tbm - " + tbm_hierarchy.split('|')[0];
    }
    else
    {
        s.channel="tbm - nocategory";
    }

    s.server="thebigmoney.com";
    s.pageType="";
    if (typeof(tbm_sectionfront) != "undefined")
    {
        tbm_sectionfront=tbm_sectionfront.toLowerCase();
        s.prop1=(tbm_sectionfront.indexOf("tbm - ")>=0)?tbm_sectionfront:"tbm - " + tbm_sectionfront;
    }
    if (typeof(tbm_subsection) != "undefined")
    {
        tbm_subsection = tbm_subsection.toLowerCase();
        s.prop2=(tbm_subsection.indexOf("tbm - ")>=0)?tbm_subsection:"tbm - " + tbm_subsection;
    }
    if (typeof(tbm_content_type) != "undefined")
    {
        s.prop3=tbm_content_type.toLowerCase();
    }
    if (typeof(tbm_source) != "undefined")
    {
        s.prop4=tbm_source.toLowerCase();
    }
    else
    {
        s.prop4="thebigmoney.com";
    }

    if (typeof(tbm_author) != "undefined")
    {
        s.prop5=tbm_author.toLowerCase();
    }
    if (typeof(tbm_search_keywords) != "undefined")
    {
        s.prop6=tbm_search_keywords.toLowerCase();
    }
    if (typeof(tbm_search_type) != "undefined")
    {
        s.prop7=tbm_search_type.toLowerCase();
    }
    s.prop8="";
    s.prop9="";
    s.prop10="";
    s.prop11="";
    if (typeof(tbm_content_id) != "undefined")
    {
        s.prop12=tbm_content_id;
        if ( typeof(tbm_application) != "undefined" && tbm_application )
        {
              s.prop13 = "" ;
        }
        if (typeof(tbm_headline) != "undefined" && tbm_content_id != "")
        {
            s.prop13=tbm_headline + " - " + tbm_content_id;
        }
    }

    if(gup("page") == "full"){
        tbm_page_num="all";
    }

    if (typeof(tbm_page_num) != "undefined")
    {
        s.prop14=tbm_page_num;
    }
    if (typeof(tbm_printed) != "undefined") {
        s.prop19="printed page";
    }
    if (typeof(tbm_search_result_count) != "undefined")
    {
        s.prop21=tbm_search_result_count;
    }
    if (typeof(tbm_blog_name) != "undefined")
    {
        s.prop25=tbm_blog_name;
    }
    if (typeof(tbm_application) != "undefined")
    {
        s.prop32=tbm_application;
    }
    /* E-commerce Variables */
    s.campaign="";
    s.state="";
    s.zip="";
    s.events="";
    s.products="";
    s.purchaseID="";
    s.eVar1="";
    s.eVar2="";
    s.eVar3="";
    s.eVar4="";
    s.eVar5="";
    s.eVar6="";
    s.eVar7="";
    s.eVar8="";
    s.eVar9="";
    s.eVar10="";
    /* Hierarchy Variables */
    if (typeof(tbm_hierarchy) != "undefined")
    {
        s.hier1= tbm_hierarchy.toLowerCase();
    }
    else
    {
        s.hier1="nocategory";
    }
    s.hier2="thebigmoney.com|" + s.hier1;
    /************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
    var s_code=s.t();if(s_code)document.write(s_code)
}

function gup( name )
{
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return "";
  else
    return results[1];
}