﻿function showSubMenu_el(visible)
    {
    //shows/hides the Greek sub menu in the submenu div
       if (visible == 'true')
       {
           var html = '<ul id="csssubmenu">'
           html = html + '<li id="bottomleftspacer">'       
           html = html + '<li id="bottomleftimage">'       
           html = html + '<li id="bottomleftorangespacer">'       
           html = html + '<li class="widthcommit"><a href="Profile_Commitment.aspx">Δέσμευση</a>'
           html = html + '<li class="divider">|'        
           html = html + '<li class="widthperseus"><a href="Profile_Perseus.aspx">Περσεύς</a>'
           html = html + '<li class="divider">|'         
           html = html + '<li class="widthdirectors"><a href="Profile_Directors.aspx">Διοικητικό Συμβούλιο</a>' 
           html = html + '<li class="divider">|'         
           html = html + '<li class="widthfactory"><a href="Profile_Factory.aspx">Εργοστάσιο</a>' 
           html = html + '<li class="divider">|'        
           html = html + '<li class="widthaqua"><a href="Profile_Aquaculture.aspx">Ιχθυοκαλλιέργεια</a>'       
           html = html + '<li id="bottomrightorangespacer">'
           html = html + '<li id="bottomrightimage">'       
           html = html + '<li id="bottomrightspacer"></li></ul>' 
           document.getElementById('ctl00_submenu').innerHTML = html;
       }
       else
       {  
       //document.getElementById('ctl00_submenu').innerHTML = ''
            var s = new String(document.getElementById('ctl00_submenu').innerHTML);
            var exists = s.search(/menubottom.gif/);
            
            if (exists == -1)
            { 
            document.getElementById('ctl00_submenu').innerHTML = '<img height="21px" src="../Images/SubMenu/menubottom.gif" width="920px" />' ;
            }
       }
    }
function showSubMenu_en(visible)
    {
     //shows/hides the English sub menu in the submenu div
       if (visible == 'true')
       {
           var html = '<ul id="csssubmenu">'
           html = html + '<li id="bottomleftspacer">'       
           html = html + '<li id="bottomleftimage">'       
           html = html + '<li id="bottomleftorangespacer">'       
           html = html + '<li class="widthcommit"><a href="Profile_Commitment.aspx">Commitment</a>'
           html = html + '<li class="divider">|'        
           html = html + '<li class="widthperseus"><a href="Profile_Perseus.aspx">Perseus</a>'
           html = html + '<li class="divider">|'         
           html = html + '<li class="widthdirectors"><a href="Profile_Directors.aspx">Board of Directors</a>' 
           html = html + '<li class="divider">|'         
           html = html + '<li class="widthfactory"><a href="Profile_Factory.aspx">Factory</a>' 
           html = html + '<li class="divider">|'        
           html = html + '<li class="widthaqua"><a href="Profile_Aquaculture.aspx">Aquaculture</a>'       
           html = html + '<li id="bottomrightorangespacer">'
           html = html + '<li id="bottomrightimage">'       
           html = html + '<li id="bottomrightspacer"></li></ul>'
                
           document.getElementById('ctl00_submenu').innerHTML = html;   
       }
       else
       {
       
       //dont bother if its already done as it makes the page flash
           var s = new String(document.getElementById('ctl00_submenu').innerHTML);
            var exists = s.search(/menubottom.gif/);
            
            if (exists == -1)
            { 
                
                document.getElementById('ctl00_submenu').innerHTML = '<img height="21px" src="../Images/SubMenu/menubottom.gif" width="920px" />' ; 
            }
        }
      
    }
    
    
    function showSubMenuI_el(visible)
    {
    //shows/hides the Greek sub menu in the submenu div
       if (visible == 'true')
       {
           var html = '<ul id="csssubmenu">'
            html = html + '<li id="bottomleftspacer">'
            html = html + '<li id="bottomleftimage">'
            html = html + '<li id="bottomleftorangespacer_Investor">'
            html = html + '<li id="structure" class="widthstructure"><a href="../el/Investor_Structure.aspx">Μετοχική Σύνθεση</a>'
            html = html + '<li class="divider">|'
            html = html + '<li id="price" class="widthprice"><a href="http://www.ase.gr/content/gr/MarketData/Stocks/Prices/Share_SearchResults.asp?share=%D0%C5%D1%D3&submit1.x=19&submit1.y=9" target="_blank">Πορεία μετοχής</a>'
            html = html + '<li class="divider">|'
            html = html + '<li id="financial" class="widthfinancial"><a href="../el/Investor_pdfs.aspx?cid=Financial">Οικονομικά Στοιχεία</a>'
            html = html + '<li class="divider">|'
            html = html + '<li id="reports" class="widthreports"><a href="../el/Investor_pdfs.aspx?cid=Annual">Ετήσια Δελτία</a>'
            html = html + '<li class="divider">|'
            html = html + '<li id="announcements" class="widthannouncements"><a href="../el/Investor_pdfs.aspx?cid=Announcements">Ανακοινώσεις</a>'
            html = html + '<li id="bottomrightorangespacer_Investor">'
            html = html + '<li id="bottomrightimage">'
            html = html + '<li id="bottomrightspacer"></li>'
            html = html + '</ul>'
           document.getElementById('ctl00_submenu').innerHTML = html;
       }
       else
       {  
       //document.getElementById('ctl00_submenu').innerHTML = ''
            var s = new String(document.getElementById('ctl00_submenu').innerHTML);
            var exists = s.search(/menubottom.gif/);
            
            if (exists == -1)
            { 
            document.getElementById('ctl00_submenu').innerHTML = '<img height="21px" src="../Images/SubMenu/menubottom.gif" width="920px" />' ;
            }
       }
    }
