<?php
include ("admin/dbconfig.php");
?>
<!DOCTYPE html>
<!--[if lt IE 7 ]> <html class="ie ie6 no-js" lang="en"> <![endif]-->
<!--[if IE 7 ]>    <html class="ie ie7 no-js" lang="en"> <![endif]-->
<!--[if IE 8 ]>    <html class="ie ie8 no-js" lang="en"> <![endif]-->
<!--[if IE 9 ]>    <html class="ie ie9 no-js" lang="en"> <![endif]-->
<!--[if gt IE 9]><!--><html class="no-js" lang="en"><!--<![endif]-->
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
        <title>M R FEGDE & ASSOCIATES</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0"> 
        <meta name="description" content="" />
        <meta name="keywords" content="" />
        <meta name="author" content="Codrops" />
        <link rel="shortcut icon" href="../favicon.ico"> 
        <link rel="stylesheet" type="text/css" href="css/demo.css" />
        <link rel="stylesheet" type="text/css" href="css/general.css" />        
        <link rel="stylesheet" type="text/css" href="css/style1.css" />
        <link rel="stylesheet" href="css/style.css" type="text/css" media="screen"/>
		<script type="text/javascript" src="js/modernizr.custom.86080.js"></script>
        <script src="js/loading.js" type="text/javascript"></script>

        <script src="js/jquery.js" type="text/javascript"></script>
<script type="text/javascript">

$(document).ready(function(){


    $(".slidingDiv").hide();
	$(".show_hide").show();
	
	$('.show_hide').click(function(){
	$(".slidingDiv").slideToggle();
	});

});

</script>
<script>
function con(){
document.getElementById('jDivFade4').style.visibility = 'visible';
		    $("#jDivFade4").fadeIn(2000);	
}
function aboutus(){
document.getElementById('jDivFade').style.visibility = 'visible';
		    $("#jDivFade").fadeIn(2000);	
}

function philoso(){
document.getElementById('jDivFade3').style.visibility = 'visible';
		    $("#jDivFade3").fadeIn(2000);	
}
function ourteam(){
document.getElementById('jDivFade1').style.visibility = 'visible';
		    $("#jDivFade1").fadeIn(2000);	
}
function ourclient(){
document.getElementById('jDivFade2').style.visibility = 'visible';
		    $("#jDivFade2").fadeIn(2000);	
}
    $(document).ready(function() {
        $("#btnFadeIn").click(function() {
            $("#jDivFade1").fadeOut(100);
			 $("#jDivFade2").fadeOut(100);
			 $("#jDivFade4").fadeOut(100);
			  $("#jDivFade3").fadeOut(100);
			  closeanother();
			  document.getElementById('jDivFade').style.visibility = 'visible';
		    $("#jDivFade").fadeIn(2000);
			
        })

        $("#btnFadeOut").click(function() {
            $("#jDivFade").fadeOut();
        })

        $("#btnFadeLimited").click(function() {
            $("#jDivFade").fadeTo("slow", 0.20);
        })        
    })
	
	
	
	  $(document).ready(function() {
        $("#btnFadeIn1").click(function() {
            	$("#jDivFade").fadeOut(100);
			 $("#jDivFade2").fadeOut(100);
			  $("#jDivFade3").fadeOut(100);
			  $("#jDivFade4").fadeOut(100);
			   closeanother();
			    document.getElementById('jDivFade1').style.visibility = 'visible';
			$("#jDivFade1").fadeIn(2000);
		
        })

        $("#btnFadeOut1").click(function() {
            $("#jDivFade1").fadeOut();
        })

        $("#btnFadeLimited").click(function() {
            $("#jDivFade1").fadeTo("slow", 0.20);
        })        
    })
	
	  $(document).ready(function() {
        $("#btnFadeIn2").click(function() {
           $("#jDivFade1").fadeOut(100);
			 $("#jDivFade").fadeOut(100);
			  $("#jDivFade3").fadeOut(100);
			  $("#jDivFade4").fadeOut(100);
			   closeanother();
			    document.getElementById('jDivFade2').style.visibility = 'visible';
		    $("#jDivFade2").fadeIn(2000);
			
        })

        $("#btnFadeOut2").click(function() {
            $("#jDivFade2").fadeOut();
        })

        $("#btnFadeLimited").click(function() {
            $("#jDivFade2").fadeTo("slow", 0.20);
        })        
    })
	
	
	
	
	$(document).ready(function() {
        $("#btnFadeIn3").click(function() {
           $("#jDivFade1").fadeOut(100);
			 $("#jDivFade").fadeOut(100);
			 $("#jDivFade2").fadeOut(100);
			 $("#jDivFade4").fadeOut(100);
			  closeanother();
			   document.getElementById('jDivFade3').style.visibility = 'visible';
		    $("#jDivFade3").fadeIn(2000);
			
        })

        $("#btnFadeOut3").click(function() {
            $("#jDivFade3").fadeOut();
        })

        $("#btnFadeLimited").click(function() {
            $("#jDivFade3").fadeTo("slow", 0.20);
        })        
    })
	
	
	
	
	$(document).ready(function() {
        $("#btnFadeIn4").click(function() {
           $("#jDivFade1").fadeOut(100);
			 $("#jDivFade").fadeOut(100);
			 $("#jDivFade2").fadeOut(100);
			 $("#jDivFade3").fadeOut(100);
			 closeanother();
			  document.getElementById('jDivFade4').style.visibility = 'visible';
		    $("#jDivFade4").fadeIn(2000);
			
        })

        $("#btnFadeOut4").click(function() {
            $("#jDivFade4").fadeOut();
        })

        $("#btnFadeLimited").click(function() {
            $("#jDivFade4").fadeTo("slow", 0.20);
        })        
    })
