$(document).ready(function(){
$(".isik").click(isik);
// google +1 javascript kodları
	window.___gcfg = {lang: 'tr'};
  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();
//google +1 bitti

// twiter
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");
// twitter bitti



// gooogle analitycs kodunuzu buraya ekleyin..
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-20058816-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
// google analitycs kod bitisi

	
}); // document.ready bitisi




// slider kodları...
$(function() {
$("#foo2").carouFredSel({
	circular: false,
	infinite: false,
	auto 	: false,
	scroll	: {
		items	: "page"
	},
	prev	: {	
		button	: "#geri",
		key		: "left"
	},
	next	: { 
		button	: "#ileri",
		key		: "right"
	}
});
});
// slider kodları bitti...

function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}

// ışıkları söndür..



function isik() {
$(".isik").css({
			backgroundColor:	"#000",
			opacity:			0.9,
		}).toggle("slow");
var neyapak = $("span.isiklar").attr("id");
if(neyapak=="Sondur") {
$("span.isiklar a").html('Işıkları Yak');
$("span.isiklar").attr("id","Yak");
} else {
$("span.isiklar a").html('Işıkları Söndür');
$("span.isiklar").attr("id","Sondur");
}
}
