var sonbolum;

window.addEvent('domready', function(){
var myMenu = new ImageMenu($$('#imageMenu a'),{openWidth:200, border:2});
});

function RefTrans(a,b){
jQuery(function() {
    jQuery(a).hasClass(b)
        .find('img').animate({opacity: 0},600);
})

}

jQuery(document).ready(function() {
		var nS1 = new noobSlide({
			mode: 'vertical',
			box: $('abd_ibadethane_car'),
			items: $$('#abd_ibadethane_car h3'),
			size: 184,
			handles: $$('#yabd_ibadethane_car div'),
			addButtons: {previous: $('p1'), next: $('n1') },
			fxOptions: {
				duration: 800,
				transition: Fx.Transitions.Back.easeOut,
				wait: false
			},
			onWalk: function(currentItem,currentHandle){
			}
		});
		nS1.walk(0,false,true);

	jQuery('ul#filter1 li,ul#filter2 li,ul#filter3 li,ul#filter4 li,ul#filter5 li').mouseover(function() {if(!jQuery(this).hasClass("current")) {jQuery(this).animate({opacity: 1},800)}});
	jQuery('ul#filter1 li,ul#filter2 li,ul#filter3 li,ul#filter4 li,ul#filter5 li').mouseout(function() {if(!jQuery(this).hasClass("current")) {jQuery(this).animate({opacity: 0.5},800)}});


	jQuery('ul#filter1 li').click(function() {
		nS1.walk(0,false,false);
		jQuery('ul#filter1 .current').animate({opacity: 0.5},800).removeClass('current');
		jQuery(this).addClass('current').animate({opacity: 1},800);
		var filterVal = jQuery(this).find('a').attr("title")
		if(filterVal == 'hepsi') {
			jQuery('#abd_ibadethane_car div.hiddenx').fadeIn('slow');

		} else {
			
			jQuery('#abd_ibadethane_car div').each(function() {

				if(!jQuery(this).hasClass("z")) {

				if(!jQuery(this).hasClass(filterVal)) {
					jQuery(this).fadeOut('normal').addClass('hiddenx');
				} else {
					jQuery(this).fadeIn('slow').removeClass('hiddenx');
					//jQuery(this).hasClass("ref_k").fadeIn('slow').removeClass('hiddenx');
				}	}
			});
		}
		nS1.walk(0,false,false);
		return false;
	});

		var nS2 = new noobSlide({
			mode: 'vertical',
			box: $('abd_otelspa_car'),
			items: $$('#abd_otelspa_car h3'),
			size: 184,
			handles: $$('#yabd_otelspa_car div'),
			addButtons: {previous: $('p2'), next: $('n2') },
			fxOptions: {
				duration: 800,
				transition: Fx.Transitions.Back.easeOut,
				wait: false
			},
			onWalk: function(currentItem,currentHandle){
			}
		});
		nS2.walk(0,false,true);

	jQuery('ul#filter2 li').click(function() {
		nS2.walk(0,false,false);
		jQuery('ul#filter2 .current').animate({opacity: 0.5},800).removeClass('current');
		jQuery(this).addClass('current').animate({opacity: 1},800);
		var filterVal = jQuery(this).find('a').attr("title")
		if(filterVal == 'hepsi') {
			jQuery('#abd_otelspa_car div.hiddenx').fadeIn('slow');

		} else {
			
			jQuery('#abd_otelspa_car div').each(function() {

				if(!jQuery(this).hasClass("z")) {

				if(!jQuery(this).hasClass(filterVal)) {
					jQuery(this).fadeOut('normal').addClass('hiddenx');
				} else {
					jQuery(this).fadeIn('slow').removeClass('hiddenx');
					//jQuery(this).hasClass("ref_k").fadeIn('slow').removeClass('hiddenx');
				}	}
			});
		}
		nS2.walk(0,false,false);
		return false;
	});

		var nS3 = new noobSlide({
			mode: 'vertical',
			box: $('abd_hamam_car'),
			items: $$('#abd_hamam_car h3'),
			size: 184,
			handles: $$('#abd_hamam_car div'),
			addButtons: {previous: $('p3'), next: $('n3') },
			fxOptions: {
				duration: 800,
				transition: Fx.Transitions.Back.easeOut,
				wait: false
			},
			onWalk: function(currentItem,currentHandle){
			}
		});
		nS3.walk(0,false,true);


	jQuery('ul#filter3 li').click(function() {
		nS3.walk(0,false,false);
		jQuery('ul#filter3 .current').animate({opacity: 0.5},800).removeClass('current');
		jQuery(this).addClass('current').animate({opacity: 1},800);
		var filterVal = jQuery(this).find('a').attr("title")
		if(filterVal == 'hepsi') {
			jQuery('#abd_hamam_car div.hiddenx').fadeIn('slow');

		} else {
			
			jQuery('#abd_hamam_car div').each(function() {

				if(!jQuery(this).hasClass("z")) {

				if(!jQuery(this).hasClass(filterVal)) {
					jQuery(this).fadeOut('normal').addClass('hiddenx');
				} else {
					jQuery(this).fadeIn('slow').removeClass('hiddenx');
					//jQuery(this).hasClass("ref_k").fadeIn('slow').removeClass('hiddenx');
				}	}
			});
		}
		nS3.walk(0,false,false);
		return false;
	});
		var nS4 = new noobSlide({
			mode: 'vertical',
			box: $('abd_icdis_car'),
			items: $$('#abd_icdis_car h3'),
			size: 184,
			handles: $$('#abd_icdis_car div'),
			addButtons: {previous: $('p4'), next: $('n4') },
			fxOptions: {
				duration: 800,
				transition: Fx.Transitions.Back.easeOut,
				wait: false
			},
			onWalk: function(currentItem,currentHandle){
			}
		});
		nS4.walk(0,false,true);


	jQuery('ul#filter4 li').click(function() {
		nS4.walk(0,false,false);
		jQuery('ul#filter4 .current').animate({opacity: 0.5},800).removeClass('current');
		jQuery(this).addClass('current').animate({opacity: 1},800);
		var filterVal = jQuery(this).find('a').attr("title")
		if(filterVal == 'hepsi') {
			jQuery('#abd_icdis_car div.hiddenx').fadeIn('slow');

		} else {
			
			jQuery('#abd_icdis_car div').each(function() {

				if(!jQuery(this).hasClass("z")) {

				if(!jQuery(this).hasClass(filterVal)) {
					jQuery(this).fadeOut('normal').addClass('hiddenx');
				} else {
					jQuery(this).fadeIn('slow').removeClass('hiddenx');
					//jQuery(this).hasClass("ref_k").fadeIn('slow').removeClass('hiddenx');
				}	}
			});
		}
		nS4.walk(0,false,false);
		return false;
	});

		var nS5 = new noobSlide({
			mode: 'vertical',
			box: $('abd_dekorasyon_car'),
			items: $$('#abd_dekorasyon_car h3'),
			size: 184,
			handles: $$('#abd_dekorasyon_car div'),
			addButtons: {previous: $('p5'), next: $('n5') },
			fxOptions: {
				duration: 800,
				transition: Fx.Transitions.Back.easeOut,
				wait: false
			},
			onWalk: function(currentItem,currentHandle){
			}
		});
		nS5.walk(0,false,true);


	jQuery('ul#filter5 li').click(function() {
		nS5.walk(0,false,false);
		jQuery('ul#filter5 .current').animate({opacity: 0.5},800).removeClass('current');
		jQuery(this).addClass('current').animate({opacity: 1},800);
		var filterVal = jQuery(this).find('a').attr("title")
		if(filterVal == 'hepsi') {
			jQuery('#abd_dekorasyon_car div.hiddenx').fadeIn('slow');

		} else {
			
			jQuery('#abd_dekorasyon_car div').each(function() {

				if(!jQuery(this).hasClass("z")) {

				if(!jQuery(this).hasClass(filterVal)) {
					jQuery(this).fadeOut('normal').addClass('hiddenx');
				} else {
					jQuery(this).fadeIn('slow').removeClass('hiddenx');
					//jQuery(this).hasClass("ref_k").fadeIn('slow').removeClass('hiddenx');
				}	}
			});
		}
		nS5.walk(0,false,false);
		return false;
	});


});


