$().ready(function(){$('.tooltip').each(function(){if($(this).data('qtip')){$(this).qtip("destroy");}
$(this).qtip({style:{name:'green',tip:true},position:{adjust:{screen:true}}});});$('#sex').change(function(){switch($(this).val()){case'm4w':$('#userSex').val('Male');$('#groupSexSeeking').val('Females');break;case'm4m':$('#userSex').val('Male');$('#groupSexSeeking').val('Males');break;case'w4m':$('#userSex').val('Female');$('#groupSexSeeking').val('Males');break;case'w4w':$('#userSex').val('Female');$('#groupSexSeeking').val('Females');break;}});});