$(function(){
	    $('.slideh').click(function(){
		var sub = '#'+$(this).attr('id')+'_sub';
		if($(sub).css("display")=='none') $(sub).slideDown('slow');
		else $(sub).slideUp('slow');
		destination = $(this).offset().top;
     		$("html").animate({ scrollTop: destination}, 1100 );
		return false;
	});
});

$(function () {

    var tabContainers = $('div.tabsz > div');

    tabContainers.hide().filter(':first').show();



    $('div.tabsz > p.menuuu-t a').click(function () {

        tabContainers.hide();

        tabContainers.filter(this.hash).show();

        $('div.tabsz ul.tabNavigation a').removeClass('selected');

        $(this).addClass('selected');

        return false;

    }).filter(':first').click();
    
    
    $('div.tabsz > p.menuuu-a a').click(function () {

        tabContainers.hide();

        tabContainers.filter(this.hash).show();

        $('div.tabsz ul.tabNavigation a').removeClass('selected');

        $(this).addClass('selected');

        return false;

    }).filter(':first').click();


$('a#a1').click(function() {
        $('p.menuuu-a').css("background-position","0px 0px");
         
        });

$('a#a2').click(function() {
        $('p.menuuu-a').css("background-position","0px -39px");
        
        });

$('a#a3').click(function() {
        $('p.menuuu-a').css("background-position","0px -78px");
        
        });



$('a#l1').click(

        function() {$('p.menuuu-t').css("background-position","0px 0px");}

);

$('a#l2').click(

        function() {$('p.menuuu-t').css("background-position","0px -39px");}

);

$('a#l3').click(

        function() {$('p.menuuu-t').css("background-position","0px -78px");}

);

$('a#l4').click(

        function() {$('p.menuuu-t').css("background-position","0px -117px");}

);

$('a#l5').click(

        function() {$('p.menuuu-t').css("background-position","0px -156px");}

);





});



function div_show(arg) {

	document.getElementById("country1").style.display = "none";

	document.getElementById("country2").style.display = "none";

	document.getElementById("country3").style.display = "none";

	document.getElementById("country4").style.display = "none";

	document.getElementById("country5").style.display = "none";

	document.getElementById("country6").style.display = "none";

	document.getElementById("country7").style.display = "none";

	

	if(document.getElementById(arg).style.display == "none")

		document.getElementById(arg).style.display = "block";

	else

		document.getElementById(arg).style.display = "none";

}

function load_phone_number()
{
	$.ajax({
	   type: "POST",
	   url: "/load_phone_number_ajax.php",
	   success: function(msg)
	   {
		if (msg!='')
		{
			var p_block = $('#main_phone_header');
			if (p_block.length)
			{
				p_block.html(msg);
			}
		}
	   }
	});
} // load_phone_number
