function onayla()	
{
	input_box=confirm("Bu sayfayı yazdır!");
	if (input_box==true)	
	{ 
		// Output when OK is clicked
		window.print();
//		alert ("You clicked OK"); 
	}

	else	
	{
		// Output when Cancel is clicked
//		alert (" ");
	}
}


function Browser ()
{
	this.ie = this.netscape = this.mac = this.opera = 0;
	var s = navigator.userAgent.toLowerCase ();
	this.ie = (parseFloat (s.slice (s.indexOf ("msie") + 5)));
	this.netscape = (this.ie) ? (0) : Gecko (s.indexOf ("gecko/"), s);
	this.mac = (s.indexOf ("mac") > -1);
	this.opera = (parseFloat (s.slice (s.indexOf ("opera") + 6)));
	if (this.opera) this.ie = 0;
	this.screenHeight = screen.height;
	this.screenWidth = screen.width;
	this.colorDepth = (this.netscape >= 4) ? screen.pixelDepth : screen.colorDepth;
}

var browser = new Browser ();

function Gecko (nTmp, s)
{
	if (nTmp >- 1)
	{
		nTmp = (parseFloat (s.slice (nTmp + 6)));
		if (nTmp >= 20020823) 
			nTmp = 7;
		else if(nTmp >= 20011019)
			nTmp = 6.2;
		else if(nTmp >= 20010726)
			nTmp = 6.1;
		else
			nTmp = 6;
	}
	else
	{
		nTmp = (parseFloat (s.slice (s.indexOf ("mozilla/") + 8)));
	}

	return nTmp;
}

function OpenPopupWindow (p1, p2, p3)
{
	window.open (p1, p2, p3);
}

function adpopup(adpop,w,h)
{
	window.open(adpop, "ADPopup", "resizable=no,status=no,scrollbars=no,menubar=no,toolbar=no,location=no,left=470,top=130,width=" + w + ",height=" + h + "");
}

function getextad(fbnid,furl,fwidth,fheight,fwmode,ftag,flink,ftype)
{
	document.write ("<OBJECT id=banner" + fbnid + " classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"" + fwidth + "\" height=\"" + fheight + "\" ");

	if (ftype == "roll")
	{
		document.write ( " style=\"position:absolute; z-index:100; left:" + GetAbsoluteLeft("lgadvtd") + "; top:" + GetAbsoluteTop("lgadvtd") + "\">");
	}
	else
	{
		document.write ( ">");
	}

	if (ftag == "")
	{
		document.write ("<param name=\"movie\" value=\"" + furl + "\">");
	}
	else
	{
		document.write (" <PARAM name=\"movie\" value=\"" + furl + "?" + ftag + "=" + escape(flink) + "\">");
	}

	document.write (" <param name=quality value=high>"
	+ " <param name=wmode value=\"" + fwmode + "\">");

	if (ftag == "")
	{
		document.write (" <EMBED src=\"" + furl + "?" + ftag + "=" + escape(flink) +  "\"");
	}
	else
	{
		document.write (" <EMBED src=\"" + furl + "\"");
	}
	document.write (" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" wmode=" + fwmode + " width=\"" + fwidth + "\" height=\"" + fheight + "\"></EMBED>"
	+ " </OBJECT>");
}


function getextflashfloatad(furl,fwidth,fheight,fwmode,fleft,ftop,fname,ftimeout)
{
	var s = navigator.userAgent.toLowerCase ();
	var isie = (parseFloat (s.slice (s.indexOf ("msie") + 5)));
	
	if (isie && isie >= 5)
	{
		if (ftop == '')
		{
			var docHeight = document.body.clientHeight;
			var objHeight = docHeight - 520 - 60;
			if (objHeight < 0) {objHeight = '0';}
			else {objHeight = objHeight.toString();}
			ftop = objHeight; 
		}
		var isDisplayed = GetFloatingCookie (fname + "Floating");
		if(isDisplayed != "yes")
		{
			document.write("<div id=\"FloatAdLayer\" style=\"position:absolute; width:" + fwidth + "px; height:" + fheight + "px; z-index:600; left:" + fleft + "px; top:10" + ftop + "px; visibility: show\">"
				+"  <object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"" + fwidth + "\" height=\"" + fheight + "\" align=\"\">"
				+"  <param name=movie value=\"" + furl + "\">"
				+"  <param name=quality value=High>"
				+"  <param name=\"Src\" value=\"" + furl + "\">"
				+"  <param name=\"Scale\" value=\"ShowAll\">"
				+"  <param name=wmode value=\"" + fwmode + "\"> "
				+"  <embed src=\"" + furl + "\" width=\"" + fwidth + "\" height=\"" + fheight + "\" align=\"\" quality=high scale=exactfit bgcolor=#FFFFFF type=\"application/x-shockwave-flash\"  pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"></embed>"
				+"  </object>"
				+"  </div>");
	
			setTimeout ("HideFloatAdBanner()", ftimeout);
			SetFloatingCookie (fname + "Floating", "yes");
		}
	}
}

