$(document).ready(function(){

    if($(".twtr-hd")){
        $(".twtr-hd").hide();
        $(".twtr-ft").hide();
        $(".follow").css("float","left");
        $(".follow").css("margin","10px 0px 0px 2px");
    }
});


function social_networking(fbpg,fbsc,fbmc,fbmauj,fbmbango,tpg,tsc,tmc,tmauj,tmbango)
{

    document.write("<div class='social-networking'>");
    document.write("<ul>");
    document.write("<li>")
    document.write("<div class='likebg'><a href='#' onmouseover=show('show_hide_01') onmouseout=hide('show_hide_01') class='liketxt' >like</a>");
    document.write("</div>");
    document.write("<a href='#' onmouseover=show('show_hide_01') onmouseout=hide('show_hide_01') class='like-it'>likeicon</a>");
    document.write("<div id='show_hide_01' class='likedivhover' style='display:none' onmouseover=show('show_hide_01') onmouseout=hide('show_hide_01')>");
    document.write("<ul>");
    document.write("<li>");
    document.write("<a href='http://www.facebook.com/peoplegroup' target='blank'>People Group</a>");
    document.write("<div id='follo1' class='follow'>"+fbpg+" fans</div>");
    document.write("</li>");
    document.write("<li>");
    document.write("<a href='http://facebook.com/shaadicom' target='blank'>Shaadi.com</a>");
    document.write("<div id='follo1' class='follow'>"+fbsc+" fans</div>");
    document.write("</li>");
    document.write("<li>");
    document.write("<a href='http://www.facebook.com/makaancom' target='blank'>Makaan.com</a>");
    document.write("<div id='follo1' class='follow'>"+fbmc+" fans</div>");
    document.write("</li>");
//    document.write("<li>");
//    document.write("<a href='http://www.facebook.com/pages/Mauj-Telecom/116981895007784' target='blank'>Mauj</a>");
//    document.write("<div id='follo1' class='follow'>"+fbmauj+" fans</div>");
//    document.write("</li>");
    document.write("<li>");
    document.write("<a href='http://facebook.com/mobango' target='blank'>Mobango</a>");
    document.write("<div id='follo1' class='follow'>"+fbmbango+" fans</div>");
    document.write("</li>");
    document.write("</ul>");
    document.write("</div>");
    document.write("</li>");
    document.write("<li>");
    document.write("<div class='follobg'> <a href='#' onmouseover=show('show_hide_02') onmouseout=hide('show_hide_02') class='follotxt'>follow us</a>")
    document.write("</div>");
    document.write("<a href='#' onmouseover=show('show_hide_02') onmouseout=hide('show_hide_02') class='follo-us'>follow us</a>");
    document.write("<div class='follodivhover' id='show_hide_02' style='display:none' onmouseover=show('show_hide_02') onmouseout=hide('show_hide_02')>");
    document.write("<ul>");
    document.write("<li>");
    document.write("<a href='http://twitter.com/people_group' id='f1' target='blank'>People Group</a>");
    document.write("<div id='follo1' class='follow'>"+tpg+" followers</div>");
    document.write("</li>");
    document.write("<li>");
    document.write("<a  id='f2' href='http://twitter.com/shaadidotcom' target='blank'>Shaadi.com</a>");
    document.write("<div id='follo2' class='follow'>"+tsc+" followers</div>");
    document.write("</li>");
    document.write("<li>");
    document.write("<a id='f3' href='http://twitter.com/makaandotcom' target='blank'>Makaan</a>");
    document.write("<div id='follo3' class='follow'>"+tmc+" followers</div>");
    document.write("</li>");
//    document.write("<li>");
//    document.write("<a id='f4' href='http://twitter.com/maujtelecom' target='blank'>Mauj</a>");
//    document.write("<div id='follo4' class='follow'>"+tmauj+" followers</div>");
//    document.write("</li>");
    document.write("<li>");
    document.write("<a id='f5' href='http://twitter.com/mobango' target='blank'>Mobango</a>");
    document.write("<div id='follo5' class='follow'>"+tmbango+" followers</div>");
    document.write("</li>");
    document.write("</ul>");
    document.write("</div>");
    document.write("</li>");
    document.write("<li>");
    document.write("<div class='whatifbg'><a href='what_if.php' onmouseover=show('show_hide_03') onmouseout=hide('show_hide_03') class='whatiftxt'>Whit if</a> ");
    document.write("</div>");
    document.write("<a href='what_if.php' onmouseover=show('show_hide_03') onmouseout=hide('show_hide_03') class='what-if'>follow us</a>");
    document.write("<div class='whatifdivhover' id='show_hide_03' style='display:none' onmouseover=show('show_hide_03') onmouseout=hide('show_hide_03')>");
    document.write("<p><a href='what_if.php'>Moments of clarity, of business origins and inventions spring from this question.</a></p>");
    /*document.write("<p><a href='what_if.php'>What was your 'what if' moment? Read, share and add to the buzz!!</a></p>");*/
    document.write("</div>");
    document.write("</li>");
    document.write("</ul>");
    document.write("</div>");

    document.write("<div id='preload'>");
    document.write("<img src='images/innernavthegrouphover.gif'/>");
    document.write("<img src='images/innernavthegroup.png'/>");
    document.write("<img src='images/about_us.gif'/>");
    document.write("<img src='images/about_us1.gif'/>");
    document.write("<img src='images/values.gif'/>");
    document.write("<img src='images/values1.gif'/>");
    document.write("<img src='images/achievements.gif'/>");
    document.write("<img src='images/achievements1.gif'/>");
    document.write("<img src='images/our_technology.gif'/>");
    document.write("<img src='images/our_technology1.gif'/>");
    document.write("<img src='images/investors.gif'/>");
    document.write("<img src='images/investors1.gif'/>");
    document.write("<img src='images/buzz_top3_hover.gif'/>");
    document.write("<img src='images/nav_buzz11.gif'/>");
    document.write("<img src='images/news_press.gif'/>");
    document.write("<img src='images/news_press1.gif'/>");
    document.write("<img src='images/social_media_feeds.gif'/>");
    document.write("<img src='images/social_media_feeds1.gif'/>");
    document.write("<img src='images/vedios_and_podcasts.gif'/>");
    document.write("<img src='images/vedios_and_podcasts1.gif'/>");
    document.write("<img src='images/innernavtheIdeashover.gif'/>");
    document.write("<img src='images/innernavtheIdeas.png'/>");
    document.write("<img src='images/shaadisel.gif'/>");
    document.write("<img src='images/shaadisel1.gif'/>");
    document.write("<img src='images/makaan.gif'/>");
    document.write("<img src='images/makaan1.gif'/>");
    document.write("<img src='images/mauj.gif'/>");
    document.write("<img src='images/mauj1.gif'/>");
    document.write("<img src='images/mabango.gif'/>");
    document.write("<img src='images/mabango1.gif'/>");
    document.write("<img src='images/innernavtheMavericks.gif'/>");
    document.write("<img src='images/innernavtheMavericks.png'/>");
    document.write("<img src='images/our_people.gif'/>");
    document.write("<img src='images/our_people1.gif'/>");
    document.write("<img src='images/join_us.gif'/>");
    document.write("<img src='images/join_us1.gif'/>");
    document.write("</div>");
}



