defaultStatus = ST_Hosgeldiniz
if( top.parent.frames.length > 0){
top.parent.location.href=self.location.href;
}

//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::://
  for (i=0; i < mmImages.length; i++) {
    var preload = new Image();
    preload.src = mmImages[i];
  }
  
function swap(imgID,img) {
 document[''+imgID+'Img'].src = mmImages[img];
 if(document[''+imgID+'Img'].alt != ST_collapse ){
	document[''+imgID+'Img'].alt = ST_expand;
 }else{
	document[''+imgID+'Img'].alt = ST_expand;
 }
}
//::::::::::::::::::::::::::::::::::::::::::::::::::::
function mwpHS(obj,idd,tagg){// forum min/max function
	if(document.getElementById){
	var ar = document.getElementById(obj).getElementsByTagName(tagg);
	var cook = ST_UniqueID + "hide";
	var clsNam = obj + idd;
		for (var i=0; i<ar.length; i++){
		  if(ar[i].id==clsNam){
			if(ar[i].style.display != "none"){
				swap(clsNam,0);
				ar[i].style.display = "none";
				setCookieSubKey(cook,clsNam,"1");
			}else{
				swap(clsNam,1);
				ar[i].style.display = "";
				setCookieSubKey(cook,clsNam,"0");
			}
		  }
		} 
	}
}

function mwpHSx(obj){//temeabox min/max
  if(document.getElementById){
	var ele = document.getElementById(obj);
	var cook = ST_UniqueID + "hide";
	if(ele.style.display != "none"){
		swap(obj,0);
		ele.style.display = "none";
		setCookieSubKey(cook,obj,"1");
	}else{
		swap(obj,1);
		ele.style.display = "block";
		setCookieSubKey(cook,obj,"0");
	}
  }
}
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::://
//:::::::::::::::: BROWSER FINKSIYONLARI ::::::::::::::::::://
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::://
var ns4 = (document.layers);                            //mwpv2.1
var ie4 = (document.all && !document.getElementById);   //mwpv2.1
var ie5 = (document.all && document.getElementById);    //mwpv2.1
var ns6 = (!document.all && document.getElementById);   //mwpv2.1

//simple hide/show
// mwpv2.1 basladi
function mwpHSs(obj,typ){
	// Netscape 4
	if(ns4){
		if (document.layers[obj]){
			if (document.layers[obj].visibility != "hide"){
				document.layers[obj].visibility = "hide";
			}else{
				document.layers[obj].visibility = "show";
			}
		}
	}
	// Explorer 4
	else if(ie4){
	  if (document.all[obj]){
		if (document.all[obj].style.visibility != "hidden"){
		  document.all[obj].style.visibility = "hidden";
		}else{
		  document.all[obj].style.visibility = "visible";
		}
	  }
	}
	// W3C - Explorer 5+ and Netscape 6+
	else if(ie5 || ns6){
		if (document.getElementById(obj)){
			var ela = document.getElementById(obj)
			//for (var i=0; i<el.length; i++){
				if (ela.style.display != "none"){		
				  if(typ != 1){
					swap(obj,0);
				  }
				  ela.style.display = "none";
				}else{
				  if(typ != 1){
				    swap(obj,1);
				  }
				  ela.style.display = "block";
				}
		}
	}
}
// mwpv2.1 Bitti
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::://
//:::::::::::: BROWSER FINKSIYONLARI BITTI ::::::::::::::::://
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::://

//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::://
//::::::::::::::::: FORUMLARDA CODEBOX ::::::::::::::::::::://
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::://
function expand(el){
var id1='thecode'+el;
var codebox=document.getElementById(id1);
var scheight = codebox.scrollHeight +10;
if (txttype=='opera') {
    codebox.style.height='100%';}
else if (txttype=='ie') {
    codebox.style.height=scheight+'px';
    codebox.style.overflowX='auto';
    codebox.style.overflowY='auto';}
else {
codebox.style.height=scheight+'px';
codebox.style.overflow='visible';}
}

function contract(el){
var id1='thecode'+el;
var codebox=document.getElementById(id1);
codebox.style.height=45+'px';
codebox.style.overflow='auto';
}

