﻿// Google+ button
  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();

function bindSearchMore() {
	if ($('a.SearchMore').size() > 0) {
		$('nav.GuideNav').hide();
		$('a.SearchMore').bind('click', function () {
			$('nav.GuideNav').show('blind', function () {
				$('a.SearchMore').hide('blind');
			});
		});
	}
}

function masterSearch() {
	$('#formSearch').attr('action', '/search/' + $('#txtSearch').val());
}

function guideSearch() {
	$('#formGuideSearch').attr('action', '/search/' + $('#txtGuideSearch').val() + '/guide');
}


$(document).ready(function () {
	bindSearchMore();
});

/* show hide my settings links */
$(".jQShowMySettingsExpanded").live('click', function () {
    $(".MySettingsExpanded").show('fast');
});

$("a.jQHideMySettingsExpanded").live('click', function () {
    $(".MySettingsExpanded").hide('fast');
});