jQuery(function() {
    jQuery("img.thmb")
        .mouseover(function() {
			c=jQuery(this).attr("rel");
            var src = jQuery(this).attr("src").replace("/r_k/", "/r/");
            jQuery("#re"+c).attr("src", src);
        })

});

jQuery(function() {
    jQuery("#flag img")
        .mouseover(function() {
		jQuery(this).animate({opacity: 1},600);
        })
        .mouseout(function() {
			jQuery(this).animate({opacity: 0.3},600);

        })
});
jQuery(function() {
    jQuery(".ref_im")
        .mouseover(function() {
		jQuery(this).find('img').animate({opacity: 0.5},600);
		jQuery(this).find('span').animate({opacity: 1},600);
        })
        .mouseout(function() {
		jQuery(this).find('img').animate({opacity: 1},600);
		jQuery(this).find('span').animate({opacity: 0.5},600);

        })
});



jQuery(function() {
    jQuery("#iyibiri_logo")
        .mouseover(function() {
		jQuery(this).stop().animate({'left' : "0px"},{queue:false, duration:250 })
		jQuery(this).animate({opacity: 1},250);

        })
        .mouseout(function() {
		jQuery(this).stop().animate({'left' : "-50px"},{queue:false, duration:250 })
		jQuery(this).animate({opacity: 0.6},250);

        })
});


