//specify interval between slide (in mili seconds)
var slidespeed=10000  ;  //15000;
if( (document.all && screen.width == 800) || (document.layers && window.outerWidth == 800) )
   { 
var slideimages=new Array(
"images/homepage/toys-for-tots-postponed.jpg",						  
/*"images/homepage/obama-christmas-1.jpg",
"images/homepage/obama-christmas-2.jpg",
"images/homepage/attourney-portrait.jpg",
"images/homepage/annualfoodbasket.jpg",
"images/homepage/census2010.gif"*/
"images/homepage/PG county si.jpg"
);
   }else
	{
var slideimages=new Array(
"images/homepage/toys-for-tots-postponed.jpg",
/*"images/homepage/obama-christmas-1.jpg",
"images/homepage/obama-christmas-2.jpg",
"images/homepage/attourney-portrait.jpg",
"images/homepage/annualfoodbasket.jpg",
"images/homepage/census2010.gif"*/
"images/homepage/PG county si.jpg"
);
	}
var slidelinks=new Array(

//specify corresponding links
"/pdf/toys-for-tots-postponed.pdf",
"http://www.princegeorgescountymd.gov/Government/AgencyIndex/DPW&T/Snow-Ice/index.asp?nivel=foldmenu(2)"
/*"#nogo",
"#nogo",
"/pdf/PSAP Flyer-09.pdf",
"http://www.pgplanning.org/Census_2010.htm"*/
 );
	

var newwindow=0 //open links in new window? 1=yes, 0=no
var imageholder=new Array()
var ie=document.all
for (i=0;i<slideimages.length;i++)
{
 imageholder[i]=new Image()
 imageholder[i].src=slideimages[i]
}
function gotoshow()
{
  if (newwindow)
   window.open(slidelinks[whichlink])
  else
   window.location=slidelinks[whichlink]
}

//-->
/*
Preload images script
By JavaScript Kit (http://javascriptkit.com)
Over 400+ free scripts here!
*/
var myimages=new Array()
function preloadimages()
{
 for (i=0;i<preloadimages.arguments.length;i++)
 {
   myimages[i]=new Image()
   myimages[i].src=preloadimages.arguments[i]
 }

}

//Enter path of images to be preloaded inside parenthesis. Extend list as desired.
preloadimages("images/img_newsroom1.gif","images/img_top-left-corner.gif", "images/photo_jack-johnson_small.gif")
