<!--

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_nbGroup(event, grpName) { //v6.0
var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])?args[i+1] : img.MM_up);
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) { img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    nbArr = document[grpName];
    if (nbArr) for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
      nbArr[nbArr.length] = img;
  } }
}

function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


function M_Over(thiss)
	{
	eval(thiss).style.backgroundColor='#745d2d';
	eval(thiss).style.color='#ffffff';
	eval(thiss).style.cursor='hand';
	}
function M_Out(thiss)
	{
	eval(thiss).style.backgroundColor='#c9c182';
	}


var myH;
var myCH;

function WriteGallery(galleryID,myType){
	if(myType=="h"){
	myFileID = '/includes/FlashGallery_H.swf?XMLURL=/includes/Gallery.asp?id='+galleryID;
	myWidth = '520px';
	myHeight = '320px';
	}else{
	myFileID = '/includes/FlashGallery.swf?XMLURL=/includes/Gallery.asp?id='+galleryID;
	myWidth = '640px';
	myHeight = '390px';
	}
	myVars = '';
	myObject='<br><center><object style="margin-top:5px;z-index:200;display:inline;width:' + myWidth +';height:' + myHeight +'"  classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="150" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" align="middle">';
	myObject+='<param name="allowScriptAccess" value="sameDomain" />';
	myObject+='<PARAM NAME=wmode VALUE=transparent>';
	myObject+='<param name="movie" value="'+ myFileID +'" /><param name="quality" value="high" />';
	myObject+='<embed width="' + myWidth + '" height="' + myHeight +'"  wmode="transparent" src="'+ myFileID +'" quality="high" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	myObject+='</object>';
	document.write(myObject);
}


function MoveIt(direction){
	myInter = setInterval('MovingIt(\'PageContent\',\''+direction+'\')',10);
}
function MovingIt(id,direction,myH){
	myPos = isNaN(parseInt(document.getElementById(id).style.top))?0:parseInt(document.getElementById(id).style.top);
	if(direction=='up'&&myPos<0){
		myPos +=1;
	}else if (direction=='down'&&myPos>(window.myH-0)*(-1)){
		myPos-=1;
	}
	document.getElementById(id).style.top = myPos;
}
function StopIt(){
	clearInterval(myInter);
}
function JumpIt(direction){
	for (x=0;x<=200;x++){
			setTimeout('MovingIt(\'PageContent\',\''+direction+'\')',x);
		}
}
function MovingMenu(){
	myPos2 = isNaN(parseInt(document.getElementById('MainMenu').style.left))?0:parseInt(document.getElementById('MainMenu').style.left);
	myPos2 +=1;
	myDecPercent = myPos2;
	document.getElementById('MainMenu').style.filter='alpha(opacity='+myDecPercent*100+')';
	document.getElementById('MainMenu').style.opacity=myDecPercent;
	document.getElementById('MainMenu').style.left = myPos2;
}
function MovingSubMenu(){
	myPos2 = isNaN(parseInt(document.getElementById('SubMenuContent').style.left))?0:parseInt(document.getElementById('SubMenuContent').style.left);
	myPos2 -=1;
	
	myDecPercent = (200-myPos2)/200;
	document.getElementById('SubMenuContent').style.filter='alpha(opacity='+myDecPercent*100+')';
	document.getElementById('SubMenuContent').style.opacity=myDecPercent;
	document.getElementById('SubMenuContent').style.left = myPos2;
}

function LoadPageContent(PageType,j,BgImageID,QS){

  var xmlHttp;
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      try
        {
        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
      catch (e)
        {
        alert("Your browser does not support AJAX!");
        return false;
        }
      }
    }
    
    xmlHttp.onreadystatechange=function(){
	if(xmlHttp.readyState==4){
		var response = xmlHttp.responseText;
		document.getElementById('PageContent').style.top='380px';
		document.getElementById('PageContent').innerHTML=response;	
		document.getElementById('ContentTD').style.height='340px';
		document.getElementById('PageContent').style.display='';
	
		myH  = parseInt(document.getElementById('PageContent').clientHeight);
		myCH  = parseInt(document.getElementById('ContentTD').clientHeight);
		
		setTimeout('FlyInContent()',500);
		document.getElementById('PopUpWindow').style.filter='alpha(opacity=100)';
		document.getElementById('PopUpWindow').style.opacity=1;

		//ShowMenu();
		OpenContentWindow();
		document.getElementById('ContentTD').style.backgroundImage='url(/viewImage.asp?ImageID='+BgImageID+')';
		document.getElementById('PageContent').style.display='none';
		document.getElementById('MainMenu').style.background='transparent';
		LoadSubMenu(j);
	
	}
}
	if(QS.length>0){
		myFullURL = "/ViewPage.asp"+QS+"&PageID=" + j +"&PageType="+PageType;
	}else{
		myFullURL = "/ViewPage.asp?PageID=" + j +"&PageType="+PageType;
	}
	xmlHttp.open("GET",myFullURL,true);
	xmlHttp.send(null);

}

function LoadSubMenu(j){

  var xmlHttp;
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      try
        {
        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
      catch (e)
        {
        alert("Your browser does not support AJAX!");
        return false;
        }
      }
    }
    
    xmlHttp.onreadystatechange=function(){
	if(xmlHttp.readyState==4){
		var response = xmlHttp.responseText;
		document.getElementById('SubMenuContent').style.left='200px';
		document.getElementById('SubMenuContent').innerHTML=response;	
		setTimeout('FlyInContentSubMenu()',1000);
	}
	}
	

	myFullURL = "/ViewMenu.asp?PageID=" + j;
	xmlHttp.open("GET",myFullURL,true);
	xmlHttp.send(null);

}

function FlyInContentSubMenu(){
	for (x=0;x<=200;x++){
		setTimeout('MovingSubMenu()',x/2);
	}
}
function ShowMenu(){
	//document.getElementById('MainMenu').style.left='-200px';
	menuPos = document.getElementById('MainMenu').style.left;
		if(!menuPos){
			for (x=0;x<=102;x++){
				setTimeout('MovingMenu()',x/2);
			}
		}
	}
	
function StartUp(PageType,j,BgImageID,QS){
	document.getElementById('PopUpWindow').style.height='341px';
	
	document.getElementById('PopUpWindow').style.display='';
	
	LoadPageContent(PageType,j,BgImageID,QS);
	
	
}

