    <div style="background-color:#e01a27;" class="pageHeaderWrap">
        <header style="width:100%;background-color:#e01a27;border:0;" class="pageHeader rowInner">
            <div style="width:100%;background-color:#e01a27;border:0;" align="center">
                <div style="background-color:#e01a27;width:80%; border:0;" class="mainHead clearfix">
                    <?php
                    echo '
                    <section class="left hide-for-small" itemscope="itemscope" itemtype="http://schema.org/Organization">
                        <a href="'.$thisPage.'" itemprop="url" class="header_logo_link">
                            <span class="header_logo_fair">
                                <meta itemprop="name" content="Samudra Dyan Praga" />
                                <img itemprop="logo" class="logoHost" src="'.$thisPage.'images/logo/logo-samudra-header.png" alt="Samudra Dyan Praga" />	
                            </span>
                        </a>
                    </section>
                    <section style="text-align:right;" class="right hide-for-medium-down group-logo" itemscope="itemscope" itemtype="http://schema.org/Organization">
                        <a style="font-size:12px" href="#" itemprop="url" class="header_logo_link" target="_blank">
                            FEEDBACK
                        </a>
                        <a style="padding:0px 6px 0px 6px;font-size:12px">/</a>
                        <a style="font-size:12px" href="#" itemprop="url" class="header_logo_link" target="_blank">
                            LINKS
                        </a>
                        <a style="padding:0px 6px 0px 6px;font-size:12px">/</a>
                        <a style="font-size:12px" href="#" itemprop="url" class="header_logo_link" target="_blank">
                            CONTACTS
                        </a>
                        <section style="text-align:right; padding-top:3px;" class="user-navigation">
                            <nav class="user-control is-logged">
                                <a style="color:#FFF" class="list-group-item" href="">
                                    <i class="fa fa-google-plus-square fa-fw" aria-hidden="true">&nbsp;&nbsp; </i>
                                </a>
                                <a style="color:#ffffff" class="list-group-item" href="">
                                    <i class="fa fa-facebook fa-fw" aria-hidden="true">&nbsp;&nbsp; </i>
                                </a>
                                <a style="color:#FFF" class="list-group-item" href="">
                                    <i class="fa fa-twitter fa-fw" aria-hidden="true">&nbsp;&nbsp; </i>
                                </a>
                                <a style="color:#FFF" class="list-group-item" href="">
                                    <i class="fa fa-instagram fa-fw" aria-hidden="true"></i>
                                </a>
                            </nav>
                        </section>
                    </section>				
                    ';
                    ?>
    
                    <?php
                    echo '
                    <section class="mobileHeader hide-for-medium-up">
                        <a href="'.$thisPage.'">
                            <img class="logo" src="'.$thisPage.'images/logo/fair-logo-mobile.png" width="82px" height="48px" alt="CeMAT SouthEast Asia" />
                        </a>
                        <a class="nav-trigger" rel="mainnavigation" href="#">
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </a>
                    </section>';
                    ?>
                </div>    
            </div>
            <?php
            //echo "<br>thisPage : ".$thisPage;
            $menus_head = '';
            $ctr = 0;
            $sql = "select * from menus_level_0 order by urutan asc ";	
            if ($hasil = mysql_query($sql)) {
                while ($data = mysql_fetch_array($hasil)) {
                    if ($menus_head == '') {
                        $menus_head = '
                            <div class="mainNavigationWrap M002">
                                <nav class="mainNavigation">
                                    <ul class="clearfix level-1">';
                    }
                    $classFirst_last = '';
                    if ($data["keterangan"] == "first")
                        $classFirst_last = 'class="is-first-for-desktop"';
                    else if ($data["keterangan"] == "end")
                        $classFirst_last = 'class="hide-for-medium-only ticket-button"';
                    
                    $menus_head .= '
                    <li '.$classFirst_last.'> ';
                        
                        $classFirst_last = '';
                        if ($data["keterangan"] != "end")
                            $classFirst_last = 'class="mainNavItem nav-item hasSub"';
                        else if ($data["keterangan"] == "end")
                            $classFirst_last = 'class="mainNavItem nav-item getTicket"';
                        
                        $menus_head .= '
                        <a '.$classFirst_last.' data-flyout-id="nav-sub-'.$ctr.'" href=';
                        if ($data["keterangan"] == "end") $menus_head .= '"'.$thisPage.'content/info/for-visitors/tickets/"'; else $menus_head .= '"'.$thisPage.$data["menuLINK"].'"';
                        $menus_head .= '>';
                        
                        $menus_head .= $data["namaMenu"];
                        
						/** 
						if ($data["keterangan"] == "end")
                        $menus_head .= '
                              <span class="clipped">
                                  <span class="ticket-image"></span>
                                  <span class="bottomShadow"></span>
                              </span>';
						**/
							  
                        $menus_head .= '</a>';
                
                        // Begin Level 1
                        $menus_head_1 = '';
                        $section_1 = '';
                        $sql1 = "select * from menus_level_1 where menus_lv_0 = '".$data["id"]."' order by urutan_1 asc ";	
                        if ($hasil1 = mysql_query($sql1)) {
                            while ($data1 = mysql_fetch_array($hasil1)) {
                                if ($menus_head_1 == '') {
                                    $menus_head_1 .= '
									<nav id="nav-sub-'.$ctr.'" class="mainSubNavigation"> 
                                        <section class="first">
                                            <ul class="level-2">';
                                } else {
                                    if ($section_1 != $data1["section_1"]) {
                                        $menus_head_1 .= '</ul>';
                                        $menus_head_1 .= '
                                            </section>
                                            <section>
                                                <ul class="level-2">';
                                        
                                    }
                                }
                                $menus_head_1 .= '
                                                <li>
                                                    <a class="nav-item" href="'.$thisPage.$data1["link_lv_1"].'">'.$data1["namaMenu_lv_1"].'</a>';
                                                    $menus_head_2 = '';
                                                    $sql2 = "select * from menus_level_2 where menus_lv_1 = '".$data1["id_level_1"]."' order by urutan_2 asc ";	
                                                    if ($hasil2 = mysql_query($sql2)) {
                                                        $linked_lv_2 = '';
                                                        while ($data2 = mysql_fetch_array($hasil2)) {
                                                            // echo "<br>".substr($data2["link_lv_2"],0,4);
                                                            if (substr($data2["link_lv_2"],0,4) == "http") 
                                                                $linked_lv_2 = $data2["link_lv_2"];
                                                            else
                                                                $linked_lv_2 = $thisPage.$data2["link_lv_2"];
                                                                
                                                            if ($menus_head_2 == '') {
                                                                $menus_head_2 .='
                                                                <ul class="level-3">';
                                                            }
                                                            $menus_head_2 .='
                                                            <li>
                                                                <a class="nav-item" target="'.$data2["target_link_lv_2"].'" href="'.$linked_lv_2.'">'.$data2["namaMenu_lv_2"].'</a>
                                                            </li>
                                                            ';
                                                        }
                                                        if ($menus_head_2 != '') {
                                                            $menus_head_2 .='
                                                            </ul>';
                                                            $menus_head_1 .= $menus_head_2;
                                                        }
        
                                                    }
                                $menus_head_1 .= '				
                                                </li>
                                                ';
                                $section_1 = $data1["section_1"];
                            }
                            if ($menus_head_1 != '') {
                                $menus_head_1 .= '
                                    </section> 
                                </nav>
								';
                                $menus_head .= $menus_head_1;
                            }
                        }
                        // End Level 1
                        
                        $ctr++;
                }
                if ($menus_head != '') {
                    $menus_head .= '
                                </ul>
                            </nav>
                        </div>
                    ';
                    echo $menus_head;
                }
            }
            ?>
        </header>
    </div>
    <div class="page-header-print is-printable-only row">
        <div class="rowInner">
            <div class="timestamp">
                <strong>Samudra Dyan Praga</strong>
            </div>
            <div class="logo">
                <?php
                echo '
                <img itemprop="logo" class="logoHost" src="'.$thisPage.'images/logo/messe-logo-cemat.png" alt="CeMAT SouthEast Asia" />
                <span class="claim" itemprop="brand">Samudra Dyan Praga</span>
                ';
                ?>
            </div>
        </div>
    </div>
    
    
