/*  AspSitem Editor, internet Text Editoru
 *  Copyright (C) 2006 Mehmet Ibrahim
 *  Bu script microsoft MSDN sitelerindeki dokumandan faydalanarak AspSitem icin kodlanmistir
 *  http://msdn2.microsoft.com/en-us/library/Aa663363.aspx
 *  Buton resimleri FCKeditorden alinmistir
 *  Script bitis tarihi : 09 Eylul 2006
*/

// Butonlar
if (trto) {
  document.writeln('<div id="editorgolge" style="background-image:url(Resimler/golge.png);display:none;position:absolute;top:0px;left:0px;"></div>');
} else {
  document.writeln('<div id="editorgolge" style="background-image:url(../Resimler/golge.png);display:none;position:absolute;top:0px;left:0px;"></div>');
}
  document.writeln('<style type="text/css">.resimstyl { border:1px solid red; } .resimstyl2 { border:1px solid #F7F7F7; }</style>')
  document.writeln('<table style="BORDER-RIGHT: 0px solid; BORDER-TOP: 0px solid; BORDER-LEFT: 0px solid; WIDTH: '+ EditorGenislik +'; BORDER-BOTTOM: 0px solid; BORDER-COLLAPSE: collapse; border-width:1px;" cellspacing="0" cellpadding="0" border="0">');
  document.writeln('  <tr id="Butonlar" style="display:block;">');
  document.writeln('    <td>');
  document.writeln('<table style="BORDER-RIGHT: 0px solid; BORDER-TOP: 0px solid; BORDER-LEFT: 0px solid; WIDTH: 100%; BORDER-BOTTOM: 0px solid; BORDER-COLLAPSE: collapse;" cellspacing="0" cellpadding="0" border="0">');
  document.writeln('        <tr>');
  document.writeln('          <td style="BACKGROUND-COLOR: #F7F7F7" align="left">');
  if (EditorTip == "mini") {
  document.writeln('            <table style="BORDER-COLLAPSE: collapse;" cellspacing="0" cellpadding="1" border="0">');
  document.writeln('              <tr>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/bicimkaldir.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Editor_Cogul(Asp_Editor,Frame_Textdegisim(),\'RemoveFormat\');" name="bicimkaldir" id="bicimkaldir" height="25" alt="Biçim Kaldır" width="26">');
  document.writeln('                </td>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/kalinyazi.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Editor_Cogul(Asp_Editor,Frame_Textdegisim(),\'Bold\');" name="kalinyazi" id="kalinyazi" height="25" alt="Kalın Yaz" width="26">');
  document.writeln('                </td>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/egikyazi.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Editor_Cogul(Asp_Editor,Frame_Textdegisim(),\'Italic\');" name="egikyazi" id="egikyazi" height="25" alt="Eğik Yaz" width="26">');
  document.writeln('                </td>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/alticizik.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Editor_Cogul(Asp_Editor,Frame_Textdegisim(),\'Underline\');" name="alticizik" id="alticizik" height="25" alt="Altı Çizik" width="26">');
  document.writeln('                </td>');
  document.writeln('                <td>');
  document.writeln('<img height="25" src="'+ EditorYolu +'/resimler/ayirac.gif" width="5" unselectable="on">');
  document.writeln('				</td>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/solahizala.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Editor_Solahizala(Asp_Editor,Frame_Textdegisim());" name="solahizala" id="solahizala" height="25" alt="Sola Hizala" width="26">');
  document.writeln('                </td>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/ortayahizala.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Edotor_Ortayahizala(Asp_Editor,Frame_Textdegisim());" name="ortayahizala" id="ortayahizala" height="25" alt="Ortaya Hizala" width="26">');
  document.writeln('				</td>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/sagahizala.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Editor_Sagahizala(Asp_Editor,Frame_Textdegisim());" name="sagahizala" id="sagahizala" height="25" alt="Sağa Hizala" width="26">');
  document.writeln('                </td>');
  document.writeln('                <td>');
  document.writeln('<img height="25" src="'+ EditorYolu +'/resimler/ayirac.gif" width="5" unselectable="on">');
  document.writeln('				</td>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/linkekle.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Paletler(\'Palet\',\'Kopruekle\',\''+ EditorYolu +'/paletler/palet_link.htm\',\'330\',\'75\');" name="Kopruekle" id="Kopruekle" height="25" alt="Köprü Ekle" width="26">');
  document.writeln('               </td>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/resimekle.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Paletler(\'Palet\',\'Resimekle\',\''+ EditorYolu +'/paletler/palet_resim.htm\',\'330\',\'140\');" name="Resimekle" id="Resimekle" height="25" alt="Resim Ekle" width="26">');
  document.writeln('				</td>');
  document.writeln('                <td>');
  document.writeln('<img height="25" src="'+ EditorYolu +'/resimler/ayirac.gif" width="5" unselectable="on">');
  document.writeln('				</td>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/yazirenk.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Paletler(\'Palet\',\'forecolor\',\''+ EditorYolu +'/paletler/palet_renk.htm\',\'154\',\'104\');" name="forecolor" id="forecolor" height="25" alt="Yazı Rengi" width="34">');
  document.writeln('               </td>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/altrenk.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Paletler(\'Palet\',\'BackColor\',\''+ EditorYolu +'/paletler/palet_renk.htm\',\'154\',\'104\');" name="BackColor" id="BackColor" height="25" alt="Alt Rengi" width="34">');
  document.writeln('               </td>');
  document.writeln('                <td>');
  document.writeln('<img height="25" src="'+ EditorYolu +'/resimler/ayirac.gif" width="5" unselectable="on">');
  document.writeln('				</td>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/smileyekle.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Paletler(\'Palet\',\'InsertImage\',\''+ EditorYolu +'/paletler/palet_smiley.htm\',\'263\',\'186\');" name="InsertImage" id="InsertImage" height="25" alt="İfade Ekle" width="26">');
  document.writeln('               </td>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/tubeekle.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Paletler(\'Palet\',\'Youtube\',\''+ EditorYolu +'/paletler/palet_tube.htm\',\'330\',\'98\');" name="Flashekle" id="Youtube" height="25" alt="Youtube Ekle" width="26">');
  document.writeln('				</td>');
  document.writeln('              </tr>');
  document.writeln('            </table>');
  }
  if (EditorTip != "mini") {
  document.writeln('		  <table style="BORDER-COLLAPSE: collapse" cellspacing="0" cellpadding="1" border="0">');
  document.writeln('              <tr>');
  if (EditorTip == "admin") {
  document.writeln('			    <td><img src="'+ EditorYolu +'/resimler/kaynak.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Editor_Html_Mod(Asp_Editor,\'Butonlar\',\'HtmlKod\');Asp_Editor.focus();" name="kaynak1" id="kaynak1" height="25" alt="HTML Kaynak" width="65"></td>');
  }
  document.writeln('                <td>');
  document.writeln('<select name="select2" style="background: #F7F7F7;font-size: 11px;" onChange="Editor_Fontsec(Asp_Editor,Frame_Textdegisim(),this[this.selectedIndex].value);this.selectedIndex=0;">');
  document.writeln('                    <option selected>Font</option>');
  document.writeln('                    <option value="Arial">Arial</option>');
  document.writeln('                    <option value="Arial Black">Arial Black</option>');
  document.writeln('                    <option value="Comic Sans MS">Comic Sans MS</option>');
  document.writeln('                    <option value="Courier New">Courier New</option>');
  document.writeln('                    <option value="Georgia">Georgia</option>');
  document.writeln('                    <option value="Impact">Impact</option>');
  document.writeln('                    <option value="Lucida Console">Lucida Console</option>');
  document.writeln('                    <option value="Palatino Linotype">Palatino Linotype</option>');
  document.writeln('                    <option value="Tahoma">Tahoma</option>');
  document.writeln('                    <option value="Times New Roman">Times New Roman</option>');
  document.writeln('                    <option value="Trebuchet MS">Trebuchet MS</option>');
  document.writeln('                    <option value="Verdana">Verdana</option>');
  document.writeln('                  </select></td>');
  document.writeln('                <td>');
  document.writeln('<select name="select3" style="background: #F7F7F7;font-size: 11px;" onChange="Editor_Fontboyut(Asp_Editor,Frame_Textdegisim(),this[this.selectedIndex].value);this.selectedIndex=0;">');
  document.writeln('                    <option selected>Boyut</option>');
  document.writeln('                    <option value="1">1</option>');
  document.writeln('                    <option value="2">2</option>');
  document.writeln('                    <option value="3">3</option>');
  document.writeln('                    <option value="4">4</option>');
  document.writeln('                    <option value="5">5</option>');
  document.writeln('                    <option value="6">6</option>');
  document.writeln('					<option value="7">7</option>');
  document.writeln('                  </select></td>');
  document.writeln('                <td>');
  document.writeln('<img height="25" src="'+ EditorYolu +'/resimler/ayirac.gif" width="5">');
  document.writeln('				</td>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/linkekle.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Paletler(\'Palet\',\'Kopruekle\',\''+ EditorYolu +'/paletler/palet_link.htm\',\'330\',\'75\');" name="Kopruekle" id="Kopruekle" height="25" alt="Köprü Ekle" width="26">');
  document.writeln('               </td>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/resimekle.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Paletler(\'Palet\',\'Resimekle\',\''+ EditorYolu +'/paletler/palet_resim.htm\',\'330\',\'140\');" name="Resimekle" id="Resimekle" height="25" alt="Resim Ekle" width="26">');
  document.writeln('				</td>');
  document.writeln('                <td>');
//  if (EditorTip == "admin") {
  document.writeln('<img src="'+ EditorYolu +'/resimler/flashekle.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Paletler(\'Palet\',\'Flashekle\',\''+ EditorYolu +'/paletler/palet_flash.htm\',\'330\',\'98\');" name="Flashekle" id="Flashekle" height="25" alt="Flash Ekle" width="26">');
  document.writeln('				</td>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/playerekle.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Paletler(\'Palet\',\'Playerekle\',\''+ EditorYolu +'/paletler/palet_player.htm\',\'330\',\'98\');" name="Playerekle" id="Playerekle" height="25" alt="Medya Player Ekle" width="26">');
  document.writeln('				</td>');
  document.writeln('                <td>');
 // }
  document.writeln('<img height="25" src="'+ EditorYolu +'/resimler/ayirac.gif" width="5" unselectable="on">');
  document.writeln('				</td>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/yazirenk.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Paletler(\'Palet\',\'forecolor\',\''+ EditorYolu +'/paletler/palet_renk.htm\',\'154\',\'104\');" name="forecolor" id="forecolor" height="25" alt="Yazı Rengi" width="34">');
  document.writeln('               </td>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/altrenk.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Paletler(\'Palet\',\'BackColor\',\''+ EditorYolu +'/paletler/palet_renk.htm\',\'154\',\'104\');" name="BackColor" id="BackColor" height="25" alt="Alt Rengi" width="34">');
  document.writeln('               </td>');
  document.writeln('                <td>');
  document.writeln('<img height="25" src="'+ EditorYolu +'/resimler/ayirac.gif" width="5" unselectable="on">');
  document.writeln('				</td>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/smileyekle.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Paletler(\'Palet\',\'InsertImage\',\''+ EditorYolu +'/paletler/palet_smiley.htm\',\'263\',\'186\');" name="InsertImage" id="InsertImage" height="25" alt="İfade Ekle" width="26">');
  document.writeln('               </td>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/tubeekle.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Paletler(\'Palet\',\'Youtube\',\''+ EditorYolu +'/paletler/palet_tube.htm\',\'330\',\'98\');" name="Flashekle" id="Youtube" height="25" alt="Youtube Ekle" width="26">');
  document.writeln('				</td>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/tabloekle.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Paletler(\'Palet\',\'Tabloekle\',\''+ EditorYolu +'/paletler/palet_tablo.htm\',\'400\',\'153\');" name="Tabloekle" id="Tabloekle" height="25" alt="Tablo Ekle" width="26">');
  document.writeln('               </td>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/kodekle.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Paletler(\'Palet\',\'Paste\',\''+ EditorYolu +'/paletler/palet_kod.htm\',\'330\',\'195\');" name="Paste" id="Paste" height="25" alt="Kod Renklendir" width="26">');
  document.writeln('               </td>');
  document.writeln('              </tr>');
  document.writeln('            </table>');
  }
  document.writeln('<div id="Palet2" style="visibility:hidden;position:absolute;left:1px;top:1px;"><img width="65" height="17" src="'+ EditorYolu +'/resimler/tasi.gif" onmouseover="over=true;" onmouseout="over=false;" style="cursor:move"><br>');
  document.writeln('<iframe width="1" height="1" id="Palet" src="" marginwidth="0" marginheight="0" scrolling="no" style="visibility:hidden; position: absolute;border-width:1px; border-style:solid; border-collapse:collapse; border-color:windowtext;"></iframe>');
  document.writeln('</div>');
  if (EditorTip != "mini") {
  document.writeln('            <table style="BORDER-COLLAPSE: collapse" cellspacing="0" cellpadding="1" border="0">');
  document.writeln('              <tr>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/bicimkaldir.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Editor_Cogul(Asp_Editor,Frame_Textdegisim(),\'RemoveFormat\');" name="bicimkaldir" id="bicimkaldir" height="25" alt="Biçim Kaldır" width="26">');
  document.writeln('                </td>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/kalinyazi.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Editor_Cogul(Asp_Editor,Frame_Textdegisim(),\'Bold\');" name="kalinyazi" id="kalinyazi" height="25" alt="Kalın Yaz" width="26">');
  document.writeln('                </td>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/egikyazi.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Editor_Cogul(Asp_Editor,Frame_Textdegisim(),\'Italic\');" name="egikyazi" id="egikyazi" height="25" alt="Eğik Yaz" width="26">');
  document.writeln('                </td>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/alticizik.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Editor_Cogul(Asp_Editor,Frame_Textdegisim(),\'Underline\');" name="alticizik" id="alticizik" height="25" alt="Altı Çizik" width="26">');
  document.writeln('                </td>');
  document.writeln('                <td>');
  document.writeln('<img height="25" src="'+ EditorYolu +'/resimler/ayirac.gif" width="5" unselectable="on">');
  document.writeln('				</td>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/solahizala.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Editor_Solahizala(Asp_Editor,Frame_Textdegisim());" name="solahizala" id="solahizala" height="25" alt="Sola Hizala" width="26">');
  document.writeln('                </td>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/ortayahizala.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Edotor_Ortayahizala(Asp_Editor,Frame_Textdegisim());" name="ortayahizala" id="ortayahizala" height="25" alt="Ortaya Hizala" width="26">');
  document.writeln('				</td>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/sagahizala.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Editor_Sagahizala(Asp_Editor,Frame_Textdegisim());" name="sagahizala" id="sagahizala" height="25" alt="Sağa Hizala" width="26">');
  document.writeln('                </td>');
  document.writeln('                <td>');
  document.writeln(' <img height="25" src="'+ EditorYolu +'/resimler/ayirac.gif" width="5" unselectable="on">');
  document.writeln('                </td>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/numaraliste.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Editor_Cogul(Asp_Editor,Frame_Textdegisim(),\'Insertorderedlist\');" name="numaraliste" id="numaraliste" height="25" alt="Numaralı Liste" width="26">');
  document.writeln('                </td>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/simgeliste.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Editor_Cogul(Asp_Editor,Frame_Textdegisim(),\'Insertunorderedlist\');" name="simgeliste" id="simgeliste" height="25" alt="Simgeli Liste" width="26">');
  document.writeln('                </td>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/girintiazalt.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Editor_Cogul(Asp_Editor,Frame_Textdegisim(),\'Outdent\');" name="girintiazalt" id="girintiazalt" height="25" alt="Girinti Azalt" width="26">');
  document.writeln('                </td>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/girinticogalt.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Editor_Cogul(Asp_Editor,Frame_Textdegisim(),\'Indent\');" name="girinticogalt" id="girinticogalt" height="25" alt="Girinti Çoğalt" width="26">');
  document.writeln('				</td>');
  document.writeln('                <td>');
  document.writeln('<img height="25" src="'+ EditorYolu +'/resimler/ayirac.gif" width="5" unselectable="on">');
  document.writeln('                </td>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/kes.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Editor_Cogul(Asp_Editor,Frame_Textdegisim(),\'Cut\');" name="kes" id="kes" height="25" alt="Kes" width="26">');
  document.writeln('                </td>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/kopyala.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Editor_Cogul(Asp_Editor,Frame_Textdegisim(),\'Copy\');" name="kopyala" id="kopyala" height="25" alt="Kopyala" width="26">');
  document.writeln('                </td>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/yapistir.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Editor_Cogul(Asp_Editor,Frame_Textdegisim(),\'Paste\');" name="yapistir" id="yapistir" height="25" alt="Yapıştır" width="26">');
  document.writeln('                </td>');
  document.writeln('                <td>');
  document.writeln('<img height="25" src="'+ EditorYolu +'/resimler/ayirac.gif" width="5" unselectable="on">');
  document.writeln('                </td>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/gerial.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Editor_Cogul(Asp_Editor,Frame_Textdegisim(),\'Undo\');" name="gerial" id="gerial" height="25" alt="Geri Al" width="26">');
  document.writeln('                </td>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/ilerial.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Editor_Cogul(Asp_Editor,Frame_Textdegisim(),\'Redo\');" name="ilerial" id="ilerial" height="25" alt="İleri Al" width="26">');
  document.writeln('                </td>');
  document.writeln('                <td>');
  document.writeln('<img src="'+ EditorYolu +'/resimler/yatayciz.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Editor_Cogul(Asp_Editor,Frame_Textdegisim(),\'Inserthorizontalrule\');" name="yatayciz" id="yatayciz" height="25" alt="Yatay Çizgi" width="26">');
  document.writeln('               </td>');
  document.writeln('              </tr>');
  document.writeln('            </table>');
  }
  document.writeln('            <table style="BORDER-COLLAPSE: collapse" cellspacing="0" cellpadding="1" border="0">');
  document.writeln('              <tr> </tr>');
  document.writeln('            </table></td>');
  document.writeln('        </tr>');
  document.writeln('      </table>');
  document.writeln('	</td>');
  document.writeln('  </tr>');
  document.writeln('   <tr id="HtmlKod" style="display:none;">');
  document.writeln('    <td><img src="'+ EditorYolu +'/resimler/kaynak.gif" onMouseOver="this.className=\'resimstyl\';" onMouseOut="this.className=\'resimstyl2\';" class="resimstyl2" onClick="Editor_Html_Mod(Asp_Editor,\'HtmlKod\',\'Butonlar\');Asp_Editor.focus();" name="kaynak" id="kaynak" height="25" alt="HTML Kaynak" width="65"></td>');
  document.writeln('  </tr>');
  document.writeln('  <tr>');
  document.writeln('    <td bgcolor="#FFFFFF">');
  
  document.writeln('<table id="editorsagtik" cellspacing="0" cellpadding="4" style="background-color:threedface;position:absolute;border-color:#808080; border-style:solid; border-collapse:collapse; border-width:1px;display:none;width:100px;font-family:MS Shell Dlg;font-size:9px;cursor:default;"><tr><td onClick="TikEmir(\'Cut\');">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kes </td></tr><tr><td onClick="TikEmir(\'Copy\');">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kopyala </td></tr><tr><td onClick="TikEmir(\'Paste\');">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Yapıştır </td></tr><tr><td onClick="TikEmir(\'Delete\');">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sil </td></tr><tr><td style="border-width:1px; border-style:solid; border-collapse:collapse;" onClick="TikEmir(\'SelectAll\');">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tümünü Seç </td></tr></table>');

