/**
 * @author binu@dronasys.com
 */
$(document).ready(function(){
	$('#infoPanel').fadeOut();
	initHome();
	initPlanTable();
	
	
	
});

var INFOSLIDED = false;
function initHome() {

	$('#infoArea').hover(function(){
		$('#infoPanel').fadeIn();
	},function() {
		$('#infoPanel').fadeOut();
	});
		
	$('#infoLinks a').hover(function(){
		$('#infoPanel div').html($(this).next().html());

	},function() {
		//$('#infoPanel div').html();
		//$('#infoPanel').fadeOut();

	});
	
}

function initPlanTable() {
	for (i=0;i<5;i++) {
		$('#planTable tbody tr').find('td:eq('+i+')').bind('mouseover',{
	            'colNum': i
	        },function(event){
				var i = event.data['colNum'];
				$('#planTable tbody tr').find('td').removeClass('active').filter(':nth-child('+(i+2)+')').addClass('active');				
//				$('#planTable tbody td.active').removeClass('active');
//				$('#planTable tbody tr td:eq('+i+')').addClass('active');
		});
	}

}

