function AddToFavorites()
{
title = document.title;
url = document.location.href;

if (window.sidebar) { // Mozilla Firefox Bookmark
window.sidebar.addPanel(title, url,"");
} else if( window.external ) { // IE Favorite
window.external.AddFavorite( url, title); }
else if(window.opera && window.print) { // Opera Hotlist
return true; }

function setHome()
  {
    if (document.all)
    {
     document.body.style.behavior='url(#default#homepage)';
     document.body.setHomePage(site_url_ver);

    }
    else if (window.sidebar)
     {
         if(window.netscape)
         {
          try
          {
          netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
          }
       catch(e)
      {
}
}
var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components. interfaces.nsIPrefBranch);
prefs.setCharPref('browser.startup.homepage',site_url_ver);
}
}
}

function swfgoster(dosya, width, height) {
	var a = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+width+'" height="'+height+'">'
			+'<param name="movie" value="/'+dosya+'" />'
			+'<param name="quality" value="high" />'
			+'<param name="menu" value="false" />'
			+'<embed src="/'+dosya+'" width="'+width+'" height="'+height+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" menu="false"></embed>'
			+'</object>';
	document.write(a);
}
function XMLHTTP_Nesnesi()
{
     var retval=null;
     try
     {
          retval=new ActiveXObject("Msxml2.XMLHTTP");
     }
     catch(e)
     {
          try
          {
               retval=new ActiveXObject("Microsoft.XMLHTTP");
          } 
          catch(oc)
          {
               retval=null;
          }
     }

     if(!retval && typeof XMLHttpRequest != "undefined") 
     {
          retval=new XMLHttpRequest();
     }

     return retval;
}

function ajax( lbl, url)
{
     document.all[lbl].innerHTML="<center><div align=center style=width:121;background-color:transparent;border:1px solid black;><img src=/images/yukle.gif width=40 height=40><br><font face=tahoma size=2 color=orange><B>Yükleniyor...</B></font></div></center>";

     var xmlHttpNesnesi = XMLHTTP_Nesnesi();

     if(xmlHttpNesnesi)
     {
          //Eğer url sayfası parametre alsayda QueryString ile gönderilmesi gerekirdi.
          xmlHttpNesnesi.open("GET",url,true);

          //C# 2.0 daki "anonymous method" lara benzeyen bir yöntem ile eventhandler ekleniyor.
          xmlHttpNesnesi.onreadystatechange=function()
          {
               if(xmlHttpNesnesi.readyState==4) 
               {
                    document.all[lbl].innerHTML=xmlHttpNesnesi.responseText;
               } 
          }; 

          xmlHttpNesnesi.send(lbl);
     }
}
function Kopya0(){
     
     var inpMetin = document.formtext.sitekodu.value;
     
     if(inpMetin.length>0)
     {
     Copied = document.formtext.sitekodu.createTextRange();
     Copied.execCommand("Copy");
     alert("\nKopyalama tamamlandı , (Ctrl) V ile yapıştırabilirsiniz.");
     }
}
//-->
function kat_git()
{
parent.document.location.href =document.formSB.katsec.value
}
	function ctOn(td)
		{
    		if(document.getElementById||(document.all && !(document.getElementById)))
     			{
      			td.style.backgroundColor="#ff0000";
				  }
		}
	function tOn(tr)
		{
    		if(document.getElementById||(document.all && !(document.getElementById)))
     			{
      				tr.style.backgroundColor="#CCFFAA";
				}
		}

	function tOut(tr)
		{
			if(document.getElementById||(document.all && !(document.getElementById)))
				{
					tr.style.backgroundColor="";
				}
		}
