var speed = 90 // decrease value to increase speed (must be positive)
var pause = 1500 // increase value to increase pause
var timerID = null
var bannerRunning = false
var ar = new Array()
ar[0] = "Welcome to the oficial ALVHEIM website"
var currentMessage = 0
var offset = 0
function stopBanner() {
        if (bannerRunning)
                clearTimeout(timerID)
        bannerRunning = false
}

function startBanner() {
        stopBanner()
        showBanner()
}
function showBanner() {
        var text = ar[currentMessage]
        if (offset < text.length) {
                if (text.charAt(offset) == " ")
                        offset++                        
                var partialMessage = text.substring(0, offset + 1) 
                window.status = partialMessage
                offset++ // IE sometimes has trouble with "++offset"
                timerID = setTimeout("showBanner()", speed)
                bannerRunning = true
        } else {
                offset = 0
                currentMessage++
                if (currentMessage == ar.length)
                       currentMessage = 0
                timerID = setTimeout("showBanner()", pause)
               bannerRunning = true
        }
}

function win(ID,sizei,tit)
{
        var wnd01, tPage, wndHeight, wndWidth, imgHeight;
        wnd01 = window.open('','_blank','copyhistory=no,directories=no,location=no,status=no,scrollbars=no,menubar=no,toolbar=no,resizable=no,'+sizei);
        tPage="";
        tPage=tPage+"<html>\n";
        tPage=tPage+"<head>\n";
        tPage=tPage+"<title>::ALVHEIM - The oficial website::</title>\n";
        tPage=tPage+"<\/head>\n";
        tPage=tPage+"<body  TEXT='#A8882C' LINK='#946619' VLINK='#573C0E' ALINK='#000000'  bgcolor='#000000' marginwidth='0' marginheight='0' topmargin='0' leftmargin='0'>\n"; 
        tPage=tPage+"<center><a onclick='self.close();'><img "+"style=\"vertical-align: center\"; margin: 0"+" src=\""+ID+"\" border=0 ></a><\/center>";
        tPage=tPage+"<\/body>\n";
        tPage=tPage+"<\/html>\n";
        wnd01.document.write(tPage);}
		
function win1(ID,sizei,tit)
{
        var wnd01, tPage, wndHeight, wndWidth, imgHeight;
        wnd01 = window.open('','_blank','copyhistory=no,directories=no,location=no,status=no,scrollbars=yes,menubar=no,toolbar=no,resizable=no,'+sizei);
        tPage="";
        tPage=tPage+"<html>\n";
        tPage=tPage+"<head>\n";
        tPage=tPage+"<title>Russian 1349 website</title>\n";
        tPage=tPage+"<\/head>\n";
        tPage=tPage+"<body  TEXT='#ffffff' LINK='#946619' VLINK='#573C0E' ALINK='#000000'  bgcolor='#000000' marginwidth='0' marginheight='0' topmargin='0' leftmargin='0'>\n"; 
        tPage=tPage+"<center><a onclick='self.close();'><div src=\""+ID+"\"></div></a><\/center>";
        tPage=tPage+"<\/body>\n";
        tPage=tPage+"<\/html>\n";
        wnd01.document.write(tPage);}

		
		
		



		