// JavaScript Document


// Function for the Quick Links Dropdown navigation.
function dropDownNavigate()
	{
		if (document.ddnForm.ddn.selectedIndex != "")
		{
			window.open(document.ddnForm.ddn.options[document.ddnForm.ddn.selectedIndex].value, "_self", "");
		}
	}


// Tag It function to bookmark pages
function linkto(tag)
{
	var thePage = location.href;
	var theTitle = document.title;
	var theTagURL = '';
	
	switch(tag){
		case "favorites":
			window.external.AddFavorite(thePage,theTitle);
			break;
		case "digg":
			theTagURL = "http://digg.com/submit?phase=2&url=" + thePage + "&title=" + theTitle;
			break;
		case "delicious":
			theTagURL = "http://del.icio.us/post?v=4;url=" + thePage + ";title=" + theTitle;
			break;
		case "technorati":
			theTagURL = "http://www.technorati.com/search/" + thePage;
			break;
		case "slashdot":
			theTagURL = "http://slashdot.org/bookmark.pl?title=" + theTitle + "&url=" + thePage;
			break;
	}
	if(theTagURL != '')
		window.open(theTagURL,'tagThis','scrollbars=yes,menubar=no,width=620,height=400,resizable=yes,toolbar=no,location=no,status=no');
}
