var Timer
var ImageNum = 0
var SlideShowSpeed = 4000
var CrossFadeDuration = 3000
var Pic = new Array('/asb/images/fade/1b.gif','/asb/images/fade/1c.gif','/asb/images/fade/1d.gif','/asb/images/fade/1a.gif')
var PicCount = Pic.length
 
var preLoad = new Array()
    for (i = 0; i < PicCount; i++){
        preLoad[i] = new Image(); preLoad[i].src = Pic[i]
    }
 
function SlideShow(){
    if (document.all){
        document.images.SlideShow.style.filter='blendTrans(duration='+(CrossFadeDuration/1000)+')'
        document.images.SlideShow.filters.blendTrans.Apply()
    }
    document.images.SlideShow.src = preLoad[ImageNum].src
    if (document.all){ document.images.SlideShow.filters.blendTrans.Play() }
    ImageNum++
    if (ImageNum>(PicCount-1)){ ImageNum=0 }
    Timer = setTimeout('SlideShow()', SlideShowSpeed)
}

function on(gif) {
	document[gif].src = "/asb/images/top/" + gif + "a.gif"
}
function off(gif) {
	document[gif].src = "/asb/images/top/" + gif + ".gif"
}

function confirm_url(url, msg) {
	if (confirm(msg)) { location.href = url + "&HTTP_REFERER=" + escape(location.href); }
}

function select_subs(parent, thislevel, formname) {
	for (a=0; a<document.forms[formname].length; a++) {
		if (document.forms[formname].elements[a] == parent) {
			for (b=(a+1); b<document.forms[formname].length; b++) {
				formel = document.forms[formname].elements[b];
				if (formel.type == "checkbox") {
					if (formel.level <= thislevel || !formel.level) {
						return
					} else {
						if (document.forms[formname].elements[a].checked == true) {
							formel.checked = true
						} else  {
							formel.checked = false
						}
					}
				}
			}
		}
	}
}