var d=document;

function P(t){d.writeln(t);}
function G(u){d.location=u;}
function B(){history.back();}
function E(t){return confirm(t?t:'Emin misiniz?');}
function O(o){return d.getElementById(o);}
function S(o){O(o).style.display='block';}
function SI(o){O(o).style.display='inline';}
function H(o){O(o).style.display='none';}
function Err(t){alert(t?t:'Hata!');}

function AltFlash(){
	if (O('divFlash')) O('divFlash').innerHTML='<div style="position:absolute; top:0; _top:-105px; z-index:5;"><object width="1002" height="330"><param name="movie" value="alt.swf"></param><param name="wmode" value="transparent"></param><embed src="alt.swf" type="application/x-shockwave-flash" wmode="transparent" width="1002" height="330"></embed></object></div>';
}

function Cal(dosya,dil){
	P('<span style="position:relative; top:2px"><object width="75" height="11"><param name="movie" value="/cal.swf?dosya='+dosya+'&dil='+dil+'"></param><param name="wmode" value="transparent"></param><embed src="/cal.swf?dosya='+dosya+'&dil='+dil+'" type="application/x-shockwave-flash" wmode="transparent" width="75" height="11"></embed></object></span>');
}

function Alt(){
	P('<div style="position:relative;" id="divFlash"></div>');
}

function MenuAc(i){
	H('menu'+i+'x');
	S('menu'+i+'w');
}

function MenuKapat(i){
	H('menu'+i+'w');
	S('menu'+i+'x');
}

function Pop(urele,w,h){
	O('divGallery').innerHTML='<a href="javascript:;" onclick="H(\'divGallery\')"><img src="'+urele+'" width='+w+' height='+h+'></a><!-- <div><input type="button" id="buton1" style="margin-top:5px;" value="   Kapat   " onclick="H(\'divGallery\')"></div> -->';
	O('divGallery').style.display='block';

	if (window.pageYOffset){
		sx=window.pageXOffset;
		sy=window.pageYOffset;
	}else if (document.documentElement && document.documentElement.scrollTop){
		sx=document.documentElement.scrollLeft;
		sy=document.documentElement.scrollTop;
	}else if (document.body){
		sx=document.body.scrollLeft;
		sy=document.body.scrollTop;
	}

	if (typeof(window.innerWidth)=='number'){
		ww=window.innerWidth;
		wh=window.innerHeight;
		dw=document.body.clientWidth;
		dh=document.body.clientHeight+20;
	}else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)){
		ww=document.documentElement.clientWidth;
		wh=document.documentElement.clientHeight;
		dw=document.body.clientWidth;
		dh=document.body.clientHeight+20;
	}else if (document.body && (document.body.clientWidth || document.body.clientHeight)){
		ww=document.body.clientWidth;
		wh=document.body.clientHeight;
		dw=document.body.clientWidth;
		dh=document.body.clientHeight+20;
	}

	x=ww/2-w/2+sx;
	y=wh/2-h/2+sy-40;

	if (x<10) x=10;
	if (y<10) y=10;

	O('divGallery').style.left=x+'px';
	O('divGallery').style.top=y+'px';

	return false;
}

function changepicture(picture){
	if (!picture) picture='resim/_resim1.jpg';
	document.getElementById('degisen_resim').src=picture;
}


gi=1;

function GoogleMap(){AltFlash();if (GBrowserIsCompatible()){var map=new GMap2(document.getElementById("map"));map.addControl(new GSmallMapControl());map.addControl(new GMapTypeControl());map.setCenter(new GLatLng(gLat,gLng),16);map.openInfoWindowHtml(new GLatLng(gLat,gLng),gInfohtml);function createMarker(point,number){var marker=new GMarker(point);GEvent.addListener(marker,"click",function(){marker.openInfoWindowHtml(gInfohtml);});return marker;}map.addOverlay(createMarker(new GLatLng(gLat,gLng),gi));}}

window.onload=AltFlash;

