
			var running = true;
		
			function OrtaResimAc(imgName){
				alert("resimlerin büyük boyutlarını aç")
			}
			
	// Slide show yap
			if (Resimler.length != 0) {
				var slideShowSpeed = 3000; //milliseconds
				var crossFadeDuration = 3; //seconds
				var t;
				var j = 0;
				var p = Resimler.length;
				var preLoad = new Array();
				for (i = 0; i < p; i++){
					preLoad[i] = new Image();
					if (SanalTur=='0')
						preLoad[i].src = "EmlakResim/" + Resimler[i];
					else
						preLoad[i].src = "EmlakResim/" + IlanNo + "/" +  Resimler[i];
					
				}
			}
			
			function runSlideShow(){
				if (Resimler.length != 0) {
					if (running) {
						if (document.all){
							document.images.imgAnaResim.style.filter = 'blendTrans(duration = 2)';
							document.images.imgAnaResim.style.filter = 'blendTrans(duration = crossFadeDuration)';
							document.images.imgAnaResim.filters.blendTrans.Apply()      
						}
						BgColorReset();
						document.images.imgAnaResim.src = preLoad[j].src;
						document.getElementById("dlResimler__ctl" + j + "_tblKucukResim").style.backgroundColor = '#FF0000';
						if (document.all)
							document.images.imgAnaResim.filters.blendTrans.Play();
						j = j + 1
						if (j > (p-1)) j=0
						t = setTimeout('runSlideShow()', slideShowSpeed)
					}				
				}	
			}
			
			// Küçük resimlerin arka plan rengini resetle
			function BgColorReset() {
				var p = Resimler.length;
				for (i = 0; i < p; i++){
					document.getElementById("dlResimler__ctl" + i + "_tblKucukResim").style.backgroundColor = '#f3f3eb';					
				}
			}
			
			// Küçük resimlerin arka plan rengini resetle
			function BgColorReset2() {
				var p = Resimler2.length;
				for (i = 0; i < p; i++){
					document.getElementById("dlSanalGoruntu__ctl" + i + "_tblKucukResim1").style.backgroundColor = '#f3f3eb';					
				}
			}
			
			function SlideShowKontrol() {
				
				document.getElementById("trAnaResim").style.display='';
				document.getElementById("trSanalGoruntu").style.display='none';
				
				if (document.Form1.chkSlideShow.checked) {
					running = true; 
					runSlideShow();
				}
				else {
					running = false; 
					var p = Resimler.length;
					for (i = 0; i < p; i++){
						if (document.getElementById("dlResimler__ctl" + i + "_tblKucukResim").style.backgroundColor == '#fefff9');
						//OrtaResimAc(Resimler[i]);																	
					}					
				}
			}
			
			function doTooltip(e, msg) {
				if ( typeof Tooltip == "undefined" || !Tooltip.ready ) return;
				Tooltip.show(e, msg);
			}

			function hideTip() {
				if ( typeof Tooltip == "undefined" || !Tooltip.ready ) return;
				Tooltip.hide();
			}
			
function popup(url) {
	var winl = (screen.width - 400) / 2;
	var wint = (screen.height - 400) / 2;
	winprops = 'height=400,width=400,top='+wint+',left='+winl+',scrollbars=no'
	win = window.open(url, 'resim', winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
	/*onclick="popup(this.href,'name','400','400','no');return false;"*/
	}
