jQuery(function($){
	$('#quotes').cycle({timeout:6000});
	$('.font-inc').click(function(){
		fontIncrease();
		return false;
	});
	$('.font-dec').click(function(){
		fontDecrease()
		return false;
	});
//	$('hr').wrap('<div class="hr"></div>').hide();
//	$('p:has(#searchSelectGlobal)').click(function(){
//		$('#searchLocal').hide();
//		$('#searchGlobal').show();
//	});
//	$('p:has(#searchSelectLocal)').click(function(){
//		$('#searchGlobal').hide();
//		$('#searchLocal').show();
//	});
	$('.nav').superfish({animation:{opacity:'show',height:'show'}});
	//scroller('our-supporters',10);
});

function fontIncrease(){
	var size = parseFloat(jQuery('html').css('font-size'), 10) + 3;
	if(size <= 22){
		jQuery('html').css('font-size', size);
	}
}
function fontDecrease(){
	var size = parseFloat(jQuery('html').css('font-size'), 10) - 3;
	if(size >= 10){
		jQuery('html').css('font-size', size);
	}
}
//function showQuickLogin(){
//	jQuery('#quickLogin > .link').hide();
//	jQuery('#quickLogin > .form').show();
//}
//function quickLogin(){
//	jQuery('#user_login').val(jQuery('#quick_login').val());
//	jQuery('#user_pass').val(jQuery('#quick_password').val());
//	jQuery('#wp-submit').click();
//}
//function redirect(url){
//	urlPathStr = jQuery('#locationSelect').val();
//	if(urlPathStr != ""){
//		window.location = urlPathStr;
//	}
//}
function bookmarkthis(title,url){
	alert('Please press Ctrl-D to bookmark this page.');
	return false;
}
//function scroller(id,pps){
//	var object = $('#'+id);
//	var object_offset = object.offset().top;
//	var childs_offset = object.children().eq(1).offset().top;
//	var childs_height = object.children().eq(0).height();
//	var scroll_height = (childs_offset-object_offset);
//	var scroll_speeds = (childs_height*(1000/pps));
//	object.animate({scrollTop:'+='+scroll_height+'px'},scroll_speeds,'linear',function(){
//		object.children().eq(0).remove().appendTo('#'+id).parent().scrollTop(0);
//		scroller(id,pps);
//	});
//}