function FlyInContent(){
	
	document.getElementById('PageContent').style.display='';
	for (x=0;x<=380;x++){
		setTimeout('MovingIt(\'PageContent\',\'down\')',x+1);
	}
	if(window.myH<window.myCH){
		document.getElementById('UpArrow').style.visibility='hidden';
		document.getElementById('DownArrow').style.visibility='hidden';

	}else{
		document.getElementById('UpArrow').style.visibility='visible';
		document.getElementById('DownArrow').style.visibility='visible';

	}
	HidePopUp();
}
function OpenContentWindow(){
	for (x=0;x<=300;x++){
		setTimeout('SlideContent('+x+')',x);
	}
}
function SlideContent(x){
	document.getElementById('MainContentDiv').style.height=x+'px';
}

function HidePopUp(){
	for (x=0;x<=100;x++){
		y=100-x;
		setTimeout('FadePopUp('+y+')',x*2);
	}
}

function FadePopUp(x){
	y=x/100;
	document.getElementById('PopUpWindow').style.filter='alpha(opacity='+x+')';
	document.getElementById('PopUpWindow').style.opacity=y;
	if(x==0){document.getElementById('PopUpWindow').style.height='0px'};
}

function ShowPopUp(){
	for (x=0;x<=305;x++){
		setTimeout('GrowPopUp('+x+')',x);
	}
}

function GrowPopUp(x){
	//y=x/100;
	//document.getElementById('PopUpWindow').style.top=-10;
	document.getElementById('PopUpWindow').style.height=x+'px';
}





   var dragOX = 0;
   var dragOY = 0;
   var savedObject=null; // The target layer (effectively Drag)
   var orgCursor=null;   // The original Cursor (mouse) Style so we can restore it
   var dragOK=false;     // True if we're allowed to move the element under mouse
   var dragXoffset=0;    // How much we've moved the element on the horozontal
   var dragYoffset=0;    // How much we've moved the element on the verticle




function ShowMe(ImageID,ModuleID){
	document.getElementById('PreviewImage'+ModuleID).innerHTML='<img style=\"border:2px solid white;\" id=GalImage name=GalImage src=\"ViewImage.asp?ImageID=' + ImageID + '\">';
	document.getElementById('GalImage').style.width = 150;
	//document.getElementById('GalImage').style.height = 75;
	
	
	var isIE = document.all?true:false;
	if (!isIE) document.captureEvents(Event.MOUSEMOVE);

  	var _x;
  	var _y;
	  if (!isIE) {
	    _x = e.pageX;
	    _y = e.pageY;
	  }
	  if (isIE) {
	    _x = event.clientX + document.body.scrollLeft;
	    _y = event.clientY + document.body.scrollTop;
	  }

  document.getElementById('PreviewImage').style.left = _x;
  document.getElementById('PreviewImage').style.top = _y;



	}

function ShowPollResults(){
	if(document.getElementById('PollResults').style.visibility=='visible'){
		document.getElementById('PollResults').style.visibility='hidden';
		document.getElementById('PollResults').style.display='none';
		document.getElementById('ViewPollResults').value='Results';
		
	}else{
		document.getElementById('PollResults').style.visibility='visible';
		document.getElementById('PollResults').style.display='inline';
		document.getElementById('ViewPollResults').value='Hide';
	}
	
}
function WriteFlash(myFileID,myWidth,myHeight,myVars){
	myObject='<object style="display:inline;width:' + myWidth +';height:' + myHeight +'"  classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="150" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" align="middle">';
	myObject+='<param name="allowScriptAccess" value="sameDomain" />';
	myObject+='<PARAM NAME=wmode VALUE=transparent>';
	myObject+='<PARAM NAME=FlashVars VALUE="myURL='+ myVars +'">';
	myObject+='<param name="movie" value="viewImage.asp?Imageid='+ myFileID +'" /><param name="quality" value="high" />';
	myObject+='<embed FlashVars="myURL='+ myVars +'" width="' + myWidth + '" height="' + myHeight +'"  wmode="transparent" src="viewImage.asp?Imageid='+ myFileID +'" quality="high" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	myObject+='</object>';
	document.write(myObject);
}

function WriteDirectFlash(myFile,myWidth,myHeight,myVars){
	myObject='<object style="z-index:1;width:' + myWidth +';height:' + myHeight +'"  classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" align="middle">';
	myObject+='<param name="allowScriptAccess" value="sameDomain" />';
	myObject+='<PARAM NAME=wmode VALUE=transparent>';
	myObject+='<PARAM NAME=FlashVars VALUE="myURL='+ myVars +'">';
	myObject+='<param name="SCALE" value="noborder">';
	myObject+='<param name="movie" value="'+ myFile +'" /><param name="quality" value="high" />';
	myObject+='<embed style="z-index:1;" FlashVars="myURL='+ myVars +'" width="' + myWidth + '" wmode="transparent" height="' + myHeight +'"   src="'+ myFile +'" quality="high" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"  scale="noborder"/>';
	myObject+='</object>';
	document.write(myObject);
}



function WriteFlashMed(myFileID,myWidth,myHeight,myVars){
	document.write('<object  width="' + myWidth +'" height="' + myHeight +'"  classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="150" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<PARAM NAME=wmode VALUE=transparent>');
	document.write('<PARAM NAME=FlashVars VALUE="myURL='+ myVars +'">');
	document.write('<param name="movie" value="viewMedia.asp?Mediaid='+ myFileID +'" /><param name="quality" value="high" />');
	document.write('<embed FlashVars="myURL='+ myVars +'" width="' + myWidth + '" height="' + myHeight +'"  wmode="transparent" src="viewMedia.asp?Mediaid='+ myFileID +'" quality="high" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');

}
function WriteWindowsMed(myFileID,myWidth,myHeight){
	document.write('<object  width="' + myWidth +'" height="' + myHeight +'"  classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" align="">');
	document.write('<param name="uiMode" value="full" />');
	document.write('<param name="autoStart" value="false" />');
	document.write('<param name="URL" value="'+ myFileID +'" />');
	document.write ('<embed name="player" width="' + myWidth +'" height="' + myHeight +'" type="video/x-ms-asf-plugin" pluginspage="http://www.microsoft.com/windows/windowsmedia/" filename="'+ myFileID +'" src="'+ myFileID +'"');
        document.write ('allowchangedisplaysize="1" autosize="1" displaysize="1"');
        document.write ('showcontrols="1" showstatusbar="1" autorewind="1" autostart="0">');
        document.write ('</embed>');
	document.write('</object>');
}

