
﻿
var t;var objMyImage,objMyImage2,objMyImage3,objMyImage444,objMyImage4,objMyImage91,objMyImage61,objMyImage5,objMyImage6,objMyImage7,objMyImage8,objMyImage9,objMyImage10,objMyImage11,objMyImage12,objMyImage41,objMyImage441,objMyImage4441=null;function init(){}
function initsub(){objMyImage=new OpacityObject('submain_left','../theme/v01/images/transbg');objMyImage.setBackground();objMyImage2=new OpacityObject('submain_right','../theme/v01/images/transbg');objMyImage2.setBackground();objMyImage4=new OpacityObject('footer_c','../theme/v01/images/transbg3');objMyImage4.setBackground();objMyImage41=new OpacityObject('footer_cc','../theme/v01/images/transbg3');objMyImage41.setBackground();objMyImage441=new OpacityObject('footer_cc','../../theme/v01/images/transbg3');objMyImage441.setBackground();objMyImage4441=new OpacityObject('footer_cc','../../../theme/v01/images/transbg3');objMyImage4441.setBackground();objMyImage5=new OpacityObject('submain_left','../../theme/v01/images/transbg');objMyImage5.setBackground();objMyImage6=new OpacityObject('submain_right','../../theme/v01/images/transbg');objMyImage6.setBackground();objMyImage6=new OpacityObject('footer_c','../../theme/v01/images/transbg3');objMyImage6.setBackground();objMyImage7=new OpacityObject('submain_left',host+'/theme/v01/images/transbg');objMyImage7.setBackground();objMyImage8=new OpacityObject('submain_right',host+'/theme/v01/images/transbg');objMyImage8.setBackground();objMyImage9=new OpacityObject('footer_c',host+'/theme/v01/images/transbg3');objMyImage9.setBackground();objMyImage91=new OpacityObject('footer_cc',host+'/theme/v01/images/transbg3');objMyImage91.setBackground();}
function initsubcont(){objMyImage=new OpacityObject('main',host+'/theme/v01/images/transbg');objMyImage.setBackground();objMyImage2=new OpacityObject('linkler_main',host+'/theme/v01/images/transbg2');objMyImage2.setBackground();objMyImage3=new OpacityObject('alt_linkler_main',host+'/theme/v01/images/transbg3');objMyImage3.setBackground();objMyImage4=new OpacityObject('footer_c',host+'/theme/v01/images/transbg3');objMyImage4.setBackground();objMyImage41=new OpacityObject('footer_cc',host+'/theme/v01/images/transbg3');objMyImage41.setBackground();}
function foraspen(){objMyImage=new OpacityObject('main',host+'/theme/v01/images/transbg');objMyImage.setBackground();objMyImage4=new OpacityObject('footer_c',host+'/theme/v01/images/transbg3');objMyImage4.setBackground();objMyImagex4=new OpacityObject('footer_cc',host+'/theme/v01/images/transbg3');objMyImagex4.setBackground();objMyImage22=new OpacityObject('main',host+'/theme/v01/images/transbg');objMyImage22.setBackground();objMyImage44=new OpacityObject('footer_c',host+'/theme/v01/images/transbg3');objMyImage44.setBackground();objMyImagex44=new OpacityObject('footer_cc',host+'/theme/v01/images/transbg3');objMyImagex44.setBackground();objMyImage333=new OpacityObject('main',host+'/theme/v01/images/transbg');objMyImage333.setBackground();objMyImage444=new OpacityObject('footer_c',host+'/theme/v01/images/transbg3');objMyImage444.setBackground();objMyImagex444=new OpacityObject('footer_cc',host+'/theme/v01/images/transbg3');objMyImagex444.setBackground();objMyImage33=new OpacityObject('main',host+'/theme/v01/images/transbg');objMyImage33.setBackground();objMyImage55=new OpacityObject('footer_c',host+'/theme/v01/images/transbg3');objMyImage55.setBackground();objMyImagex55=new OpacityObject('footer_cc',host+'/theme/v01/images/transbg3');objMyImagex55.setBackground();}
function pngfixmesub(){$("#header").pngfix();$("#proje_baslik").pngfix()
$("#footer_logo img").pngfix();$("#katalog img").pngfix();$("#katalog_sag img").pngfix();$("#egim img").pngfix();}
function pngfixme(){$("#header").pngfix();$("#proje_baslik").pngfix();$("#proje_baslik_main").pngfix();$("#sonraki_proje_baslik").pngfix();$("#sonraki_proje_baslik_main").pngfix();$("#linkler_main img").pngfix();$("#alt_linkler_main ul li").pngfix();$("#footer_logo img").pngfix();}
function resimDegis(resim){clearTimeout(t);t=setTimeout("slide_show()",8000);document.getElementById("resim_alani").src=resim;}
function browserKontrol(kontrol){var userAgent=navigator.userAgent.toLowerCase();$.browser.chrome=/chrome/.test(navigator.userAgent.toLowerCase());if($.browser.msie){if(kontrol=="initX"){init();}
else if(kontrol=="initsubX"){initsub();}
else if(kontrol=="initsubcontX"){initsubcont();}
else if(kontrol=="initsubX"){initsub();}
else if(kontrol=="foraspenX"){foraspen();}else{init();}}
if($.browser.chrome){userAgent=userAgent.substring(userAgent.indexOf('chrome/')+7);userAgent=userAgent.substring(0,1);$.browser.safari=false;}
if($.browser.safari){userAgent=userAgent.substring(userAgent.indexOf('version/')+8);userAgent=userAgent.substring(0,1);}
if($.browser.mozilla){if(navigator.userAgent.toLowerCase().indexOf('firefox')!=-1){userAgent=userAgent.substring(userAgent.indexOf('firefox/')+8);userAgent=userAgent.substring(0,1);if(kontrol=="initX"){$("#main").css({background:"url("+host+"/images/transbg.png) repeat scroll 0 0"});$("#linkler_main").css({background:"url("+host+"/images/transbg.png) repeat scroll 0 0"});$("#alt_linkler_main").css({background:"url("+host+"/images/transbg.png) repeat scroll 0 0"});$("#footer_c").css({background:"url("+host+"/images/transbg.png) repeat scroll 0 0"});$("#footer_cc").css({background:"url("+host+"/images/transbg.png) repeat scroll 0 0"});}
else if(kontrol=="initsubX"){initsub();}
else if(kontrol=="initsubcontX"){initsubcont();}
else if(kontrol=="initsubX"){initsub();}
else if(kontrol=="foraspenX"){foraspen();}else{init();}}
else{}}}
$(document).ready(function(){$(window).bind('load',function()
{jQuery.preloadImages=function()
{for(var i=0;i<arguments.length;i++){jQuery("<img>").attr("src",arguments[i]);}};$.preloadImages(arkaplan);});$('#load_buyuk_resim').hide();$.preloadCssImages();var speed=5000;$('#mask-gallery, #gallery li').width($('#news_slider').width());$('#gallery').width($('#news_slider').width()*$('#gallery li').length);$('#mask-gallery, #gallery li, #mask-excerpt, #excerpt li').height($('#news_slider').height());var run=setInterval('newsscoller(0)',speed);$('#gallery li:first, #excerpt li:first').addClass('selected');$('#btn-pause').click(function(){clearInterval(run);return false;});$('#btn-play').click(function(){run=setInterval('newsscoller(0)',speed);return false;});$('#btn-next').click(function(){newsscoller(0);return false;});$('#btn-prev').click(function(){newsscoller(1);return false;});$('#news_slider').hover(function(){clearInterval(run);},function(){run=setInterval('newsscoller(0)',speed);});$('#load').hide();$("#myController").jFlow({slides:"#slides",controller:".jFlowControl",slideWrapper:"#jFlowSlide",selectedWrapper:"jFlowSelected",auto:true,width:"370px",height:"115px",duration:400,prev:".jFlowPrev",next:".jFlowNext"});$(".asas").mouseover(function(){$(this).css("background-color","#565555");});$(".asas").mouseout(function(){$(this).css("background-color","#2C2C2C");});$(".urunwin").mouseover(function(){$(this).css("border","1px solid #fff");});$(".urunwin").mouseout(function(){$(this).css("border","1px solid #9E224F");});$("#galeri_item a img").mouseover(function(){$(this).css("border","3px solid #53001e");});$("#galeri_item a img").mouseout(function(){$(this).css("border","3px solid #9E224F");});});function newsscoller(prev){var current_image=$('#gallery li.selected').length?$('#gallery li.selected'):$('#gallery li:first');var current_excerpt=$('#excerpt li.selected').length?$('#excerpt li.selected'):$('#excerpt li:first');if(prev){var next_image=(current_image.prev().length)?current_image.prev():$('#gallery li:last');var next_excerpt=(current_excerpt.prev().length)?current_excerpt.prev():$('#excerpt li:last');}else{var next_image=(current_image.next().length)?current_image.next():$('#gallery li:first');var next_excerpt=(current_excerpt.next().length)?current_excerpt.next():$('#excerpt li:first');}
$('#excerpt li, #gallery li').removeClass('selected');next_image.addClass('selected');next_excerpt.addClass('selected');$('#mask-gallery').scrollTo(next_image,800);$('#mask-excerpt').scrollTo(next_excerpt,800);}
function emailEkle(){var forminfo=$("#mail_listesi").serialize();$.ajax({type:"GET",url:"index.ajax.php",data:"mode=mail_list&"+forminfo,success:function(msg){$("#mail_listesi_txt").val(msg);}});}
function iletisim_form_gonder(){var data=$("#iletisim_formu").serialize();$.ajax({type:"POST",url:"index.ajax.php",data:"mode=contact_form&"+data,success:function(msg){$("#cevap_form").html(msg);$("#sifre").html('<img src="security.jpg">');}});}
function slide_show(){var $deger=$("#proje_win").attr("rel");clearTimeout(t);if($deger!=""){ayax('projeler','#projeler_main','anasayfa',$deger);}}
function anasayfaGaleri(){$('#photos').galleryView({panel_width:500,panel_height:300,frame_width:80,frame_height:60,overlay_color:'#222',overlay_text_color:'white',caption_text_color:'#222',background_color:'transparent',border:'none',easing:'easeInOutQuad',pause_on_hover:true,filmstrip_position:'bottom'});}
function ayaxPost(formid,sonuc,mode){var form=$("#"+formid).serialize();var data="mode="+mode+"&"+form+"&";$.ajax({type:"POST",url:"index.ajax.php",data:data,success:function(msg){$(sonuc).html(msg);}});}
function ayax(formid,sonuc,mode){clearTimeout(t);var form=$("#"+formid).serialize();var data="mode="+mode+"&"+form+"&";$.ajax({type:"GET",url:"index.ajax.php",data:data,success:function(msg){$(sonuc).html(msg);t=setTimeout("slide_show()",8000);}});}
