﻿  function play() {
            jQuery('.slider .1').click();
        }

function kapat(){

$(".reklamAlaniPopup").hide();
$(".video").hide();
}
$(document).ready(function(){
    //degiskenler start
    var h = $(window).height();
    var w = $(window).width();
    var divboyu = (h / 2) + (h / 5)
    var divwidth = $('.video').width();
    var divwidth2 = divwidth / 2;
    var divheight = $('.video').height();
    var divheight2 = divheight / 2;
    var w2 = w / 2;
    var h2 = h / 2;
    var po1 = w2 - divwidth2;
    var po2 = h2 - divheight2;
    var messageShowIn = 1;
    //degiskenler stop
  
	 $(".video").css({ top: po2 + 'px', left: po1 + 'px' });
 //start
    function messagePosition() {
        //alert(divwidth2 + "/" + w2 + "/" + h2 + "/" + po1 + "/" );
        //alert(divwidth2 + "/" + w2 + "/" + h2 + "/" + po1 + "/" );
   		
        $(".messageBOXback").css({ top: po2 + 'px', left: po1 + 'px' });
    
    };
    //stop
        //start
    $(window).bind("load", LoadFrame);
    //stop

    //start
    $(window).resize(function () {
        messagePositionResize();
    });
    //stop


    //start
    function LoadFrame() {

        $(".messageback").css('min-height', divboyu);

    };
    //stop

	function messagePositionResize() {
        var h = $(window).height();
        var w = $(window).width();
        var divboyu = (h / 2) + (h / 5)
        var divwidth = $('.message').width();
        var divwidth2 = divwidth / 2;
        var divheight = $('.message').height();
        var divheight2 = divheight / 2;
        var w2 = w / 2;
        var h2 = h / 2;
        var po1 = w2 - divwidth2;
        var po2 = h2 - divheight2;

        if ($(".message").css('display') == '') {
			
            $(".messageback").css({ width: ($(window).width()), height: ($(window).height()), opacity: '0.5' });

        }

        else {

            $(".message").css({ top: po2 + 'px', left: po1 + 'px' });

            $(".messageBOXback").css({ top: po2 + 'px', left: po1 + 'px' });

        };

    };
    //stop


	$('.2').hide();
    $(".odul1").css({ opacity: 0.09 });
     
    $(".odul2").css({ opacity: 0.09 });


    $('.odulbox').hover(function() {
        $('.odul2').fadeTo("slow",1.0).pngFix( {blankgif: './images/blank.gif', allmsie: true} );
         $('.odul1').fadeTo("slow",1.0).pngFix( {blankgif: './images/blank.gif', allmsie: true} );
    		
	});

    $('.odul1').hover(function() {
            $('.odul1').fadeTo("slow",1.0).pngFix( {blankgif: './images/blank.gif', allmsie: true} );
		 $('.odul2').fadeTo("slow",1.0).pngFix( {blankgif: './images/blank.gif', allmsie: true} );
	});

   	$('.odul2').hover(function() {
          $('.odul1').fadeTo("slow",1.0).pngFix( {blankgif: './images/blank.gif', allmsie: true} );
		 $('.odul2').fadeTo("slow",1.0).pngFix( {blankgif: './images/blank.gif', allmsie: true} );
    });

	$('.slider .1').click(function() {
		 	$('.1').slideToggle();
	
			$(".slider").animate({
		            height: "500px"
		    }, 700);
		
		    $('.slider').flashembed({
				src: '/tr/swf/banner.swf', 
				version: [8, 0], 
				wmode: 'transparent', 
				menu: 'false', 
				quality: 'high', 
				allowfullscreen: 'true', 
					
			});

    		$('.1').hide();
	});
	$('.messageback').click(function() {
		 	$(this).fadeOut();
	
	});
    
//            //select all the a tag with name equal to modal
//            $('a[name=modal]').click(function (e) {
//                //Cancel the link behavior
//                e.preventDefault();

//                //Get the A tag
//                var id = $(this).attr('href');

//                //Get the screen height and width
//                var maskHeight = $(document).height();
//                var maskWidth = $(window).width();

//                //Set heigth and width to mask to fill up the whole screen
//                $('#mask').css({ 'width': maskWidth, 'height': maskHeight });

//                //transition effect		
//                $('#mask').fadeIn(0);
//                $('#mask').fadeTo("slow", 0.6);

//                //Get the window height and width
//                var winH = $(window).height();
//                var winW = $(window).width();

//                //Set the popup window to center
//                $(id).css('top', winH / 2 - $(id).height() / 2);
//                $(id).css('left', winW / 2 - $(id).width() / 2);

//                //transition effect
//                $(id).fadeIn(1000);

//            });

//            //if close button is clicked
//            $('.window .close').click(function (e) {
//                //Cancel the link behavior
//                e.preventDefault();

//                $('#mask').hide();
//                $('.window').hide();
//            });

//            //if mask is clicked
//            $('#mask').click(function () {
//                $(this).hide();
//                $('.window').hide();
//            });


});


var neo = { src: '/font/neo.swf' };
var neolight = { src: '/font/neo2.swf' };
sIFR.activate(neo);
sIFR.activate(neolight);
sIFR.replace(neo, { selector: '.menuLink font', css: [
'.sIFR-root a{float: left;width: auto;height: 20px;color: #FFFFFF;font-size: 14pt;text-decoration: none;text-align:center;}'
,'.sIFR-root a:hover{color:#fff;}',


],
    wmode: 'transparent'
});

sIFR.replace(neo, { selector: 'h1'
      ,css: [
        '.sIFR-root { text-align: left; color: #B4B4B4;font-size:20px;}'
        ,'a { text-decoration: none; }'
        ,'a:link { color: #000000; }'
        ,'a:hover { color: #CCCCCC; }'
],
    wmode: 'transparent'
});

sIFR.replace(neo, { selector: 'h4'
      ,css: [
        '.sIFR-root { text-align: left; color: #ffffff;font-size:16px;}'
        ,'a { text-decoration: none; }'
        ,'a:link { color: #000000; }'
        ,'a:hover { color: #CCCCCC; }'
],
    wmode: 'transparent'
});