function mmLoadMenus() {
  if (window.mm_menu_0111172855_0) return;
  window.mm_menu_0111172855_0 = new Menu("root",175,18,"Verdana, Arial, Helvetica, sans-serif",12,"#003300","#FFFFFF","#FFFF66","#669900","left","middle",3,0,1000,-5,7,true,true,true,0,true,true);
  mm_menu_0111172855_0.addMenuItem("Questions&nbsp;and&nbsp;Feedback","location='#'");
  mm_menu_0111172855_0.addMenuItem("Staff&nbsp;Directory","location='#'");
   mm_menu_0111172855_0.hideOnMouseOut=true;
   mm_menu_0111172855_0.bgColor='#555555';
   mm_menu_0111172855_0.menuBorder=1;
   mm_menu_0111172855_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0111172855_0.menuBorderBgColor='#777777';

mm_menu_0111172855_0.writeMenus();
} // mmLoadMenus()



function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function CenterMenu(){
	 var myWidth = 0, myHeight = 0;
	  if( typeof( window.innerWidth ) == 'number' ) {
	    //Non-IE
		//FF2
	    myWidth = window.innerWidth;
	    myHeight = window.innerHeight;
	  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
	    //IE 6+ in 'standards compliant mode'
	    myWidth = document.documentElement.clientWidth;
	    myHeight = document.documentElement.clientHeight;
	     
	  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
	    //IE 4 compatible & IE7
	    
	    myWidth = document.body.clientWidth;
	    myHeight = document.body.clientHeight;
	    myWidth= myWidth+16;
	  }
	  //window.alert( 'Width = ' + myWidth );
	 // window.alert( 'Height = ' + myHeight );
	
	
	  //
	_x=(myWidth/2)-389;
	document.getElementById('FloatingMenu').style.left = _x;
  	document.getElementById('FloatingMenu').style.top = 0;
}

function MenuOver(MenuID){
	//alert(document.getElementById("ZooSubMenu"+MenuID));
	document.getElementById('ZooSubMenu'+MenuID).style.visibility = 'visible';
}
function MenuOut(MenuID){
	document.getElementById('ZooSubMenu'+MenuID).style.visibility = 'hidden';
}

function SubMenuOver(MenuID){
	//alert(document.getElementById("ZooSubMenu"+MenuID));
	document.getElementById('Sub'+MenuID).style.backgroundColor = '#FFFFFF';
}
function SubMenuOut(MenuID){
	document.getElementById('Sub'+MenuID).style.backgroundColor = '';
}

function QuickLinks(){
	box = document.forms['QuickNav'].quicklinks;
	destination = box.options[box.selectedIndex].value;
	if (destination) location.href = destination;
}

function PollResults(PassedFailed){
	pid = 'myresultsdiv';
	phtml = 'thank you';
	pwidth = 200;
	pheight = 20;
	pleft = 0;
	ptop = parent.document.body.scrollTop;
	creatediv(pid, phtml, pwidth, pheight, pleft, ptop);
	timerID = setTimeout("ClearDiv()", 3000);
}

function ClearDiv(){
	clearTimeout(timerID);
	parent.document.getElementById('myresultsdiv').style.visibility='hidden';
	parent.document.getElementById('myresultsdiv').style.display='none';
}

function creatediv(id, html, width, height, left, top) {
   var newdiv = parent.document.createElement('div');
   newdiv.setAttribute('id', id);
   newdiv.setAttribute('style', 'position:absolute');
   if (width) {
       newdiv.style.width = width;
   }
   
   if (height) {
       newdiv.style.height = height;
   }
   newdiv.style.position = 'absolute';
   if ((left || top) || (left && top)) {
      
       if (!left) {
           newdiv.style.left = findCenter()-100;
       }else{
       	newdiv.style.left=left;
     }
       
     //  if (top) {
           newdiv.style.top = top;
      // }
   }
   
   newdiv.style.backgroundColor='gray';
   newdiv.style.border = "1px solid lightgrey";
   newdiv.style.fontFamily = "Arial";
   newdiv.style.color = "white";
   newdiv.style.textAlign = "center";
   newdiv.style.zIndex = 150;
   
   if (html) {
       newdiv.innerHTML = html;
   } else {
       newdiv.innerHTML = "";
   }
   
   parent.document.body.appendChild(newdiv);
} 
var myClientWidth=0;
var myClientHeight=0;
function getClientInfo(){
	//var myClientWidth = 0, myClientHeight = 0;
	  if( typeof( parent.window.innerWidth ) == 'number' ) {
	    //Non-IE
		//FF2
	    myClientWidth = parent.window.innerWidth;
	    myClientHeight = parent.window.innerHeight;
	  } else if( parent.document.documentElement && ( parent.document.documentElement.clientWidth || parent.document.documentElement.clientHeight ) ) {
	    //IE 6+ in 'standards compliant mode'
	    myClientWidth = parent.document.documentElement.clientWidth;
	    myClientHeight = parent.document.documentElement.clientHeight;
	     
	  } else if( parent.document.body && ( parent.document.body.clientWidth || parent.document.body.clientHeight ) ) {
	    //IE 4 compatible & IE7
	    
	    myClientWidth = parent.document.body.clientWidth;
	    myClientHeight = parent.document.body.clientHeight;
	   
	  }
	}


function findCenter(){
	var myWidth = 0, myHeight = 0;
	  if( typeof( parent.window.innerWidth ) == 'number' ) {
	    //Non-IE
		//FF2
	    myWidth = parent.window.innerWidth;
	    myHeight = parent.window.innerHeight;
	  } else if( parent.document.documentElement && ( parent.document.documentElement.clientWidth || parent.document.documentElement.clientHeight ) ) {
	    //IE 6+ in 'standards compliant mode'
	    myWidth = parent.document.documentElement.clientWidth;
	    myHeight = parent.document.documentElement.clientHeight;
	     
	  } else if( parent.document.body && ( parent.document.body.clientWidth || parent.document.body.clientHeight ) ) {
	    //IE 4 compatible & IE7
	    
	    myWidth = parent.document.body.clientWidth;
	    myHeight = parent.document.body.clientHeight;
	   
	  }
	   myWidth= myWidth/2;
	  return myWidth;
	}
	
