function photogallery(lang){
if(lang == "en"){
document.write('<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=\"750\" height=\"385\"><param name=\"movie\" value=\"photogallery.swf"><param name=\"quality\" value=\"high\"><param name=\"wmode\" value=\"transparent\"><embed src=\"photogallery.swf" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"750\" height=\"385\" wmode=\"transparent\"></embed></object>');
}
if(lang == "tr"){
	document.write('<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=\"750\" height=\"385\"><param name=\"movie\" value=\"photogallery_tr.swf"><param name=\"quality\" value=\"high\"><param name=\"wmode\" value=\"transparent\"><embed src=\"photogallery_tr.swf" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"750\" height=\"385\" wmode=\"transparent\"></embed></object>');
}}
function historicallocation(lang){
	if(lang == "en"){
document.write('<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=\"575\" height=\"470\"><param name=\"movie\" value=\"flash/historicallocation.swf\"><param name=\"quality\" value=\"high\"><param name=\"wmode\" value=\"transparent\"><embed src=\"flash/historicallocation.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"575\" height=\"470\" wmode=\"transparent\"></embed></object>');
	}
	if(lang == "tr"){
document.write('<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=\"575\" height=\"470\"><param name=\"movie\" value=\"flash/historicallocation_tr.swf\"><param name=\"quality\" value=\"high\"><param name=\"wmode\" value=\"transparent\"><embed src=\"flash/historicallocation_tr.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"575\" height=\"470\" wmode=\"transparent\"></embed></object>');
}
}
function rates(lang){
	document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=\"330\" height=\"400\"><param name=\"movie\" value=\"flash/reservation_small.swf?language='+lang+'\"><param name=\"quality\" value=\"high\">	<param name=\"wmode\" value=\"transparent\"><param name=\"SCALE\" value=\"noscale\"><embed src=\"flash/reservation_small.swf?language='+lang+'\" width=\"330\" height=\"400\" wmode=\"transparent\" quality=\"high\" pluginspage=\"https://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" scale=\"noscale\"></embed></object>');
}

var currentDate = new Date();

function MM_jumpMenu(targ,selObj,restore){ //v3.0
	var targetPath = selObj.options[selObj.selectedIndex].value;
	switch(targetPath){
		case "reservations_en" : openReservation('en', '1', '1', currentDate.getFullYear(), currentDate.getMonth()+1, currentDate.getDate(), currentDate.getFullYear(), currentDate.getMonth()+1, currentDate.getDate()+1);break;
		case "reservations_fr" : openReservation('fr', '1', '1', currentDate.getFullYear(), currentDate.getMonth()+1, currentDate.getDate(), currentDate.getFullYear(), currentDate.getMonth()+1, currentDate.getDate()+1);break;
		case "reservations_tr" : openReservation('tr', '1', '1', currentDate.getFullYear(), currentDate.getMonth()+1, currentDate.getDate(), currentDate.getFullYear(), currentDate.getMonth()+1, currentDate.getDate()+1);break;
		default: eval(targ+".location='"+targetPath+"'");  if (restore) selObj.selectedIndex=0;break;
	}
}



function openReservation(lang, roomType, roomCount, checkinYear, checkinMonth, checkinDate, checkoutYear, checkoutMonth, checkoutDate){
	//
	// var page = window.open('onlinereservation.aspx?language='+lang+'&roomType='+roomType+'&roomCount='+roomCount+'&checkinYear='+checkinYear+'&checkinMonth='+checkinMonth+'&checkinDate='+checkinDate+'&checkoutYear='+checkoutYear+'&checkoutMonth='+checkoutMonth+'&checkoutDate='+checkoutDate,'reservation','width=500,height=650');
	var page = window.open('https://www.hotelcentrumistanbul.com/onlinereservation.aspx?language='+lang+'&roomType='+roomType+'&roomCount='+roomCount+'&checkinYear='+checkinYear+'&checkinMonth='+checkinMonth+'&checkinDate='+checkinDate+'&checkoutYear='+checkoutYear+'&checkoutMonth='+checkoutMonth+'&checkoutDate='+checkoutDate,'reservation','width=500,height=650');
	page.focus(); 
}

