    function bigSwitch(){
	showFullDesc2(0, 0);
	if (trailerLoaded == 0){
		if(slideLoaded == 0){
		    originalHTML = document.getElementById("container_img").innerHTML;
		}
		document.getElementById("container_img").innerHTML = flv1 + trailer_link + flv2  + flv3 + image_link + flv4;
		trailerLoaded = 1;
		slideLoaded = 0;
		//readyclick('but5');
	} else {
		document.getElementById("container_img").innerHTML = originalHTML;
		trailerLoaded = 0;
		slideLoaded=0;
	}
	
    }
    
    
    function bigSwitch2(){
	showFullDesc2(0, 0);
	if (trailerLoaded == 0){
		if(slideLoaded == 0){
		    originalHTML = document.getElementById("container_img").innerHTML;
		}
		document.getElementById("container_img").innerHTML = flv1 + trailer_link + flv2  + flv3 + image_link + flv4;
		trailerLoaded = 1;
		slideLoaded = 0;
		//readyclick('but5');
	} else {
		document.getElementById("container_img").innerHTML = originalHTML;
		trailerLoaded = 0;
		slideLoaded=0;
	}
	
    }
    
    
    
    
    function slideSwitch(){
	showFullDesc2(0, 0);
	if (slideLoaded == 0){
		if(trailerLoaded == 0){
		    originalHTML = document.getElementById("container_img").innerHTML;
		}
		document.getElementById("container_img").innerHTML = slide1 + slide_link + slide2;
		slideLoaded = 1;
		trailerLoaded = 0;
		//readyclick('but4');
	} else {
		document.getElementById("container_img").innerHTML = originalHTML;
		trailerLoaded = 0;
		slideLoaded = 0;
	}
	
    }

    
    function slideSwitch2(){
	showFullDesc2(0, 0);
	if (slideLoaded == 0){
		if(trailerLoaded == 0){
		    originalHTML = document.getElementById("container_img").innerHTML;
		}
		document.getElementById("container_img").innerHTML = slide1 + slide_link + slide2;
		//alert(slide1 + slide_link + slide2);
		slideLoaded = 1;
		trailerLoaded = 0;
		//readyclick('but4');
	} else {
		document.getElementById("container_img").innerHTML = originalHTML;
		trailerLoaded = 0;
		slideLoaded = 0;
	}
	
    }
    
    
    
    
    //// this function is called before the ajax load call
    function get_ready(id){
	    trailerLoaded=0;
	    slideLoaded=0;
	    activebut='0';
	    activelong=0;
	    var mid_digit=(id-(id%100))/100;
	    trailer_link = "/pic/trailer_v/0/"+mid_digit+"/"+id+".flv";
	    image_link = "/pic/trailer_i/0/"+mid_digit+"/"+id+".jpg";
	    slide_link = id;

    }
    
    function flyover(id){
	window.document.getElementById(id).style.color = '#990000';
	//window.document.getElementById(id).style.textDecoration = 'underline';
	//window.document.getElementById(id).style.fontWeight = 'bold';
    }
    
    function flyout(id){
	window.document.getElementById(id).style.color = '#300';
	//window.document.getElementById(id).style.textDecoration = 'none';
	if (id == activebut){
	} else {
	    window.document.getElementById(id).style.fontWeight = '';
	}
    }
    function readyclick(id){
	if(activebut == '0'){
	    
	} else {
	    //deactivate
	    window.document.getElementById(activebut).style.color = '#900';
	    window.document.getElementById(activebut).style.textDecoration = 'none';
	    window.document.getElementById(activebut).style.fontWeight = '';
	    
	}
	//activate
	//window.document.getElementById(id).style.fontWeight = 'bold';
	window.document.getElementById(id).style.textDecoration = 'underline';
	activebut = id;
    }
    
    
    function showFullDesc(id, span){
	if (((span == 0) && (activelong == 2)) || ((span == 1) &&  (activelong == 1))){
	    id =1;
	}    
	if(id==0){ 
	    window.document.getElementById('fullblock').style.display = 'none';
	    
	    //window.document.getElementById('shortblock').style.visibility = 'visible';
	    //window.document.getElementById('shortblock2').style.visibility = 'visible';
	    window.document.getElementById('shortblock').style.display = '';
	    window.document.getElementById('shortblock2').style.display = '';
	    activelong=0;
	} else{
	    	    
	    window.document.getElementById('shortblock').style.display = 'none';
	    window.document.getElementById('shortblock2').style.display = 'none';
	   // window.document.getElementById('fullblock').style.visibility = 'visible';
	    window.document.getElementById('fullblock').style.display = '';
	    
	    if(span==0){
	    //this one means rights
	    
	    
		window.document.getElementById('longspan').style.display = 'none';
		window.document.getElementById('rightsspan').style.display = '';
		readyclick('bbut1');
		activelong=1;
	    
	    } else {
		//this one means longstuff
		window.document.getElementById('longspan').style.display = '';
		window.document.getElementById('rightsspan').style.display = 'none';
		//readyclick('bbut6');
		activelong=2;
	    }
	}
    }
    
    
    function showFullDesc2(id, span){
	//alert(activelong);
	//alert(span);
	if (((span == 1) && (activelong == 2)) || ((span == 0) &&  (activelong == 1)) || (id == 0)){
	    id =1;
	    //alert("here");
	    window.document.getElementById('longspan').style.display = 'none';
	    window.document.getElementById('rightsspan').style.display = 'none';
	    activelong=0;
	} else{
	    if(span==0){
	    //this one means rights
		window.document.getElementById('longspan').style.display = 'none';
		window.document.getElementById('rightsspan').style.display = '';
		//readyclick('bbut1');
		activelong=1;
	    
	    } else {
		//this one means longstuff
		window.document.getElementById('longspan').style.display = '';
		window.document.getElementById('rightsspan').style.display = 'none';
		//readyclick('bbut6');
		activelong=2;
	    }
	}
    }
    
    function fbtnclick(){
	    document.getElementById("leftbuttons").innerHTML = myintro;
	    //document.write(myintro);
	    //return "";
    }
    
    function fbtnclick2(){
	    document.getElementById("cont").innerHTML = myintro;
	    //document.write(myintro);
	    //return "";
    }
    
    function testflash(){
	alert("this function was called from a flash button");
    }
    
    function btndesc(){
	//alert("this function was called from a flash button - desc");
	showFullDesc2(1, 1);
    }
    function btnrights(){
	//alert("this function was called from a flash button - rights");
	showFullDesc2(1, 0);
    }
    function btnsite(){
	window.open(mysite,'_new','width=1024,height=768,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=yes,resizable=yes')
	//alert("this function was called from a flash button - site");
    }
    function btntrailer(){
	bigSwitch2();
	//alert("this function was called from a flash button - trailer");
    }
    function btnphoto(){
	slideSwitch2();
	//alert("this function was called from a flash button - photo");
    }
    function btnwatch(){
	window.open('http://www.kinolubitel.com/'+ mywatch,'_new','width=1024,height=768,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=yes,resizable=yes')
	//alert("this function was called from a flash button - watch");
    }