function FloatComments(){
	//parent.document.getElementById('myBigDiv').style.position='relative';
	if(document.body.scrollTop>0){
		parent.document.getElementById('myBigDiv').style.top=document.body.scrollTop;
		parent.document.getElementById('myBigDiv').style.left=0;
	}
	else{
		parent.document.getElementById('myBigDiv').style.top=0;
		parent.document.getElementById('myBigDiv').style.left=0;
	}
	//alert(document.body.scrollTop);
	Id = window.setTimeout("FloatComments()", 10);
}

function ShowComments(BlockID,Comments){
	
	 var xmlHttp;
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      try
        {
        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
      catch (e)
        {
        alert("Your browser does not support AJAX!");
        return false;
        }
      }
    }
    
    xmlHttp.onreadystatechange=function(){
	if(xmlHttp.readyState==4){
		var response = xmlHttp.responseText;
		
		document.getElementById('myBigDiv').style.left=0;
		document.getElementById('myBigDiv').style.top=0;
	
		//document.getElementById('myBigDiv').style.width = '300';
		//document.getElementById('myBigDiv').style.height = '100%';
		//document.getElementById('myBigDiv').style.background='transparent';
		//document.getElementById('myBigDiv').style.filter='alpha(opacity=70)';
		//document.getElementById('myBigDiv').style.opacity=.7;
		document.getElementById('myBigDiv').style.border='2px solid lightgrey';
		document.getElementById('myBigDiv').style.padding='8px';
		document.getElementById('myBigDiv').innerHTML=response;
		}
	}
	
	myFullURL = "/Comments.asp?Blocid=" + BlockID + "&Comments=" + Comments;
	xmlHttp.open("GET",myFullURL,true);
	xmlHttp.send(null);

	return false;
}

function closeComments(BlockID,Comments){
	//window.clearTimeout(Id);
	//parent.document.getElementById('myBigDiv').style.width = '0';
	//parent.document.getElementById('myBigDiv').style.height = '0';
	parent.document.getElementById('myBigDiv').style.border='0px solid navy';
	parent.document.getElementById('myBigDiv').innerHTML='<span style="float:right;"><input type=button class=Button onclick="return ShowComments(' + BlockID + ',' + Comments +');" value="Comments [' + Comments + ']">';
	return false;
}

function ajaxFunction(FeedURL,intItems)
  {
  var xmlHttp;
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      try
        {
        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
      catch (e)
        {
        alert("Your browser does not support AJAX!");
        return false;
        }
      }
    }
    
    xmlHttp.onreadystatechange=function(){
	if(xmlHttp.readyState==4){
		
		var response = xmlHttp.responseXML;
		var root=response.getElementsByTagName('channel');

		//var rssTitle = root[0].getElementsByTagName('title')[0].firstChild.nodeValue;
		//var rssDate = root[0].getElementsByTagName('pubDate')[0].firstChild.nodeValue;
		myHeight = 0;
		myHTML='<table  style="width:100%;" cellpadding=0 cellspacing=1>';
		//myHTML += '<tr><td bgcolor="#000000" style="height:10px;color:white;font-size:11;" colspan=3 align=center><b>';
		//MyHTML += rssTitle + '</b><br>&nbsp;&nbsp;&nbsp;';
		//myHTML += '<font color=lightgrey>' + rssDate;
		//myHTML += '<br><br></td></tr>';//</table>';
		myHTML += '<tr valign=middle>';
		//myHTML += '<td width=16 id="Trash" class=Trash><img src="/images/delete.png"></td>';
		myHTML += '<td width="100%">';
		
		items=response.getElementsByTagName('item');
		intItems = (intItems==0)? items.length: intItems;
		intItems = (intItems>items.length)? items.length: intItems;
		
		for (j=0;j<intItems;j++)
			{
				myLink = items[j].getElementsByTagName('link')[0].firstChild.nodeValue;
				myTitle = items[j].getElementsByTagName('title')[0].firstChild.nodeValue;
				myDesc = items[j].getElementsByTagName('description')[0].firstChild.nodeValue;
				//myDesc = escape(myDesc);
				myDesc = unescape(myDesc);
				//myDesc = myDesc.replace("&quot;","QUOTE");
				//myHTML += '<tr><td  id="Item' + j + '" bgcolor="#252525" style="opacity:0;filter:alpha(opacity=0);cursor:pointer; cursor:hand;padding-top:4px;padding-bottom:4px;padding-left:4px;" ';
				//myHTML += ' onmouseover="this.style.backgroundColor=\'black\';" onmouseout="this.style.backgroundColor=\'#252525\';" '
				//myHTML += ' onclick="location.href=\'' + myLink + '\';" '
				//myHTML += '>';
				myHTML += '<div class=Movable mytitle="' +myTitle + '" mylink="' +myLink + '" ondblclick="window.open(\'' +myLink + '\');" id="DivItem' + j + '" ';
				myHTML += ' onclick="ShowDesc(\'DivDescItem' + j +'\');" ';
				myHTML += ' onmouseover="this.style.backgroundColor=\'black\';this.style.color=\'yellow\';" onmouseout="this.style.backgroundColor=\'#252525\';this.style.color=\'white\';" '
				myHTML +='>&nbsp;';
				myHTML += myTitle;
				myHTML += '';
				myHTML += '<div class=DescDiv mytitle="' +myTitle + '" style="display:none;visibility:hidden;" mylink="' +myLink + '" id="DivDescItem' + j + '" ';
				myHTML +='>&nbsp;';
				myHTML += myDesc;
				myHTML += '</div></div>';
				myHeight +=20;
				setTimeout("ShowDiv(1,\"DivItem" + j +"\")",(j*100));
			}
		myHTML += '</td>';
		//myHTML += '<td width=16 id="Launch" class=Launch><img src="/images/open.png"></td>';
		myHTML += '</tr></table>';
		//ShowRSS(1);
		

		document.getElementById('MainContent').innerHTML = myHTML;
		//setTimeout("InitDivs("+intItems+")",10000);
		//document.getElementById('RSSResults').style.height = myHeight;
		}
	}
	myFullURL = "/includes/rssfeed.asp?FeedURL=" + FeedURL;
	xmlHttp.open("GET",myFullURL,true);
	xmlHttp.send(null);
	
	document.getElementById('MainContent').style.filter='alpha(opacity=100)';
	document.getElementById('MainContent').style.opacity=1;
}
  