function reservationForm(lang, roomType, roomCount, checkinYear, checkinMonth, checkinDate, checkoutYear, checkoutMonth, checkoutDate){
	//document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=\"500\" height=\"650\" align=\"right\"><param name=\"movie\" value=\"flash/onlinereservation.swf?language='+lang+'&roomType='+roomType+'&roomCountp='+roomCount+'&checkinYear='+checkinYear+'&checkinMonth='+checkinMonth+'&checkinDate='+checkinDate+'&checkoutYear='+checkoutYear+'&checkoutMonth='+checkoutMonth+'&checkoutDate='+checkoutDate+'\"><param name=\"quality\" value=\"high\">	<param name=\"SCALE\" value=\"noscale\"><embed src=\"flash/onlinereservation.swf?language='+lang+'&roomType='+roomType+'&roomCountp='+roomCount+'&checkinYear='+checkinYear+'&checkinMonth='+checkinMonth+'&checkinDate='+checkinDate+'&checkoutYear='+checkoutYear+'&checkoutMonth='+checkoutMonth+'&checkoutDate='+checkoutDate+'\" width=\"500\" height=\"650\" align=\"right\" quality=\"high\" pluginspage=\"https://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" scale=\"noscale\"></embed></object>');
	document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=\"500\" height=\"650\" align=\"right\"><param name=\"movie\" value=\"https://www.hotelcentrumistanbul.com/flash/onlinereservation.swf?language='+lang+'&roomType='+roomType+'&roomCountp='+roomCount+'&checkinYear='+checkinYear+'&checkinMonth='+checkinMonth+'&checkinDate='+checkinDate+'&checkoutYear='+checkoutYear+'&checkoutMonth='+checkoutMonth+'&checkoutDate='+checkoutDate+'\"><param name=\"quality\" value=\"high\">	<param name=\"SCALE\" value=\"noscale\"><embed src=\"https://www.hotelcentrumistanbul.com/flash/onlinereservation.swf?language='+lang+'&roomType='+roomType+'&roomCountp='+roomCount+'&checkinYear='+checkinYear+'&checkinMonth='+checkinMonth+'&checkinDate='+checkinDate+'&checkoutYear='+checkoutYear+'&checkoutMonth='+checkoutMonth+'&checkoutDate='+checkoutDate+'\" width=\"500\" height=\"650\" align=\"right\" quality=\"high\" pluginspage=\"https://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" scale=\"noscale\"></embed></object>');

}

function flashadmin(){
document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=\"990\" height=\"800\"><param name=\"movie\" value=\"../flash/mainapp.swf\"><param name=\"allowScriptAccess\" value=\"sameDomain\"><param name=\"quality\" value=\"high\"><param name=\"SCALE\" value=\"noscale\"><embed src=\"../flash/mainapp.swf\" allowScriptAccess=\"sameDomain\" width=\"990\" height=\"800\" quality=\"high\" pluginspage=\"https://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" scale=\"noscale\"></embed></object>');
}	

function intro(){
	document.write('<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=\"750\" height=\"335\"><param name=\"movie\" value=\"flash/intro.swf\"><param name=\"quality\" value=\"high\"><param name=\"wmode\" value=\"transparent\"><embed src=\"flash/intro.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"750\" height=\"335\" wmode=\"transparent\"></embed></object>');
}

function intro_tr(){
	document.write('<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=\"750\" height=\"335\"><param name=\"movie\" value=\"flash/intro_tr.swf\"><param name=\"quality\" value=\"high\"><param name=\"wmode\" value=\"transparent\"><embed src=\"flash/intro_tr.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"750\" height=\"335\" wmode=\"transparent\"></embed></object>');
}

function indexTitle(titleText){
	document.write('<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=\"750\" height=\"335\"><param name=\"movie\" value=\"flash/index.swf?titleText=' + titleText + '\"><param name=\"quality\" value=\"high\"><param name=\"wmode\" value=\"transparent\"><embed src=\"flash/index.swf?titleText=' + titleText + '\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"750\" height=\"335\" wmode=\"transparent\"></embed></object>');
}

