/*
	
	Yazar		: Tolga Gezginis
	Yazar URI		: http://www.tolgagezginis.com
	
	Bu JS dosyasi Özteknik-Is Kollektif Sirketi'ne ait olan internet sitesi için hazirlanmistir.
	Dosya içerigi izinsiz bir sekilde kullanilamaz.
	Copyright Tolga Gezginis & Özteknik-Is

*/

$('img[@src$=.png]').ifixpng(); 
$(document).ready(function()
{
    $('img[@src$=.png]').ifixpng();

    $("div#yeni_urun_simulator").click(
    function()
    {
        window.location = "http://www.ozteknikis.com.tr/Paslanmaz-Celik-Jant-Kapagi-U47.html";
    });
	
    $("div#logo").click(
    function()
    {
        window.location = "http://www.ozteknikis.com.tr/index.html";
    });


	$('.arama_yap').click(function() { $('#arama_form').toggle(); return false; });
	
	$('div.tabbed div').hide();
	$('div.t2').show();
	$('div.tabbed ul.tabs li.t2 a').addClass('tab-current');
	$('div.tabbed ul.tabs li.c2 a').addClass('tab-current');
	$('div.tabbed ul li a').css('cursor', 'pointer');

    // Sekmeler
    $('.tabs-block div.tabbed ul.tabs li a').click(function(){
	var thisClass = this.className.slice(0,2);
	$('.tabs-block div.tabbed div').hide();
	$('.tabs-block div.' + thisClass).show();
	$('.tabs-block div.tabbed ul.tabs li a').removeClass('tab-current');
	$(this).addClass('tab-current');
	});


$('#index_menu').cycle({fx:      'custom', 
    cssBefore: {
        left: 0,  
        top:  200,  
        width: 0,  
        height: 0,  
        opacity: 1, 
        zIndex: 1 
    }, 
    animOut: {  
        opacity: 0  
    }, 
    animIn: {  
        left: 0,  
        top: 0,  
        width: 600,  
        height: 200  
    }, 
    cssAfter: {  
        zIndex: 0 
    }, 
    delay: -3000,timeout:10000,pause:1});
$('#slide_urun').cycle({fx:'scrollRight',timeout:5000,easing:'backinout',delay:-2000,next:'#navnext',pause:1});
$('#diger-urun').cycle({fx:'fade',timeout:10000,delay:-2000,next:'#navnext',pause:1});

//$('#slide_adres').cycle({fx:'scrollDown',timeout:8000,delay:-3000 ,pause:1});

$('#yeni_urun_sim_img').cycle({timeout:4000});

$("div#header").corner("bottom 15px");
$("div#foot").corner("tr bl 15px");
$("div.icerik").corner("bottom 15px");

/*$("#habersticker").newsTicker(5000);*/


/*$("#aramalink").click(function () 
{
	$("#aramalink").fadeOut();
	$("#arama").fadeIn("slow");
})*/

$('#tablar > ul').tabs({fx: { height: 'toggle' }  }).tabs('rotate', 1000);


});	 