var pagename = "";
var MM_contentVersion = 5;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0; 
if ( plugin ) { 
		var words = navigator.plugins["Shockwave Flash"].description.split(" "); 
	    for (var i = 0; i < words.length; ++i) 
	    { 
		if (isNaN(parseInt(words[i]))) 
		continue; 
		var MM_PluginVersion = words[i];  
	    } 
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion; 
} 
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0  
   && (navigator.appVersion.indexOf("Win") != -1)) { 
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); 
	document.write('on error resume next \n'); 
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n'); 
	document.write('</SCR' + 'IPT\> \n'); 
}

function golargeimage(oog,eeg,ig,imagealt)
{
var winpops=window.open("goimage.php?imagealt=" + imagealt + "&image=" + oog + "&width=" + eeg + "&height=" +ig,"","resizable=1,width=100,height=100")

return false;
}
function gointro()
{

	if ( MM_FlashCanPlay )
	{
	document.getElementById("homeinright").innerHTML = "<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' WIDTH=300 HEIGHT=180><PARAM NAME=movie VALUE='images/intro.swf'><PARAM NAME=quality VALUE=high><PARAM NAME=loop VALUE=false><PARAM NAME=bgcolor VALUE=#EBECF1><EMBED loop=false src='images/intro.swf' quality=high bgcolor=#EBECF1 WIDTH=300 HEIGHT=180 TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'></EMBED></OBJECT>";
	}
}




var scrollerdelay='4000'
var scrollerwidth='280px'
var scrollerheight='100px'
var scrollerbgcolor='#EBECF1'
var scrollerbackground='scrollerback.gif'


var messages=new Array()

var ie=document.all
var dom=document.getElementById
var i=2

function goscroller()
{

if (ie||dom){
document.writeln('<div id="main2" style="position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hidden;background-color:'+scrollerbgcolor+' ;background-image:url('+scrollerbackground+')">')
document.writeln('<div style="position:absolute;width:'+scrollerwidth+';height:'+scrollerheight+';clip:rect(0 '+scrollerwidth+' '+scrollerheight+' 0);left:0px;top:0px">')
document.writeln('<div id="first2" style="position:absolute;width:'+scrollerwidth+';left:0px;top:1px;">')
document.write(messages[0])
document.writeln('</div>')
document.writeln('<div id="second2" style="position:absolute;width:'+scrollerwidth+';left:0px;top:0px;visibility:hidden">')
document.write(messages[dyndetermine=(messages.length==1)? 0 : 1])
document.writeln('</div>')
document.writeln('</div>')
document.writeln('</div>')
}

if (window.addEventListener)
window.addEventListener("load", startscroll, false)
else if (window.attachEvent)window.attachEvent("onload", startscroll)
else if (ie||dom)
window.onload=startscroll

}








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

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

function startscroll(){
first2_obj=ie? first2 : document.getElementById("first2")
second2_obj=ie? second2 : document.getElementById("second2")
move(first2_obj)
second2_obj.style.top=scrollerheight
second2_obj.style.visibility='visible'
}