jQuery(function() {
    jQuery("#menu_a div")
        .mouseover(function() {
			var i=jQuery(this).attr("id");
			//if (jQuery('#'+i+'x').is(":hidden")) {
            //var src = jQuery("img",this).attr("src").replace(".", "x.");
            //jQuery("img",this).attr("src", src);
			if(!jQuery(this).hasClass('secili')){jQuery(this).animate({opacity: 0.9},600)};
			//if (jQuery('#'+i+'x').is(":hidden")) {jQuery('#'+i+'x').slideDown("slow")};

		//}
		//jQuery(this).append('<div id=s'+this+' style=position:absolute;left:0;top:0><img src='+src+'></div>');

        })
        .mouseout(function() {
           //var src = jQuery("img",this).attr("src").replace("x", "");
           //jQuery("img",this).attr("src", src);
			if(!jQuery(this).hasClass('secili')){jQuery(this).animate({opacity: 0.5},600)};

			//var i=jQuery(this).attr("id");
			//if (jQuery('#'+i+'x').is(":hidden")) {}else{jQuery('#'+i+'x').slideUp("slow")};

        })

});



function RefDegis(i){
//jQuery('#abd_ibadethane_car').load('referans.asp?id='+i);
}



function Tasi(al){
if (sonbolum){EfektKapat(sonbolum,al)}else{EfektAc(tasinereye)}
sonbolum=al;
}

