//Preload images ("yes" or "no"):
var preloadimage="yes"

//Set optional link target to be added to all images with a link:
var optionlinktarget=""

//Set image border width
var imageborderwidth=0
var width=300;
var height=225;
//Optionally, change 1.0 and 0.7 below to affect Wipe gradient size and duration in seconds in IE5.5+:
var filterstr="progid:DXImageTransform.Microsoft.GradientWipe(GradientSize=1.0 Duration=0.7)"

function resimkodu(img,path){
	/*
	if (img!="")
	imghtml='<a href="'+path+'/'+img+'" target="'+optionlinktarget+'">'
	imghtml+='<img src="'+path+'/'+img+'" border="'+imageborderwidth+'">'
	if (img!="") imghtml+='</a>'
	*/
	if (img!="")
	imghtml='<img src="'+path+'/'+img+'" width="'+width+'" height="'+height+'" border="'+imageborderwidth+'">'

	return imghtml

}

function loadimage(yer,resim,yol){

	if (document.getElementById){
		var imgobj=document.getElementById(yer)
		if (imgobj.filters && window.createPopup){
			imgobj.style.filter=filterstr
			imgobj.filters[0].Apply()
		}

		imgobj.innerHTML=resimkodu(resim,yol)
		if (imgobj.filters && window.createPopup)
		imgobj.filters[0].Play()
		return false
	}


}
