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_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_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

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_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 MM_reloadPage(init) {
 	if (init==true)
  	with (navigator) {
  		if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
  			document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage;
  		}
  	}
   	else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

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_showHideLayers() { //v6.0
	var i,p,v,obj,args=MM_showHideLayers.arguments;
	for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
   		if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
  		obj.visibility=v; 
	}
}

function bg(id,status) { 
	if (status==1) { 
		document.getElementById(id).style.backgroundColor='#93a445';
		document.getElementById(id).style.color='#ffffff';
	} else {
		document.getElementById(id).style.backgroundColor='#ffffff';
		document.getElementById(id).style.color='#000000';
	}
}

// Scrolldinges

    function verifyCompatibleBrowser(){
        this.ver=navigator.appVersion
        this.dom=document.getElementById?1:0
        this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
        this.ie4=(document.all && !this.dom)?1:0;
        this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
        this.ns4=(document.layers && !this.dom)?1:0;
        this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
        return this
    }
	
   bw=new verifyCompatibleBrowser()
    var speed=0
    var loop, timer

    function ConstructObject1(obj,nest){
        nest=(!nest) ? '':'document.'+nest+'.'
        this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0;
        this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0;
        this.scrollHeight=bw.ns4?this.css.document.height:this.el.offsetHeight
        this.clipHeight=bw.ns4?this.css.clip.height:this.el.offsetHeight
        this.up=MoveAreaUp1;this.down=MoveAreaDown1;
        this.MoveArea=MoveArea; this.x; this.y;
        this.obj = obj + "Object"
        eval(this.obj + "=this")
        return this
    }

    function MoveArea(x,y){
        this.x=x;this.y=y
        this.css.left=this.x
        this.css.top=this.y
    }

    function MoveAreaDown1(move){
    	if(this.y>-this.scrollHeight+objContainer1.clipHeight){
	        this.MoveArea(0,this.y-move)
    	    if(loop) setTimeout(this.obj+".down("+move+")",speed)
    	}
    }

    function MoveAreaUp1(move){
    	if(this.y<0){
        this.MoveArea(0,this.y-move)
        if(loop) setTimeout(this.obj+".up("+move+")",speed)
    	}
    }

    function PerformScroll(speed){
    	if(initialised){
    		loop=true;
    		if(speed>0) objScroller1.down(speed)
    		else objScroller1.up(speed)
    	}
    }

    function CeaseScroll(){
        loop=false
        if(timer) clearTimeout(timer)
    }

    var initialised;

    function InitialiseScrollableArea(){
      objContainer1=new ConstructObject1('divContainerContent')
      objScroller1=new ConstructObject1('divContent','divContainerContent')
      objScroller1.MoveArea(0,0)
      objContainer1.css.visibility='visible'

      initialised=true;
    }
	
	
    function move1(whichlayer){
    	tlayer=eval(whichlayer)
    	if (tlayer.top>0&&tlayer.top<=5){
    		tlayer.top=0
    		setTimeout("move1(tlayer)",scrollerdelay)
    		setTimeout("move2(document.main.document.second)",scrollerdelay)
    		return
    	}
    	if (tlayer.top>=tlayer.document.height*-1){
    		tlayer.top-=5
    		setTimeout("move1(tlayer)",50)
    	}
    	else{
    		tlayer.top=parseInt(scrollerheight)
    		tlayer.document.write(messages[i])
    		tlayer.document.close()
    		if (i==messages.length-1)
    		i=0
    		else
    		i++
    	}
    }

    function move2(whichlayer){
    	tlayer2=eval(whichlayer)
    	if (tlayer2.top>0&&tlayer2.top<=5){
    		tlayer2.top=0
    		setTimeout("move2(tlayer2)",scrollerdelay)
    		setTimeout("move1(document.main.document.first)",scrollerdelay)
    		return
    	}
    	if (tlayer2.top>=tlayer2.document.height*-1){
    		tlayer2.top-=5
    		setTimeout("move2(tlayer2)",50)
    	}
    	else{
    		tlayer2.top=parseInt(scrollerheight)
    		tlayer2.document.write(messages[i])
    		tlayer2.document.close()
    		if (i==messages.length-1)
    		i=0
    		else
    		i++
    	}
    }

    function move3(whichdiv){
    	tdiv = eval(whichdiv)
    	if (parseInt(tdiv.style.top)>0&&parseInt(tdiv.style.top)<=5){
    		tdiv.style.top=0+"px"
    		setTimeout("move3(tdiv)",scrollerdelay)
    		setTimeout("move4(second2_obj)",scrollerdelay)
    		return
    	}
    	if (parseInt(tdiv.style.top)>=tdiv.offsetHeight*-1){
    		tdiv.style.top=parseInt(tdiv.style.top)-5+"px"
    		setTimeout("move3(tdiv)",50)
    	}
    	else{
    		tdiv.style.top=parseInt(scrollerheight)
    		tdiv.innerHTML=messages[i]
    		if (i==messages.length-1)
    		i=0
    		else
    		i++
    	}
    }

    function move4(whichdiv){
    	tdiv2=eval(whichdiv)
    	if (parseInt(tdiv2.style.top)>0&&parseInt(tdiv2.style.top)<=5){
    		tdiv2.style.top=0+"px"
    		setTimeout("move4(tdiv2)",scrollerdelay)
    		setTimeout("move3(first2_obj)",scrollerdelay)
    		return
    	}
    	if (parseInt(tdiv2.style.top)>=tdiv2.offsetHeight*-1){
    		tdiv2.style.top=parseInt(tdiv2.style.top)-5+"px"
    		setTimeout("move4(second2_obj)",50)
    	}
    	else{
    		tdiv2.style.top=parseInt(scrollerheight)
    		tdiv2.innerHTML=messages[i]
    		if (i==messages.length-1)
    		i=0
    		else
    		i++
    	}
    }

    function startscroll(){
    	if (ie||dom){
    		first2_obj=ie? first2 : document.getElementById("first2")
    		second2_obj=ie? second2 : document.getElementById("second2")
    		move3(first2_obj)
    		second2_obj.style.top=scrollerheight
    		second2_obj.style.visibility='visible'
    	}
    	else if (document.layers){
    		document.main.visibility='show'
    		move1(document.main.document.first)
    		document.main.document.second.top=parseInt(scrollerheight)+5
    		document.main.document.second.visibility='show'
    	}
    }
	
    function sponsor_move1(sponsor_whichlayer){
    	sponsor_tlayer=eval(sponsor_whichlayer)
    	if (sponsor_tlayer.top>0&&sponsor_tlayer.top<=5){
    		sponsor_tlayer.top=0
    		setTimeout("sponsor_move1(sponsor_tlayer)",sponsor_scrollerdelay)
    		setTimeout("sponsor_move2(document.sponsor_main.document.sponsor_second)",sponsor_scrollerdelay)
    		return
    	}
    	if (sponsor_tlayer.top>=sponsor_tlayer.document.height*-1){
    		sponsor_tlayer.top-=5
    		setTimeout("sponsor_move1(sponsor_tlayer)",50)
    	}
    	else{
    		sponsor_tlayer.top=parseInt(sponsor_scrollerheight)
    		sponsor_tlayer.document.write(sponsor_messages[sponsor_i])
    		sponsor_tlayer.document.close()
    		if (sponsor_i==sponsor_messages.length-1)
    		sponsor_i=0
    		else
    		sponsor_i++
    	}
    }

    function sponsor_move2(sponsor_whichlayer){
    	sponsor_tlayer2=eval(sponsor_whichlayer)
    	if (sponsor_tlayer2.top>0&&sponsor_tlayer2.top<=5){
    		sponsor_tlayer2.top=0
    		setTimeout("sponsor_move2(sponsor_tlayer2)",sponsor_scrollerdelay)
    		setTimeout("sponsor_move1(document.sponsor_main.document.sponsor_first)",sponsor_scrollerdelay)
    		return
    	}
    	if (sponsor_tlayer2.top>=sponsor_tlayer2.document.height*-1){
    		sponsor_tlayer2.top-=5
    		setTimeout("sponsor_move2(sponsor_tlayer2)",50)
    	}
    	else{
    		sponsor_tlayer2.top=parseInt(sponsor_scrollerheight)
    		sponsor_tlayer2.document.write(sponsor_messages[sponsor_i])
    		sponsor_tlayer2.document.close()
    		if (sponsor_i==sponsor_messages.length-1)
    		sponsor_i=0
    		else
    		sponsor_i++
    	}
    }

    function sponsor_move3(sponsor_whichdiv){
    	sponsor_tdiv = eval(sponsor_whichdiv)
    	if (parseInt(sponsor_tdiv.style.top)>0&&parseInt(sponsor_tdiv.style.top)<=5){
    		sponsor_tdiv.style.top=0+"px"
    		setTimeout("sponsor_move3(sponsor_tdiv)",sponsor_scrollerdelay)
    		setTimeout("sponsor_move4(sponsor_second2_obj)",sponsor_scrollerdelay)
    		return
    	}
    	if (parseInt(sponsor_tdiv.style.top)>=sponsor_tdiv.offsetHeight*-1){
    		sponsor_tdiv.style.top=parseInt(sponsor_tdiv.style.top)-5+"px"
    		setTimeout("sponsor_move3(sponsor_tdiv)",50)
    	}
    	else{
    		sponsor_tdiv.style.top=parseInt(sponsor_scrollerheight)
    		sponsor_tdiv.innerHTML=sponsor_messages[sponsor_i]
    		if (sponsor_i==sponsor_messages.length-1)
    		sponsor_i=0
    		else
    		sponsor_i++
    	}
    }

    function sponsor_move4(sponsor_whichdiv){
    	sponsor_tdiv2=eval(sponsor_whichdiv)
    	if (parseInt(sponsor_tdiv2.style.top)>0&&parseInt(sponsor_tdiv2.style.top)<=5){
    		sponsor_tdiv2.style.top=0+"px"
    		setTimeout("sponsor_move4(sponsor_tdiv2)",sponsor_scrollerdelay)
    		setTimeout("sponsor_move3(sponsor_first2_obj)",sponsor_scrollerdelay)
    		return
    	}
    	if (parseInt(sponsor_tdiv2.style.top)>=sponsor_tdiv2.offsetHeight*-1){
    		sponsor_tdiv2.style.top=parseInt(sponsor_tdiv2.style.top)-5+"px"
    		setTimeout("sponsor_move4(sponsor_second2_obj)",50)
    	}
    	else{
    		sponsor_tdiv2.style.top=parseInt(sponsor_scrollerheight)
    		sponsor_tdiv2.innerHTML=sponsor_messages[sponsor_i]
    		if (sponsor_i==sponsor_messages.length-1)
    		sponsor_i=0
    		else
    		sponsor_i++
    	}
    }

    function sponsor_startscroll(){
    	if (sponsor_ie|| sponsor_dom){
    		sponsor_first2_obj=sponsor_ie? sponsor_first2 : document.getElementById("sponsor_first2")
    		sponsor_second2_obj=sponsor_ie? sponsor_second2 : document.getElementById("sponsor_second2")
    		sponsor_move3(sponsor_first2_obj)
    		sponsor_second2_obj.style.top=sponsor_scrollerheight
    		sponsor_second2_obj.style.visibility='visible'
    	}
    	else if (document.layers){
    		document.sponsor_main.visibility='show'
    		sponsor_move1(document.sponsor_main.document.sponsor_first)
    		document.sponsor_main.document.sponsor_second.top=parseInt(sponsor_scrollerheight)+5
    		document.sponsor_main.document.sponsor_second.visibility='show'
    	}
    }
	
	
	