</script>
<script type="text/javascript">

//SuckerTree Horizontal Menu (Sept 14th, 06)
//By Dynamic Drive: http://www.dynamicdrive.com/style/

var menuids=["treemenu1"] //Enter id(s) of SuckerTree UL menus, separated by commas
function sleep(milliseconds) {

  var start = new Date().getTime();
  for (var i = 0; i < 1e7; i++) {
    if ((new Date().getTime() - start) > milliseconds){
      break;
    }
  }
}

function buildsubmenus_horizontal(){
	
for (var i=0; i<menuids.length; i++){
  var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
    for (var t=0; t<ultags.length; t++){
		if (ultags[t].parentNode.parentNode.id==menuids[i]){ //if this is a first level submenu
			ultags[t].style.top=ultags[t].parentNode.offsetHeight+"px" //dynamically position first level submenus to be height of main menu item
			ultags[t].parentNode.getElementsByTagName("a")[0].className="mainfoldericon"
		}
		else{ //else if this is a sub level menu (ul)
		  ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+"px" //position menu to the right of menu item that activated it
    	ultags[t].parentNode.getElementsByTagName("a")[0].className="subfoldericon"
		}
    ultags[t].parentNode.onmouseover=function(){

	this.getElementsByTagName("ul")[0].style.visibility="visible";
	
    }
    ultags[t].parentNode.onmouseout=function(){

	this.getElementsByTagName("ul")[0].style.visibility="hidden";
sleep(400);

    }
    }
  }
}

if (window.addEventListener)
window.addEventListener("load", buildsubmenus_horizontal, false)
else if (window.attachEvent)
window.attachEvent("onload", buildsubmenus_horizontal)

