$(document).ready(function() {
	
	popup();
	popupFlash();
	
	$('.answer').hide();
	
	$('.question').bind("click", function(){
		$('.answer').hide();
		$(this).siblings(".answer").toggle();
	});
	
	$('.question p').hover(function (){
		$(this).css({'text-decoration' : 'underline'});
	}, 
	function () {
	    $(this).css({'text-decoration' : 'none'});
	});
	
});

function popupWindow(url, name, attributes){
	var newWindow = window.open(url, name, attributes);
	newWindow.focus();
} 


function popup() {
	$('a.popupLink').bind('click', function(e) { popupWindow($(this).attr('href'), $(this).attr('title').replace(/[^A-z]/ig, ''),'width=540, height=540, scrollbars'); e.preventDefault(); });
};

function popupFlash() {
	$('a.popupFlashLink').bind('click', function(e) { popupWindow($(this).attr('href'), $(this).attr('title').replace(/[^A-z]/ig, ''),'width=980, height=740, scrollbars'); e.preventDefault(); });
};



         
         