function restaurantTitle(titleText){
	document.write('<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=\"750\" height=\"335\"><param name=\"movie\" value=\"flash/restaurant.swf?titleText=' + titleText + '\"><param name=\"quality\" value=\"high\"><param name=\"wmode\" value=\"transparent\"><embed src=\"flash/restaurant.swf?titleText=' + titleText + '\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"750\" height=\"335\" wmode=\"transparent\"></embed></object>');
}

function barTitle(titleText){
	document.write('<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=\"750\" height=\"335\"><param name=\"movie\" value=\"flash/bar.swf?titleText=' + titleText + '\"><param name=\"quality\" value=\"high\"><param name=\"wmode\" value=\"transparent\"><embed src=\"flash/bar.swf?titleText=' + titleText + '\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"750\" height=\"335\" wmode=\"transparent\"></embed></object>');
}

function hamamTitle(titleText){
	document.write('<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=\"750\" height=\"335\"><param name=\"movie\" value=\"flash/hamam.swf?titleText=' + titleText + '\"><param name=\"quality\" value=\"high\"><param name=\"wmode\" value=\"transparent\"><embed src=\"flash/hamam.swf?titleText=' + titleText + '\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"750\" height=\"335\" wmode=\"transparent\"></embed></object>');
}

function masajTitle(titleText){
	document.write('<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=\"750\" height=\"335\"><param name=\"movie\" value=\"flash/masaj.swf?titleText=' + titleText + '\"><param name=\"quality\" value=\"high\"><param name=\"wmode\" value=\"transparent\"><embed src=\"flash/masaj.swf?titleText=' + titleText + '\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"750\" height=\"335\" wmode=\"transparent\"></embed></object>');
}

function saunaTitle(titleText){
	document.write('<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=\"750\" height=\"335\"><param name=\"movie\" value=\"flash/sauna.swf?titleText=' + titleText + '\"><param name=\"quality\" value=\"high\"><param name=\"wmode\" value=\"transparent\"><embed src=\"flash/sauna.swf?titleText=' + titleText + '\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"750\" height=\"335\" wmode=\"transparent\"></embed></object>');
}

function guestroomsTitle(titleText){
	document.write('<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=\"750\" height=\"335\"><param name=\"movie\" value=\"flash/guestrooms.swf?titleText=' + titleText + '\"><param name=\"quality\" value=\"high\"><param name=\"wmode\" value=\"transparent\"><embed src=\"flash/guestrooms.swf?titleText=' + titleText + '\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"750\" height=\"335\" wmode=\"transparent\"></embed></object>');
}

function suitesTitle(titleText){
	document.write('<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=\"750\" height=\"335\"><param name=\"movie\" value=\"flash/suites.swf?titleText=' + titleText + '\"><param name=\"quality\" value=\"high\"><param name=\"wmode\" value=\"transparent\"><embed src=\"flash/suites.swf?titleText=' + titleText + '\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"750\" height=\"335\" wmode=\"transparent\"></embed></object>');
}

function photosTitle(titleText){
	document.write('<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=\"750\" height=\"335\"><param name=\"movie\" value=\"flash/highphotos.swf?titleText=' + titleText + '\"><param name=\"quality\" value=\"high\"><param name=\"wmode\" value=\"transparent\"><embed src=\"flash/highphotos.swf?titleText=' + titleText + '\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"750\" height=\"335\" wmode=\"transparent\"></embed></object>');
}
function contactTitle(titleText){
	document.write('<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=\"750\" height=\"335\"><param name=\"movie\" value=\"flash/contact.swf?titleText=' + titleText + '\"><param name=\"quality\" value=\"high\"><param name=\"wmode\" value=\"transparent\"><embed src=\"flash/contact.swf?titleText=' + titleText + '\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"750\" height=\"335\" wmode=\"transparent\"></embed></object>');
}

