$(document).ready(function(){
	
	/** OSR **/
	$("#osrTitle .contactButton").click(function(){	
		if (!$("#osrContent .contactButton").hasClass("hideIt")) {			
			$("#osrContent .messageBox .hideIt").removeClass("hideIt");		
			$("#osrContent .messageBox .contactButton").addClass("hideIt");
		}		
	});
	
	$("#osrContent .contactButton").click(function(){		
		if (!$("#osrContent .contactButton").hasClass("hideIt")) {
			$("#osrContent .messageBox .hideIt").slideDown("normal", function(){
				location.href="#messageForm";
			});					
			$("#osrContent .messageBox .contactButton").addClass("hideIt");			
		}		
		return false;
	});
	
	$("#osrContent .messageBox .leftSide input").click(function(){		
		var inputID = $(this).attr("id");
		$("#osrContent .messageBox .leftSide .checked").removeClass("checked");			
		$("#osrContent .messageBox .leftSide #la-"+inputID).addClass("checked");
	});
	
	$("#osrContent .messageTextarea textarea").focus(function(){
		if ($(this).text() == commentString) {
			$(this).text('');
		}
	});
	$("#osrContent .messageTextarea textarea").blur(function(){
		if ($(this).text() == "") {
			$(this).text(commentString);
		}
	});
	/** END OSR **/
});