function EfektAc(al){
	if (al=="anasayfa"){

		//jQuery('#galleryblank').animate({opacity: 1},{queue:false, duration:1000 });
		if(jQuery('#refa').html()!=jQuery('#ref').html()){jQuery('#ref').html(jQuery('#refa').html())};
		document.title=title_anasayfa;
		jQuery('#a5').addClass('secili').animate({opacity: 1},250);
		jQuery('#abd_anasayfa').animate({'left' : "15px"},{queue:false, duration:1250 })
		jQuery('#abd_anasayfa').animate({opacity: 1},{queue:false, duration:2400 });

			jQuery("#abd_anasayfa").queue(function()
			{
				jQuery('#abd_sag').animate({'left' : "325px"},{queue:false, duration:1500 })
				jQuery('#abd_sag').animate({opacity: 1},{queue:false, duration:2400 });
				//jQuery('#abd_anasayfa_t').sifr({path: '/f/', font: 'myriad',textAlign:'justify',width:'450px', color:'#000'});
				//jQuery('#abd_anasayfa_b').sifr({path: '/f/', font: 'myriad', color:'#444'});
				//jQuery('#galleryblank').animate({opacity: 0},{queue:false, duration:1000 });
				jQuery(this).dequeue();
			});
	}
	else if (al=="hakkimizda"){

		document.title=title_hakkimizda;
		jQuery('#a1').addClass('secili').animate({opacity: 1},250);
		jQuery('#abd_hakkimizda').animate({'left' : "15px"},{queue:false, duration:1250 })
		jQuery('#abd_hakkimizda').animate({opacity: 1},{queue:false, duration:2400 });

	}
	else if (al=="basinda"){

		document.title=title_basinda;
		jQuery('#a2').addClass('secili').animate({opacity: 1},250);
		jQuery('#abd_basinda').animate({'left' : "15px"},{queue:false, duration:1250 })
		jQuery('#abd_basinda').animate({opacity: 1},{queue:false, duration:2400 });

	}
	else if (al=="referans"){
		jQuery('#abd_referans_t').jScrollPane();
		document.title=title_referans;
		jQuery('#a3').addClass('secili').animate({opacity: 1},250);
		jQuery('#abd_referans').animate({'left' : "15px"},{queue:false, duration:1250 })
		jQuery('#abd_referans').animate({opacity: 1},{queue:false, duration:2400 });

	}
	else if (al=="ibadethane"){


		jQuery.getScript("/ref.img.asp?id=1");
		if(jQuery('#refa').html()!=jQuery('#ref').html()){jQuery('#ref').html(jQuery('#refa').html())};
		document.title=title_ibadethane;

		jQuery('#m1').addClass('secili').animate({opacity: 1},250);
		jQuery('#abd_ibadethane').animate({'left' : "0px"},{queue:false, duration:1250 })
		jQuery('#abd_ibadethane').animate({opacity: 1},{queue:false, duration:2400 });
		jQuery('#abd_ibadethane span').sifr({path: '/f/', font: 'myriad',backgroundColor:'#000'});

	}

	else if (al=="otelspa"){
		jQuery.getScript("/ref.img.asp?id=2");
		if(jQuery('#refo').html()!=jQuery('#ref').html()){jQuery('#ref').html(jQuery('#refo').html())};
		document.title=title_otelspa;

		jQuery('#m2').addClass('secili').animate({opacity: 1},250);
		jQuery('#abd_otelspa').animate({'left' : "0px"},{queue:false, duration:1250 })
		jQuery('#abd_otelspa').animate({opacity: 1},{queue:false, duration:2400 });
		jQuery('#abd_otelspa span').sifr({path: '/f/', font: 'myriad',backgroundColor:'#000'});

	}


	else if (al=="hamam"){
		jQuery.getScript("/ref.img.asp?id=3");
		if(jQuery('#refh').html()!=jQuery('#ref').html()){jQuery('#ref').html(jQuery('#refh').html())};
		document.title=title_hamam;

		jQuery('#m3').addClass('secili').animate({opacity: 1},250);
		jQuery('#abd_hamam').animate({'left' : "0px"},{queue:false, duration:1250 })
		jQuery('#abd_hamam').animate({opacity: 1},{queue:false, duration:2400 });
		jQuery('#abd_hamam span').sifr({path: '/f/', font: 'myriad',backgroundColor:'#000'});

	}

	else if (al=="icdis"){
		jQuery.getScript("/ref.img.asp?id=4");
		if(jQuery('#refi').html()!=jQuery('#ref').html()){jQuery('#ref').html(jQuery('#refi').html())};
		document.title=title_icdis;

		jQuery('#m4').addClass('secili').animate({opacity: 1},250);
		jQuery('#abd_icdis').animate({'left' : "0px"},{queue:false, duration:1250 })
		jQuery('#abd_icdis').animate({opacity: 1},{queue:false, duration:2400 });
		jQuery('#abd_icdis span').sifr({path: '/f/', font: 'myriad',backgroundColor:'#000'});

	}

	else if (al=="dekorasyon"){
		jQuery.getScript("/ref.img.asp?id=5");
		if(jQuery('#refd').html()!=jQuery('#ref').html()){jQuery('#ref').html(jQuery('#refd').html())};
		document.title=title_dekorasyon;

		jQuery('#m5').addClass('secili').animate({opacity: 1},250);
		jQuery('#abd_dekorasyon').animate({'left' : "0px"},{queue:false, duration:1250 })
		jQuery('#abd_dekorasyon').animate({opacity: 1},{queue:false, duration:2400 });
		jQuery('#abd_dekorasyon span').sifr({path: '/f/', font: 'myriad',backgroundColor:'#000'});

	}

	else if (al=="iletisim"){
		//jQuery('#ref').html(jQuery('#refd').html())
		document.title=title_iletisim;
		jQuery('#a4').addClass('secili').animate({opacity: 1},250);
		jQuery('#abd_iletisim').animate({'left' : "15px"},{queue:false, duration:1250 })
		jQuery('#abd_iletisim').animate({opacity: 1},{queue:false, duration:2400 });
	}

}

