﻿$(document).ready(function() {

//** urun detay popup**//
$('.urundetay').popupWindow({
centerBrowser: 1,
height:480,
width:680,
scrollbars:'false',
resizable:false,
status:false,
menubar:false
}); 
    
    

    //** main menu **//



$('#professional,#news').hover(
			function() {
		        if ($('ul', this).is(':hidden')) {
			        $('ul', this).slideDown(400);
			    }
			},
			function() {
			    if ($('ul', this).is(':visible')) {
			        $('ul', this).hide();
			    }
			}
			);

$('#products').hover(
			function() {
                if ($('#products-c').is(':hidden')) {
                    $('#products-c').slideDown(400);
			    }
			},
			function() {
			    if ($('#products-c').is(':visible')) {
			        $('#products-c').hide();
			    }
			}
			);

    //** acilir kapanir **//

    $('a#toggle').click(function() {
        var toggleelement = this
        var toggleid = $(toggleelement).attr('name');

        $('#' + toggleid).toggle(300);
        //location.href = "#tavsiye";
        $('html,body').animate({ scrollTop: $("#tavsiye").offset().top }, 'slow');


        return false;
    });



 //** light box**//

    $("a[rel='photo']").colorbox({ slideshow: true, slideshowSpeed: 5000 });
    $(".big").colorbox({ });
    $(".thickbox").colorbox({ iframe: true, innerWidth: 608, innerHeight: 342 });
    $("#popme").colorbox({ open: true, inline: true, href: "#popup" });
    $("#fullmap").colorbox({ iframe: true, width: "90%", height: "90%" });
   
});
var futura = { src: '/flash/futura.swf' };
sIFR.activate(futura);
sIFR.replace(futura, { selector: '#content-main-left h2,#content-main-right h2', wmode: 'transparent', css: ['.sIFR-root {color:#efefef;font-size: 14px;}'] });
sIFR.replace(futura, { selector: '#urunler-left h2', wmode: 'transparent', css: ['.sIFR-root {color:#666666;font-size: 16px;}'] });
sIFR.replace(futura, { selector: '#content-left h2', wmode: 'transparent', css: ['.sIFR-root {color:#666666;font-size: 16px;}'] });
sIFR.replace(futura, { selector: 'h1', wmode: 'transparent', css: ['.sIFR-root {color:#ffffff;font-size: 20px;}'] });

sIFR.replace(futura, { selector: 'h2', wmode: 'transparent', css: ['.sIFR-root {color:#efefef;font-size: 16px;}'] });

