function setHomepage()
    {
     if (document.all)
        {
            document.body.style.behavior='url(#default#homepage)';
      document.body.setHomePage('http://gmg-tv.com');

        }
        else if (window.sidebar)
        {
        if(window.netscape)
        {
             try
       {  
                netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");  
             }  
             catch(e)  
             {  
        alert("this action was aviod by your browserï¼Œif you want to enableï¼Œplease enter about:config in your address line,and change the value of signed.applets.codebase_principal_support to true");  
             }
        } 
        var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components. interfaces.nsIPrefBranch);
        prefs.setCharPref('browser.startup.homepage','http://gmg-tv.com');
     }
    }
	
	jQuery(document).ready(function($) {
	
		$('.hand').mouseover(function(e) {
			$('.hand1').mouseover();
		}).mouseout(function(e) {
			$('.hand1').mouseout();
		}).click(function(e) { e.preventDefault(); });
		
		$('.leg').mouseover(function(e) {
			$('.leg1').mouseover();
		}).mouseout(function(e) {
			$('.leg1').mouseout();
		}).click(function(e) { e.preventDefault(); });

		
		
		
		$(".calendar_select select").select_skin();
		
		$('.map img').maphilight();
		
		
				$('#slide').cycle({ 
					fx:     'fade', 
					speed:  'fast', 
					timeout: 4000, 
					next:   '#next2', 
					prev:   '#prev2' 
				});
		var head = $('#head_menu');
		var arm = $('#arm_menu');
		var heart = $('#heart_menu');
		var abdominal = $('#abdominal_menu');
		var pelvis = $('#back_menu');
		var feet = $('#feet_menu');
		
		
		/*
		head.mouseover(function(e) {
			$('.head').mouseover();
		}).mouseout(function(e) {
			$('.head').mouseout();
		});

		arm.mouseover(function(e) {

			$('.hand').mouseover();
		}).mouseout(function(e) {

			$('.hand').mouseover();
		});

		head.mouseover(function(e) {
			$('.headd').mouseover();
		}).mouseout(function(e) {
			$('.headd').mouseout();
		}).click(function(e) { e.preventDefault(); });
		
		head.mouseover(function(e) {
			$('.headd').mouseover();
		}).mouseout(function(e) {
			$('.headd').mouseout();
		}).click(function(e) { e.preventDefault(); });
		
		head.mouseover(function(e) {
			$('.headd').mouseover();
		}).mouseout(function(e) {
			$('.headd').mouseout();
		}).click(function(e) { e.preventDefault(); });
		
		head.mouseover(function(e) {
			$('.headd').mouseover();
		}).mouseout(function(e) {
			$('.headd').mouseout();
		}).click(function(e) { e.preventDefault(); });
	
*/
		$('.map map area').hover(function(){

		if($(this).attr('alt') == 'head') {
			head.show().css({'position':'absolute','top':'0px','right':'-140px','display':'block'});
			head.mouseover(function(e) {
				head.show();
			});
			head.mouseout(function(e) {
				$(this).hide();
			});
		}
		
		if($(this).attr('alt') == 'hand') {
			arm.show().css({'position':'absolute','top':'80px','right':'-185px'});
			arm.mouseover(function() {
				arm.show();
			});
			arm.mouseout(function() {
				$(this).hide();
			});
		}
		
		if($(this).attr('alt') == 'hand1') {
			arm.show().css({'position':'absolute','top':'80px','right':'-60px'});
			arm.mouseover(function() {
				arm.show();
			});
			arm.mouseout(function() {
				$(this).hide();
			});
		}
		
		if($(this).attr('alt') == 'chest') {
			heart.show().css({'position':'absolute','top':'70px','right':'-140px'});
			heart.mouseover(function() {
				heart.show();
			});
		heart.mouseout(function() {
			$(this).hide();
		});
		}

		if($(this).attr('alt') == 'stomach') {
			abdominal.show().css({'position':'absolute','top':'125px','right':'-120px'});
			abdominal.mouseover(function() {
				abdominal.show();
			});
		abdominal.mouseout(function() {
			$(this).hide();
		});
		}
		
		if($(this).attr('alt') == 'pelvis') {
			pelvis.show().css({'position':'absolute','bottom':'140px','right':'-120px'});
			pelvis.mouseover(function() {
				pelvis.show();
			});
		pelvis.mouseout(function() {
			$('this').hide();
		});
		}
		
		if($(this).attr('alt') == 'leg') {
			feet.show().css({'position':'absolute','bottom':'0px','right':'-172px'});
			feet.mouseover(function() {
				feet.show();
			});
		feet.mouseout(function() {
			$(this).hide();
		});
		}
		if($(this).attr('alt') == 'leg1') {
			feet.show().css({'position':'absolute','bottom':'0px','right':'-75px'});
			$feet.mouseover(function() {
				feet.show();
			});
		feet.mouseout(function() {
			$(this).hide();
		});
		}
	}, function(){
		head.hide();
		arm.hide();
		heart.hide();
		abdominal.hide();
		pelvis.hide();
		feet.hide();
		
	});
	

});
