// JavaScript Document



//SUB MENU//
var go = 1;

function ShowTab(intid) {
    go = 1;
    setTimeout("Show()", 10);


}

function Show() {
    if (go == 1) {
        $(".sub_menu_body").slideDown("slow");
    }
}

function HideTab(intid) {
    go = 0;
    $(".sub_menu_body").slideUp("slow");

}


//****************************//


//PHOTOS HEADER Z1 LEFT//

//setTimeout("Photo_left_II();", 6000);
    
function Photo_left_I(){
    $(".photo_left_Z1a").fadeOut(2000);
    $(".photo_left_Z1b").fadeIn(2000);
	setTimeout("Photo_left_II();", 6000);
}
function Photo_left_II(){
    $(".photo_left_Z1b").fadeOut(2000);
    $(".photo_left_Z1c").fadeIn(2000);
    setTimeout("Photo_left_III();", 6000);
}
function Photo_left_III(){
    $(".photo_left_Z1c").fadeOut(2000);
    $(".photo_left_Z1a").fadeIn(2000);
    setTimeout("Photo_left_I();", 6000);
}


//PHOTOS HEADER Z2 LEFT//

//setTimeout("Photo_left_b();", 6000);
    
function Photo_left_a(){
    $(".photo_left_Z2b").fadeOut(2000);
    $(".photo_left_Z2c").fadeIn(2000);
	setTimeout("Photo_left_b();", 6000);
}
function Photo_left_b(){
    $(".photo_left_Z2c").fadeOut(2000);
    $(".photo_left_Z2a").fadeIn(2000);
    setTimeout("Photo_left_c();", 6000);
}
function Photo_left_c(){
    $(".photo_left_Z2a").fadeOut(2000);
    $(".photo_left_Z2b").fadeIn(2000);
    setTimeout("Photo_left_a();", 6000);
}


//PHOTOS HEADER Z3 LEFT//

//setTimeout("Photo_left_2();", 6000);
    
function Photo_left_1(){
    $(".photo_left_Z3c").fadeOut(2000);
    $(".photo_left_Z3a").fadeIn(2000);
	setTimeout("Photo_left_2();", 6000);
}
function Photo_left_2(){
    $(".photo_left_Z3a").fadeOut(2000);
    $(".photo_left_Z3b").fadeIn(2000);
    setTimeout("Photo_left_3();", 6000);
}
function Photo_left_3(){
    $(".photo_left_Z3b").fadeOut(2000);
    $(".photo_left_Z3c").fadeIn(2000);
    setTimeout("Photo_left_1();", 6000);
}

//****************************//


//PHOTOS HEADER Z1 RIGHT//

//setTimeout("Photo_right_II();", 6000);
    
function Photo_right_I(){
    $(".photo_right_Z1a").fadeOut(2000);
    $(".photo_right_Z1b").fadeIn(2000);
	setTimeout("Photo_right_II();", 6000);
}
function Photo_right_II(){
    $(".photo_right_Z1b").fadeOut(2000);
    $(".photo_right_Z1c").fadeIn(2000);
    setTimeout("Photo_right_III();", 6000);
}
function Photo_right_III(){
    $(".photo_right_Z1c").fadeOut(2000);
    $(".photo_right_Z1a").fadeIn(2000);
    setTimeout("Photo_right_I();", 6000);
}


//PHOTOS HEADER Z2 RIGHT//

//setTimeout("Photo_right_b();", 6000);
    
function Photo_right_a(){
    $(".photo_right_Z2b").fadeOut(2000);
    $(".photo_right_Z2c").fadeIn(2000);
	setTimeout("Photo_right_b();", 6000);
}
function Photo_right_b(){
    $(".photo_right_Z2c").fadeOut(2000);
    $(".photo_right_Z2a").fadeIn(2000);
    setTimeout("Photo_right_c();", 6000);
}
function Photo_right_c(){
    $(".photo_right_Z2a").fadeOut(2000);
    $(".photo_right_Z2b").fadeIn(2000);
    setTimeout("Photo_right_a();", 6000);
}


//PHOTOS HEADER Z3 RIGHT//

//setTimeout("Photo_right_2();", 6000);
    
function Photo_right_1(){
    $(".photo_right_Z3c").fadeOut(2000);
    $(".photo_right_Z3a").fadeIn(2000);
	setTimeout("Photo_right_2();", 6000);
}
function Photo_right_2(){
    $(".photo_right_Z3a").fadeOut(2000);
    $(".photo_right_Z3b").fadeIn(2000);
    setTimeout("Photo_right_3();", 6000);
}
function Photo_right_3(){
    $(".photo_right_Z3b").fadeOut(2000);
    $(".photo_right_Z3c").fadeIn(2000);
    setTimeout("Photo_right_1();", 6000);
}

