function clearbox(box) {
 if(box.value==box.defaultValue) {
   box.value = "";
  }
 }

 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 clearbox(box) {
  if(box.value==box.defaultValue) {
    box.value = "";
   }
  }

 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)
 }

 var win = null;
 function NewWindow1(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,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");
}