function getextflashfloatadctag(furl,fwidth,fheight,fwmode,fleft,ftop,fname,ftimeout,fclicktag,fclickurl,fciid,fcrid)
{
	var s = navigator.userAgent.toLowerCase ();
	var isie = (parseFloat (s.slice (s.indexOf ("msie") + 5)));
	var fclickedurl = "http://www.com/ads/adredir.asp?ciid=" + fciid + "&crid=" + fcrid + "&url=" + fclickurl
	
	if (isie && isie >= 5)
	{
		if (ftop == '')
		{
			var docHeight = document.body.clientHeight;
			var objHeight = docHeight - 420 - 60;
			if (objHeight < 0) {objHeight = '0';}
			else {objHeight = objHeight.toString();}
			ftop = objHeight;
		}
		var isDisplayed = GetFloatingCookie (fname + "Floating");
		if(isDisplayed != "yes")
		{
			document.write("<div id=\"FloatAdLayer\" style=\"position:absolute; width:" + fwidth + "px; height:" + fheight + "px; z-index:600; left:" + fleft + "px; top:" + ftop + "px; visibility: show\">"
				+"  <object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"" + fwidth + "\" height=\"" + fheight + "\" align=\"\">"
				+"  <param name=movie value=\"" + furl + "?" + fclicktag + "=" + escape(fclickedurl) + "\">"
				+"  <param name=quality value=High>"
				+"  <param name=\"Src\" value=\"" + furl + "?" + fclicktag + "=" + escape(fclickedurl) + "\">"
				+"  <param name=\"Scale\" value=\"ShowAll\">"
				+"  <param name=wmode value=\"" + fwmode + "\"> "
				+"  <embed src=\"" + furl + "?" + fclicktag + "=" + escape(fclickedurl) + "\" width=\"" + fwidth + "\" height=\"" + fheight + "\" align=\"\" quality=high scale=exactfit bgcolor=#FFFFFF type=\"application/x-shockwave-flash\"  pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\"></embed>"
				+"  </object>"
				+"  </div>");
	
			setTimeout ("HideFloatAdBanner()", ftimeout);
			SetFloatingCookie (fname + "Floating", "yes");
		}
	}
}

function HideFloatAdBanner(fname)
{
	var o = document.all.item("FloatAdLayer");
	if (o == null)
		return;
	o.style.display = "none";
}

function SetFloatingCookie(sName, sValue)
{
	var strCookie = sName + "=" + escape(sValue);
	document.cookie = strCookie;
}

function GetFloatingCookie(sName)
{
	var aCookie = document.cookie.split(";");
	for (var i=0; i < aCookie.length; i++)
	{
		var aCrumb = aCookie[i].split("=");
		while(aCrumb[0].indexOf(" ")==0) 
			aCrumb[0]=aCrumb[0].substr(1);
		if (sName == aCrumb[0])
			return unescape(aCrumb[1]);
	}
	return null;
}

function GetAbsoluteLeft(objectId) {
	var o = document.all.item(objectId);
	var oLeft = o.offsetLeft;
	while (o.offsetParent != null) {   
		oParent = o.offsetParent;    
		oLeft += oParent.offsetLeft;
		o = oParent;
	}
	return oLeft;
}

function GetAbsoluteTop(objectId) {
	var o = document.all.item(objectId);
	var oTop = o.offsetTop;
	while (o.offsetParent != null) { 
		oParent = o.offsetParent;  
		oTop += oParent.offsetTop; 
		o = oParent;
	}
	return oTop;
}







// oguz ekle
// Copyright 2003 Eddie Traversa
// http://www.dhtmlnirvana.com/
// free to use as long as this copyright notice stays intact
var tags = new Array( 'span','font','div','td','tr','p','b','table','strong','emphasis','a','h1','h2','h3','pre','sub','sup','i','th','cp','ul','ol','li','dt','dd');
var pixelArray =  new Array('10','12','16','20','24','30','40');
var emArray =  new Array('0.7','0.9','1.0','1.5','2.0','2.5','3');
var initSize = 2;

