/***********************************************************************************/
/* Proprietary property of: PDP Group, Inc.                                        */
/*                          10909 McCormick Road                                   */
/*			    Hunt Valley, Maryland  21031                           */
/*							                           */
/* This program is "Restricted material of PDP Group, Inc."                        */
/* (C) Copyright PDP Group, Inc. 2002-2004                                         */
/*                                                                                 */
/***********************************************************************************/
/* Javascript for PDP's static web site                                            */
/***********************************************************************************/
/* Author : Art Huffman                                                            */
/* Date created : 09/29/2004                                                       */
/* Problem # : xxxxxx                                                              */
/***********************************************************************************/
/* Change Log                                                                      */
/***********************************************************************************/
/* Changed By      |        Description of Change                                  */
/* Date changed    |                                                               */
/* Problem  #      |                                                               */
/***********************************************************************************/
/* ARH001          | Added function to rotate graphic header of the index page     */
/* 10/26/2004      | based on the date.  This is for holidays.                     */
/* XXXXXXXXXX      |                                                               */
/***********************************************************************************/

function CreateMailURL(user, domain, subject, textlink)
{
	mailto = user + '@' + domain;
	document.write('<a href="mailto:' + mailto + subject + '">' + textlink + '</a>');
}

function CreateMailURL2(user, domain, subject)
{
	mailto = user + '@' + domain;
	document.write('<a href="mailto:' + mailto + subject + '">' + mailto + '</a>');
}

function DropDown(obj) 
{
	var drop = document.getElementById(obj);
	if ( drop.style.display != 'none' )
	{
		drop.style.display = 'none';
	}
	else 
	{
		drop.style.display = '';
	}
}

function showsmall(url)
{
	newwin = top.window.open(url, '_new', 'toolbar=no,location=no,status=no,menubar=no,resizable=no,directories=no,scrollbars=no,width=400,height=200');
}

function popupsmall(mylink, windowname)
{
	if (! window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
   	href=mylink;
	else
   	href=mylink.href;
	window.open(href, windowname, 'toolbar=no,location=no,status=no,menubar=no,resizable=no,directories=no,scrollbars=no,width=400,height=200');
	return false;
}

function showmedium(url)
{
	newwin = top.window.open(url, '_new', 'toolbar=no,location=no,status=no,menubar=no,resizable=no,directories=no,scrollbars=no,width=500,height=200');
}

function popupmedium(mylink, windowname)
{
	if (! window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
   	href=mylink;
	else
   	href=mylink.href;
	window.open(href, windowname, 'toolbar=no,location=no,status=no,menubar=no,resizable=no,directories=no,scrollbars=no,width=500,height=200');
	return false;
}

function showlarge(url)
{
	newwin = top.window.open(url, '_new', 'toolbar=no,location=no,status=no,menubar=no,resizable=no,directories=no,scrollbars=no,width=650,height=220');
}

function popuplarge(mylink, windowname)
{
	if (! window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
   	href=mylink;
	else
   	href=mylink.href;
	window.open(href, windowname, 'toolbar=no,location=no,status=no,menubar=no,resizable=no,directories=no,scrollbars=no,width=650,height=220');
	return false;
}