// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

var $j = jQuery.noConflict();

$j(document).ready(function(){
									 $j("#tabs").tabs({ 
											selected: -1, 
											fx: { height: 'toggle' }, 
											collapsible: true, 
											select: function(event, ui) {
											var url = $j.data(ui.tab, 'load.tabs');
											if( url ) {
											location.href = url;
											return false;
											}
											return true;
											}
											});
									 $j("#link_to_service").click(
											function(){
											$j("#all, #all_meetings, #all_profiles, #all_jobs, #all_services, #all_volunteers").css("background-image", "url(/images/bg_top_services.jpg)");
											},
											function(){
											$j("#all, #all_meetings, #all_profiles, #all_jobs, #all_services, #all_volunteers").css("background-image", "url(/images/bg_top_home.jpg)");
											}
											);
									 $j("#link_to_meeting").click(
											function(){
											$j("#all, #all_meetings, #all_profiles, #all_jobs, #all_services, #all_volunteerss").css("background-image", "url(/images/bg_top_meetings.jpg)");
											},
											function(){
											$j("#all, #all_meetings, #all_profiles, #all_jobs, #all_services, #all_volunteers").css("background-image", "url(/images/bg_top_home.jpg)");
											}
											);
									 $j("#link_to_volunteer").click(
											function(){
											$j("#all, #all_meetings, #all_profiles, #all_jobs, #all_services, #all_volunteers").css("background-image", "url(/images/bg_top_volunteer.jpg)");
											},
											function(){
											$j("#all, #all_meetings, #all_profiles, #all_jobs, #all_services, #all_volunteers").css("background-image", "url(/images/bg_top_home.jpg)");
											}
											);
									 $j("#link_to_job").click(
											function(){
											$j("#all, #all_meetings, #all_profiles, #all_jobs, #all_services, #all_volunteers").css("background-image", "url(/images/bg_top.jpg)");
											},
											function(){
											$j("#all, #all_meetings, #all_profiles, #all_jobs, #all_services, #all_volunteers").css("background-image", "url(/images/bg_top_home.jpg)");
											}
											);
									 
									 $j("#link_to_job").click(function(){
											$j("#all, #all_meetings, #all_profiles, #all_jobs, #all_services, #all_volunteers").css("background-image", "url(/images/bg_top.jpg)");
											});
									 
									 $j("#link_to_profile").click(
											function(){
											$j("#all, #all_meetings, #all_profiles, #all_jobs, #all_services, #all_volunteers").css("background-image", "url(/images/bg_top_profile.jpg)");
											},
											function(){
											$j("#all, #all_meetings, #all_profiles, #all_jobs, #all_services, #all_volunteers").css("background-image", "url(/images/bg_top_home.jpg)");
											}
											);
									 $j("#link_to_join_corp").hover(
											function(){
											$j("#all, #all_meetings, #all_profiles, #all_jobs, #all_services, #all_volunteers").css("background-image", "url(/images/bg_top_corp.jpg)");
											},
											function(){
											$j("#all, #all_meetings, #all_profiles, #all_jobs, #all_services, #all_volunteers").css("background-image", "url(/images/bg_top_home.jpg)");
											}
											);
									 $j("#link_to_join_executive").hover(
										 function(){
										 $j("#all, #all_meetings, #all_profiles, #all_jobs, #all_services, #all_volunteers").css("background-image", "url(/images/bg_top_executive.jpg)");
										 },
										 function(){
										 $j("#all, #all_meetings, #all_profiles, #all_jobs, #all_services, #all_volunteers").css("background-image", "url(/images/bg_top_home.jpg)");
										 }
										 );
									 $j("#link_to_join_alumni").hover(
											function(){
											$j("#all, #all_meetings, #all_profiles, #all_jobs, #all_services, #all_volunteers").css("background-image", "url(/images/bg_top_alumni.jpg)");
											},
											function(){
											$j("#all, #all_meetings, #all_profiles, #all_jobs, #all_services, #all_volunteers, #all_meetings, #all_profiles, #all_jobs, #all_services").css("background-image", "url(/images/bg_top_home.jpg)");
											}
											);
									 $j("#link_to_blog").click(
										 function(){
										 $j("#all, #all_meetings, #all_profiles, #all_jobs, #all_services, #all_volunteers").css("background-image", "url(/images/bg_top_blog.jpg)");
										 },
										 function(){
										 $j("#all, #all_meetings, #all_profiles, #all_jobs, #all_services, #all_volunteers").css("background-image", "url(/images/bg_top_home.jpg)");
										 }
										 );
									 //$j("#join_corp").click(function(){
									 //	$j("#all" && "#all_services" && "#all_meetings" && "#all_volunteers" && "#all_jobs" && "#all_profiles").css("background-image", "url(/images/bg_top_corp.jpg)");
									 //})
									 });