</script>




    </head>
   <?php
   $id = $_GET['id'];
   if($id=="contact"){
	?>   
	   <body id="page" onLoad="con()">
    <div id="restart1">
	  <?php 
   }
   else if($id=="home"){
	?>   
	   <body id="page" >
    <div id="restart1">
	  <?php 
   }
   else if($id=="about"){
	?>   
	   <body id="page" onLoad="aboutus()">
    <div id="restart1">
	  <?php 
   }
   else if($id=="philosophy"){
	?>   
	   <body id="page" onLoad="philoso()">
    <div id="restart1">
	  <?php 
   }
      else if($id=="ourteam"){
	?>   
	   <body id="page" onLoad="ourteam()">
    <div id="restart1">
	  <?php 
   }
      else if($id=="ourclient"){
	?>   
	   <body id="page" onLoad="ourclient()">
    <div id="restart1">
	  <?php 
   }
   else{
   
   ?>
    <body id="page" onload="start()">
    <div id="restart">
    <?php
   }
	?>
        <ul class="cb-slideshow">
           <?php
		   $yu = mysql_query("select * from mainupdate where enabled = 1");
		   $ol = mysql_num_rows($yu);
		   if($ol >= 1){
			   $i==1;
			while($b = mysql_fetch_row($yu))   {
				?>
					<li><span>Image 01<?php echo "Image " . $i; ?></span><div></div></li>	
				<?php
				$i++;
				}
			   
		   }
		   
		   ?>
           
            

        </ul>
        <div class="container">
            <!-- Codrops top bar -->
            <div class="codrops-top">
            	<div style="">
                    <div style="float:left;">
                    <span class="logo" style="float:left; padding:0px 0px 0px 20px;">
                        <img src="images/logo.png">
                    </span>
                    </div>
                    <div style="float:right;  padding:0px 30px 0px 0px; margin-top:-10px;">
                    
                    <div class="right">
                    <div class="suckertreemenu">
<ul id="treemenu1">
<li><a href="index.php" style="border-left: 1px solid black">Home</a></li>
<li><a href="#">About MRF</a>
<?php
if($id==""){
?>
  <ul>
  <?php } else {?>
  <ul style="margin-top:-22px;">
  <?php } ?>
  <li><a href="#"  id="btnFadeIn">About us</a> <a href="#" id="btnFadeIn3">Philosophy</a> <a href="#" id="btnFadeIn1">Our Team</a> <a href="#" id="btnFadeIn2">Our Clients</a></li>
  </ul>
</li>
<li><a href="#">MRF Projects</a>
<?php
if($id==""){
?>
  <ul>
  <?php } else {?>
  <ul style="margin-top:-22px;">
  <?php } ?>
  <li><a href="hospitality.php"  id="btnFadeIn">HOSPITALITY</a> <a href="healthcare.php" id="btnFadeIn3">HEALTH CARE</a> <a href="industry.php" id="btnFadeIn1">Industry</a> <a href="ineriors.php" id="btnFadeIn1">INTERIORS</a> <a href="public.php" id="btnFadeIn2">PUBLIC</a> <a href="residence.php" id="btnFadeIn2">RESIDENCE</a> <a href="showroom.php" id="btnFadeIn2">SHOWROOM</a></li>
  </ul>
