function PopupPic(sPicURL) {
  window.open( "HotelsPopup.aspx?"+sPicURL, "",
  "resizable=1,HEIGHT=200,WIDTH=200");
}

function PopupPic2(sPicURL) {
  window.open( "HotelsPopup.aspx?"+sPicURL, "",
  "resizable=1,HEIGHT=405,WIDTH=247");
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; 
  for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) 
  {
	x.src=x.oSrc;
  }

}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function getSWF(swWidth, swHeight, swFile, swWmode)
	{
		var str = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width='+swWidth+' height='+swHeight+' VIEWASTEXT>';
		str += ' <param name="movie" value="'+swFile+'" /> ';
		str += ' <param name="quality" value="high" /> ';
		// wmode = window, transparent, opaque
		str += ' <param name="wmode" value="'+swWmode+'" /> ';
		str += ' <embed src='+swFile+' width='+swWidth+' height='+swHeight+' quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed> ';
		str += ' </object> ';
		document.write(str);
	}
	
function enlargeimage(path, optWidth, optHeight){ //function to enlarge image. Change as desired.
var actualWidth=typeof optWidth!="undefined" ? optWidth : "600px" //set 600px to default width
var actualHeight=typeof optHeight!="undefined" ? optHeight : "500px" //set 500px to  default height
var winattributes="width="+actualWidth+",height="+actualHeight+",resizable=yes"
window.open(path,"", winattributes)
}

		function Restore2()
		{
			if(globalmenuflag2==0)
				document.accom.src='images/hotels/accom1.gif';
		}
		function Restore3()
		{
			if(globalmenuflag3==0)
				document.congress.src='images/hotels/congress1.gif';
		}
		function Restore4()
		{
			if(globalmenuflag4==0)
				document.food.src='images/hotels/food1.gif';
		}
		function Restore5()
		{
			if(globalmenuflag5==0)
				document.gallery.src='images/hotels/gallery1.gif';
		}
		function Restore6()
		{
			if(globalmenuflag6==0)
				document.services.src='images/hotels/services1.gif';
		}
		function Restore7()
		{
			if(globalmenuflag7==0)
				document.area.src='images/hotels/area1.gif';
		}
		
		function RestoreAll(url)
		{
			globalmenuflag2=0;
			globalmenuflag3=0;
			globalmenuflag4=0;
			globalmenuflag5=0;
			globalmenuflag6=0;
			globalmenuflag7=0;
			Restore2();
			
			if(url!="Erciyes" && url!="ClubBelkoy" && url!="ClubBodrum" )
			{
				Restore3();
			}
			
			Restore4();
			Restore5();
			Restore6();
			Restore7();
		}

		function Swap2()
		{
			globalmenuflag2=1;
			globalmenuflag3=0;
			globalmenuflag4=0;
			globalmenuflag5=0;
			globalmenuflag6=0;
			globalmenuflag7=0;

			document.accom.src='images/hotels/accom2.gif';

			Restore3();
			Restore4();
			Restore5();
			Restore6();
			Restore7();
		}

		function Swap3()
		{
			globalmenuflag2=0;
			globalmenuflag3=1;
			globalmenuflag4=0;
			globalmenuflag5=0;
			globalmenuflag6=0;
			globalmenuflag7=0;

			document.congress.src='images/hotels/congress2.gif';

			Restore2();
			Restore4();
			Restore5();
			Restore6();
			Restore7();
		}

		function Swap4()
		{
			globalmenuflag2=0;
			globalmenuflag3=0;
			globalmenuflag4=1;
			globalmenuflag5=0;
			globalmenuflag6=0;
			globalmenuflag7=0;

			document.food.src='images/hotels/food2.gif';

			Restore2();
			Restore3();
			Restore5();
			Restore6();
			Restore7();
		}

		function Swap5()
		{
			globalmenuflag2=0;
			globalmenuflag3=0;
			globalmenuflag4=0;
			globalmenuflag5=1;
			globalmenuflag6=0;
			globalmenuflag7=0;

			document.gallery.src='images/hotels/gallery2.gif';

			Restore2();
			Restore3();
			Restore4();
			Restore6();
			Restore7();
		}

		function Swap6()
		{
			globalmenuflag2=0;
			globalmenuflag3=0;
			globalmenuflag4=0;
			globalmenuflag5=0;
			globalmenuflag6=1;
			globalmenuflag7=0;

			document.services.src='images/hotels/services2.gif';

			Restore2();
			Restore3();
			Restore4();
			Restore5();
			Restore7();
		}

		function Swap7()
		{
			globalmenuflag2=0;
			globalmenuflag3=0;
			globalmenuflag4=0;
			globalmenuflag5=0;
			globalmenuflag6=0;
			globalmenuflag7=1;

			document.area.src='images/hotels/area2.gif';

			Restore2();
			Restore3();
			Restore4();
			Restore5();
			Restore6();
		}
		
		
		
		
		
		function Restore2_2()
		{
			if(globalmenuflag2==0)
				document.accom.src='images/hotels/accom1.gif';
		}
		function Restore4_2()
		{
			if(globalmenuflag4==0)
				document.food.src='images/hotels/food1.gif';
		}
		function Restore5_2()
		{
			if(globalmenuflag5==0)
				document.gallery.src='images/hotels/gallery1.gif';
		}
		function Restore6_2()
		{
			if(globalmenuflag6==0)
				document.services.src='images/hotels/services1.gif';
		}
		function Restore7_2()
		{
			if(globalmenuflag7==0)
				document.area.src='images/hotels/area1.gif';
		}

		function Swap2_2()
		{
			globalmenuflag2=1;
			globalmenuflag3=0;
			globalmenuflag4=0;
			globalmenuflag5=0;
			globalmenuflag6=0;
			globalmenuflag7=0;

			document.accom.src='images/hotels/accom2.gif';

			Restore4_2();
			Restore5_2();
			Restore6_2();
			Restore7_2();
		}

		function Swap3_2()
		{
			globalmenuflag2=0;
			globalmenuflag3=1;
			globalmenuflag4=0;
			globalmenuflag5=0;
			globalmenuflag6=0;
			globalmenuflag7=0;

			document.congress.src='images/hotels/congress2.gif';

			Restore2_2();
			Restore4_2();
			Restore5_2();
			Restore6_2();
			Restore7_2();
		}

		function Swap4_2()
		{
			globalmenuflag2=0;
			globalmenuflag3=0;
			globalmenuflag4=1;
			globalmenuflag5=0;
			globalmenuflag6=0;
			globalmenuflag7=0;

			document.food.src='images/hotels/food2.gif';

			Restore2_2();
			Restore5_2();
			Restore6_2();
			Restore7_2();
		}

		function Swap5_2()
		{
			globalmenuflag2=0;
			globalmenuflag3=0;
			globalmenuflag4=0;
			globalmenuflag5=1;
			globalmenuflag6=0;
			globalmenuflag7=0;

			document.gallery.src='images/hotels/gallery2.gif';

			Restore2_2();
			Restore4_2();
			Restore6_2();
			Restore7_2();
		}

		function Swap6_2()
		{
			globalmenuflag2=0;
			globalmenuflag3=0;
			globalmenuflag4=0;
			globalmenuflag5=0;
			globalmenuflag6=1;
			globalmenuflag7=0;

			document.services.src='images/hotels/services2.gif';

			Restore2_2();
			Restore4_2();
			Restore5_2();
			Restore7_2();
		}

		function Swap7_2()
		{
			globalmenuflag2=0;
			globalmenuflag3=0;
			globalmenuflag4=0;
			globalmenuflag5=0;
			globalmenuflag6=0;
			globalmenuflag7=1;

			document.area.src='images/hotels/area2.gif';

			Restore2_2();
			Restore4_2();
			Restore5_2();
			Restore6_2();
		}
		
		function Swap2_3()
		{
		
			if(globalmenuflag2==1)
				document.accom.src='images/hotels/accom2.gif';
			else
				document.accom.src='images/hotels/accom4.gif';
		}
		
		function Swap3_3()
		{
		
			if(globalmenuflag3==1)
				document.congress.src='images/hotels/congress2.gif';
			else
				document.congress.src='images/hotels/congress4.gif';
		}
		
		function Swap4_3()
		{
		
			if(globalmenuflag4==1)
				document.food.src='images/hotels/food2.gif';
			else
				document.food.src='images/hotels/food4.gif';
		}
		
		function Swap5_3()
		{
		
			if(globalmenuflag5==1)
				document.gallery.src='images/hotels/gallery2.gif';
			else
				document.gallery.src='images/hotels/gallery4.gif';
		}
		
		function Swap6_3()
		{
		
			if(globalmenuflag6==1)
				document.services.src='images/hotels/services2.gif';
			else
				document.services.src='images/hotels/services4.gif';
		}
		
		function Swap7_3()
		{
		
			if(globalmenuflag7==1)
				document.area.src='images/hotels/area2.gif';
			else
				document.area.src='images/hotels/area4.gif';
		}