/**
 *
 *	Functions for the Dialog Windows
 * Copyright (c) 2011 Shawn Crigger (http://s-vizion.com)
 * Licensed under the MIT License (LICENSE.txt). 
 *	Created by Shawn Crigger <shawn@s-vizion.com>@ EWD 1-15-11
 *
 **/
$(function(){var b=$('<img src="http://www.rarespeciesfund.org/images/index/loading.gif" height="100" width="100" alt="loading" class="loading">');if($("a.sbox").length!=0){$("a.sbox").each(function(){$(this).css("display","visible");var d=$("<div></div>").append(b.clone());var a=$(this).one("click",function(){d.load(a.attr("href")).dialog({title:$(this).find("img").attr("title"),width:620,maxHeight:500,minHeight:300,modal:true,position:['top','top'],draggable:true,resizable:true,buttons:{Close:function(){$(this).dialog("close");}}});a.click(function(){d.dialog("open");return false;});return false;});});}});
