function clearbox(box) {
 if(box.value==box.defaultValue) {
   box.value = "";
  }
 }

function flashheader() {
document.writeln("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0\" width=\"904\" height=\"298\"><param name=\"movie\" value=\"gfx/header.swf\" /><param name=\"quality\" value=\"high\" /><embed src=\"gfx/header.swf\" quality=\"high\" pluginspage=\"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"904\" height=\"298\"></embed></object>");
}

function expandIt2(BlockName)
{
	if (document.getElementById(BlockName).style.display == "block")
		document.getElementById(BlockName).style.display = "none";
	else
		document.getElementById(BlockName).style.display = "block";
}
function expand_all()
{
	var spanTags = document.getElementsByTagName("div");
	
	for (var i = 0; i < spanTags.length; i++)
	{
		if( spanTags[i].style.display=='none' )
			spanTags[i].style.display = 'block';
	}

}
function collapse_all()
{
	var spanTags = document.getElementsByTagName("div");
	
	for (var i = 0; i < spanTags.length; i++)
	{
		if( spanTags[i].style.display=='block' )
			spanTags[i].style.display = 'none';
	}

}


var win=null;
function NewWindowPos(mypage,myname,w,h,pos,infocus){
if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!="random") || pos==null){myleft=10;mytop=40}
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=yes,directories=no,status=yes,menubar=no,toolbar=yes,resizable=yes";win=window.open(mypage,myname,settings);
win.focus();
}

var win=null;
function NewWindowPos1(mypage,myname,w,h,pos,infocus){
if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!="random") || pos==null){myleft=640;mytop=40}
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=yes,directories=no,status=yes,menubar=no,toolbar=yes,resizable=yes";win=window.open(mypage,myname,settings);
win.focus();}

var win=null;
function NewWindowPos2(mypage,myname,w,h,pos,infocus){
if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!="random") || pos==null){myleft=10;mytop=40}
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=yes,directories=no,status=yes,menubar=no,toolbar=yes,resizable=yes";win=window.open(mypage,myname,settings);
win.focus();}

var win=null;
function NewWindowPos3(mypage,myname,w,h,pos,infocus){
if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!="random") || pos==null){myleft=430;mytop=40}
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=yes,directories=no,status=yes,menubar=no,toolbar=yes,resizable=yes";win=window.open(mypage,myname,settings);
win.focus();}

var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable,'
win = window.open(mypage,myname,settings)
}

function createPlayerNews1(theFile) {
	var s = new SWFObject("news-stockimages/mediaplayer.swf","thePlayerId","480","380","7");
	s.addParam("allowfullscreen","true");
	s.addVariable("file",theFile);
	s.addVariable("bufferlength","16");
	s.addVariable("width","480");
	s.addVariable("height","380");
	s.addVariable("showstop","true");
	s.addVariable("displayheight","360");
	s.addVariable("overstretch","fit");
	s.addVariable("autostart","true");
	s.addVariable("volume","90");
	s.addVariable("frontcolor","0x000066");
	s.addVariable("lightcolor","0x990000");
	s.addVariable("screencolor","0xAAAAAA");
	s.addVariable("image","news-stockimages/video-image-480-360.jpg");
	s.addVariable("showdownload","true");
	s.addVariable("repeat","false");
	s.write("placeholderNews1");
}

