// JavaScript Document

var FO = { movie:"/images/uploads/pages/landing/ru_sub_programs.swf?time=1236798139", width:"929", height:"135", majorversion:"7", build:"0", wmode: "transparent", allowscriptaccess: "always", allownetworking: "all", flashvars:"", xi:"true" };
		 UFO.create(FO, "landing");
		 
$(document).ready(function(){
	$("div#org-browse").hide();

	$("h3.browse").click(function(){
		$("div#org-browse").toggle();
		$("div#browsecont").toggle();
		$("div#browsecont-active").toggle();
	});
});

Date.format = 'mm/dd/yyyy';							//DATE PICKER
$(function(){	$('.date-pick').datePicker();});

//MEDIA PROFILE SCRIPT
$(document).ready(function(){
	$(".profile-img").click(function(){
		$("div#profile-info-container").show();
		$("div#content-text").hide();
		var show = $(this).attr("name");
		$("div."+show).show();
		$("div.profile"+show).show();
		$("div.page").hide();
		return false;
	})

	$("a.close-link").click(function(){
		var hide = $(this).attr("name");
		$("div.profile"+hide).hide();
		$("div."+hide).hide();
		$("div#profile-info-container").hide();
		$("div#content-text").show();
		$("div.page").show();
		return false;
	})
});


function safelink(name, domain) {
	document.write("<a h" + "ref='m" + "ail" + "to:" + name + "@" + domain + "'>" + name + "@" + domain + "</a>");
}

function safelinktext(name, domain, linktext) {
	document.write("<a h" + "ref='m" + "ail" + "to:" + name + "@" + domain + "'>" + linktext + "</a>");
}