function EfektKapat(al,al2){
	if (al=="anasayfa"){
		jQuery('#a5').removeClass('secili').animate({opacity: 0.6},250);
		jQuery('#abd_anasayfa').animate({'left' : "-701px"},{queue:false, duration:950 })
		jQuery('#abd_anasayfa').animate({opacity: 0},{queue:false, duration:950 });
		jQuery('#abd_sag').animate({'left' : "-701px"},{queue:false, duration:950 })
		jQuery('#abd_sag').animate({opacity: 0},{queue:false, duration:950 });
		EfektAc(al2);

	}
	else if (al=="hakkimizda"){
		jQuery('#a1').removeClass('secili').animate({opacity: 0.6},250);
		jQuery('#abd_hakkimizda').animate({'left' : "-701px"},{queue:false, duration:950 })
		jQuery('#abd_hakkimizda').animate({opacity: 0},{queue:false, duration:950 });
		EfektAc(al2);

	}
	else if (al=="basinda"){
		jQuery('#a2').removeClass('secili').animate({opacity: 0.6},250);
		jQuery('#abd_basinda').animate({'left' : "-701px"},{queue:false, duration:950 })
		jQuery('#abd_basinda').animate({opacity: 0},{queue:false, duration:950 });
		EfektAc(al2);

	}
	else if (al=="referans"){
		jQuery('#a3').removeClass('secili').animate({opacity: 0.6},250);
		jQuery('#abd_referans').animate({'left' : "-701px"},{queue:false, duration:950 })
		jQuery('#abd_referans').animate({opacity: 0},{queue:false, duration:950 });
		EfektAc(al2);

	}
	else if (al=="ibadethane"){
		jQuery('#m1').removeClass('secili').animate({opacity: 0.6},250);
		jQuery('#abd_ibadethane').animate({'left' : "-701px"},{queue:false, duration:950 })
		jQuery('#abd_ibadethane').animate({opacity: 0},{queue:false, duration:950 });
		EfektAc(al2);

	}
	else if (al=="otelspa"){
		jQuery('#m2').removeClass('secili').animate({opacity: 0.6},250);
		jQuery('#abd_otelspa').animate({'left' : "-701px"},{queue:false, duration:950 })
		jQuery('#abd_otelspa').animate({opacity: 0},{queue:false, duration:950 });
		EfektAc(al2);

	}

	else if (al=="hamam"){
		jQuery('#m3').removeClass('secili').animate({opacity: 0.6},250);
		jQuery('#abd_hamam').animate({'left' : "-701px"},{queue:false, duration:950 })
		jQuery('#abd_hamam').animate({opacity: 0},{queue:false, duration:950 });
		EfektAc(al2);

	}

	else if (al=="icdis"){
		jQuery('#m4').removeClass('secili').animate({opacity: 0.6},250);
		jQuery('#abd_icdis').animate({'left' : "-701px"},{queue:false, duration:950 })
		jQuery('#abd_icdis').animate({opacity: 0},{queue:false, duration:950 });
		EfektAc(al2);

	}
	else if (al=="dekorasyon"){
		jQuery('#m5').removeClass('secili').animate({opacity: 0.6},250);
		jQuery('#abd_dekorasyon').animate({'left' : "-701px"},{queue:false, duration:950 })
		jQuery('#abd_dekorasyon').animate({opacity: 0},{queue:false, duration:950 });
		EfektAc(al2);

	}
	else if (al=="iletisim"){
		jQuery('#a4').removeClass('secili').animate({opacity: 0.6},250);
		jQuery('#abd_iletisim').animate({'left' : "-701px"},{queue:false, duration:950 })
		jQuery('#abd_iletisim').animate({opacity: 0},{queue:false, duration:950 });
		EfektAc(al2);

	}

}

