﻿function w3(){
!window.jQuery && document.write('<script src="/js/jquery-1.4.3.min.js"><\/script>');
$(document).ready(function() {
	$("a#example").fancybox({
		'titleShow'		: false,
		'transitionIn'	: 'elastic',
		'transitionOut'	: 'elastic'
	});
	$("a[rel=example_group]").fancybox({
		'transitionIn'		: 'elastic',
		'transitionOut'		: 'elastic',
		'titlePosition' 	: 'over',
		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
			return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
		}
	});
	$("#various").fancybox({
		'titlePosition'		: 'inside',
		'transitionIn'		: 'none',
		'transitionOut'		: 'none'
	});
});
}
function w3css(){
htkod='<style type="text/css">h1 {filter:alpha(opacity=30); -moz-opacity:0.3; -khtml-opacity: 0.3; opacity: 0.3}</style>'
document.write(htkod);
ytcss='<link rel="stylesheet" type="text/css" href="/js/fancybox/jquery.fancybox-1.3.4.css" media="screen" />'
document.write(ytcss);
}
var durum=0
var yol=""
var kac=0
kitap=document.getElementById("kitabulhayat")
function poz(ust,sol,sure){
$("#kitabulhayat").animate({top:ust,left:sol},sure);
}
function koz(ust,sol,sure){
$("#kayrac").animate({top:ust,left:sol},sure);
}
function foz(ust,sol,sure){
$("#fihrist").animate({top:ust,left:sol},sure);
}
function indir(){
if (durum<1)
  {
  	poz(-313,0,250)
  	poz(-315,0,100)
	durum=1
  }
}
function kaldir(){
if (durum==1)
  {
  	poz(-385,0,400)
	durum=0
  }
}
function dur(){
if (durum<2)
  {
  	poz(0,0,500)
	poz(-5,0,100)
	durum=2
  }
else
  {
  	poz(-385,0,500)
  	poz(-380,0,100)
  	poz(-385,0,200)
	durum=0
  }
}
function git(){location.href = yol}
function gitti(bu){
	if (durum>0){
 	$("#sf").animate({opacity:0,top:-100}, 800 );
  	poz(-385,0,500)
  	poz(-380,0,100)
  	poz(-385,0,200)
	yol=bu.href
	setTimeout("git()",800)
	return false
	}
	else {
	 $("#sf").animate({opacity:0,top:-100}, 800 );
	yol=bu.href
	setTimeout("git()",800)
	return false
	}
}
function kaydirarama(){
 	$("#arama").animate({left:0}, 300 );
	document.getElementById("kaydirarama").style.display="none"
	}
function gonderdi(){
	document.getElementById("kayanarama").submit()
	}
function gonderi(){
  	poz(-385,0,500)
  	poz(-380,0,100)
  	poz(-385,0,200)
 	$("#sf").animate({opacity:0,top:-100}, 800 );
	setTimeout("gonderdi()",800)
	return false
}
function cek(kim){
  	koz(-260,0,500)
  	koz(0,0,500)
  	foz(-260,0,500)
  	foz(0,0,500)
	kac=kim
	setTimeout("it()",500)
}
function it(){
lan="l"+kac
document.getElementById("l0").style.display="none";
document.getElementById("l1").style.display="none";
document.getElementById("l2").style.display="none";
document.getElementById("l3").style.display="none";
document.getElementById(lan).style.display="block";
}

function sifirla(bu,ne){
var bune = bu.value;
if(bune==ne) {bu.value = "";}
}
function sifirla2(bu,ne){
var bune = bu.value;
if(bune==""){bu.value = ne;}
}
function postakontrol(kim){
	posta=document.getElementById(kim).value
	if (posta.indexOf(".") > 1 && posta.indexOf("@") > 1){
	return true
	}
	document.getElementById(kim).focus()
	return false
}
function ac(kim){
	bu=document.getElementById(kim)
	if (kim=="face_begen"){
 	$("#face_yorum").animate({width:0}, 200 );
	}
	else {
	$("#face_begen").animate({width:0}, 200 );	
	}
	if (bu.style.width=="499px"){
 	$("#"+kim).animate({width:0}, 300 );
	}
	else {
 	$("#"+kim).animate({width:499}, 300 );
	}
}
function facebegen(){
htkod='<div id="face_begen"><iframe id="faceseffaf" src="http://www.facebook.com/plugins/like.php?href&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font&amp;colorscheme=dark&amp;height=40" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:40px;" allowTransparency="true"></iframe></div>'
document.write(htkod);
}
function faceyorum(oge_id){
htkod='<fb:comments xid="3000'+oge_id+'" numposts="5" width="440" publish_feed="true" colorscheme="dark"></fb:comments>'
document.write(htkod);
}
