function init() {
	if(window.alphaPNG) alphaPNG() ; 
	insert_flash();
}

/* short generic onload by Brothercake */
if(typeof window.addEventListener != 'undefined') {
	window.addEventListener('load', init, false);
} else if(typeof document.addEventListener != 'undefined') {
	document.addEventListener('load', init, false);
} else if(typeof window.attachEvent != 'undefined') {
	window.attachEvent('onload', init);
}

function bol_DoFSCommand(command, args) {
	
	obj = document.getElementById('btn'+args);
	
	if (command == "executeLink") { document.location = obj.href; }
	if (command == "animateGif") { 
		if(obj.currentStyle) {
			imgUrl = obj.currentStyle['background-image'];
		} else {
			imgUrl = document.defaultView.getComputedStyle(obj,null).getPropertyValue('background-image');			
		}
		if(args == 1) {
			obj.style.backgroundImage = imgUrl.substr(0,(imgUrl.indexOf('nav_')+4))+'mo_'+imgUrl.substr((imgUrl.indexOf('nav_')+4));
		} else if (args == 2) {
			obj.style.backgroundImage = imgUrl.substr(0,(imgUrl.indexOf('nav_')+4))+'mo_'+imgUrl.substr((imgUrl.indexOf('nav_')+4));
		}
		window.status = obj.href;
		return true;
	}
	if (command == "stopGif") {
		if(obj.currentStyle) {
			imgUrl = obj.currentStyle['background-image'];
		} else {
			imgUrl = document.defaultView.getComputedStyle(obj,null).getPropertyValue('background-image');			
		}
		if(args == 1) {
			obj.style.backgroundImage = imgUrl.substr(0,(imgUrl.indexOf('nav_')+4))+imgUrl.substr((imgUrl.indexOf('nav_')+7));
		} else if (args == 2) {
			obj.style.backgroundImage = imgUrl.substr(0,(imgUrl.indexOf('nav_')+4))+imgUrl.substr((imgUrl.indexOf('nav_')+7));
		}
		window.status =  "";
		return true;
	}
    
}


function insert_flash() {
	str = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="bol" width="112" height="110">';
	str+= '<param name="wmode" value="transparent">';
	str+= '<param name="allowScriptAccess" value="sameDomain">';
	str+= '<param name="movie" value="swf/fotos.swf">';
	str+= '<param name="quality" value="high">';
	str+= '<embed src="swf/fotos.swf" wmode="transparent" quality="high" width="112" height="110" swLiveConnect="true" id="bol" name="bol" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">';
	str+= '</object>';
     if (typeof document.getElementById('flash') != 'undefined') {
        if (document.getElementById('flash') != null) {
            document.getElementById('flash').innerHTML = str;
        }
     }
}