function slideShow() {
 	jQuery('#gallery a').css({opacity: 0.0});
	jQuery('#gallery a:first').css({opacity: 1.0});

 	jQuery('#logo_b_r_t_d span').css({opacity: 0.0});
 	jQuery('#logo_b_r_t_d span').css({'margin-left': '+50px'});
	jQuery('#logo_b_r_t_d span:first').css({opacity: 1.0});
 	jQuery('#logo_b_r_t_d span:first').css({'margin-left': '0px'});

	referansanim2=setInterval('gallery()',6000);	
}
 
function gallery() {
	var current = (jQuery('#gallery a.show')?  jQuery('#gallery a.show') : jQuery('#gallery a:first'));
	var current2 = (jQuery('#logo_b_r_t_d span.show')?  jQuery('#logo_b_r_t_d span.show') : jQuery('#logo_b_r_t_d span:first'));
	var next = ((current.next().length) ? ((current.next().hasClass('caption'))? jQuery('#gallery a:first') :current.next()) : jQuery('#gallery a:first'));	
	var next2 = ((current2.next().length) ? ((current2.next().hasClass('caption2'))? jQuery('#logo_b_r_t_d span:first') :current2.next()) : jQuery('#logo_b_r_t_d span:first'));	


if (next.find('img').attr("src").indexOf('?')!=-1){next.find('img').attr("src", next.find('img').attr('src').replace("/i/s.png?", ""))};

	next.css({opacity: 0.0})
	.addClass('show')
	.animate({opacity: 1.0}, 1000);
	next2.css({opacity: 0.0})
	.addClass('show')
	.animate({opacity: 1.0}, {queue:false, duration:1000 })
	.animate({'marginLeft': '-=50px'}, 1000);
	current.animate({opacity: 0.0}, 600)
	.removeClass('show');
	current2.animate({opacity: 0.0}, {queue:false, duration:1000 })
	.animate({'marginLeft': '+=50px'}, 600)
	.removeClass('show');
}



jQuery.easing['BounceEaseOut'] = function(p, t, b, c, d) {
	if ((t/=d) < (1/2.75)) {
		return c*(7.5625*t*t) + b;
	} else if (t < (2/2.75)) {
		return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
	} else if (t < (2.5/2.75)) {
		return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
	} else {
		return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
	}
};


jQuery(document).ready(function() {
//    jQuery('#abd_ibadethane_car').jcarousel({
//       vertical: true,
//        scroll: 2,
//        easing: 'BounceEaseOut',
//        animation: 1000
//    });	

jQuery('#hold2').css({opacity: 0});
jQuery('#m1').css({opacity: 0});
jQuery('#m2').css({opacity: 0});
jQuery('#m3').css({opacity: 0});
jQuery('#m4').css({opacity: 0});
jQuery('#m5').css({opacity: 0});
jQuery('#a1').css({opacity: 0});
jQuery('#a2').css({opacity: 0});
jQuery('#a3').css({opacity: 0});
jQuery('#a4').css({opacity: 0});
jQuery('#a5').css({opacity: 0});
jQuery('#abd_iletisim').css({opacity: 0});
jQuery('#abd_ibadethane').css({opacity: 0});
jQuery('#abd_otelspa').css({opacity: 0});
jQuery('#abd_hamam').css({opacity: 0});
jQuery('#abd_icdis').css({opacity: 0});
jQuery('#abd_dekorasyon').css({opacity: 0});

jQuery('.ref_k').css({opacity: 0.6});
jQuery('.ref_im span').css({opacity: 0.5});
jQuery('ul.filter li').css({opacity: 0.5});
jQuery('ul.filter li.current').css({opacity: 1});


jQuery('#abd').hide();
jQuery('#menu_a').hide();
jQuery('#abd_anasayfa').css({opacity: 0});
jQuery('#abd_hakkimizda').css({opacity: 0});
jQuery('#abd_referans').css({opacity: 0});
jQuery('#abd_basinda').css({opacity: 0});
jQuery('#abd_sag').css({opacity: 0});

jQuery('#logo img').css({opacity: 0});
jQuery('#logo_b').css({opacity: 0});
jQuery('#logo_b_r').css({opacity: 0});
jQuery('#logo_b_r_t').css({opacity: 0});
jQuery('#flag img').css({opacity: 0});
jQuery('#g').css({opacity: 0});
jQuery('#iyibiri_logo').css({opacity: 0});

		jQuery('#hold2').stop().animate({'top' : "50%"},{queue:false, duration:2250 })
		jQuery('#hold2').animate({opacity: 1},2250);


});