function fontSizer(inc,unit) {
	if (!document.getElementById) 
		return;
	var size = initSize;
		size += inc;
	if (size < 0 ) {
		size = 0;
}
	if (size > 6 ) {
		size = 6;
}
		initSize = size;
		getBody = document.getElementsByTagName('body')[0];
	for (i = 0 ; i < tags.length ; i++ ) {
		getallTags = getBody.getElementsByTagName(tags[i]);
	for (k = 0 ; k < getallTags.length ; k++) 
		getallTags[k].style.fontSize = (unit=='px') ? pixelArray[size]+unit: emArray[size]+unit;
	}
}





	// sticky code..

	document.write ("<div align=\"center\" id=\"frmfly\" "
	 + " style=\"position:absolute; background-color:white; top:100 left:-100; width:80; display:none; visibility:visible;\"> " 	 + "  "); 
document.write ("<center><img src=/resimler/okumaozellikleri.gif border=0>");

//var urlne = String(this.location);
//var urlparcala = urlne.split("/");
//document.write("<img src=/kapaklar/");
//document.write(urlparcala[4]);
//document.write(".jpg width=80 height=110>");

document.write ("<a href=\"index.php\"><img name=\"icindekiler\" onmouseover=\"document.icindekiler.src='/resimler/icindekilerON.gif'\" onmouseout=\"document.icindekiler.src='/resimler/icindekiler.gif'\" src=\"/resimler/icindekiler.gif\" border=\"0\"></a><br><img src=\"/resimler/spacer.gif\" border=\"0\" height=2><br><img src=\"/resimler/yazia+a-.gif\" border=\"0\" align=\"center\"><img name=\"abuyuk\" onmouseover=\"document.abuyuk.src='/resimler/abuyuk.gif'\" onmouseout=\"document.abuyuk.src='/resimler/a+.gif'\" title=\"yazı boyutunu büyüt!\" src=\"/resimler/a+.gif\" border=\"0\" style=\"cursor:hand;\" onclick=\"fontSizer(1,'px')\"><img src=/resimler/spacer.gif width=4 height=4><img name=\"akucuk\" onmouseover=\"document.akucuk.src='/resimler/akucuk.gif'\" onmouseout=\"document.akucuk.src='/resimler/a-.gif'\" src=\"/resimler/a-.gif\" title=\"yazı boyutunu küçült!\"  border=\"0\" onclick=\"fontSizer(-1,'px')\" style=\"cursor:hand;\"><br><img src=/resimler/spacer.gif width=4 height=4><br><SCRIPT language=\"JavaScript\">yorum();</SCRIPT><SCRIPT language=\"JavaScript\">arkadas();</SCRIPT><img src=/resimler/spacer.gif width=4 height=4><br><img name=\"yazdir\" onmouseover=\"document.yazdir.src='/resimler/yazdirON.gif'\" onmouseout=\"document.yazdir.src='/resimler/yazdir.gif'\" src=\"/resimler/yazdir.gif\" border=\"0\" onclick=\"javascript:onayla();\" onmouseover=\"window.status=' ';\" onmouseout=\"window.status=' '\" style=\"cursor:pointer;\"></center>");





	document.write ("  "
	 + "<span style=\"cursor:hand\" onclick=\"FooterClick();\"><center><img src=\"/resimler/gizle.gif\" title=\"gizle\" border=\"0\"></center></span> "
	 + "</div>");

	document.write ("<DIV align=right id=fly2 style=\"POSITION:Absolute;top:40;left:-100;WIDTH:80;display:none;visibility:hidden;\">"
	 + " <center><span style=\"cursor:hand\" onclick=\"FooterOpen()\"><img src=\"/resimler/ufakokumasecenek.gif\" border=\"0\"><br><img src=\"/resimler/goster.gif\" title=\"göster\" border=\"0\"></center></span>"
	 + "</DIV>");

	var nOffSet = 128;
	var winwide="on"; 
	frmfly.style.posLeft = document.body.clientWidth-nOffSet;

	window.attachEvent ("onresize", HandlePositionChange);
	window.attachEvent ("onscroll", HandlePositionChange);

	if(document.body.clientWidth > 625)
	{
		setTimeout ("frmfly.style.display='';HandlePositionChange();", 500);
	}
	else
	{
		var winwide = "off";
	}

	if (document.body.clientWidth > 625)
	{
		frmfly.style.visibility = 'visible';
		fly2.style.visibility = 'hidden';
		HandlePositionChange ();
	}

