    var flashVideoPlayer;
    var flashactive=false;
 
    function initialize() {
        

        var isIE = navigator.appName.indexOf("Microsoft") != -1;
        flashVideoPlayer = (isIE) ? window['ecofilm'] : document['ecofilm'];
    }

     
    function callFlash(which,cat) {
	
	$('html,body').animate({scrollTop: 0}, 500);
	flashactive=true;
	$('#av_menu').animate({opacity: 0}, 1000, function() {
    document.getElementById('av_flash').style.display ='block';
	document.getElementById('av_menu').style.display ='none';
	var isIE = navigator.appName.indexOf("Microsoft") != -1;
        flashVideoPlayer = (isIE) ? window['ecofilm'] : document['ecofilm'];
	flashVideoPlayer.vartest(which,cat);
	});
	

	

	
    }
	
function callFlashReverse(where) {

	document.getElementById('av_flash').style.display ='none';
	document.getElementById('av_menu').style.display ='block';
	document.getElementById('av_menu').style.opacity =0;
	$('#av_menu').cycle(where); 	
	$('#av_menu').cycle('pause');	
	$('#av_menu').delay(800).animate({opacity: 1}, 1000);
	flashactive=false;
}



function new_win(where,w,h) {
new_window=window.open(where, "ecofilm", "width="+w+",height="+h+",left=100,top=200,toolbar=no,locationbar=no,statusbar=no,menubar=no");
new_window.focus();

}

$(document).ready(function(){  

	$('#av_menu').cycle({fx: 'fade',speed:1000,easing:0});
    $('#av_menu').delay(1000).cycle(5);
	$('#av_menu').cycle('pause');
  
  

});

function gotop() {

$('html, body').animate({scrollTop: 0}, 500);


}