function InitDivs(Its){
	for (j=0;j<Its;j++)
			{
			// document.getElementById("DivItem' + j + '").style.left=10;
 			//document.getElementById("DivItem' + j + '").style.top=10;
 		}
}
function ClearRSS(fadeInt){
	if(fadeInt>1){
		fadeInt-=2;
		setTimeout('ClearRSS('+fadeInt+')',1);
		FadeMe(fadeInt,'MainContent');
	}else{
		//ShortenIt('RSSResults');
		document.getElementById('MainContent').innerHTML = '';
	}

}
function ShowRSS(fadeInt){
	if(fadeInt<100){
		fadeInt+=5;
		setTimeout('ShowRSS('+fadeInt+')',1);
		FadeMe(fadeInt,'RSSResults');
	}

}
function ShowDiv(fadeInt,objID){
	if(fadeInt<70){
		fadeInt+=10;
		setTimeout('ShowDiv('+fadeInt+',\''+objID +'\')',1);
		FadeMe(fadeInt,objID);
	}

}
function HideDesc(objID){
	

}
function ShowDesc(objID){
	if(document.getElementById(objID).style.display=='none'){
	document.getElementById(objID).style.display='';
	document.getElementById(objID).style.visibility='visible';
	document.getElementById(objID).zIndex=100;
	}else{
	document.getElementById(objID).style.display='none';
	document.getElementById(objID).style.visibility='hidden';
	document.getElementById(objID).zIndex=-1;
}

}
function ShortenIt(objID){
	document.getElementById(objID).innerHTML = '&nbsp;';
	objHeight = document.getElementById(objID).style.height.replace("px","");
	if(objHeight>1){
		objHeight-=25;
		document.getElementById(objID).style.height=objHeight;
		setTimeout("ShortenIt(\"" + objID + "\")",1);
	}else{
		document.getElementById(objID).innerHTML = '';
	}
}
function FadeMe(fadeInt,objID){
	fadePer = fadeInt/100;
	document.getElementById(objID).style.filter="alpha(opacity="+fadeInt+")";
	document.getElementById(objID).style.opacity=fadePer;
}

function addMyElement() {
	var md = document.getElementById('MainDiv');
	var newdiv = document.createElement('div');
	var divIdName = 'myRSSDiv';
	newdiv.setAttribute('id',divIdName);
	newdiv.style.position='absolute';
	newdiv.style.top=0;
	newdiv.style.left=100;
	newdiv.style.fontFamily='arial';
	newdiv.style.color='white';
	newdiv.style.textAlign='';
	newdiv.style.fontSize='10';
	newdiv.style.width='200';
	newdiv.innerHTML = '';
	document.body.appendChild(newdiv);

}





function ajaxImages(ImagesURL)
  {
  var xmlHttp;
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      try
        {
        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
      catch (e)
        {
        alert("Your browser does not support AJAX!");
        return false;
        }
      }
    }
    
    xmlHttp.onreadystatechange=function(){
	if(xmlHttp.readyState==4){
		
		//alert(CurrentImage);
		
		
  		
		var response = xmlHttp.responseXML;
		var root=response.getElementsByTagName('images');
		var rssTitle = root[0].getElementsByTagName('title')[0].firstChild.nodeValue;
		var rssDate = root[0].getElementsByTagName('pubDate')[0].firstChild.nodeValue;
		myHeight = 0;
		
		
		myImageList=response.getElementsByTagName('image');
		
		
		loadImage("next");
		}
	}
	xmlHttp.open("GET",ImagesURL,true);
	xmlHttp.send(null);
	
	document.getElementById('myImages').style.filter='alpha(opacity=100)';
	document.getElementById('myImages').style.opacity=1;
  }
  
 function loadImage(direction){
 		//Alert(CurrentImage);
 		CurrentImage = (CurrentImage==null)? -1 : CurrentImage;
 		intItems =myImageList.length-1;
 		CurrentImage = (direction=='next')? (CurrentImage==intItems)? 0: CurrentImage+=1: (CurrentImage<=0)? intItems: CurrentImage-=1;
 		myLink = myImageList[CurrentImage].getElementsByTagName('url')[0].firstChild.nodeValue;
		myTitle = myImageList[CurrentImage].getElementsByTagName('title')[0].firstChild.nodeValue;
		//myHTML='<table cellpadding=0 cellspacing=0 >';
		myHTML = '<img width=150 height=150 src="' +myLink + '" id="myImage' + CurrentImage + '" style="position:relative;opacity:0;filter:alpha(opacity=0);cursor:pointer; cursor:hand;" ';
		myHTML += 'onmouseover="this.style.backgroundColor=\'black\';" onmouseout="this.style.backgroundColor=\'#252525\';" '
		myHTML += 'onclick="PreviewImage(\'' + myLink + '\');" '
		myHTML += '>';
		//myHTML += '< >';
		//myHTML += '</div>';
		myHeight +=20;
		document.getElementById('myImages').innerHTML = myHTML;
		setTimeout("ShowDiv(1,\"myImage" + CurrentImage +"\")",100);
		
		
}
var CurrentImage = -1;
function playImages(){
	if(CurrentImage!=-1){
		setTimeout("leftDiv(1,\"myImage" + CurrentImage +"\")",1);
		setTimeout('loadImage("next")',2500);
	}else
		{
		loadImage("next");
	}
	
	
}
var myInter;
function startImages(){
	playImages();
	myInter = setInterval('playImages()',5000);
}
function stopImages(){
	clearInterval(myInter);
}

function leftDiv(fadeInt,objID){
	//alert(objID);
	if(fadeInt<150){
		fadeInt+=1;
		setTimeout('leftDiv('+fadeInt+',\''+objID +'\')',1);
		MoveMe(fadeInt,objID);
	}

}
function MoveMe(fadeInt,objID){
	document.getElementById(objID).style.top=fadeInt;
}