</li>
<li><a href="/contact-us/index.html" style="border-right:none;" id="">Contacts</a></li>
</ul>
<br style="clear: left;" />
</div><!--
                        <a href="index.html">Home</a>
                        <a href="#" id="btnFadeIn">About MRF</a>
                        <a href="#">Mrf Projects</a>
                        <a href="/contact-us/index.html" style="border-right:none;">Contacts</a>-->
                    </div>
                    </div>
                </div>

                <div class="clr"></div>
            </div><!--/ Codrops top bar -->
            <header>
                    
			<div id="jDivFade" class="aboutus">
			  <div style="margin-right:30px; margin-top:-3px;">
                <a href="#" id="btnFadeOut"></a>
               </div>
               <h2>About us</h2>
               <div class="dotedline"></div>
				<iframe allowtransparency="yes" frameborder="0" height="310" width="721" scrolling="no" src="about/index.php"></iframe>
		    </div>
            
            <div id="jDivFade1" class="aboutus">
			  <div style="margin-right:30px; margin-top:-3px;">
                <a href="#" id="btnFadeOut1"></a>
               </div>
               <h2>Our Team</h2>
               <div class="dotedline"></div>
				<iframe allowtransparency="yes" frameborder="0" height="310" width="721" scrolling="no" src="ourteam/index.php"></iframe>
		    </div>
            
            <div id="jDivFade2" class="aboutus">
			  <div style="margin-right:30px; margin-top:-3px;">
                <a href="#" id="btnFadeOut2"></a>
               </div>
               <h2>Our Clients</h2>
               <div class="dotedline"></div>
				<iframe allowtransparency="yes" frameborder="0" height="310" width="721" scrolling="no" src="ourclient/index.php"></iframe>
		    </div>
            
            
            <div id="jDivFade3" class="aboutus">
			  <div style="margin-right:30px; margin-top:-3px;">
                <a href="#" id="btnFadeOut3"></a>
               </div>
               <h2>Philosophy</h2>
               <div class="dotedline"></div>
				<iframe allowtransparency="yes" frameborder="0" height="310" width="721" scrolling="no" src="philosophy/index.php"></iframe>
		    </div>
            
            
             <div id="jDivFade4" class="aboutus">
			  <div style="margin-right:30px; margin-top:-3px;">
                <a href="#" id="btnFadeOut4"></a>
               </div>
               <h2>Contact detail</h2>
               <div class="dotedline"></div>
				<iframe allowtransparency="yes" frameborder="0" height="310" width="721" scrolling="no" src="contact/index.php"></iframe>
		    </div>
            
               <div class="overlay" id="overlay" style="display:none;"></div>
      
        
        <?php
			$rs1 = mysql_query("select * from latestupdate where enabled = 1 order by id desc");
												$rr1 = mysql_num_rows($rs1);
												$i=1;
												if($rr1 >= 1){
													while($r1 = mysql_fetch_row($rs1)){
														?>
													
                                                         <div class="box<?php echo $i;?>" id="box<?php echo $i;?>">
                                                            <a class="boxclose<?php echo $i;?>" id="boxclose<?php echo $i;?>"></a>
                                                            <img src="admin/latestimage/<?php echo $r1[1];?>">
                                                            <img src="images/big_btm.png" class="imgbtmbg">
                                                        </div>
                                                        <?php
														$i++;
													}
												}
		
		?>

            </header>
        </div>
        <div id="footer">
        	<div style="float:left; color:#FFF; font-size:30px; font-stretch:narrower; padding:2px 0px 0px 5px;"><img src="images/copyright.ico" border="0" width="16" height="16"></div>
            <div>
             <ul class="menu" id="menu">
                <li>
                    <a href="#">Latest update</a>
                    <div class="sc_menu_wrapper">
                        <div class="sc_menu">
                        
                            
                            <?php
							$rs = mysql_query("select * from latestupdate where enabled = 1 order by id desc");
												$rr = mysql_num_rows($rs);
												$i=1;
												if($rr >= 1){
													while($r = mysql_fetch_row($rs)){
														?>
														<a class="activator" id="activator<?php echo $i;?>" onClick="return closeanother1();"> <img src="admin/latestimage/thumb_<?php echo $r[1];?>" alt=""/></a>
                                                        <?php
														$i++;
													}
												}
							?>
                            
                        </div>
                    </div>
                </li>
                
            </ul>
            <script type="text/javascript" src="js/jquery-1.3.2.js"></script>
        <script type="text/javascript">
            $(function() {
               $('#activator').click(function(){
			   document.getElementById('box').style.visibility = 'visible'; 
                    $('#overlay').fadeIn('fast',function(){
                        $('#box').animate({'top':'95px'},500);
                    });
                });
			    $('#activator1').click(function(){
				document.getElementById('box1').style.visibility = 'visible'; 
                    $('#overlay').fadeIn('fast',function(){
                        $('#box1').animate({'top':'95px'},500);
                    });
                });
			$('#activator2').click(function(){
			document.getElementById('box2').style.visibility = 'visible'; 
                    $('#overlay').fadeIn('fast',function(){
                        $('#box2').animate({'top':'95px'},500);
                    });
                });
			$('#activator3').click(function(){
			document.getElementById('box3').style.visibility = 'visible'; 
                    $('#overlay').fadeIn('fast',function(){
                        $('#box3').animate({'top':'95px'},500);
                    });
                });
			$('#activator4').click(function(){
			document.getElementById('box4').style.visibility = 'visible'; 
                    $('#overlay').fadeIn('fast',function(){
                        $('#box4').animate({'top':'95px'},500);
                    });
                });
				$('#activator5').click(function(){
				document.getElementById('box5').style.visibility = 'visible'; 
                    $('#overlay').fadeIn('fast',function(){
                        $('#box5').animate({'top':'95px'},500);
                    });
                });
				$('#activator6').click(function(){
				document.getElementById('box6').style.visibility = 'visible'; 
                    $('#overlay').fadeIn('fast',function(){
                        $('#box6').animate({'top':'95px'},500);
                    });
                });
				$('#activator7').click(function(){
				document.getElementById('box7').style.visibility = 'visible'; 
                    $('#overlay').fadeIn('fast',function(){
                        $('#box7').animate({'top':'95px'},500);
                    });
                });
			
			
			
                $('#boxclose').click(function(){
                    $('#box').animate({'top':'-750px'},500,function(){
                        $('#overlay').fadeOut('fast');
                    });
                });
				 $('#boxclose1').click(function(){
                    $('#box1').animate({'top':'-750px'},500,function(){
                        $('#overlay').fadeOut('fast');
                    });
                });
				 $('#boxclose2').click(function(){
                    $('#box2').animate({'top':'-750px'},500,function(){
                        $('#overlay').fadeOut('fast');
                    });
                });
				 $('#boxclose3').click(function(){
                    $('#box3').animate({'top':'-750px'},500,function(){
                        $('#overlay').fadeOut('fast');
                    });
                });
				 $('#boxclose4').click(function(){
                    $('#box4').animate({'top':'-750px'},500,function(){
                        $('#overlay').fadeOut('fast');
                    });
                });
				 $('#boxclose5').click(function(){
                    $('#box5').animate({'top':'-750px'},500,function(){
                        $('#overlay').fadeOut('fast');
                    });
                });
				 $('#boxclose6').click(function(){
                    $('#box6').animate({'top':'-750px'},500,function(){
                        $('#overlay').fadeOut('fast');
                    });
                });
				 $('#boxclose7').click(function(){
                    $('#box7').animate({'top':'-750px'},500,function(){
                        $('#overlay').fadeOut('fast');
                    });
                });
            });
			
			
			function closeanother(){
				document.getElementById('box1').style.visibility = 'hidden'; 
				document.getElementById('box2').style.visibility = 'hidden';
				document.getElementById('box3').style.visibility = 'hidden';
				document.getElementById('box4').style.visibility = 'hidden';
				document.getElementById('box5').style.visibility = 'hidden';
					
 			}
			function closeanother1(){
				document.getElementById('box1').style.visibility = 'hidden'; 
				document.getElementById('box2').style.visibility = 'hidden';
				document.getElementById('box3').style.visibility = 'hidden';
				document.getElementById('box4').style.visibility = 'hidden';
				document.getElementById('box5').style.visibility = 'hidden';
				document.getElementById('jDivFade').style.visibility = 'hidden';
				document.getElementById('jDivFade1').style.visibility = 'hidden';
				document.getElementById('jDivFade2').style.visibility = 'hidden';
				document.getElementById('jDivFade3').style.visibility = 'hidden';
			
			}
			function closeanother2(){
				document.getElementById('box').style.visibility = 'hidden'; 
				document.getElementById('box1').style.visibility = 'hidden';
				document.getElementById('box3').style.visibility = 'hidden';
				document.getElementById('box4').style.visibility = 'hidden';

			}
			function closeanother3(){
				document.getElementById('box').style.visibility = 'hidden'; 
				document.getElementById('box2').style.visibility = 'hidden';
				document.getElementById('box1').style.visibility = 'hidden';
				document.getElementById('box4').style.visibility = 'hidden';

			}
			function closeanother4(){
				document.getElementById('box').style.visibility = 'hidden'; 
				document.getElementById('box2').style.visibility = 'hidden';
				document.getElementById('box3').style.visibility = 'hidden';
				document.getElementById('box1').style.visibility = 'hidden';

			}
        </script>
            <script type="text/javascript" src="js/jquery.min.js"></script>
        <script type="text/javascript">
            $(function(){
                /* function to make the thumbs menu scrollable */
                function buildThumbs($elem){
                    var $wrapper    	= $elem.next();
                    var $menu 		= $wrapper.find('.sc_menu');
                    var inactiveMargin 	= 150;
                    /* move the scroll down to the
                    beggining (move as much as the height of the menu) */
                    $wrapper.scrollTop($menu.outerHeight());
                    
                    /* when moving the mouse up or down, the wrapper moves (scrolls) up or down */
                    $wrapper.bind('mousemove',function(e){
                        var wrapperHeight 	= $wrapper.height();
                        var menuHeight 	= $menu.outerHeight() + 2 * inactiveMargin;
                        var top 	= (e.pageY - $wrapper.offset().top) * (menuHeight - wrapperHeight) / wrapperHeight - inactiveMargin;
                        $wrapper.scrollTop(top+10);
                    });
                }
                
                var stacktime;
				
                $('#menu li > a').bind('mouseover',function () {
                    var $this = $(this);
					
                    buildThumbs($this);
					
                    var pos	=	$this.next().find('a').size();
                    var f	=	function(){
                        if(pos==0) clearTimeout(stacktime);
                        $this.next().find('a:nth-child('+pos+')').css('visibility','visible');
                        --pos;
                    };
                    /* each thumb will appear with a delay */
                    stacktime = setInterval(f , 50);
                });
                
                /* on mouseleave of the whole <li> the scrollable area is hidden */
                $('#menu li').bind('mouseleave',function () {
                    var $this = $(this);
                    clearTimeout(stacktime);
                    $this.find('.sc_menu').css('visibility','hidden').find('a').css('visibility','hidden');
                    $this.find('.sc_menu_wrapper').css('visibility','hidden');
                });
                
                /* when hovering a thumb, change its opacity */
                $('.sc_menu a').hover(
                function () {
                    var $this = $(this);
                    $this.find('img')
                    .stop()
                    .animate({'opacity':'1.0'},400);
                },
                function () {
                    var $this = $(this);
                    $this.find('img')
                    .stop()
                    .animate({'opacity':'1.0'},400);
                }
            );
            });
        </script>
            
            </div>
            <div class="btm_rightpanel">
             <?php
		   	$rt = mysql_query("select * from tw where id = 1 and enabled = 1");
				$rnum = mysql_num_rows($rt);
				if($rnum>=1){
					$rty = mysql_fetch_array($rt);
					$pr = $rty['twlink'];
		   ?>
            <div style="float:right; width:auto; padding:0px 40px 0px 15px;"><a href="<?php echo $pr;?>" target="_blank"><img src="images/twittter.ico" width="16" height="16" border="0"></a></div>
            <?php
				}
				?>

           <?php
		   	$rt = mysql_query("select * from fb where id = 1 and enabled = 1");
				$rnum = mysql_num_rows($rt);
				if($rnum>=1){
					$rty = mysql_fetch_array($rt);
					$pr = $rty['fblink'];
		   ?>
            <div style="float:right; width:auto; padding:0px;"><a href="<?php echo $pr;?>" target="_blank"><img src="images/facebook.ico" width="16" height="16" border="0"></a></div>
            <?php
				}
				?>
            <?php
				$rt = mysql_query("select * from phno where id = 1 and enabled = 1");
				$rnum = mysql_num_rows($rt);
				if($rnum>=1){
					$rty = mysql_fetch_array($rt);
					$pr = $rty['phnum'];
			?>
            <div style="float:right; width:auto; padding:0px 7px 0px 5px;"><?php echo $pr;?></div>
            <div style="float:right; width:auto; padding:3px 2px 0px 7px;"><img src="images/phone.ico" width="16" height="16" border="0"> </div>
            <?php
				}
			?>
            <?php
				$rt = mysql_query("select * from email where id = 1 and enabled = 1");
				$rnum = mysql_num_rows($rt);
				if($rnum>=1){
					$rty = mysql_fetch_array($rt);
					$pr = $rty['emailid'];
			?>
            <div style="float:right; width:auto; padding:0px 7px 0px 5px;"> <a href="mailto:<?php echo $pr;?>"><?php echo $pr;?></a></div>
            <div style="float:right; width:auto; padding:3px 2px 0px 7px;"><img src="images/email.ico" width="16" height="16" border="0"></div>
			<?php
				}
			
			?>

            </div>
        </div>
        </div>
        
        <?php
if($id==""){
?>
        <div id="loadingZone">
		<div id="loadingSms">LOADING</div>
		<div id="infoProgress">0%</div>
		<br class="clear" />
		<div id="loadingBar">
			<div id="progressBar">&nbsp;</div>
		</div>
		<div id="infoLoading">Please Wait...</div>
  <?php } else {

} ?>

	</div>
    </body>
</html>