var requiredFlashPlayerVersion = "9.0.45";
if( !_urlBZFA46496BE85F4670A5D7 ) {
	var _urlBZFA46496BE85F4670A5D7 = null;
	var scripts = document.getElementsByTagName("script");
	for( var i=0;i<scripts.length;i++ ) {
		var s = scripts[i];
		var ssrc = "";
		try {
			ssrc = s.src;
		} catch( e ) {
			ssrc = "";
		}
		if (typeof ssrc != "undefined") {
			if( ssrc && ssrc.match(/bzLoader\.js/) ) {
				if (ssrc.length>11) {
					_urlBZFA46496BE85F4670A5D7 = ssrc.substring(0,ssrc.length-11);
				} else {
					_urlBZFA46496BE85F4670A5D7 = "./";
				}
			}
		}
	}
	_urlBZFA46496BE85F4670A5D7 = _urlBZFA46496BE85F4670A5D7.replace("&","%26");
}
function loadScript(url, callback) {
    var script = document.createElement("script")
    script.type = "text/javascript";
    if (script.readyState) {
        //IE
        script.onreadystatechange = function() {
            if (script.readyState == "loaded" ||
				script.readyState == "complete") {
                script.onreadystatechange = null;
                callback();
            }
        };
    } else {
        //Others
        script.onload = function() {
            callback();
        };
    }
    script.src = url;
    document.getElementsByTagName("head")[0].appendChild(script);
}
function includeJS(filename) {
    var fileref = document.createElement('script');
    fileref.setAttribute("type", "text/javascript");
    fileref.setAttribute("src", filename);
    document.getElementsByTagName('head')[0].appendChild(fileref);
}
function includeCSS(filename) {
    var fileref = document.createElement('link');
    fileref.setAttribute("rel", "stylesheet");
    fileref.setAttribute("type", "text/css");
    fileref.setAttribute("href", filename);
    document.getElementsByTagName('head')[0].appendChild(fileref);
}

function mootoolsLoadedBZFA46496BE85F4670A5D7() {
   loadScript(_urlBZFA46496BE85F4670A5D7+"slideshow/js/slideshow.js",slideshowLoadedBZFA46496BE85F4670A5D7);
}
function slideshowLoadedBZFA46496BE85F4670A5D7() {
   loadScript(_urlBZFA46496BE85F4670A5D7+"bz.js",bzLoadedBZFA46496BE85F4670A5D7);
}
function bzLoadedBZFA46496BE85F4670A5D7() {
    bzEmbedSWFBZFA46496BE85F4670A5D7();
}
function swfobjectLoadedBZFA46496BE85F4670A5D7() {
	if (typeof insertHTMLCodeFlag != "undefined") {
        insertHTMLCode();
    }
    if (typeof swfobject != "undefined") {
		if (!swfobject.hasFlashPlayerVersion(requiredFlashPlayerVersion)) {
			includeCSS(_urlBZFA46496BE85F4670A5D7+"slideshow/css/slideshow.css");
			includeCSS(_urlBZFA46496BE85F4670A5D7+"slideshow/css/bzSlideshow.css");
			loadScript(_urlBZFA46496BE85F4670A5D7+"slideshow/js/mootools-1.2.3.1-core-more.js",mootoolsLoadedBZFA46496BE85F4670A5D7);
		} else {
			
			loadScript(_urlBZFA46496BE85F4670A5D7+"bz.js",bzLoadedBZFA46496BE85F4670A5D7);
		}
    }
}
function swfobjectLoaded() {
	swfobjectLoadedBZFA46496BE85F4670A5D7();
}
function loadFilesBZFA46496BE85F4670A5D7() {
    if (typeof swfobject == "undefined") {
        document.write('<script type="text/javascript" src="'+_urlBZFA46496BE85F4670A5D7+"swfobject.js"+'"></script>');
    } else {
        swfobjectLoadedBZFA46496BE85F4670A5D7();
    }
}
loadFilesBZFA46496BE85F4670A5D7();