function PreviewImage(imgLink){
	getClientInfo();
	html="<center><img src=\"" + imgLink + "\" onclick=\"RemovePreviewImage('ImgPreview');\"></center>";
	creatediv('ImgPreview', html, myClientWidth-40, myClientHeight-30, 10, document.body.scrollTop+10);
}
function RemovePreviewImage(objID){
  var el = document.getElementById(objID);
el.parentNode.removeChild( el );

}




function moveHandler(e){
      if (e == null) { e = window.event } 
      if (e.button<=1&&dragOK){
         savedObject.style.left=e.clientX-dragXoffset+'px';
         savedObject.style.top=e.clientY-dragYoffset+'px';
         HitMe = hitTest(savedObject,document.getElementById('Trash'));
 	if(HitMe){
 		document.getElementById('Trash').style.backgroundColor='#A9A9A9';
 	}else{
 		document.getElementById('Trash').style.backgroundColor='#171717';
 	}
 	  HitMe = hitTest(savedObject,document.getElementById('Launch'));
 	if(HitMe){
 		document.getElementById('Launch').style.backgroundColor='#A9A9A9';
 	}else{
 		document.getElementById('Launch').style.backgroundColor='#171717';
 	}
         return false;
      }
   }

   function cleanup(e) {
      document.onmousemove=null;
      document.onmouseup=null;
      savedObject.style.cursor=orgCursor;
      dragOK=false;
     // alert(dragOX+':'+dragOY);

 	HitMe = hitTest(savedObject,document.getElementById('Trash'));
 	if(HitMe)
 		{
 			//alert(savedObject.getAttribute("mylink"));
 			//alert(savedObject.getAttribute("mytitle"));
 			savedObject.style.zIndex=1;
 			savedObject.innerHTML='';
 			savedObject.style.display='none';
 		}else{
 			HitMe2 = hitTest(savedObject,document.getElementById('Launch'));
 			if(HitMe2){
 				savedObject.style.zIndex=1;
 				savedObject.style.left=dragOX;
 				savedObject.style.top=dragOY;
 				savedObject.className='Gone';
 				window.open(savedObject.getAttribute("mylink"));
 			}else{
	 			savedObject.style.zIndex=1;
	 			//savedObject.style.left=dragOX;
	 			//savedObject.style.top=dragOY;
 			}
 		}
 	document.getElementById('Trash').style.backgroundColor='#171717';
 	document.getElementById('Launch').style.backgroundColor='#171717';
   }

   function dragHandler(e){
   	
      var htype='-moz-grabbing';
      if (e == null) { e = window.event; htype='move';} 
      var target = e.target != null ? e.target : e.srcElement;
      orgCursor=target.style.cursor;
    // alert();
     if (target.className=="Movable"||target.id=="Logo") {
        savedObject=target;

         dragOX =  parseInt(target.style.left);
         dragOY =  parseInt(target.style.top);
         dragOX = isNaN(dragOX) ? 0 : dragOX;
         dragOY = isNaN(dragOY) ? 0 : dragOY;
         
         target.style.zIndex=100;
         target.style.cursor=htype;
         dragOK=true;
       //  alert(e.clientX);
         dragXoffset=e.clientX-dragOX;//-parseInt(target.style.left);
         dragYoffset=e.clientY-dragOY;//-parseInt(target.style.top);
         //dragXoffset=0;
        //dragYoffset=0;
        document.onmousemove=moveHandler;
         document.onmouseup=cleanup;
         return false;
      } else if (target.className=="mainframe"||target.id=="navbar") {
	savedObject=target;
	if(target.style.left){
		dragOX =  parseInt(target.style.left);
		dragOY =  parseInt(target.style.top);
		}else{
		dragOX = 0;
		dragOY = 10;    
		}
	dragOY =  parseInt(target.style.top);
	target.style.zIndex=100;
	target.style.cursor=htype;
	dragOK=true;
	dragXoffset=e.clientX-dragOX;
	dragYoffset=e.clientY-dragOY;
        document.onmousemove=SlideHandler;
	document.onmouseup=cleanupSlider;
	return false;
	}
     
   }
   
document.onmousedown=dragHandler;
hitTest = function(o, l){
	function getOffset(o){
		for(var r = {l: o.offsetLeft, t: o.offsetTop, r: o.offsetWidth, b: o.offsetHeight};
			o = o.offsetParent; r.l += o.offsetLeft, r.t += o.offsetTop);
		return r.r += r.l, r.b += r.t, r;
	}
	for(var b, s, r = [], a = getOffset(o), j = isNaN(l.length), i = (j ? l = [l] : l).length; i;
		b = getOffset(l[--i]), (a.l == b.l || (a.l > b.l ? a.l <= b.r : b.l <= a.r))
		&& (a.t == b.t || (a.t > b.t ? a.t <= b.b : b.t <= a.b)) && (r[r.length] = l[i]));
	return j ? !!r.length : r;
};


function addEvent(obj, evType, fn){
  if (obj.addEventListener){
    obj.addEventListener(evType, fn, false);
    return true;
  } else if (obj.attachEvent){
	var r = obj.attachEvent("on"+evType, fn);
    return r;
  } else {
	return false;
  }
}

function SetLinks(){
	
	if( !document.links )
    {
        document.links = document.getElementsByTagName("a");
    }
    x=0;
    for (var ti=0;ti<document.links.length;ti++) {
    	x+=1;
        var lnk = document.links[ti];
        if (lnk.href) {
            lnk.setAttribute("nicetitle",lnk.href);
            //lnk.removeAttribute("title");
            addEvent(lnk,"mouseover",showNiceTitle);
            addEvent(lnk,"mouseout",hideNiceTitle);
            addEvent(lnk,"focus",showNiceTitle);
            addEvent(lnk,"blur",hideNiceTitle);
        }
    }
}


function showNiceTitle(e) {
  //  if (CURRENT_NICE_TITLE) hideNiceTitle(CURRENT_NICE_TITLE);
    if (!document.getElementsByTagName) return;
    if (window.event && window.event.srcElement) {
        lnk = window.event.srcElement
    } else if (e && e.target) {
        lnk = e.target
    }
    nicetitle = lnk.getAttribute("nicetitle");
    myname = "myFloater";
    myhtml =nicetitle;
    mywidth = 200;
    myheight = 20;
    mytop = e.clientX+25;
    myleft = e.clientY+25;
 
    creatediv(myname, myhtml, mywidth,myheight, mytop, myleft);
   
    //alert(nicetitle);
}

