//var b;
function cam(url ,title, feature){
	b=window.open(url ,title , feature);
}

//pencere ac
var feature;
var a;

function camac(url, width, hight,ft){
	if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4)) {
	var harea = parseInt(screen.availHeight)/2;
	var varea = parseInt(screen.availWidth)*3/2; 
		if (navigator.platform.indexOf('Mac') !=-1){
			harea -= 32;
			varea -= 22;
		}else
			if (navigator.platform.indexOf('Win') !=-1){
					harea -= 70;
					varea -= 8;
		} 
	//title="a";
	a=cam(url, "guidetoturkey", feature); 
	}else 
		if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
			switch (ft){
				case  "1" :
							feature ="toolbar=no,menubar=no,location=no,scrollbars=yes,resize=yes,width=" + width + ",height=" + hight  + ",left=30,top=160";
							break;
				case  "2" :
							feature ="toolbar=no,menubar=no,location=no,scrollbars=no,resize=no,width=" + width + ",height=" + hight  + ",left=30,top=160";
							break;
				case  "3" :
							feature ="toolbar=yes,menubar=no,location=no,scrollbars=yes,resize=yes,width=" + width + ",height=" + hight  + ",left=30,top=160";
							break;
				case  "4" ://Weatherler icin
							feature ="toolbar=no,menubar=no,location=no,scrollbars=no,resize=no,width=" + width + ",height=" + hight  + ",left=204,top=150";
							break;
			}
		//title="a";
		a=cam(url, "guidetoturkey", feature); 
		}else {
			//a=cam("indexz.htm", "TheWindow", "toolbar=yes,menubar=no,location=no,scrollbars=yes,resize=yes,width=500,height=240,left=0,top=0,screenX=0,screenY=0");
			//feature="toolbar=yes,menubar=no,location=no,scrollbars=yes,resize=yes,width=" + width + ",height=" + hight  + ",left=0,top=0,screenX=0,screenY=0";
			a=cam(url, "guidetoturkey", feature); 
		}
	//window.open(newURL, newName, newFeatures);
}
/*
//bookbmark
var bozokmarkurl="http://www.guidetoturkey.com"
var bookmarktitle="Guide To Turkey"
function addbookmark()
{
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
*/

function map_ac(url, width, hight){
	var feature ="toolbar=no,menubar=no,location=no,scrollbars=no,resize=no,width=" + width + ",height=" + hight  + ",left=150,top=160";
	var acilan = window.open(url,'Turkey',feature);

	if ((document.window != null) && (!acilan.opener))
	acilan.opener = document.window;
}
/*
function map_ac(url, width, hight,n_name,f_name)
	{	var feature ="toolbar=no,menubar=no,location=no,scrollbars=no,resize=no,width=" + width + ",height=" + hight  + ",left=150,top=160";
		nn = n_name;
		fn = f_name;
		acilan = window.open(url,'Turkey',feature);
		acilan.document.form1.nname.value=nn;
		acilan.document.form1.fname.value=fn;
//		alert (acilan.document.form1.fname.value+acilan.document.form1.nname.value);//acilan_pencere.document.form1.hiden.value);
	//	if ((document.window != null) && (!acilan.opener)){
	if (acilan.opener == null) acilan.opener = self;
}*/
//Written by CEM SAY

