  var domain = "exilant.com";
  var subjectArray = {
                        'evincus_overview.html': {'subject':"Evincus overview", 'authorid': "mahesh.hebbar"},
                        'evincus_module.html': {'subject':"Evincus module view", 'authorid': "mahesh.hebbar"},
                        'evincus_benefits.html': {'subject':"Evincus benefits", 'authorid': "mahesh.hebbar"},
                        'exility_overview.html': {'subject':"Exility - Clients buy results not software", 'authorid': "michael.joubert"},
                        'Exility_Maintenance.html': {'subject':"Exility - Reducing risk of software ownership ", 'authorid': "michael.joubert"},
                        'Exility_Requirements.html': {'subject':"Exility - Do you handle evolving requirements effectively?", 'authorid': "michael.joubert"},
                        'Exility_Benefits.html': {'subject':"Exility - How does Exility deliver results?", 'authorid': "michael.joubert"},
                        'campaign_data.html': {'subject':"Predictable data consolidation vital for on-time campaign execution", 'authorid': "michael.joubert"},
                        'campaign_effectiveness.html': {'subject':"Status monitoring and effectiveness measurement of campaigns", 'authorid': "michael.joubert"},
                        'campaign_overview.html': {'subject':"Campaign Management Solution Overview", 'authorid': "michael.joubert"},
                        'campaign_standardizing.html': {'subject':"Standardizing implementation of campaign processing and business rules", 'authorid': "michael.joubert"},
                        'campaign_visualization.html': {'subject':"Building a campaign data visualization platform", 'authorid': "michael.joubert"},
                        'cartopret_mapping.html': {'subject':"Mapping simplified with Cartopret", 'authorid': "john.joseph"},
                        'cartopret_module.html': {'subject':"Cartopret Module View", 'authorid': "john.joseph"},
                        'cartopret_operation.html': {'subject':"Improve B2B operational efficiency with Cartopret", 'authorid': "john.joseph"},
                        'cartopret_overview.html': {'subject':"Cartopret Overview", 'authorid': "john.joseph"},
                        'cartopret_risks.html': {'subject':"Reduce business risk with Cartopret", 'authorid': "john.joseph"},
                        'casestudy_campaign.html': {'subject':"Marketing campaign management - Case study", 'authorid': "michael.joubert"},
                        'casestudy_contact_center.html': {'subject':"Contact center performance - Case study", 'authorid': "john.joseph"},
                        'casestudy_performance.html': {'subject':"Public sector performance management - Case study", 'authorid': "michael.joubert"},
                        'cs_analytics.html': {'subject':"Insight through Analytics in Contact Center", 'authorid': "john.joseph"},
                        'cs_dataquality.html': {'subject':"Contact center data quality", 'authorid': "john.joseph"},
                        'cs_metrics.html': {'subject':"Derive proper metrics in timely manner", 'authorid': "john.joseph"},
                        'cs_overview.html': {'subject':"Customer service performance management overview", 'authorid': "john.joseph"},
                        'nirmanith_coordination.html': {'subject':"Departmental coordination in distributed environment through Nirmanith", 'authorid': "anand.v"},
                        'nirmanith_datadriven.html': {'subject':"Make data-driven decisions with Nirmanith", 'authorid': "anand.v"},
                        'nirmanith_managing_risk.html': {'subject':"Managing risks having severe impacts", 'authorid': "anand.v"},
                        'nirmanith_moduleview.html': {'subject':"Nirmanith Module Overview", 'authorid': "anand.v"},
                        'nirmanith_overview.html': {'subject':"Nirmanith Overview", 'authorid': "anand.v"},
                        'pm_analytics.html': {'subject':"Applying analytics to improve public sector services", 'authorid': "michael.joubert"},
                        'pm_discover.html': {'subject':"Discover value of integrated data", 'authorid': "michael.joubert"},
                        'pm_metrics.html': {'subject':"Deriving metrics to measure performance", 'authorid': "michael.joubert"},
                        'pm_overview.html': {'subject':"Government Performance Management Solution Overview", 'authorid': "michael.joubert"},
                        'bi_approach.html': {'subject':"Approach to implement BI solution", 'authorid': "mahesh.hebbar"},
                        'bi_overview.html': {'subject':"Business Intelligence Services", 'authorid': "mahesh.hebbar"},
                        'casestudy_bi_pi.html': {'subject':"Intelligence automation and reporting system", 'authorid': "mahesh.hebbar"},
                        'casestudy_bi_rlwy.html': {'subject':"Data consolidation and exchange platform", 'authorid': "mahesh.hebbar"},
                        'casestudy_bi_rtl.html': {'subject':"Retail operations reporting", 'authorid': "mahesh.hebbar"},
                        'casestudy_bi_sas.html': {'subject':"SAS marketing analytics", 'authorid': "mahesh.hebbar"},
                        'casestudy_bi_web.html': {'subject':"Web analytics reporting", 'authorid': "mahesh.hebbar"},
                        'casestudy_promotion.html': {'subject':"Trade promotion management case study", 'authorid': "jacob.j"},
                        'promozio_benefits.html': {'subject':"Promozio benefits", 'authorid': "jacob.j"},
                        'promozio_module.html': {'subject':"Promozio module view", 'authorid': "jacob.j"},
                        'promozio_overview.html': {'subject':"Promozio overview", 'authorid': "jacob.j"}
                        }; 

