﻿// JScript File


var titleMsg="Mecklai Fianacial - About Us";
var dtCh= "/";
var PHName="ctl00_cphMain_";

 function trim(str)
 {
        if(!str || typeof str != 'string')http://localhost:4489/UI/AboutUs/AboutUs/PositionDetails.aspx?post=1
            return null;
        return str.replace(/^[\s]+/,'').replace(/[\s]+$/,'').replace(/[\s]{2,}/,' ');
 }
 
 function fn_Position(str)
{
    WinPosition= window.open('PositionDetails.aspx?post='+str,'WinPosition','status=0, width=500, height=500, top=150, left=200,resizable=yes,scrollbars=1');
}




 function fn_Show(obj)
    {   
   
      if(obj=='A1' || obj=='')
    {     
      document.getElementById('ifmAU').src="AboutUs/HistoryBackground.aspx";
       document.title = 'About Us';
   // document.getElementById(PHName+'lblAbtHead').innerText = 'Mecklai Financial is one of the world’s leading risk  management consulting firms'
     }
     
     if(obj=='A2')
    {     
      document.getElementById('ifmAU').src="AboutUs/OurValue.aspx";
            document.title = 'Our Values ';
      
     }
     
       if(obj=='A3')
    {     
      document.getElementById('ifmAU').src="AboutUs/OurTeam.aspx";
        document.title = 'Our Team ';
     }
       if(obj=='A4')
    {     
      document.getElementById('ifmAU').src="AboutUs/CommunityAndMecklai.aspx";
       document.title = 'Community & Mecklai';
     }
     
     if(obj=='B1')
    {     
      document.getElementById('ifmAU').src="AboutUs/MecklaiDifferentiators.aspx";
        document.title = 'Mecklai Differentiators';
     }
     
       if(obj=='B2')
    {     
      document.getElementById('ifmAU').src="AboutUs/RiskManagementApproach.aspx";
       document.title = 'Risk Management Approach';
     }
     
       if(obj=='B3')
    {     
    
     document.getElementById('ifmAU').src="AboutUs/WhitePaper.aspx";
     document.title = 'White Paper';
        //window.open('AboutUs/WhitePaper/Mecklai FX Risk Management - Fertilizer Industry.pdf');    
      
     }
   
    if(obj=='B4')
    {     
      document.getElementById('ifmAU').src="AboutUs/OurClients.aspx";
       document.title = 'Selected Clients'
      
     }
     
         if(obj=='C1')
    {
    document.getElementById('ifmAU').src="AboutUs/PressRelease.aspx";   
     document.title = 'Press Centre '  
   
     }
     
       if(obj=='C2')
    {     
     document.getElementById('ifmAU').src="AboutUs/PressMediaRelation.aspx";  
      document.title = 'Press & Media Relations'  
     }
   
    if(obj=='C3')
    {     
     }
     
        if(obj=='D1')
    {     
   document.getElementById('ifmAU').src="AboutUs/CareerAtMecklai.aspx";
       document.title = 'Career at Mecklai' 
      //document.getElementById(PHName+'lblAbtHead').innerText  = 'We are a high-energy company, delivering solutions driven by knowledge of markets, business, risk management and technology with DELIGHT to our customers' 
     }
   
    if(obj=='D2')
    {     
      document.getElementById('ifmAU').src="AboutUs/PositionsAtMecklai.aspx";
       document.title = 'Positions at Mecklai' 
     }
    
   
   return false;
   
           
    }

function fnMedia()
{ window.open('../AboutUs/Media/Midday Update.pdf');    
}
function fnOpenWhitePaper()
{
    window.open('../AboutUs/WhitePaper/Mecklai FX Risk Management - Fertilizer Industry.pdf');    
}
function fn_onLoad()
{

 document.getElementById('2').childNodes[0].cssclass= 'tdLinkWhiteSelected';
// if(trim(document.getElementById('ctl00_cphMain_hdnType').value) !="")
//    {
//     fn_Show(document.getElementById('ctl00_cphMain_hdnType').value);
//     }
   document.getElementById('ifmAU').style.height =( screen.height - 450) +'px';

}


 function pageLoad()
 {
    
    fn_onLoad();
   
   
 }
 



