 $(function() {
                $('#container-1').tabs();
                $('#container-1 ul li a').click(function () {location.hash = $(this).attr('href');
                $("#crumbNav").empty();
                $("#crumbNav").append(this.text);
});
});
 
function showTab(currentTab,requestedTab){
          $('a[href$=#'+currentTab+']').parent().removeClass("tabs-selected");
          $('a[href$=#'+requestedTab+']').parent().addClass("tabs-selected");
          $('#'+currentTab).addClass("tabs-hide");
          $('#'+requestedTab).removeClass("tabs-hide");
        }
 function displayText(){
document.getElementById("search").value="Search Convergia.com";
document.getElementById("search").style.fontFamily="Arial,Helvetica,sans-serif";
}

/* aqui funcion close - open */


//select country 
$(document).ready(function(){ 
 $('.countryi').hide(); 
  $('#dropdown').change(function() { 
    $('.countryi').hide(); 
    $('#div' + $(this).val()).show(); 
 }); 
}); 

//text popup
$(document).ready(function(){
  $(".popuptxt1").click(function(){
    $("#text1").fadeIn();
    $(".backgrounddiv").fadeIn();
  
  });
  $(".close").click(function(){
    $("#text1").fadeOut();
    $(".backgrounddiv").fadeOut();
  
  });
});

$(document).ready(function(){
  $(".popuptxt2").click(function(){
    $("#text2").fadeIn();
    $(".backgrounddiv").fadeIn();
  
  });
  $(".close").click(function(){
    $("#text2").fadeOut();
    $(".backgrounddiv").fadeOut();
  
  });
});

$(document).ready(function(){
  $(".popuptxt3").click(function(){
    $("#text3").fadeIn();
    $(".backgrounddiv").fadeIn();
  
  });
  $(".close").click(function(){
    $("#text3").fadeOut();
    $(".backgrounddiv").fadeOut();
  
  });
});

$(document).ready(function(){
  $(".popuptxt4").click(function(){
    $("#text4").fadeIn();
    $(".backgrounddiv").fadeIn();
  
  });
  $(".close").click(function(){
    $("#text4").fadeOut();
    $(".backgrounddiv").fadeOut();
  
  });
});

$(document).ready(function(){

  $("#container-1").show();
  
});

function changeValue()
    {
     var value1=document.getElementById('open1').value;
      if (value1 =="$glossary.get('open')")
         {
        document.getElementById('open1').value="$glossary.get('close')";
        document.getElementById('open_1').innerHTML="$glossary.get('close')";
       }
      else if(value1 =="$glossary.get('close')")
       {
        document.getElementById('open1').value="$glossary.get('open')";
        document.getElementById('open_1').innerHTML="$glossary.get('open')";
       }
    }
