// JavaScript Document

var tab_c_op = [];
function tabControl(_op)
{
	tab_c_op[_op.id] = _op;
	for(var i=0; i<tab_c_op[_op.id].nav.length; i++)
	{
		tab_c_op[_op.id].nav[i].bind('click',{id:tab_c_op[_op.id].id,subnum:i},function(event){
			for(var i=0; i<tab_c_op[event.data.id].nav.length; i++)
			{
				tab_c_op[event.data.id].nav[i].removeClass('currert');
				tab_c_op[event.data.id].contains[i].hide();
			}
			tab_c_op[event.data.id].nav[event.data.subnum].addClass('currert');
			tab_c_op[event.data.id].contains[event.data.subnum].show();
		});
	}
}

jQuery(function(){
	tabControl({
		"id":'advantage',
		"nav":[jQuery('#kfdc_nav'),jQuery('#zdkm_nav'),jQuery('#mjcz_nav')],
		"contains":[jQuery('#kfdc'),jQuery('#zdkm'),jQuery('#mjcz')]
	});
	
	/*jQuery('#foryou').bind('click',function(){
		jQuery('#foryou_alt').toggle();
	});
	
	jQuery('#forme').bind('click',function(){
		jQuery('#forme_alt').toggle();
	});*/
});



jQuery(document).ready(function(){
   jQuery('#forme_alt').css('height','0px');
   jQuery('#foryou_alt').css('height','0px');
   
  jQuery("#forme").bind('click',function(){jQuery("#forme_alt").animate({height:'67px'},{duration:200});});
  jQuery("#forme").bind('mouseout',function(){jQuery('#forme_alt').css('height','0px');jQuery("#forme_alt").hide();});
  jQuery("#forme_alt").bind('mouseover',function(){jQuery(this).css('height','67px');jQuery(this).show();});			
  jQuery("#forme_alt").bind('mouseout',function(){jQuery(this).css('height','0px');jQuery(this).hide();});
  
  
  jQuery("#foryou").bind('click',function(){jQuery("#foryou_alt").animate({height:'67px'},{duration:200});});
  jQuery("#foryou").bind('mouseout',function(){jQuery('#foryou_alt').css('height','0px');jQuery("#foryou_alt").hide();});
  jQuery("#foryou_alt").bind('mouseover',function(){jQuery(this).css('height','67px');jQuery(this).show();});
  jQuery("#foryou_alt").bind('mouseout',function(){jQuery(this).css('height','0px');jQuery(this).hide();});
  

});




