fixpng=function(){
	var arVersion = navigator.appVersion.split("MSIE")
	var version = parseFloat(arVersion[1])
	
	
	if ((version >= 5.5) && (document.body.filters) && (version < 7)) 
	{
		for(var i=0; i<document.images.length; i++)
		{
		  var img = document.images[i]
		  var imgName = img.src.toUpperCase()
		  if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
		  {
			 img.height=img.height;
			 img.width=img.width;
			 img.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" +img.src + "', sizingMethod='scale')";
			 img.src="images/px.gif";
			 /*var imgID = (img.id) ? "id='" + img.id + "' " : ""
			 var imgClass = (img.className) ? "class='" + img.className + "' " : ""
			 var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
			 var imgStyle = "display:inline-block;" + img.style.cssText 
			 if (img.align == "left") imgStyle = "float:left;" + imgStyle
			 if (img.align == "right") imgStyle = "float:right;" + imgStyle
			 if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
			 var strNewHTML = "<span " + imgID + imgClass + imgTitle
			 + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
			 + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
			 + "(src=\'" + img.src + "\', sizingMethod='scale');\"><img src=\"\" width="+img.width+" height="+img.height+"></span>" 
			 img.outerHTML = strNewHTML
			 i = i-1*/
		  }
		}
	}
}

function menuac(mid)
{
	obj=document.getElementById('men_' + mid );
	icoobj=document.getElementById('ico_' + mid );
	if(obj.style.display=='none')
	{
		obj.style.display='';
		icoobj.src="images/5.jpg";
	}else{
		obj.style.display='none';
		icoobj.src="images/4.jpg";
	}
}

function scrollit(){ 
	for (I=document.body.scrollTop; I>=1; I-=25){         
		parent.scroll(1,I)  
	}
}                                                     

function scrollit2(){ 
	for (I=document.body.scrollTop; I<=document.body.scrollHeight; I+=25){         
		parent.scroll(1,I)  
	}
}    

function kayd(obj,knm)
{
		
}

function kaydir()
{
	obj=document.getElementById('bars');
	knm=document.body.scrollTop+150
	if(parseInt(obj.style.top) < knm || parseInt(obj.style.top) > knm)
	{
			obj.style.top=knm;
	}
}

function createTarget(t,w,h){
	window.open("", t, "width="+w+",height="+h+",scrollbars=0");
	return true;
}

function mailKont()
{
	var madr=document.mailForm.mail;
	madr.value=madr.value.replace(" ","");
	if(madr.value==''){
		alert('Mail Adresi Yazmadınız');
		return false;
	}
	if(madr.value.indexOf("@") == -1){
		alert('Mail Adresini Doğru Yazınız');
		return false;
	}
}


window.onload=fixpng;
//window.onscroll=kaydir;