function initialize() {
    var myLatlng = new google.maps.LatLng(10.774542411776045,106.68179512023926);
    var myOptions = {
      zoom: 17,
      center: myLatlng,
      mapTypeId: google.maps.MapTypeId.ROADMAP
    }
    var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
    
    var marker = new google.maps.Marker({
        position: myLatlng, 
        map: map,
        title:"MINH THANH PIANO"
    });   
  }
  
  
var show_event_popup = 1;
	
  function xxx() 
  {
  	//var pattern="/maximart.vn/index.php?newlang=[a-z]";
	var pattern=/pianominhthanh.com/g;
  	var refe = document.referrer;
  	if( (refe != '' && refe.match(pattern)) || show_event_popup == 0)  
  	{
		
  	}
  	else
  	{
  		$('#basic-modal-content').modal(
									 /* {
              onOpen: function (dialog) 
                  {
                  dialog.overlay.fadeIn('slow', function () 
                      {dialog.data.hide();
                       dialog.container.fadeIn('slow', function ()      
                              {dialog.data.slideDown('slow');});
                      });
                   },
                onClose: function (dialog) 
                        {
                        dialog.data.fadeOut('slow', function () 
                                {
                                dialog.container.hide('slow', function () 
                                        {
                                        dialog.overlay.fadeOut('slow', function () 
                                                {$.modal.close();});
                                        });
                                });
                        },
                overlayClose:true,
                opacity: 75,
              }*/);
  	}
	
  }



$(document).ready(function () {

		//set the default location (fix ie 6 issue)
		//$('.tabs').css({left:$('span.item:first').position()['left']});
		
		$('a.slide').click(function () {
			
			$(".active").removeClass("active");
			
			$(this).addClass("active");
			
			
			$(".content").hide();

			var content_show = $(this).attr("title");
			$("#"+content_show).fadeIn(1000);
			
		});
		
		
		

		
});


var windowOpen = false;
var window1;
function MM_openBrWindow(theURL,winName,features) { //v2.0
   if (windowOpen == false)
        {
		windowOpen = true;
	   	window1=window.open(theURL,winName,features);
		}
   else if (windowOpen == true)
       	{
        window1.close();
		windowOpen = true;   
	  	window1=window.open(theURL,winName,features);
		} 
}//-->

function menu(id)
{

	
						
    	if(document.getElementById(id).style.display=='none')
		{
			document.getElementById(id).style.display='block'; 
		}
		else
		{
			document.getElementById(id).style.display='none'; 
		}
		
		$('#accord').find('div').each(function() {
			var ma = $(this).attr('id');
			//var macode = ma.split("idmenu");
			//macode = macode.slice(1, macode.length);
			//window.alert(ma);
			//window.alert(id);
			if(ma!=id)
			{
				if(document.getElementById(ma).style.display=='block')
				{
					document.getElementById(ma).style.display='none'; 
				}
			}
		});
	
}


        
