$(document).ready(function(){	
	$('h2.viewTogglerRight').click(function () {
		$(this).toggleClass('viewTogglerDown');
		$(this).next('div.ftipp_filter_box').toggle(200);
	});
});

function setContent(objID, con){
	$('#'+objID).replaceWith(con);

	$('h2.viewTogglerRight').click(function () {
		$(this).toggleClass('viewTogglerDown');
		$(this).next('div.ftipp_filter_box').toggle(200);
	});

}

	// PageLoad function
	// This function is called when:
	// 1. after calling $.historyInit();
	// 2. after calling $.historyLoad();
	// 3. after pushing "Go Back" button of a browser
	function pageload(hash) {
		// hash doesn't contain the first # character.
		if(hash) {
			// restore ajax loaded state
			$("#tippContentBox").load(hash + ".html");
		} else {
			// start page
			//$("#tippContentBox").empty();
		}
	}
function showLoginBox() {
	$('html, body').animate({
		scrollTop: $("#loginmask").offset().top
	}, 666);
	$('#loginmask .loginbox').slideDown(1999);
	
}

/*

	// Initialize history plugin.
	// The callback is called at once by present location.hash.
	$(document).history.init(pageload);

	// set onlick event for buttons
	$("div.ftipp_filter_box a").click(function(){
		//
		var hash = this.href;
		hash = hash.replace(/^.*#/, '');
		// moves to a new page.
		// pageload is called at once.
		$(document).history.load(hash);
		return false;
	});

 **/