// code selector
function selectCode(el){
var codebox=eval('document.selectcode'+el+'.thecode'+el);
codebox.focus();
codebox.select();
}
function dohelp(){
// Help Code Popup
var doPopUpHelpCodeX = (screen.width/2)-110;
var doPopUpHelpCodeY = (screen.height/2)-150;
var pos = "left="+doPopUpHelpCodeX+",top="+doPopUpHelpCodeY;
doPopUpHelpCodeWindow = window.open("INCLUDE/code_help.asp","HelpCode","width=220,height=325,"+pos);
}
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::://
//:::::::::::::: FORUMLARDA CODEBOX BITTI :::::::::::::::::://
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::://

//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::://
//:::::::::::::: UYELER ICIN TANIMLAMALAR :::::::::::::::::://
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::://
var arrItems1 = new Array();
var arrItemsGrp1 = new Array();
arrItems1[0] = ST_NoUye;
arrItemsGrp1[0] = 1;

arrItems1[1] = ST_Uye;
arrItemsGrp1[1] = 1;

arrItems1[2] = ST_Admin;
arrItemsGrp1[2] = 1;

arrItems1[3] = ST_Uye + " & " + ST_Admin;
arrItemsGrp1[3] = 1;

arrItems1[4] = ST_Uye;
arrItemsGrp1[4] = 2;

arrItems1[5] = ST_Uye + " & " + ST_Admin;
arrItemsGrp1[5] = 2;

arrItems1[6] = ST_Uye;
arrItemsGrp1[6] = 3;

arrItems1[7] = ST_Uye;
arrItemsGrp1[7] = 4;

function selectChange(control, controlToPopulate, ItemArray, GroupArray)
{
  var myEle;
  var x;
  // Empty the second drop down box of any choices
  for (var q=controlToPopulate.options.length;q>=0;q--) controlToPopulate.options[q]=null;
  // ADD Default Choice - in case there are no values
  myEle = document.createElement("option");
  myEle.value = 0;
  myEle.text = "[SELECT]";
  controlToPopulate.add(myEle);
  
  for ( x = 0 ; x < ItemArray.length  ; x++ )
    {
      if ( GroupArray[x] == control.value )
        {
          myEle = document.createElement("option");
          myEle.value = x+1;
          myEle.text = ItemArray[x];
          controlToPopulate.add(myEle);
        }
    }
}
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::://
//::::::::::::: POP_UP PENCERELER :::::::::::::::::::::::::://
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::://
function openWindow(url) {
  popupWin = window.open(url,'new_page','width=400,height=400')
}
function openWindow2(url) {
  popupWin = window.open(url,'new_page','width=400,height=480')
}
function openWindow3(url) {
  popupWin = window.open(url,'new_page','width=400,height=450,scrollbars=yes')
}
function openWindow4(url) {
  popupWin = window.open(url,'new_page','width=400,height=525')
}
function openWindow5(url) {
  popupWin = window.open(url,'new_page','width=450,height=525,scrollbars=yes,toolbar=yes,menubar=yes,resizable=yes')
}
function openWindow6(url) {
  popupWin = window.open(url,'new_page','width=550,height=525,scrollbars=yes,resizable=yes')
}
function openWindowCT(url) { //header sayfasindan tasindi
  popupWin = window.open(url,'new_page','width=450,height=480')
}
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::://
function openWindowPager(url) { //Özel Mesaj
  popupWin = window.open(url,'pager','resizable,width=210,height=310,left=10,top=25,scrollbars=auto')
}
function openWindowPagerHTML(url) { //Özel Mesaj HTML
  popupWin = window.open(url,'pager','resizable,width=650,height=310,left=10,top=25,scrollbars=auto')
}
function openWindowSiir(url) {  //siirOku
  popupWin = window.open(url,'Siir','width=400,height=575,left=10,top=75,scrollbars=yes,resizable=no,status=yes')
}
function openWindowResim(url) { //ScreenShot
  popupWin = window.open(url,'new_page','resizable,left=10,top=25,scrollbars=no')
}
function openWindowUyelik(url) { //Forum-Etkinlik Mail Uyelikleri
  popupWin = window.open(url,'new_page','width=600,height=300,left=10,top=25,scrollbars=no')
}
function openWindowCount(url) { //Forum Count
  popupWin = window.open(url,'new_page','width=800,height=300,left=10,top=25,scrollbars=yes')
}
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::://
//::::::::::::: POP_UP PENCERELER BITTI :::::::::::::::::::://
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::://

//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::://
//::::::::::::::::::: ST EKLENTILERI ::::::::::::::::::::::://
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::://
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::://
//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::://