function StartUp(){
 
setTimeout("StartUp2()",1000);

//setTimeout("jQuery('#lb').animate({'marginTop' : '-=70px'},{queue:false, duration:500 })",2500);
//setTimeout("jQuery('#lb').fadeIn(500)",2500);

jQuery(function() {
  jQuery("#gallery img").each(function() {
		jQuery(this).attr("src", jQuery(this).attr("src").replace("/i/s.png?", ""))
	  });

  jQuery("#gal img").each(function() {
		jQuery(this).attr("src", jQuery(this).attr("src").replace("/i/s.png?", ""))
	  });
 });
}

function StartUp2(){
slideShow();
		jQuery('#hold2').stop().animate({'top' : "25%"},{queue:false, duration:3450 })
		jQuery('#hold2').animate({opacity: 0},3450);


jQuery('#siyahtr_1').animate({'marginTop' : "-=100%"},{queue:false, duration:3200 }).animate({opacity: 0},3200);
jQuery('#siyahtr_2').animate({'marginTop' : "-=100%"},{queue:false, duration:3500 }).animate({opacity: 0},3500);
jQuery('#siyahtr_3').animate({'marginTop' : "-=100%"},{queue:false, duration:3800 }).animate({opacity: 0},3800);
jQuery('#siyahtr_4').animate({'marginTop' : "-=100%"},{queue:false, duration:4100 }).animate({opacity: 0},4100);
jQuery('#siyahtr_5').animate({'marginTop' : "-=100%"},{queue:false, duration:4400 }).animate({opacity: 0},4400);
jQuery('#siyahtr_6').animate({'marginTop' : "-=100%"},{queue:false, duration:4700 }).animate({opacity: 0},4700);
jQuery('#siyahtr_7').animate({'marginTop' : "-=100%"},{queue:false, duration:5000 }).animate({opacity: 0},5000);
jQuery('#siyahtr_8').animate({'marginTop' : "-=100%"},{queue:false, duration:5300 }).animate({opacity: 0},5300);
jQuery('#siyahtr_9').animate({'marginTop' : "-=100%"},{queue:false, duration:5600 }).animate({opacity: 0},5600);
jQuery('#siyahtr_10').animate({'marginTop' : "-=100%"},{queue:false, duration:5900 }).animate({opacity: 0},5900);
/*
jQuery('#siyahtr_1a').animate({'marginTop' : "+=100%"},{queue:false, duration:3200 }).animate({opacity: 0},3200);
jQuery('#siyahtr_2a').animate({'marginTop' : "+=100%"},{queue:false, duration:3500 }).animate({opacity: 0},3500);
jQuery('#siyahtr_3a').animate({'marginTop' : "+=100%"},{queue:false, duration:3800 }).animate({opacity: 0},3800);
jQuery('#siyahtr_4a').animate({'marginTop' : "+=100%"},{queue:false, duration:4100 }).animate({opacity: 0},4100);
jQuery('#siyahtr_5a').animate({'marginTop' : "+=100%"},{queue:false, duration:4400 }).animate({opacity: 0},4400);
jQuery('#siyahtr_6a').animate({'marginTop' : "+=100%"},{queue:false, duration:4700 }).animate({opacity: 0},4700);
jQuery('#siyahtr_7a').animate({'marginTop' : "+=100%"},{queue:false, duration:5000 }).animate({opacity: 0},5000);
jQuery('#siyahtr_8a').animate({'marginTop' : "+=100%"},{queue:false, duration:5300 }).animate({opacity: 0},5300);
jQuery('#siyahtr_9a').animate({'marginTop' : "+=100%"},{queue:false, duration:5600 }).animate({opacity: 0},5600);
jQuery('#siyahtr_10a').animate({'marginTop' : "+=100%"},{queue:false, duration:5900 }).animate({opacity: 0},5900);
*/
jQuery('#siyahtr').animate({opacity: 0},4000);

	jQuery("#siyahtr").queue(function()
	{jQuery('#hold2').hide();
		jQuery('#logo_b').animate({'marginLeft' : "+=200px"},{queue:false, duration:2500 })
		jQuery('#logo_b').animate({opacity: 0.7},2500);
			jQuery("#logo_b").queue(function()
			{
				jQuery('#logo_b_r').animate({width : "515px"},{queue:false, duration:1200 })
				jQuery('#logo_b_r').animate({opacity: 0.4},1200);
				jQuery('#logo img').animate({'marginTop' : "+=45px"},{queue:false, duration:2500 })
				jQuery('#logo img').animate({opacity: 1},2500);
					jQuery("#logo_b_r").queue(function()
					{
						jQuery('#flag img').animate({opacity: 0.3},1200);
						jQuery('#logo_b_r_t').animate({'marginRight' : "+=220px"},{queue:false, duration:1200 })
						jQuery('#logo_b_r_t').animate({opacity: 0.6},1200);
						jQuery('#menu_a').show();

						jQuery('#m5').animate({'marginTop' : "+=17px"},{queue:false, duration:200 }).animate({opacity: 0.6},200);
						jQuery('#m4').animate({'marginTop' : "+=17px"},{queue:false, duration:300 }).animate({opacity: 0.6},300);
						jQuery('#m3').animate({'marginTop' : "+=17px"},{queue:false, duration:400 }).animate({opacity: 0.6},400);
						jQuery('#m2').animate({'marginTop' : "+=17px"},{queue:false, duration:500 }).animate({opacity: 0.6},500);
						jQuery('#m1').animate({'marginTop' : "+=17px"},{queue:false, duration:600 }).animate({opacity: 0.6},600);
						jQuery('#a1').animate({'marginTop' : "+=17px"},{queue:false, duration:500 }).animate({opacity: 0.6},500);
						jQuery('#a2').animate({'marginTop' : "+=17px"},{queue:false, duration:800 }).animate({opacity: 0.6},800);
						jQuery('#a3').animate({'marginTop' : "+=17px"},{queue:false, duration:1100 }).animate({opacity: 0.6},1100);
						jQuery('#a4').animate({'marginTop' : "+=17px"},{queue:false, duration:1400 }).animate({opacity: 0.6},1400);
						jQuery('#a5').animate({'marginTop' : "+=17px"},{queue:false, duration:1700 }).animate({opacity: 0.6},1700);

							jQuery("#a5").queue(function()
							{
								jQuery('#abd').animate({opacity: 0.6},{queue:false, duration:1000 });
								jQuery('#abd').slideToggle(1200)
									jQuery("#abd").queue(function()
									{
										jQuery('#iyibiri_logo').animate({'left' : "-50px"},{queue:false, duration:1200 })
										jQuery('#iyibiri_logo').animate({opacity: 0.6},1200);

										Tasi(tasinereye);
										jQuery(this).dequeue();
									});								//jQuery('#g').animate({width : "782px"},{queue:false, duration:3200 })
								//jQuery('#g').animate({opacity: 1},3200);

								jQuery(this).dequeue();
							});

						jQuery(this).dequeue();
					});
				jQuery(this).dequeue();
			});
		jQuery(this).dequeue();
	});
}