function ReallyHideIt() {
    if (!document.getElementsByTagName) return;
   // document.getElementsByTagName('body')[0].removeChild('myFloater');
   //document.body.removeChild('myFloater');
   var d = document.getElementById('Body');
  var olddiv = document.getElementById('myFloater');
  document.getElementsByTagName('body')[0].removeChild(olddiv);
}
function hideNiceTitle(e) {
  var t= setTimeout("ReallyHideIt()",2000);
}
function SlideHandler(e){
	Smultiplier = SlideFrameWidth/500;
	if (e == null) { e = window.event } 
	x = isNaN(e.clientX-dragXoffset) ? 0 : e.clientX-dragXoffset;
   	if(x>-1&&x<435){
      		if (e.button<=1&&dragOK){
         		savedObject.style.left=e.clientX-dragXoffset+'px';
         		document.getElementById('mainframe').style.left=(e.clientX-dragXoffset)*-Smultiplier+'px';
       			}
         	return false;
      		}
   	}
   
   function cleanupSlider(e) {
	document.onmousemove=null;
	document.onmouseup=null;
	savedObject.style.cursor=orgCursor;
	dragOK=false;
	if(parseInt(document.getElementById('navbar').style.left)<-63){
		document.getElementById('navbar').style.left=0;
		}
	if(parseInt(document.getElementById('navbar').style.left)>500){
		document.getElementById('navbar').style.left=485;
		}
   	}
   
   function getElementsByClassName(className, tag, elm){
	var testClass = new RegExp("(^|\\s)" + className + "(\\s|$)");
	var tag = tag || "*";
	var elm = elm || document;
	var elements = (tag == "*" && elm.all)? elm.all : elm.getElementsByTagName(tag);
	var returnElements = [];
	var current;
	var length = elements.length;
	for(var i=0; i<length; i++){
		current = elements[i];
		if(testClass.test(current.className)){
			returnElements.push(current);
			}
		}
	return returnElements;
	}
	
	

function getPos(inputElement) {
    var coords =  new Object();
    coords.x = 0;
    coords.y = 0;
    try {
        targetElement = inputElement;
        if(targetElement.x && targetElement.y) {
            coords.x = targetElement.x;
            coords.y = targetElement.y;
        } else {
            if(targetElement.offsetParent) {
                coords.x += targetElement.offsetLeft;
                coords.y += targetElement.offsetTop;
                while(targetElement = targetElement.offsetParent) {
                    coords.x += targetElement.offsetLeft;
                    coords.y += targetElement.offsetTop;
                }
            } else {
                //alert(\"Could not find any reference for coordinate positioning.\");
            }
        }
        return coords;
    } catch(error) {
        //alert(error.msg);
        return coords;
    }
}

function HighlightMe(obj){
	myArray = getElementsByClassName("Image", "img", document);
	for(x=0;x<=myArray.length-1;x++)
	{
		myArray[x].style.filter='alpha(opacity=70)';
		myArray[x].style.opacity=.70;
	}
	obj.style.filter='alpha(opacity=100)';
	obj.style.opacity='1';	
	obj.style.cursor='hand';
	//obj.style.height=75;
	imgsrc = obj.getAttribute("title");
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		curleft = obj.offsetLeft;
		curtop = obj.offsetTop;
		while (obj = obj.offsetParent) {
				curleft += obj.offsetLeft;
				curtop += obj.offsetTop;
			}
		}
		
	imgsrc = "<font style='font-size:9'>"+imgsrc;
	//creatediv("Slider", imgsrc, 100,10, curleft, curtop-15);
  //var t= setTimeout("removeThisDiv('Slider')",2000);
  
}

function removeThisDiv(thisDiv){
	var olddiv = document.getElementById(thisDiv);
	document.getElementsByTagName('body')[0].removeChild(olddiv);
}
function MouseOut(obj){
	//removeThisDiv('Slider');
	obj.style.height=50;
}

function createAdiv(Aid, Ahtml, Awidth, Aheight, Aleft, Atop) {
   var newAdiv = document.createElement('div');
   obj = parent.document.body;
   newAdiv.setAttribute('id', Aid);
   newAdiv.setAttribute('style', 'position:absolute');
   newAdiv.style.width = Awidth;
   newAdiv.style.height = Aheight;
   newAdiv.style.position = 'absolute';
   newAdiv.style.overflow = 'hidden';
   newAdiv.style.left=Aleft;
   newAdiv.style.top = Atop;
   newAdiv.style.fontFamily = "Arial";
   newAdiv.style.zIndex = 193;
   newAdiv.innerHTML = Ahtml;
   obj.appendChild(newAdiv);
} 



function MouseClick(obj){
	if (document.getElementById("FlyIn")){removeThisDiv("FlyIn")};
	
	myname = "FlyIn";
	myhtml = "<table cellpadding=1 cellspacing=0 style=''>";
	myhtml+="<tr><Td bgcolor=black style='font-size:11;font-family:arial;color:white;' align=center>" + obj.getAttribute('title') + "</td></tr>";
	myhtml+="<tr><Td style='font-size:10;font-family:arial;color:white;'><img onclick='ZoomOut(\"FlyIn\");' width=230 src='" + obj.getAttribute('src') + "'></td></tr>";
	myhtml+="</table>";
	mywidth = 1;
	myheight = 15;
	myleft = mousex+25;
	mytop = mousey;
	createAdiv(myname, myhtml, mywidth, myheight, myleft, mytop);
	ZoomIn("FlyIn");
}

function ZoomIn(objID){

	obj = document.getElementById(objID);
	//obj.style.left=parseInt(obj.style.left)-4;
	document.getElementById(objID)
	obj.style.width=parseInt(obj.style.width)+12;
	obj.style.height=parseInt(obj.style.height)+16;
	if(parseInt(obj.style.width)<=230){
	var t = setTimeout("ZoomIn('"+objID+"')",1);
	}	
}

function ZoomOut(objID){
	obj = document.getElementById(objID);
	//obj.style.left=parseInt(obj.style.left)-4;
	document.getElementById(objID)
	obj.style.width=parseInt(obj.style.width)-12;
	obj.style.height=parseInt(obj.style.height)-16;
	if(parseInt(obj.style.width)>=2){
	var t = setTimeout("ZoomOut('"+objID+"')",1);
	}else{
		removeThisDiv(objID);
	}
}

