/* **************************************************************** */
/* *********************** FLASH GOSTERİMİ ************************ */
/* **************************************************************** */
function flash(w,h,u,t) {
	document.write("<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='"+w+"' height='"+h+"'><param name='movie' value='"+u+"'><param name='quality' value='high'>");
		document.write("<param name='wmode' value='transparent'>");
	document.write("<embed src='"+u+"' quality='high' wmode='transparent' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+w+"' height='"+h+"'></embed></object>");	
}


/* kalp için animasyon */

var toplam_resim = 5;
var say = 1;
imageInterval = window.setInterval("resim_degistir();", 5000);

function resim_degistir()
{
        $("#navigasyon" + say).fadeOut("slow", function() {
                if (say >= toplam_resim)
                {
                        say = 0;
                }
                $("#navigasyon" + (say + 1) ).fadeIn("slow", function() {
                        say++;
                });
        });
}

function Tab(tab){
	if (tab=="aa"){
		$("#navigasyon1").show("slow");
		$("#navigasyon2").hide("slow");
		$("#navigasyon3").hide("slow");
		$("#navigasyon4").hide("slow");
		$("#navigasyon5").hide("slow");
	} else if (tab=="bb"){
		$("#navigasyon1").hide("slow");
		$("#navigasyon2").show("slow");
		$("#navigasyon3").hide("slow");
		$("#navigasyon4").hide("slow");
		$("#navigasyon5").hide("slow");
	}else if (tab=="cc"){
		$("#navigasyon1").hide("slow");
		$("#navigasyon2").hide("slow");
		$("#navigasyon3").show("slow");
		$("#navigasyon4").hide("slow");
		$("#navigasyon5").hide("slow");
	}else if (tab=="dd"){
		$("#navigasyon1").hide("slow");
		$("#navigasyon2").hide("slow");
		$("#navigasyon3").hide("slow");
		$("#navigasyon4").show("slow");
		$("#navigasyon5").hide("slow");
	}else{
		$("#navigasyon1").hide("slow");
		$("#navigasyon2").hide("slow");
		$("#navigasyon3").hide("slow");
		$("#navigasyon4").hide("slow");
		$("#navigasyon5").show("slow");
	}
	return true;
}

/* kalp için animasyon */

/* **************************************************************** */
/* ************************ PNG TEMİZLEME ************************* */
/* **************************************************************** */
/*
function correctPNG() // correctly handle PNG transparency in Win IE 5.5 or higher.
{
	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")
		{
			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
			var imgAttribs = img.attributes;
			for (var j=0; j<imgAttribs.length; j++)
			{
				var imgAttrib = imgAttribs[j];
				if (imgAttrib.nodeName == "align")
				{
					if (imgAttrib.nodeValue == "left") imgStyle = "float:left;" + imgStyle
					if (imgAttrib.nodeValue == "right") imgStyle = "float:right;" + imgStyle
					break
				}
			}
			var strNewHTML = "<span " + imgID + imgClass + imgTitle
			strNewHTML += " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
			strNewHTML += "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
			strNewHTML += "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
			img.outerHTML = strNewHTML
			i = i-1
		}
	}
}
window.attachEvent("onload", correctPNG);

*/



/* **************************************************************** */
/* *********************** İNPUT TEMİZLEME ************************ */
/* **************************************************************** */
function TextTmzl(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = "";
}	
function FillYp(thefield){
if (thefield.value=='')
thefield.value = thefield.defaultValue;
}

function _go(obj){
	SelectedValue  	= obj.options[obj.selectedIndex].value
	location.href	= SelectedValue
}
