 $(document).ready(function(){
		$(".where").mouseenter(function() {
			if ($(this).find("div").html()=="")
			{
				switch($(this).attr("id")) {
     				case "where_1": {
    					q="160+Cambridge+St.+Cambridge,+MA+02141";
    					break;
  					}
  					case "where_2": {
    					q="76+Otis+Street,+Westboro,+MA+01581";
    					break;
  					}
  					case "where_3": {
    					q="1395+North+Main+Street++Randolph,+MA+02368";
    					break;
  					}
					case "where_4": {
    					q="21+Main+Street+Watertown,+MA+02472";
    					break;
  					}
					case "where_5": {
    					q="1049+Main+St,+Worcester,+MA+01603";
    					break;
  					}
					case "where_6": {
    					q="55+Main+Street,+Suite+2+Framingham,+MA+01702";
    					break;
  					}
					case "where_7": {
    					q="1616+Beacon+Street+Brookline,+MA+02446";
    					break;
  					}
					case "where_8": {
    					q="74+Market+Street+Lynn,+MA+01901";
    					break;
  					}
					case "where_9": {
    					q="120+Temple+Street+Somerville,+MA+02145";
    					break;
  					}
  					default: {
    					q="";
  					}
				}
				frame="<iframe width=\"300\" height=\"300\" frameborder=\"0\" scrolling=\"no\" marginheight=\"0\" marginwidth=\"0\" src=\"http://maps.google.com/maps?ie=UTF8&amp;z=15&amp;q=" + q + "&amp;iwloc=&amp;output=embed\"></iframe>";
				$(this).find("div").html(frame);
			}
        	$(this).find("div").animate({opacity: "show"}, "fast");
    	});
		$(".where").mouseleave(function() {
			$(this).find("div").animate({opacity: "hide"}, "fast");
    	});
	});
	function show_why(qid) {
		if ($('#why_' + qid).height()==0){
			$('#tr_why_' + qid).slideDown('slow');
		    $('#tr_why_' + qid).stop(true);
		    $('#why_' + qid).slideDown('slow');
		} else {
			$('#tr_why_' + qid).slideUp('slow');
			$('#why_' + qid).slideUp('slow');
		}
		$('#tr_rew_' + qid).slideUp('slow');
		$('#rew_' + qid).slideUp('slow');
	}
	function show_rew(qid) {
		if ($('#rew_' + qid).height()==0){
			$('#tr_rew_' + qid).slideDown('slow');
		    $('#tr_rew_' + qid).stop(true);
		    $('#rew_' + qid).slideDown('slow');
		} else {
			$('#tr_rew_' + qid).slideUp('slow');
			$('#rew_' + qid).slideUp('slow');
		}
		$('#tr_why_' + qid).slideUp('slow');
		$('#why_' + qid).slideUp('slow');
	}