document.onmousemove = update;

function getMouseXY(myEvent) // works on IE6,FF,Moz,Opera7
{ 
  if (!myEvent) myEvent = window.event; // works on IE, but not NS (we rely on NS passing us the event)

  if (myEvent)
  { 
    if (myEvent.pageX || myEvent.pageY)
    { // this doesn't work on IE6!! (works on FF,Moz,Opera7)
      mousex = myEvent.pageX;
      mousey = myEvent.pageY;
      algor = '[myEvent.pageX]';
      if (myEvent.clientX || myEvent.clientY) algor += ' [myEvent.clientX] '
    }
    else if (myEvent.clientX || myEvent.clientY)
    { // works on IE6,FF,Moz,Opera7
      mousex = myEvent.clientX + document.body.scrollLeft;
      mousey = myEvent.clientY + document.body.scrollTop;
      algor = '[myEvent.clientX]';
      if (myEvent.pageX || myEvent.pageY) algor += ' [myEvent.pageX] '
    }  
  }
}

function update(myEvent)
{
  getMouseXY(myEvent);
}


var Announcements = new Array();
var CurrAID  = 0;

function AJAX_Announcements_Load()
  {
  var xmlHttp;
  var items;
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      try
        {
        xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
      catch (e)
        {
        alert("Your browser does not support AJAX!");
        return false;
        }
      }
    }
    
    xmlHttp.onreadystatechange=function(){
	if(xmlHttp.readyState==4){
		var intItems = 0;
		
		var response = xmlHttp.responseXML;
		var root=response.getElementsByTagName('channel');
		
		items=response.getElementsByTagName('item');
		intItems = items.length;
		//intItems = (intItems==0)? items.length: intItems;
		//intItems = (intItems>items.length)? items.length: intItems;
		
		for (j=0;j<intItems;j++)
			{
				myTitle = items[j].getElementsByTagName('title')[0].firstChild.nodeValue;
				myDesc = items[j].getElementsByTagName('description')[0].firstChild.nodeValue;
				myDate = items[j].getElementsByTagName('pubDate')[0].firstChild.nodeValue;
				Announcements[j] = new Array();
				Announcements[j][0] = myTitle;
				Announcements[j][1] = myDesc;
				Announcements[j][2] = myDate;
			}
		Announcements_Load();
		}
	}
	myFullURL = "/includes/Announcements.asp";
	xmlHttp.open("GET",myFullURL,true);
	xmlHttp.send(null);
}

function Announcements_Load(){
	if(CurrAID==0){
		Announcement_ScrollIn();
	}else{
		Announcement_ScrollOut();
		//Announcement_ScrollIn();
	}
}



function Announcement_ScrollIn()
{
	document.getElementById('Annoucement_ListItems').innerHTML = '<div style="text-align:left;"><b><font size=3>' + Announcements[CurrAID][0] + '</font></b><br>' + Announcements[CurrAID][1] +'<br><font style="font-size:10;color:lightgrey;">Posted:  ' + Announcements[CurrAID][2] + '</div>';
	document.getElementById('Annoucement_ListItems').style.top='100px';
	AnnounceInter = setInterval("Scroll_Announce()",50);
}

function Announcement_ScrollOut()
{
	AnnounceInter = setInterval("Scroll_Announce_out()",50);
}


function Annoucements_StopScroll()
{
	clearInterval(AnnounceInter);
}


function Scroll_Announce(){
	AnnounceLocation = parseInt(document.getElementById('Annoucement_ListItems').style.top);
	//alert(AnnounceLocation);
	if(AnnounceLocation>0){
		AnnounceLocation -=10;
		document.getElementById('Annoucement_ListItems').style.top=AnnounceLocation+'px';
	}else{
		if(CurrAID<(Announcements.length-1)){
			CurrAID+=1;
		}else{
			CurrAID=0;
		}
		Annoucements_StopScroll();
		setTimeout("Announcements_Load()",6000);
	}

}

function Scroll_Announce_out(){
	AnnounceLocation = parseInt(document.getElementById('Annoucement_ListItems').style.top);
	//alert(AnnounceLocation);
	if(AnnounceLocation>-100){
		AnnounceLocation -=10;
		document.getElementById('Annoucement_ListItems').style.top=AnnounceLocation+'px';
	}else{
		Annoucements_StopScroll();
		Announcement_ScrollIn();
	}

}

function QuoteRequest(){
	QuoteInter = setInterval("MoveQuoteButton()",20);
}

function MoveQuoteButton(){
	ButtonLocation = parseInt(document.getElementById('RequestQuote').style.top);
	if(ButtonLocation>-80){
		ButtonLocation -=10;
		document.getElementById('RequestQuote').style.top=ButtonLocation+'px';
	}else{
		clearInterval(QuoteInter);

		document.getElementById('RequestOptions').innerHTML='Choose an option:<br><a href="javascript:ShowQuick();" class=white>Quick Form</a>  -  <a href="/Quote_Request.asp" class=white>Full Form</a>';
	}
		
}

function ShowQuick(){
	QuickForm = "<form action='/Processor.asp' target=ProcessorFrame>";
	QuickForm += "<table cellpadding=1 cellspacing=0>";
	QuickForm += "<tr><td align=right>Name:</td><td><input type=text name=Name style='font-size:8pt;'></td></tr>";
	QuickForm += "<tr><td align=right>Email:</td><td><input type=text name=Email style='font-size:8pt;'></td></tr>";
	QuickForm += "<tr><td align=right>Phone:</td><td><input type=text name=Phone style='font-size:8pt;'></td></tr>";
	QuickForm += "<tr><td></td><td><input type=submit name='QuickRequestForm' value='Send Request' style='font-size:8pt;'></td></tr>";
	QuickForm += "</table>";
	QuickForm += "</form>";
	document.getElementById('RequestOptions').innerHTML=QuickForm;
}


function ShowEventDetails(){
	if (document.getElementById('btn_EventDetail').value=='More Information'){
		document.getElementById('EventDetail').style.display='';
		document.getElementById('EventDetail').style.visibility='visible';
		document.getElementById('btn_EventDetail').value='Less Information';
	}else{
		document.getElementById('EventDetail').style.display='none';
		document.getElementById('EventDetail').style.visibility='hidden';
		document.getElementById('btn_EventDetail').value='More Information';
	}
}

//-->