//****************************//



//LOGO TEASERS//

//setTimeout("Logo2();", 4000);
    
function Logo1(){
    $(".logo_teaser_04").fadeOut(2000);
    $(".logo_teaser_01").fadeIn(2000);
	setTimeout("Logo2();", 4000);
}
function Logo2(){
    $(".logo_teaser_01").fadeOut(2000);
    $(".logo_teaser_02").fadeIn(2000);
    setTimeout("Logo3();", 4000);
}
function Logo3(){
    $(".logo_teaser_02").fadeOut(2000);
    $(".logo_teaser_03").fadeIn(2000);
    setTimeout("Logo4();", 4000);
}
function Logo4(){
    $(".logo_teaser_03").fadeOut(2000);
    $(".logo_teaser_04").fadeIn(2000);
    setTimeout("Logo1();", 4000);
}

//****************************//


//TITLE HEADER LEFT 1//

//setTimeout("Title_left_2();", 6000);
    
function Title_left_1(){
    $(".title_header_left_01c").fadeOut(2000);
    $(".title_header_left_01a").fadeIn(2000);
	setTimeout("Title_left_2();", 6000);
}
function Title_left_2(){
    $(".title_header_left_01a").fadeOut(2000);
    $(".title_header_left_01b").fadeIn(2000);
    setTimeout("Title_left_3();", 6000);
}
function Title_left_3(){
    $(".title_header_left_01b").fadeOut(2000);
    $(".title_header_left_01c").fadeIn(2000);
    setTimeout("Title_left_1();", 6000);
}


//TITLE HEADER LEFT 2//

//setTimeout("Title_left_b();", 6000);
    
function Title_left_a(){
    $(".title_header_left_02c").fadeOut(2000);
    $(".title_header_left_02a").fadeIn(2000);
	setTimeout("Title_left_b();", 6000);
}
function Title_left_b(){
    $(".title_header_left_02a").fadeOut(2000);
    $(".title_header_left_02b").fadeIn(2000);
    setTimeout("Title_left_c();", 6000);
}
function Title_left_c(){
    $(".title_header_left_02b").fadeOut(2000);
    $(".title_header_left_02c").fadeIn(2000);
    setTimeout("Title_left_a();", 6000);
}


//TITLE HEADER RIGHT 1//

//setTimeout("Title_right_2();", 6000);
    
function Title_right_1(){
    $(".title_header_right_01c").fadeOut(2000);
    $(".title_header_right_01a").fadeIn(2000);
	setTimeout("Title_right_2();", 6000);
}
function Title_right_2(){
    $(".title_header_right_01a").fadeOut(2000);
    $(".title_header_right_01b").fadeIn(2000);
    setTimeout("Title_right_3();", 6000);
}
function Title_right_3(){
    $(".title_header_right_01b").fadeOut(2000);
    $(".title_header_right_01c").fadeIn(2000);
    setTimeout("Title_right_1();", 6000);
}


//TITLE HEADER RIGHT 2//

//setTimeout("Title_right_b();", 6000);
    
function Title_right_a(){
    $(".title_header_right_02c").fadeOut(2000);
    $(".title_header_right_02a").fadeIn(2000);
	setTimeout("Title_right_b();", 6000);
}
function Title_right_b(){
    $(".title_header_right_02a").fadeOut(2000);
    $(".title_header_right_02b").fadeIn(2000);
    setTimeout("Title_right_c();", 6000);
}
function Title_right_c(){
    $(".title_header_right_02b").fadeOut(2000);
    $(".title_header_right_02c").fadeIn(2000);
    setTimeout("Title_right_a();", 6000);
}

//VIDEO PLAYER//



	    function HideAll() {
	        document.getElementById('transparant_layer').style.display = "none";
	        document.getElementById('popup').style.display = "none";

	    }
	    
	    function ShowVideo() {
	        document.getElementById('transparant_layer').style.display = "block";
	        document.getElementById('popup').style.display = "block";
	        scroll(0, 0);
	        var so = new SWFObject('player.swf', 'mpl', '480', '322', '9');
	        so.addParam('allowfullscreen', 'true');
	        so.addParam('allowscriptaccess', 'always');
	        so.addParam('wmode', 'opaque');
	        so.addVariable('file', 'flv/film1.flv');
	        //so.addVariable('controlbar', 'none');
	        so.addVariable('image', 'images/startvideo.jpg');
	        so.addVariable('autostart', 'true');
	        so.write('player');
	    }


//****************************//
