<!-- comment to end of line

if(window.addEventListener)
	window.addEventListener('resize',resize,true);

else if(window.attachEvent)
 	window.attachEvent('onresize',resize);

var lastheight;
lastheight=0;

resize();

//alert ("doing it");

function msieversion()
{
      var ua = window.navigator.userAgent
      var msie = ua.indexOf ( "MSIE " )

      if ( msie > 0 )      // If Internet Explorer, return version number
         return parseInt (ua.substring (msie+5, ua.indexOf (".", msie )))
      else                 // If another browser, return 0
         return 0
}

function resize()
{

	//opera Netscape 6 Netscape 4x Mozilla 
	if (window.innerWidth || window.innerHeight){ 	
		newwidth= window.innerWidth; 
	} 
	//IE Mozilla 
	if (document.body.clientWidth || document.body.clientHeight){ 
		newwidth= document.body.clientWidth; 
	}

	if (document.body.scrollHeight && navigator.appVersion.indexOf("Win") != -1) {
		newheight = document.body.scrollHeight;
		// gets the correct value on WIN IE6, but non on MAC
	}
	else if (document.documentElement.scrollHeight) {
		newheight = document.documentElement.scrollHeight;
	}
	else if (document.documentElement.offsetHeight) {
		newheight  = document.documentElement.offsetHeight;
	}
	
	//alert ("w " + TopBarText.style.width);
	if (typeof(TotalContainer) != "undefined"){
	if (typeof(theMinWidth) == "undefined")
	{
		if (newwidth<785)
		{
			TotalContainer.style.width= "785px";
			TopBar.style.width= "785px";
		}
		else
		{
			//alert ("doing it 100");
			TotalContainer.style.width="100%";
			TopBar.style.width="100%";
		}
	}
	else
	{
		if (newwidth<theMinWidth)
		{
			//alert ("doing it specific");
			TotalContainer.style.width=theMinWidth + "px";
			TopBar.style.width=theMinWidth + "px";
		}
		else
		{
			//alert ("doing it 100");
			TotalContainer.style.width="100%";
			TopBar.style.width="100%";
		}
	}
	}

}

function setOpacity(obj, opacity) {
  opacity = (opacity == 100)?99.999:opacity;
  
  // IE/Win
  obj.style.filter = "alpha(opacity:"+opacity+")";
  
  // Safari<1.2, Konqueror
  obj.style.KHTMLOpacity = opacity/100;
  
  // Older Mozilla and Firefox
  obj.style.MozOpacity = opacity/100;
  
  // Safari 1.2, newer Firefox and Mozilla, CSS3
  obj.style.opacity = opacity/100;
}

function MoveLayerBy (id,incX,incY) { 
   // moves layer by increments
   var myElement = document.getElementById(id);
   alert  ( " " + myElement.style.left);
   myElement.style.left = parseInt(myElement.style.left) 
     + incX + "px";
   myElement.style.top = parseInt(myElement.style.top)
     + incY + "px";
}

function cycleDivs(div1, div2) 	{
		jQuery(div1).fadeOut("2500", function(){ jQuery(div2).fadeIn("2500");});
	    setTimeout("cycleDivs(\"" + div2 + "\", \"" + div1 + "\");", 15000)
} 

function pausecomp(millis) 	{
	date = new Date();
	var curDate = null;
	
	do { var curDate = new Date(); } 
	while(curDate-date < millis);
} 

function fadeIn(objId,opacity) {
  if (document.getElementById) {
    obj = document.getElementById(objId);
    if (opacity <= 100) {
      setOpacity(obj, opacity);
      opacity += 10;
      window.setTimeout("fadeIn('"+objId+"',"+opacity+")", 100);
    }
  }
}
// comment to end of line -->