/***Nav_code***/
function show(_id)
{
    document.getElementById(_id).style.display="block";
}



function hide(_id)
{
    document.getElementById(_id).style.display="none";
}



var active;

$(function()
{
    if($(".mainnavItem .dropdownbg ul li a")){
        $(".mainnavItem .dropdownbg ul li a").hover(function(){
            classname=$(this).attr("class");
            oldclassname=classname;
            classname=classname + "hover"
            $(this).removeClass(oldclassname);
            $(this).addClass(classname);
        },function(){
            $(this).removeClass(classname);
            $(this).addClass(oldclassname);
        });
    }

    if($(".hasDropdown")){
        $(".hasDropdown").hover(function()
        {
            $("#buzz_1").show();
        },
        function()
        {
            $("#buzz_1").hide();
        });
    }

    /*****home_nav****/
    if($(".submenu .navlinkhover ul li a")){
        $(".submenu .navlinkhover ul li a").hover(function(){
            classname=$(this).attr("class");
            oldclassname=classname;
            classname=classname + "hover"
            $(this).removeClass(oldclassname);
            $(this).addClass(classname);
        },function(){
            $(this).removeClass(classname);
            $(this).addClass(oldclassname);
        });
    }
	
    if($(".hasDropdown")){
        $(".hasDropdown").hover(function()
        {
            $("#buzz_1").show();
        },
        function()
        {
            $("#buzz_1").hide();
        });
    }

    /*Image Hover*/
    if($('.buzz_drp_bg a img')){
        $('.buzz_drp_bg a img').hover(function(){
            $(this).attr('src',$(this).attr('src').replace('.gif','1.gif'));
        //console.log(url);
        },
        function(){
            $(this).attr('src',$(this).attr('src').replace('1.gif','.gif'));
        //console.log(url);
        });
    }
	
    /*admin_hove***/
    if($(".innermainnav_admin ul#nav li a")){
		
        $(".innermainnav_admin ul#nav li a").hover(function(){
		
            classname=$(this).attr("class");
            oldclassname=classname;
            classname=classname + "-hover";
		
            //alert(classname.search(/selected/));
            if(classname.search(/selected/) == -1 ){
                $(this).removeClass(oldclassname);
                $(this).addClass(classname);
            }
        },function(){
		
            if(classname.search(/selected/)== -1 ){
                $(this).removeClass(classname);
                $(this).addClass(oldclassname);
            }
        });
    }
});