//////////////////////////////////

	function FooterOpen()
	{
		frmfly.style.visibility = 'visible';
		frmfly.style.display = 'inline';
		fly2.style.visibility = 'hidden';
		HandlePositionChange ();
	}

	function FooterClick() 
	{
		frmfly.style.visibility = 'hidden';
		fly2.style.top = frmfly.style.posTop;
		fly2.style.left = frmfly.style.posLeft;
		fly2.style.visibility = 'visible';
		fly2.style.display = 'block';
	}

	function HandlePositionChange () 
	{
		with (document.body)
		{
			if (clientWidth > 625)
			{
				frmfly.style.left = clientWidth - nOffSet;
/*				frmfly.style.top = scrollTop + 2;*/
// yuzen sey oguz laci yukseklik
				frmfly.style.top = scrollTop + 100;
			}
			else if ((clientWidth > 625) && (winwide == "off"))
			{
				frmfly.style.top = scrollTop + 2;
				fly2.style.top = scrollTop+2;
				frmfly.style.left = clientWidth - nOffSet;
				fly2.style.left = clientWidth - nOffSet;
				frmfly.style.display = '';
				fly2.style.display = '';
				setTimeout ("var winwide='on';var srch='on';var frrf='on';HandlePositionChange();", 125);
			}
		}
	} 







var NS4 = (document.layers);    // Which browser?
var IE4 = (document.all);

var win = window;    // window to search.
var n   = 0;

function findInPage(str) {

  var txt, i, found;

  if (str == "")
    return false;

  // Find next occurance of the given string on the page, wrap around to the
  // start of the page if necessary.

  if (NS4) {

    // Look for match starting at the current point. If not found, rewind
    // back to the first match.

    if (!win.find(str))
      while(win.find(str, false, true))
        n++;
    else
      n++;

    // If not found in either direction, give message.

    if (n == 0)
      alert("Not found.");
  }

  if (IE4) {
    txt = win.document.body.createTextRange();

    // Find the nth match from the top of the page.

    for (i = 0; i <= n && (found = txt.findText(str)) != false; i++) {
      txt.moveStart("character", 1);
      txt.moveEnd("textedit");
    }

    // If found, mark it and scroll it into view.

    if (found) {
      txt.moveStart("character", -1);
      txt.findText(str);
      txt.select();
      txt.scrollIntoView();
      n++;
    }

    // Otherwise, start over at the top of the page and find first match.

    else {
      if (n > 0) {
        n = 0;
        findInPage(str);
      }

      // Not found anywhere, give message.

      else
        alert("Not found.");
    }
  }

  return false;
}


function yorum()
{
var urlne = String(this.location);
var urlparcala = urlne.split("/");
document.write("<a href=# onclick=\"popup('/kitapyorum/goster.php\?kitapid=");
document.write(urlparcala[4]);
document.write("')\">");
document.write("<img name=\"yorum\" onmouseout=\"document.yorum.src='/resimler/yorum.gif'\" onmouseover=\"document.yorum.src='/resimler/yorumok.gif'\" src=\"/resimler/yorum.gif\" title=\"bu kitap hakkındaki yorumları okuyun! siz de yorum yazın!\"  border=\"0\" style=\"cursor:hand;\"><br>");
document.write("</a>");
}

function arkadas()
{
var urlne = String(this.location);
var urlparcala = urlne.split("/");

document.write("<a href=# onclick=\"popup2('/kitapyorum/mail.php\?kitap=");
document.write(urlparcala[4]);
document.write("')\">");
document.write("<img name=\"arkadas\" onmouseout=\"document.arkadas.src='/resimler/arkadasok.gif'\" onmouseover=\"document.arkadas.src='/resimler/arkadas.gif'\" src=\"/resimler/arkadasok.gif\" title=\"bu kitabı arkadaşınıza duyurun!\"  border=\"0\" style=\"cursor:hand;\"><br>");
document.write("</a>");
}



// yorum popup i 
function popup(loc)
{
window.open(loc,"","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=310,height=346")
}

// arkadasina duyur popup i
function popup2(loc)
{
window.open(loc,"","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=360,height=260")
}