function showSubMenuI_en(visible)
    {
     //shows/hides the English sub menu in the submenu div
       if (visible == 'true')
       {
                
           var html = '<ul id="csssubmenu">'
             html = html + '<li id="bottomleftspacer">'
             html = html + '<li id="bottomleftimage">'
             html = html + '<li id="bottomleftorangespacer_Investor">'
             html = html + '<li id="structure" class="widthstructure"><a href="../en/Investor_Structure.aspx">Shareholders Structure</a>'
             html = html + '<li class="divider">|'
             html = html + '<li id="price" class="widthprice"><a href="http://www.ase.gr/content/gr/MarketData/Stocks/Prices/Share_SearchResults.asp?share=%D0%C5%D1%D3&submit1.x=19&submit1.y=9" target="_blank">Share price evolution</a>'
             html = html + '<li class="divider">|'
             html = html + '<li id="financial" class="widthfinancial"><a href="../en/Investor_pdfs.aspx?cid=Financial">Financial Data</a>'
             html = html + '<li class="divider">|'
             html = html + '<li id="reports" class="widthreports"><a href="../en/Investor_pdfs.aspx?cid=Annual">Annual Reports</a>'
             html = html + '<li class="divider">|'
             html = html + '<li id="announcements" class="widthannouncements"><a href="../en/Investor_pdfs.aspx?cid=Announcements">Announcements</a>'
             html = html + '<li id="bottomrightorangespacer_Investor">'
             html = html + '<li id="bottomrightimage">'
            html = html + ' <li id="bottomrightspacer"></li>'
         html = html + '</ul>'
                
           document.getElementById('ctl00_submenu').innerHTML = html;   
       }
       else
       {
       
       //dont bother if its already done as it makes the page flash
           var s = new String(document.getElementById('ctl00_submenu').innerHTML);
            var exists = s.search(/menubottom.gif/);
            
            if (exists == -1)
            { 
                
                document.getElementById('ctl00_submenu').innerHTML = '<img height="21px" src="../Images/SubMenu/menubottom.gif" width="920px" />' ; 
            }
        }
      
    }