function createPlayer(theFile) {
	var s = new SWFObject("videos/mediaplayer.swf","thePlayerId","480","380","7");
	s.addParam("allowfullscreen","true");
	s.addVariable("file",theFile);
	s.addVariable("bufferlength","16");
	s.addVariable("width","480");
	s.addVariable("height","380");
	s.addVariable("showstop","true");
	s.addVariable("displayheight","360");
	s.addVariable("overstretch","fit");
	s.addVariable("autostart","true");
	s.addVariable("volume","90");
	s.addVariable("frontcolor","0x000066");
	s.addVariable("lightcolor","0x990000");
	s.addVariable("screencolor","0xAAAAAA");
	s.addVariable("image","videos/video_header.jpg");
	s.addVariable("showdownload","false");
	s.addVariable("repeat","false");
	s.write("placeholder");
}
function createPlayerSM(theFile) {
	var s = new SWFObject("videos/mediaplayer.swf","thePlayerId","390","312","7");
	s.addParam("allowfullscreen","true");
	s.addVariable("file",theFile);
	s.addVariable("bufferlength","12");
	s.addVariable("width","390");
	s.addVariable("height","312");
	s.addVariable("showstop","true");
	s.addVariable("displayheight","292");
	s.addVariable("overstretch","fit");
	s.addVariable("autostart","true");
	s.addVariable("volume","90");
	s.addVariable("frontcolor","0x000066");
	s.addVariable("lightcolor","0x990000");
	s.addVariable("screencolor","0xAAAAAA");
	s.addVariable("image","videos/video_header.jpg");
	s.addVariable("showdownload","false");
	s.addVariable("repeat","false");
	s.write("placeholderSM");
}
function createPlayerTop(theFile) {
	var s = new SWFObject("videos/mediaplayer.swf","thePlayerId","480","380","7");
	s.addParam("allowfullscreen","true");
	s.addVariable("file",theFile);
	s.addVariable("bufferlength","14");
	s.addVariable("width","480");
	s.addVariable("height","380");
	s.addVariable("showstop","true");
	s.addVariable("displayheight","360");
	s.addVariable("overstretch","fit");
	s.addVariable("autostart","true");
	s.addVariable("volume","90");
	s.addVariable("frontcolor","0x000066");
	s.addVariable("lightcolor","0x990000");
	s.addVariable("screencolor","0xAAAAAA");
	s.addVariable("image","videos/Video_Header_Click.jpg");
	s.addVariable("showdownload","false");
	s.addVariable("repeat","false");
	s.write("placeholderTop");
}
function createPlayerMem(theFile) {
	var s = new SWFObject("videos/mediaplayer.swf","thePlayerId","480","380","7");
	s.addParam("allowfullscreen","true");
	s.addVariable("file",theFile);
	s.addVariable("bufferlength","15");
	s.addVariable("width","480");
	s.addVariable("height","380");
	s.addVariable("showstop","true");
	s.addVariable("displayheight","360");
	s.addVariable("overstretch","fit");
	s.addVariable("autostart","false");
	s.addVariable("volume","90");
	s.addVariable("frontcolor","0x000066");
	s.addVariable("lightcolor","0x990000");
	s.addVariable("screencolor","0xAAAAAA");
	s.addVariable("image","videos/video-image-480-360.jpg");
	s.addVariable("showdownload","false");
	s.addVariable("repeat","false");
	s.write("placeholderMem");
}
function createPlayerHbox(theFile) {
	var s = new SWFObject("videos/mediaplayer.swf","thePlayerId","480","380","7");
	s.addParam("allowfullscreen","true");
	s.addVariable("file",theFile);
	s.addVariable("bufferlength","15");
	s.addVariable("width","480");
	s.addVariable("height","380");
	s.addVariable("showstop","true");
	s.addVariable("displayheight","360");
	s.addVariable("overstretch","fit");
	s.addVariable("autostart","false");
	s.addVariable("volume","90");
	s.addVariable("frontcolor","0x000066");
	s.addVariable("lightcolor","0x990000");
	s.addVariable("screencolor","0xAAAAAA");
	s.addVariable("image","videos/video-image-480-360.jpg");
	s.addVariable("showdownload","false");
	s.addVariable("repeat","false");
	s.write("placeholderHbox");
}
function createPlayerNonMem(theFile) {
	var s = new SWFObject("videos/mediaplayer.swf","thePlayerId","480","380","7");
	s.addParam("allowfullscreen","true");
	s.addVariable("file",theFile);
	s.addVariable("bufferlength","18");
	s.addVariable("width","480");
	s.addVariable("height","380");
	s.addVariable("showstop","true");
	s.addVariable("displayheight","360");
	s.addVariable("overstretch","fit");
	s.addVariable("autostart","true");
	s.addVariable("volume","90");
	s.addVariable("frontcolor","0x000066");
	s.addVariable("lightcolor","0x990000");
	s.addVariable("screencolor","0xAAAAAA");
	s.addVariable("image","videos/Video_Header_Click.jpg");
	s.addVariable("showdownload","false");
	s.addVariable("repeat","false");
	s.write("placeholderNonMem");
}
