$(document).ready(function(){ 

$(window).load(function() {
});	

//Menu functions
$("#POS10").click(function () { 
	$(this).removeClass().addClass("menuspoton");
	$("#SolutionMenu").show();  
});  

$("#POS10").mouseover(function () { 
	$(this).removeClass().addClass("menuspoton");
	$("#SolutionMenu").show();  
});  

$("#SolutionMenu").mouseleave(function(){
	$("#SolutionMenu").hide();
}); 

$("#POS3").click(function () { 
	$(this).removeClass().addClass("menuspoton");
	$("#TrainingMenu").show();  
});  
$("#TrainingMenu").mouseleave(function(){
	$("#TrainingMenu").hide();
}); 

$("div[id^=POS]").mouseover(function(){
   	$(this).removeClass().addClass("menuspoton");
	})
	.mouseout(function(){
   $(this).removeClass().addClass("menuspot");	
	});	
	
$("div[id^=POS]").mouseout(function(){
	var curid = $(this).attr('id');
	//alert(curid);
	if (curid !== menuset) { 
   $(this).removeClass().addClass("menuspot");	
	}  else	{
	$(this).removeClass().addClass("menuspotclick");
	}
});
	
$("div[id^=POS]").click(function(){
   	$(this).removeClass().addClass("menuspotclick");
	var menuset = $(this).attr('id');
	//alert(menuset);
	});

//$("div[id=POS4]").mouseover(function(){
  // 	$(this).removeClass().addClass("menuspotorder");
//	})
//	.mouseout(function(){
 //  $(this).removeClass().addClass("menuspotorder");	
//	});		


//eof drop
$("div[id^=SUB]").mouseover(function(){
   	$(this).removeClass().addClass("pagemenulink_hover");
    }).mouseout(function(){
    	$(this).removeClass().addClass("pagemenulink");		
    });	
	
	
$("#SUB2").click(function(){
  $('#PAGECONTENTS').load('/learner.php').show();	
	});
	
$("#SUB3").click(function(){
  $('#PAGECONTENTS').load('/manager.php').show();	
	});

$("#SUB4").click(function(){
  $('#PAGECONTENTS').load('/scalablity.php').show();	
	});	
	
$("#SUB5").click(function(){
  $('#PAGECONTENTS').load('/features/features.php').show();	
	});		
	
$("#SUB6").click(function(){
  $('#PAGECONTENTS').load('/faq/faq.php').show();	
	});	
	
	
//for each section	
$("#SUB_HOSPITALITY").click(function(){
  $('#PAGECONTENTS').load('/template/overview.php').show();	
	});	
	
$("#SUB_TRAINING").click(function(){
  $('#PAGECONTENTS').load('/training/overview.php').show();	
});
	
$("div[id^=MENUSELECT]").live('click' ,function() {
	var num = $(this).attr('data');
	location.href= num;	
});

$("div[id^=MENUSELECT]").mouseover(function(){
   	$(this).removeClass().addClass("MenuSelect_hover");
    }).mouseout(function(){
    	$(this).removeClass().addClass("MenuSelect");		
    });	
	
$('select#INDEX_SELECT').live('change' ,function() {
	if($('#INDEX_SELECT').val() !== "") 
	{
	var num = $(this).attr('value');
	location.href= num;
	}
});	

$("img[id^=rot]").live('click' ,function() {
	alert('click');
	var num = $(this).attr('data');
	location.href= num;	
});

	
});	
