
	var Announcement1Pictures;
	var Announcement2Pictures;
	var Current1 = 0;
	var Current2 = 0;
	var imagebox1 = "announcementpic1";
	var imagebox2 = "announcementpic2";

function Load_Pics(Pic_Names)
{
   var Pictures = Pic_Names.split("|");
   return Pictures;
}

function SlideShow( ID, Fade, Pic_Index, Pic_Names, Pic_Count)
{

	var PicName = PickImage( ID, Pic_Index, Pic_Names, Pic_Count) ;
	if (Fade > 0)
	{
	      var Fade_Time	= (Fade / 2) * 10;
	      setTimeout( "ChangeImage( '" +ID+ "', '" +PicName+ "')" , ( Fade_Time * 100) );		      
	      var Clock	= 0;

	      for ( i = 100; i > 0; i--)
	      {
		setTimeout( "ChangeOpacity( " + i + ",'" + ID + "')", (Fade_Time * Clock) );
		Clock++;
	      }
	      for ( i = 0; i < 100; i++)
	      {
		setTimeout( "ChangeOpacity( " + i + ",'" + ID + "')", (Fade_Time * Clock) );
		Clock++;
	      }
	}
	else
	{
	      ChangeImage( ID, PicName);
	}
}

function ChangeOpacity( Opacity, id)
{
	var Object = document.getElementById(id);
	Object.style.opacity = (Opacity/100);
	Object.style.filter = "alpha(opacity=" + Opacity + ")"; 
	Object.style.MozOpacity = (Opacity / 100);
	Object.style.KhtmlOpacity = (Opacity / 100);
}

function PickImage( id,  Pic_Index, Pic_Names, Pic_Count)
{
	if(Pic_Index == 1)
	{
		Current1++;
		if(Current1 == Pic_Count)
		{
			Current1 = 0;
		}
		var PicName = Pic_Names[Current1];
		return PicName;
	}
	else if(Pic_Index == 2)
	{
		Current2++;
		if(Current2 == Pic_Count)
		{
			Current2 = 0;
		}
		var PicName = Pic_Names[Current2];
		return PicName;
	}
	
}

function ChangeImage(id, picname)
{
	var Object = document.getElementById(id);
	Object.src = picname;	
}

function under1000()
{

   if(screen.width < 1000)
   {
          document.write("<link href='under1000.css' rel='stylesheet' type='text/css'>");
    }

}