document.writeln('<iframe id="Asp_Editor" onblur="Frame_Textdegisim();" name="Asp_Editor" width="'+ EditorGenislik +'" height="'+ EditorYukseklik +'" frameborder="0" style="border-color:#808080; border-style:solid; border-collapse:collapse; border-width:1px;"></iframe>');

  document.writeln('<textarea id="Asp_Editor2" name="Asp_Editor2" wrap="soft" style="border-color:#808080; border-style:solid; border-collapse:collapse; border-width:1px;display:none;width:'+ EditorGenislik +';height:'+ EditorYukseklik +';"></textarea>');
  
  document.writeln('   </td>');
  document.writeln('  </tr>');
  document.writeln('</table>');
//Frame textarea degisim
		 function Frame_Textdegisim(Uygula) {
			 iex = (document.all) ? true : false ;
			 var dadi = Asp_Editor.document;
	// div icin acilsin		 dadi.execCommand('formatBlock','','<div>');
			 if(iex) {dadi.attachEvent("onmousedown", Sagtikedi); }
			 var texadi=document.getElementById(TextAdi);
			 if(dadi.body!=null) {
				 if (Uygula == null)
				 {
					var html = dadi.body.innerHTML;
				 if (EditorTip == "admin") {
					html = html.replace(/\+/g, "&#43;");
				 }
				 else
				 {				 
					html = html.replace(/<\/?\s*STYLE[^>]*>(.|[\n\r\t])*<\/\s*STYLE\s*>/g, "" );
					html = html.replace(/<\/?\s*META[^>]*>/g, "");
					html = html.replace(/<\/?\s*IFRAME[^>]*>/g, "");
					html = html.replace(/<\/?\s*FORM[^>]*>/g, "");
					html = html.replace(/<\/?\s*INPUT[^>]*>/g, "");
					html = html.replace(/<\/?\s*SELECT[^>]*>/g, "");
					html = html.replace(/<\/?\s*MARQUEE[^>]*>/g, "");
					html = html.replace(/<\/?\s*ILAYER[^>]*>/g, "");
					html = html.replace(/<\/?\s*'[^>]*>/g, "");
					html = html.replace(/<\s*SCRIPT[^>]*>[^\0]*<\/\s*SCRIPT\s*>/g, "");
					html = html.replace(/<\s*HEAD[^>]*>(.|[\n\r\t])*<\/\s*HEAD\s*>/g, "" );
					//html = html.replace(/<\s*(\w[^>]*) style="([^"]*)"([^>]*)/g, "<$1$3");
					html = html.replace(/<\s*(\w[^>]*) lang=([^ |>]*)([^>]*)/g, "<$1$3");
					html = html.replace(/\+/g, "&#43;");
				 }
					texadi.value = html;
					document.oncontextmenu = new Function("return true");

				 }
				 else
				 {
					 texadi.value = dadi.body.innerText;  
				 }
				 if (texadi.value == '<p>&nbsp;</p>')
				 {
					 texadi.value = '';
				 }
			 }
		 }
		 
//Editor olusuyor
		function Editor_Ac_Basla(editor,hidden){
			 if (editor.value == null) editor.value = editor.innerHTML;
			 var basla = editor.document;
			 basla.designMode = 'On';
			 basla.open();
			 basla.write(hidden.value);
			 basla.close();
			 editor.document.body.contentEditable = 'True';
		 } 

//Buton Function'lari
//Html moda donusum
		 function Editor_Html_Mod(editor,toolbarID,YeniAyar){
			 var toolbar = document.getElementById(toolbarID);
			 var toolbarnset = document.getElementById(YeniAyar);
			 var sTmp;
			 if (YeniAyar == "HtmlKod")
			 {		 
				 Frame_Textdegisim()
					 toolbarnset.style.display = 'block';
					 toolbar.style.display = 'none';
				 document.getElementById('Asp_Editor2').innerText=editor.document.body.innerHTML;
				 document.getElementById('Asp_Editor').style.display = 'none';
				 document.getElementById('Asp_Editor2').style.display = 'block';
			 }
			 else
			 {
				     toolbarnset.style.display = 'block';
					 toolbar.style.display = 'none';
				 editor.document.body.innerHTML=document.getElementById('Asp_Editor2').innerText;
				 document.getElementById('Asp_Editor2').style.display = 'none';
				 document.getElementById('Asp_Editor').style.display = 'block';
			 }
		 } 
		 
//Editor Sola hizala
		function Editor_Solahizala(editor,htmlmode) { 
			 if(editor.document.selection.type.toUpperCase()=='CONTROL') {
			 var range=editor.document.selection.createRange();
				 if(range.item(range.length-1).nodeName.toUpperCase()=='IMG') {
					 range.item(range.length-1).align='left';
					 return;
				 }
			 } 
			 editor.document.execCommand('Justifyleft', '', null);
			 editor.focus();
		 }
		 
//Edotor Ortaya Hizala
		 function Edotor_Ortayahizala(editor,htmlmode) { 
			 if(editor.document.selection.type.toUpperCase()=='CONTROL') {
				 var range=editor.document.selection.createRange();
					 if(range.item(range.length-1).nodeName.toUpperCase()=='IMG') {
					 range.item(range.length-1).align='center';
					 return;
				 }
			 } 
			 editor.document.execCommand('Justifycenter', '', null);
			 editor.focus();
		 }
		 
// Editor Saga hizala
		 function Editor_Sagahizala(editor,htmlmode) { 
			 if(editor.document.selection.type.toUpperCase()=='CONTROL') {
				 var range=editor.document.selection.createRange();
				 if(range.item(range.length-1).nodeName.toUpperCase()=='IMG') {
					 range.item(range.length-1).align='right';
					 return;
				 }
			 } 
			 editor.document.execCommand('Justifyright', '', null);
			 editor.focus();
		 }
		 
// Editor----- Kes, Yapistir, Kopyala, Geri al, Ileri al, Formatsil, Kalinyaz, Egikyaz,
//   Alticizik, Numaraliste, Simgeliste, Girintiazalt, Girinticogalt, Yataycizgi
		function Editor_Cogul(editor,htmlmode,value) {
			 if (htmlmode) return;
		 	 editor.focus();
			 editor.document.execCommand(value,'',null);
		 }
		 
//Editor Fontsec
		 function Editor_Fontsec(editor,htmlmode,value) {
			 if (htmlmode) return;
			 editor.focus();
			 editor.document.execCommand('FontName','',value);
		 }

//Editor Fontboyut
		 function Editor_Fontboyut(editor,htmlmode,value) {
			 if (htmlmode) return;
			 editor.focus();
			 editor.document.execCommand('Fontsize','',value);
		 }

//Editor Paletgir	
	  function Editor_Paletgir(value,duzenek) {
		document.getElementById('editorgolge').style.display='none';
		var nesne = Simdikinesne;
		var Bicim = SimdikiTag;
		  
      if (value != null) {
		if (document.all) {
		var newRng = Asp_Editor.document.body.createTextRange(); 
		if (newRng != null && duzenek != 'smiley') {
			newRng = rng;
			newRng.select();
		}
	    }
		if (duzenek == 'direklink') {
        Asp_Editor.focus(); Asp_Editor.document.body.innerHTML += value;
		
		} else if (duzenek == 'CreateLink') {
        Asp_Editor.focus(); Asp_Editor.document.execCommand(duzenek, false, value);
		
		} else {
        Asp_Editor.focus(); Asp_Editor.document.execCommand(Bicim, false, value);
		}
	 }	 
			 GozsterGizle(nesne, 'hide');
			 document.getElementById(nesne+'2').style.visibility = "hidden";
        }	 
		 
//Editor Paletler		 
function Paletler(nesne,tag,dosya,genislik,yukseklik) {
	document.getElementById("editorgolge").style.height = document.body.scrollHeight;
	document.getElementById("editorgolge").style.width = document.body.scrollWidth;
	document.getElementById('editorgolge').style.display='block';
    SecimAra(nesne);
	var DivNesne = document.getElementById(nesne+'2');
	var DialogNesne = document.getElementById(nesne);
	var SimgeNesne = document.getElementById(tag);
	var Soldurum = Mauskordinatlari(SimgeNesne,'left') -  (genislik / 2);
	var Topdurum = Mauskordinatlari(SimgeNesne,'top') + (SimgeNesne.offsetHeight + 4);
	DivNesne.style.left = (Soldurum) + "px";
	DivNesne.style.top = (Topdurum) + "px";
		if (DialogNesne.style.visibility == "hidden") {
			GozsterGizle(DialogNesne, 'show', dosya, genislik, yukseklik);
			DivNesne.style.visibility = "visible";
		} else {
			GozsterGizle(DialogNesne, 'hide');
			DivNesne.style.visibility = "hidden";
		}
    Simdikinesne = nesne;
	SimdikiTag = tag;
}

//Editor Mauskordinatlari
function Mauskordinatlari(nesne, sagsol){
	var totaloffset=(sagsol=="left")? nesne.offsetLeft : nesne.offsetTop;
	var parentEl=nesne.offsetParent;
	while (parentEl!=null){
	totaloffset=(sagsol=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
	parentEl=parentEl.offsetParent;
	}
	return totaloffset;
}

//Editor GozsterGizle
function GozsterGizle(nesne,AcKapa,dosya,genislik,yukseklik) {
	if (document.getElementById(nesne)) {
	nesne = document.getElementById(nesne);
	}
	if (AcKapa == "show") {
		nesne.style.visibility = "visible";
		nesne.src = dosya;
		nesne.width = genislik;
		nesne.height = yukseklik;
	} else if (AcKapa == "hide") {
		nesne.style.visibility = "hidden";
		nesne.src = "";
	}
	Asp_Editor.focus();
}

//Secili nesne ara
function SecimAra(nesne) {
		var selec = Asp_Editor.document.selection; 
		if (selec != null)
		rng = selec.createRange();
}


//Sag tiklama
function Sagtikedi(ev) {
   if (ev.button == 2 || ev.button == 3){
     var evcopy = document.getElementById('editorsagtik')
      evcopy.style.left = '';
      evcopy.style.top = '';
      evcopy.style.display = 'block';
      l =  evcopy.offsetLeft;
      t =  evcopy.offsetTop;
      evcopy.style.left = l+ev.clientX;
      evcopy.style.top = t+ev.clientY;
	  document.oncontextmenu = new Function("return false");
	  SecimAra()
    } else { document.getElementById('editorsagtik').style.display = 'none'; }
}

function TikEmir(value) {
		if (document.all) {
		var newRng = Asp_Editor.document.body.createTextRange(); 
		if (newRng != null) {
			newRng = rng;
			newRng.select();
		}
	    }
        if (value != null) { Asp_Editor.focus(); Asp_Editor.document.execCommand(value,'',null); document.getElementById('editorsagtik').style.display = 'none';}
}

//Editor palet tasi	
     N = (document.all) ? 0 : 1;
     var ob;
     var over = false;

     function MD(e) {
     if (over)
     {
     if (N) {
     ob = document.getElementById('Palet2');
     X=e.layerX;
     Y=e.layerY;
     return false;
     }
     else {
     ob = document.getElementById('Palet2');
     ob = ob.style;
     X=event.offsetX;
     Y=event.offsetY;
     }
     }
     }

     function MM(e) {
     if (ob) {
     if (N) {
     ob.style.top = e.pageY-Y;
     ob.style.left = e.pageX-X;
     }
     else {
     ob.pixelLeft = event.clientX-X + document.body.scrollLeft;
     ob.pixelTop = event.clientY-Y + document.body.scrollTop;
     return false;
     }
     }
     }

     function MU() {
     ob = null;
     }
     if (N) {
   //  document.captureEvents(Event.MOUSEDOWN | Event.MOUSEMOVE | Event.MOUSEUP);
     }
     document.onmousedown = MD;
     document.onmousemove = MM;
     document.onmouseup = MU;

window.setTimeout('Frame_Textdegisim();', 1000);
//Editor sonu
