$(document).ready(function() {
$('div.Direct').click(function(){
var Location = this.id;
window.location = Location;
});
$('img.EnlargeMe').toggle(function(){
var OldWidth = this.width;
var OldHeight = this.height;
var NewWidth = OldWidth*2;
var NewHeight = OldHeight*2;
$(this).animate({height: NewHeight, width: NewWidth}, 'slow');
},function(){
var OldWidth = this.width;
var OldHeight = this.height;
var NewWidth = OldWidth/2;
var NewHeight = OldHeight/2;
$(this).animate({height: NewHeight, width: NewWidth}, 'slow');
});
$('span.NewsTitle').toggle(function(){
var ID = this.id;
var ToSlide = "DIV"+ID;
$('#'+ToSlide).slideDown('slow');
},function(){
var ID = this.id;
var ToSlide = "DIV"+ID;
$('#'+ToSlide).slideUp('slow');
});
$('span.Close').click(function(){
var ID = this.id;
var ToSlide = "DIVCell"+ID;
$('#'+ToSlide).slideUp('slow');
});
$('.NewsTitle').hover(function(){
$(this).addClass('NewsTitle2');
}, function(){
$('.NewsTitle').removeClass('NewsTitle2');
});
$('.NewMember').click(function(){
var Location = "index.php?p=New_Members";
window.location = Location;
});
$('.NewMember').hover(function(){
$(this).addClass('TextHighlight');
},function(){
$(this).removeClass('TextHighlight');
});
$('select.DropDown').change(function(){
var Name1 = document.getElementById("Cat");
var Category = Name1.options[Name1.selectedIndex].value;
window.location = "index.php?p=New_Members&Cat="+Category;
});
$('input.FormButton').hover(function(){
$(this).addClass('ButtonHighlight');
},function(){
$(this).removeClass('ButtonHighlight');
});
$('span.CellHighlight').hover(function(){
$(this).addClass('FormButtonHighlight');
},function(){
$(this).removeClass('FormButtonHighlight');
});
$('span.PublisherFound').hover(function(){
$(this).addClass('SearchResult');
}, function(){
$(this).removeClass('SearchResult');
});
$('span.PublisherFound').toggle(function(){
var Item = this.id;
var SubItem = "Div"+Item;
$('div#'+SubItem).fadeIn('slow');
},function(){
var Item = this.id;
var SubItem = "Div"+Item;
$('div#'+SubItem).fadeOut('slow');
});
$('input#SearchRadio1').click(function(){
$('div#ShowRadio2').fadeOut('slow');
$('div#ShowRadio3').fadeOut('slow');
$('div#ShowRadio1').fadeIn('slow');
});
$('input#SearchRadio2').click(function(){
$('div#ShowRadio1').fadeOut('slow');
$('div#ShowRadio3').fadeOut('slow');
$('div#ShowRadio2').fadeIn('slow');
});
$('input#SearchRadio3').click(function(){
$('div#ShowRadio1').fadeOut('slow');
$('div#ShowRadio2').fadeOut('slow');
$('div#ShowRadio3').fadeIn('slow');
});
$('div.RetrievePW').hover(function(){
$(this).addClass('FormButtonHighlight');
},function(){
$(this).removeClass('FormButtonHighlight');
});
$('div.RetrievePW').toggle(function(){
$('div.HideLostpw').slideDown('slow');
},function(){
$('div.HideLostpw').slideUp('slow');
});
$('div.MyMembership').hover(function(){
$(this).addClass('FormButtonHighlight');
},function(){
$(this).removeClass('FormButtonHighlight');
});
$('div.MyMembership').click(function(){
window.location = "index.php?p=Members";
});
});
