<!--

//function bildbyte(namn,nybild){
//  if (document.images){
//    document.images[namn].src = nybild + '.gif';
//  }
//}

//function preload(img){
//        yo =  new Image();
//        yo.src = img;
//}
//preload('folder_on.gif')
//preload('heart.gif')

//status
//function status(message){document.status='+ message'; return true}

// utan scroll och toolbar
//function openwin(url, namn, w, h) {window.open(url ,namn,'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,resizable=0,width=' + w + ',height=' + h);
//}

// med scroll och toolbar
//function openwinscroll(url, namn, w, h) {window.open(url ,namn,'toolbar=1,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=0,width=' + w + ',height=' + h);
//}

ie=document.all?1:0
n=document.layers?1:0

timSpeed=1
contHeight=200


function makeScrollObj(obj,nest){
        nest=(!nest) ? '':'document.'+nest+'.'                                                                          
        this.css=(n) ? eval(nest+'document.'+obj):eval('document.all.'+obj+'.style')                                                    
        this.scrollHeight=n?this.css.document.height:eval('document.all.'+obj+'.offsetHeight')                                                  
        this.top=b_gettop                                                                               
        return this
}
function b_gettop(){
        var gleft=(n) ? eval(this.css.top):eval(this.css.pixelTop);
        return gleft;
}
//Variables
var scrollTim;
var active=0;

function scroll(speed){
        clearTimeout(scrollTim)
        way=speed>0?1:0
        if((!way && oScroll[active].top()>-oScroll[active].scrollHeight+contHeight) || (oScroll[active].top()<0 && way)){
                oScroll[active].css.top=oScroll[active].top()+speed
                newTop = 0 - parseInt(oScroll[active].css.top)
                //newBottom = 350 - parseInt(oScroll[active].css.top) + 220
                newBottom = newTop + 220
                //alert(newBottom)
                oScroll[active].css.clip='rect(' + newTop + ',350,'+ newBottom + ',0)'
                scrollTim=setTimeout("scroll("+speed+")",timSpeed)
        }
}
function noScroll(){
        clearTimeout(scrollTim)
}
var posX
var posY

function scrollInit(){
		//getPos();
        oScroll=new Array()
        oScroll[0]=new  makeScrollObj('divScroll1','divCont')
        oScroll[0].css.visibility='visible'
        //oScroll[0].css.top=posY + 20
        //oScroll[0].css.left=posX + 0
}


//function getPos() {
//posX = titleJpg.clientX;
//posY = titleJpg.clientY;
//alert(posX + "," + posY)
//}

onload=scrollInit;
//onresize=window.refresh();

//-->
