/***********************************************************************************/
/* 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 DisplayHeader()
{
	var current_date = new Date();
	var current_month = current_date.getMonth();
	var current_day = current_date.getDate();
	var current_year = current_date.getYear();

	current_month = current_month + 1;
	switch(current_month)
	{
		case 1 : 
		{
			if (current_day == 1)
			{		
				document.write('<td class="logonewyears" width="725">&nbsp;PDP Group</td>');
			}
			else
			{
				document.write('<td class="logoheader" width="725">&nbsp;PDP Group</td>');
			}
			break;
		}
		
		case 2 : 
		{
			document.write('<td class="logoheader" width="725">&nbsp;PDP Group</td>');
			break;
		}


		case 3 : 
		{
			if (current_day == 17)
			{		
				document.write('<td class="logostpatricks" width="725">&nbsp;PDP Group</td>');
			}
			else
			{
				document.write('<td class="logoheader" width="725">&nbsp;PDP Group</td>');
			}
			break;
		}
		
		case 4 : 
		{
			document.write('<td class="logoheader" width="725">&nbsp;PDP Group</td>');
			break;
		}
		

		case 5 : 
		{
			document.write('<td class="logoheader" width="725">&nbsp;PDP Group</td>');
			break;
		}

		case 6 : 
		{
			document.write('<td class="logoheader" width="725">&nbsp;PDP Group</td>');
			break;
		}

		case 7 : 
		{
			if (current_day == 4)
			{		
				document.write('<td class="logoindependence" width="725">&nbsp;PDP Group</td>');
			}
			else
			{
				document.write('<td class="logoheader" width="725">&nbsp;PDP Group</td>');
			}
			break;
		}

		case 8 :
		{
			document.write('<td class="logoheader" width="725">&nbsp;PDP Group</td>');
			break;
		}

		case 9 : 
		{
			if (current_day == 11)
			{		
				document.write('<td class="logoindependence" width="725">&nbsp;PDP Group</td>');
			}
			else
			{
				document.write('<td class="logoheader" width="725">&nbsp;PDP Group</td>');
			}
			break;
		}

		case 10 : 
		{
			if (current_day >= 25)
			{
				document.write('<td class="logohalloween" width="725">&nbsp;PDP Group</td>');
			}
			else
			{
				document.write('<td class="logoheader" width="725">&nbsp;PDP Group</td>');
			}
			break;
		}

		case 11 : 
		{
			if (current_day >= 20)
			{
				document.write('<td class="logothanksgiving" width="725">&nbsp;PDP Group</td>');
			}
			else
			{
				document.write('<td class="logoheader" width="725">&nbsp;PDP Group</td>');
			}
			break;
		}

		case 12 : 
		{
			if (current_day < 26)
			{
				document.write('<td class="logochristmas" width="725">&nbsp;PDP Group</td>');
			}
			else if (current_day == 31)
			{
				document.write('<td class="logonewyears" width="725">&nbsp;PDP Group</td>');
			}
			else
			{
				document.write('<td class="logoheader" width="725">&nbsp;PDP Group</td>');
			}
			break;
		}
	}
}