// JavaScript Document
    $(document).ready(function() {
      var show = $('#1');
      var hide = $('#2');
	  var ie6 = $.browser.msie&&($.browser.version == "6.0");
  
      $('div.square')
        .jqm({overlay:50, modal:false, trigger: false})
        //.jqDrag()
        .jqmAddTrigger(show)
        .jqmAddClose(hide)
    
      $('.mapBrowse').click(function() {
        $('div.square:even').jqmShow();
        $('div.square:odd').jqmHide();
      });

		
	  $('.browseRightShow > a').click(function() {
        $('div.square:odd').jqmShow();
        $('div.square:even').jqmHide();
      });
      var myOpen=function(hash){
		  hash.w.fadeIn('2000');
          if (ie6) {	  	  
	        $('.selectH').css('display','none');	 		 
	      }
	  	  
	      else {
	        $('.selectH').css('display','block');
	      }
			  
	  };
      
	  var myClose=function(hash){ 
	  	hash.w.fadeOut('2000',function(){ hash.o.remove(); }); 
		$('.selectH').css('display','block');	  
	  };
	  
	  $('.square').jqm({onShow:myOpen}); 
	  $('.square').jqm({onHide:myClose});
		
    });