var  conactUsSubjectArray =
         {
          'reqServiceContact':{'subject':"Request for services",'authorid':" marketing"},
          'careersContact':{'subject':"Employment opportunities",'authorid':"hr"},
          'mediarltdQueriesContact':{'subject':"Media related queries",'authorid':"hr"},
          'websiteFeedbackContact':{'subject':"Website feedback",'authorid':"webmaster"},
          'nirmanithContact':{'subject':"Nirmanith",'authorid':"anand.v"},
          'cartpretContact':{'subject':"Cartopret",'authorid':"john.joseph"},
          'seamlessConact':{'subject':"Seamless",'authorid':"sales-seamless"},
          'weaveitContact':{'subject':"WeaveIT",'authorid':"sales-weaveit"},
          'genenqcontact':{'subject':"General Enquiries",'authorid':" corporate"}
         }

function mailtoFriend(mailtofriendid)
{
    var urllink = window.location;
    var m = "I thought this might interest you...";
    var sendlink =  document.getElementById(mailtofriendid);
    var p = location.pathname.lastIndexOf('/');
    var filename = location.pathname.substr(p+1);
    var subjectsplit = subjectArray[filename];
    var subject   =   subjectsplit['subject'];
   if(subject==null)
    {
      subject ="";
    }
   
       sendlink.href = "mailto:"+""+"?subject="+subject+"&body="+m+"%0A%0D"+urllink;
 }


function  contactauthor(contactid)
{
    var p = location.pathname.lastIndexOf('/');
    var filename = location.pathname.substr(p+1);
    var subjectsplit = subjectArray[filename];
    var subject   =   subjectsplit['subject'];
    var contactauthor  = subjectsplit['authorid']; 
    if(subject==null)
    {
      subject ="";
    }
     if(contactauthor==null)
    {
      contactauthor ="";
    }
    
     var contactmail =  document.getElementById(contactid);
     contactmail.href = "mailto:" + contactauthor + "@" + domain +"?subject=" + subject;
     
}

function conactUsAuthor(contactid)
{
    var subjectsplit = conactUsSubjectArray[contactid];
    var subject   =   subjectsplit['subject'];
    var contactauthor  = subjectsplit['authorid']; 
    if(subject==null)
    {
      subject ="";
    }
     if(contactauthor==null)
    {
      contactauthor ="";
    }
    
     var contactmail =  document.getElementById(contactid);
     contactmail.href = "mailto:" + contactauthor + "@" + domain +"?subject=" + subject;
     
}