	/*<![CDATA[*/
<!--

function T3_onmousemoveWrapper(e)
{
  if(overlib && overlib != null)
  {
    overlib.mouseMove(e);  
  }
}
	function T3_onloadWrapper()	{	overlib.init();	}
	document.onmousemove=T3_onmousemoveWrapper;
	document.onload=T3_onloadWrapper;

var PictureX=0;
var incoming=0;

var catmen=60;
var catin=0;

//configure tickercontents[] to set the messges you wish be displayed (HTML codes accepted)
//Backslash any apostrophes within your text (ie: I\'m the king of the world!)
var tickercontents=new Array()
tickercontents[0]='1) <a href="http://www.javascriptkit.com">JavaScriptKit.com</a>- JavaScript tutorials and scripts.</a>'
tickercontents[1]='2) <a href="http://www.codingforums.com">Coding Forums</a>- Web coding and development forums.</a>'
tickercontents[2]='3) <a href="http://www.dynamicdrive.com">DynamicDrive.com</a>- Award winning, original DHTML scripts.</a>'

        
var persistlastviewedmsg=1 //should messages' order persist after users navigate away (1=yes, 0=no)?
var persistmsgbehavior="onload" //set to "onload" or "onclick".
        
//configure the below variable to determine the delay between ticking of messages (in miliseconds):
var tickdelay=4000
        
////Do not edit pass this line////////////////
var divonclick=(persistlastviewedmsg && persistmsgbehavior=="onclick")? 'onClick="savelastmsg()" ' : ''
var currentmessage=0


			function MouseOver(id) {	//
				if (document.getElementById && document.getElementById(id))	{
					incoming = 1;
					document.getElementById(id).className = 'leftmenu_item_rectangle_hover';
					document.getElementById('Leftmenu_Picture').src = 'fileadmin/pics/left_menu_pictures/' + id + '.jpg';					
					PictureX = -176;
					AnimatePictureIn();
					return true;
				} else if (document.layers && document.layers[id]) {
			        document.layers[id].className = 'leftmenu_item_rectangle_hover';
					return true;
			    }
			}
			
			function AnimatePictureIn() {
				if((PictureX < 0) && (incoming==1))
				{
					PictureX = PictureX + 4;
					document.getElementById('Leftmenu_Picture').style.left = PictureX+"px";
					setTimeout('AnimatePictureIn()', 7);
				}
			}
			
			function MouseOut(id) {	//
				if (document.getElementById && document.getElementById(id))	{
					document.getElementById(id).className = 'leftmenu_item_rectangle';
					incoming = 0;
					AnimatePictureOut();					
					return true;
				} else if (document.layers && document.layers[id]) {
			        document.layers[id].className = 'leftmenu_item_rectangle';
					return true;
			    }
			}
			
			function AnimatePictureOut() {
				if(PictureX > -176 && incoming==0)
				{
					PictureX = PictureX - 4;
					document.getElementById('Leftmenu_Picture').style.left = PictureX+"px";
					setTimeout('AnimatePictureOut()', 7);
				}
			}
			
			function Bordertipshow(bordertip) {
			  var string = bordertip;
			  string = string.replace(/##_openbracket_##/g, "<");
			  string = string.replace(/##_closebracket_##/g, ">");
			  string = string.replace(/##_doublequote_##/g, "\"");
			  string = string.replace(/##_newline_##/g, "<BR>");
			  string = string.replace(/##_carriagereturn_##/g, "\r");
			  document.getElementById('bordertip').innerHTML = string;
        document.getElementById('bordertip').className = 'bordertip_active';
      }
      
      function Bordertiphide() {
        document.getElementById('bordertip').className = 'bordertip_inactive';
      }
      
      function AnimateCatMenu() {
        catin = 1;
        if(catmen < 126 && catin==1) {
          catmen = catmen + 2;
          document.getElementById('catmenu').style.bottom = catmen+"px";
          setTimeout('AnimateCatMenu()', 7);
        }
      }
      
      function AnimateCatMenuOut() {
        catin = 0;
        setTimeout('AnimateCatMenuOut2()', 300);        
      }
      
      function AnimateCatMenuOut2() {
        if(catmen > 60 && catin==0) {
          catmen = catmen - 2;
          document.getElementById('catmenu').style.bottom = catmen+"px";
          setTimeout('AnimateCatMenuOut2()', 7);
        }
      }
      
      
      function NewsTicker(tick1, tick2, tick3) {        
        /***********************************************
        * Memory Ticker script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
        * This notice MUST stay intact for legal use
        * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
        ***********************************************/
        tickercontents[0]="<a href=" + tick1 + "</a>";
        tickercontents[1]="<a href=" + tick2 + "</a>";
        tickercontents[2]="<a href=" + tick3 + "</a>";
              
        
        if (persistlastviewedmsg && persistmsgbehavior=="onload")
        window.onunload=savelastmsg
        
        if (document.all||document.getElementById)
        document.write('<div id="memoryticker" '+divonclick+'></div>')
        if (window.addEventListener)
        window.addEventListener("load", beginticker, false)
        else if (window.attachEvent)
        window.attachEvent("onload", beginticker)
        else if (document.all || document.getElementById)
        window.onload=beginticker
      }
      
      function changetickercontent(){
        if (crosstick.filters && crosstick.filters.length>0)
        crosstick.filters[0].Apply()
        crosstick.innerHTML=tickercontents[currentmessage]
        if (crosstick.filters && crosstick.filters.length>0)
        crosstick.filters[0].Play()
        currentmessage=(currentmessage==tickercontents.length-1)? currentmessage=0 : currentmessage+1
        var filterduration=(crosstick.filters&&crosstick.filters.length>0)? crosstick.filters[0].duration*1000 : 0
        setTimeout("changetickercontent()",tickdelay+filterduration)
      }
        
      function beginticker(){
        if (persistlastviewedmsg && get_cookie("lastmsgnum")!="")
        revivelastmsg()
        crosstick=document.getElementById? document.getElementById("memoryticker") : document.all.memoryticker
        changetickercontent()
      }
        
      function get_cookie(Name) {
        var search = Name + "="
        var returnvalue = ""
        if (document.cookie.length > 0) {
        offset = document.cookie.indexOf(search)
        if (offset != -1) {
        offset += search.length
        end = document.cookie.indexOf(";", offset)
        if (end == -1)
        end = document.cookie.length;
        returnvalue=unescape(document.cookie.substring(offset, end))
        }
        }
        return returnvalue;
      }
        
      function savelastmsg(){
        document.cookie="lastmsgnum="+currentmessage
      }
        
      function revivelastmsg(){
        currentmessage=parseInt(get_cookie("lastmsgnum"))
        currentmessage=(currentmessage==0)? tickercontents.length-1 : currentmessage-1
      }
		

// -->
	/*]]>*/

