function Chr(CharCode)
{
	return String.fromCharCode(CharCode);
}

function yenipencere(theURL,winName,features) { //v2.0
  nwin=window.open(theURL,winName,features);
  nwin.document.body.style.margin="0px 0px 0px 0px";
  nwin.document.title="Pictures";
}

/**
 * SWFObject v1.4.4: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
 *
 * SWFObject is (c) 2006 Geoff Stearns and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 * **SWFObject is the SWF embed script formerly known as FlashObject. The name was changed for
 *   legal reasons.
 */
function getPlayerVersion() {
	var _23=new PlayerVersion([0,0,0]);
	if(navigator.plugins&&navigator.mimeTypes.length) {
		var x=navigator.plugins["Shockwave Flash"];
		if(x&&x.description) {
			_23=new PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));
		}
	}
	else {
		try {
			var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
		}
		catch(e) {
			try {
				var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
				_23=new PlayerVersion([6,0,21]);
				axo.AllowScriptAccess="always";
			}
			catch(e) {
				if(_23.major==6) {
					return _23;
				}
			}
			try {
				axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
			}
			catch(e) {
			}
		}
		if(axo!=null) {
			_23=new PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));
		}
	}
	return _23;
};

function PlayerVersion(_27) {
	this.major=_27[0]!=null?parseInt(_27[0]):0;
	this.minor=_27[1]!=null?parseInt(_27[1]):0;
	this.rev=_27[2]!=null?parseInt(_27[2]):0;
};
/*
function insertFlash_Intro(elementId)
{
	var version = getPlayerVersion();
	if (version['major'] >= 8) {
		var n = (typeof elementId == 'string') ? document.getElementById(elementId) : elementId;
		n.innerHTML = this.getSWFHTML("swf/intro.swf","mainSWF","503","360","#ebe6e4",false,true);
		//n.innerHTML = "You have Flash player "+ version['major'] +"."+ version['minor'] +"."+ version['rev'] +" installed.";
	}
}
*/
function insertFlash_Sol()
{
	document.write('<div id="flashcontent_main3"></div>');

	var elementId = "flashcontent_main3";
	var version = getPlayerVersion();
	if (version['major'] >= 8) {
		var n = (typeof elementId == 'string') ? document.getElementById(elementId) : elementId;
		n.innerHTML = this.getSWFHTML("../swf/main3.swf","main3SWF","205","602","#ebe6e4",false,false);
		//n.innerHTML = "You have Flash player "+ version['major'] +"."+ version['minor'] +"."+ version['rev'] +" installed.";
	}
	else {
		document.location.replace("../index.html");
	}
}

function insertFlash_Ust(btn)
{
	document.write('<div id="flashcontent_main" style="position:absolute;z-index:1"></div>');

	var elementId = "flashcontent_main";
	var version = getPlayerVersion();
	if (version['major'] >= 8) {
		var n = (typeof elementId == 'string') ? document.getElementById(elementId) : elementId;
		n.innerHTML = this.getSWFHTML("../swf/main_en.swf?button="+btn,"mainSWF","503","209","#ebe6e4",false,false);
		//n.innerHTML = "You have Flash player "+ version['major'] +"."+ version['minor'] +"."+ version['rev'] +" installed.";
	}
	else {
		document.location.replace("../index.html");
	}
	insert_AltMenu();
}

function insert_AltMenu()
{
	document.write('<!-- 01 Sub Menu 00-00 -->\n');
	document.write('<div ID="m01_layer" onMouseOver="AltMenuGoruntuleS('+Chr(39)+'m01_layer'+Chr(39)+')" onMouseOut="AltMenuGizleS('+Chr(39)+'m01_layer'+Chr(39)+')" style="width:183; visibility:hidden; position:absolute;top:242;left:367; z-index:101">\n');
	document.write('	<table border="0" cellpadding="0" cellspacing="0">\n');
	document.write('		<tr>\n');
	document.write('			<td align="left" valign="middle" class="mTablo">\n');
	document.write('				<div class="moTablo">\n');
	document.write('					<div class="mo" onMouseOver="mOver(this)" onMouseOut="mOut(this)" onClick="mClick('+Chr(39)+'tanitim.htm'+Chr(39)+')" valign=middle>Introduction</div>\n');
	document.write('					<div><img src="../img/layout/spacer.gif" width="120" height="3" border="0"></div>\n');
	document.write('					<div class="mo" onMouseOver="mOver(this)" onMouseOut="mOut(this)" onClick="mClick('+Chr(39)+'galeri.htm'+Chr(39)+')" valign=middle>Gallery</div>\n');
	document.write('					<div><img src="../img/layout/spacer.gif" width="120" height="3" border="0"></div>\n');
	document.write('					<div class="mo" onMouseOver="mOver(this)" onMouseOut="mOut(this)" onClick="mClick('+Chr(39)+'onlinerezervasyon.htm'+Chr(39)+')" valign=middle>Online Reservation</div>\n');
	document.write('					<div><img src="../img/layout/spacer.gif" width="120" height="15" border="0"></div>\n');
	document.write('				</div>\n');
	document.write('			</td>\n');
	document.write('		</tr>\n');
	document.write('	</table>\n');
	document.write('</div>\n');
	document.write('<!-- /01 Sub Menu 00-00 -->\n');
	document.write('<!-- 02 Sub Menu 00-00 -->\n');
	document.write('<div ID="m02_layer" onMouseOver="AltMenuGoruntuleS('+Chr(39)+'m02_layer'+Chr(39)+')" onMouseOut="AltMenuGizleS('+Chr(39)+'m02_layer'+Chr(39)+')" style="width:183; visibility:hidden; position:absolute;top:242;left:464; z-index:102">\n');
	document.write('	<table border="0" cellpadding="0" cellspacing="0">\n');
	document.write('		<tr>\n');
	document.write('			<td align="left" valign="middle" class="mTablo">\n');
	document.write('				<div class="moTablo">\n');
	document.write('					<div class="mo" onMouseOver="mOver(this)" onMouseOut="mOut(this)" onClick="mClick('+Chr(39)+'odalar.htm'+Chr(39)+')" valign=middle>Rooms</div>\n');
	document.write('					<div><img src="../img/layout/spacer.gif" width="120" height="3" border="0"></div>\n');
	document.write('					<div class="mo" onMouseOver="mOver(this)" onMouseOut="mOut(this)" onClick="mClick('+Chr(39)+'restaurantlar.htm'+Chr(39)+')" valign=middle>Restaurants</div>\n');
	document.write('					<div><img src="../img/layout/spacer.gif" width="120" height="3" border="0"></div>\n');
	document.write('					<div class="mo" onMouseOver="mOver(this)" onMouseOut="mOut(this)" onClick="mClick('+Chr(39)+'toplantisalonlari.htm'+Chr(39)+')" valign=middle>Meeting Rooms</div>\n');
	document.write('					<div><img src="../img/layout/spacer.gif" width="120" height="3" border="0"></div>\n');
	document.write('					<div class="mo" onMouseOver="mOver(this)" onMouseOut="mOut(this)" onClick="mClick('+Chr(39)+'barlar.htm'+Chr(39)+')" valign=middle>Bars</div>\n');
	document.write('					<div><img src="../img/layout/spacer.gif" width="120" height="15" border="0"></div>\n');
	document.write('				</div>\n');
	document.write('			</td>\n');
	document.write('		</tr>\n');
	document.write('	</table>\n');
	document.write('</div>\n');
	document.write('<!-- /02 Sub Menu 00-00 -->\n');
	document.write('<!-- 03 Sub Menu 00-00 -->\n');
	document.write('<!-- /03 Sub Menu 00-00 -->\n');
	document.write('<!-- 04 Sub Menu 00-00 -->\n');
	document.write('<div ID="m04_layer" onMouseOver="AltMenuGoruntuleS('+Chr(39)+'m04_layer'+Chr(39)+')" onMouseOut="AltMenuGizleS('+Chr(39)+'m04_layer'+Chr(39)+')" style="width:183; visibility:hidden; position:absolute;top:242;left:658; z-index:104">\n');
	document.write('	<table border="0" cellpadding="0" cellspacing="0">\n');
	document.write('		<tr>\n');
	document.write('			<td align="left" valign="middle" class="mTablo">\n');
	document.write('				<div class="moTablo">\n');
	document.write('					<div class="mo" onMouseOver="mOver(this)" onMouseOut="mOut(this)" onClick="mClick('+Chr(39)+'cateringservice.htm'+Chr(39)+')" valign=middle>Catering Service</div>\n');
	document.write('					<div><img src="../img/layout/spacer.gif" width="120" height="3" border="0"></div>\n');
	document.write('					<div class="mo" onMouseOver="mOver(this)" onMouseOut="mOut(this)" onClick="mClick('+Chr(39)+'dugun.htm'+Chr(39)+')" valign=middle>Wedding Feast</div>\n');
	document.write('					<div><img src="../img/layout/spacer.gif" width="120" height="15" border="0"></div>\n');
	document.write('				</div>\n');
	document.write('			</td>\n');
	document.write('		</tr>\n');
	document.write('	</table>\n');
	document.write('</div>\n');
	document.write('<!-- /04 Sub Menu 00-00 -->\n');
	document.write('<!-- 05 Sub Menu 00-00 -->\n');
	document.write('<div ID="m05_layer" onMouseOver="AltMenuGoruntuleS('+Chr(39)+'m05_layer'+Chr(39)+')" onMouseOut="AltMenuGizleS('+Chr(39)+'m05_layer'+Chr(39)+')" style="width:183; visibility:hidden; position:absolute;top:242;left:691; z-index:105">\n');
	document.write('	<table border="0" cellpadding="0" cellspacing="0">\n');
	document.write('		<tr>\n');
	document.write('			<td align="left" valign="middle" class="mTablo">\n');
	document.write('				<div class="moTablo">\n');
	document.write('					<div class="mo" onMouseOver="mOver(this)" onMouseOut="mOut(this)" onClick="mClick('+Chr(39)+'ulasim.htm'+Chr(39)+')" valign=middle>Transport</div>\n');
	document.write('					<div><img src="../img/layout/spacer.gif" width="120" height="3" border="0"></div>\n');
	document.write('					<div class="mo" onMouseOver="mOver(this)" onMouseOut="mOut(this)" onClick="mClick('+Chr(39)+'eform.htm'+Chr(39)+')" valign=middle>Electronic Form</div>\n');
	document.write('					<div><img src="../img/layout/spacer.gif" width="120" height="3" border="0"></div>\n');
	document.write('					<div class="mo" onMouseOver="mOver(this)" onMouseOut="mOut(this)" onClick="mClick('+Chr(39)+'ik.htm'+Chr(39)+')" valign=middle>Jobs & Career</div>\n');
	document.write('					<div><img src="../img/layout/spacer.gif" width="120" height="3" border="0"></div>\n');
	document.write('					<div class="mo" onMouseOver="mOver(this)" onMouseOut="mOut(this)" onClick="mClick('+Chr(39)+'izlenimoneri.htm'+Chr(39)+')" valign=middle style="height:40px">Impressions and <br><br style="line-height:7px">Suggestions</div>\n');
	document.write('					<div><img src="../img/layout/spacer.gif" width="120" height="15" border="0"></div>\n');
	document.write('				</div>\n');
	document.write('			</td>\n');
	document.write('		</tr>\n');
	document.write('	</table>\n');
	document.write('</div>\n');
	document.write('<!-- /05 Sub Menu 00-00 -->\n');
}

function getSWFHTML(swf,ids,w,h,c,m,t) {
	var swfNode = "";
	var swfEmbedType = "application/x-shockwave-flash";
	var swfClassID = "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000";
	var swfCodeBase = "http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0";
	var swfPluginURL = "http://www.macromedia.com/go/getflashplayer";
	var swfScriptAccess = "sameDomain";
	var swfAlign = "middle";
	var swfQuality = "high";
	if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) { // netscape plugin architecture
		swfNode = '<embed type="'+ swfEmbedType +'" pluginspage="'+ swfPluginURL +'" src="'+ swf +'" width="'+ w +'" height="'+ h +'"';
		swfNode += ' id="'+ ids +'" name="'+ ids +'" ';
		swfNode += 'align' +'="'+ swfAlign +'" ';
		swfNode += 'allowScriptAccess' +'="'+ swfScriptAccess +'" ';
		swfNode += 'quality' +'="'+ swfQuality +'" ';
		swfNode += 'bgcolor' +'="'+ c +'" ';
		swfNode += 'menu' +'="'+ m +'" ';
		if (t){
			swfNode += 'wmode' +'="'+ 'transparent' +'" ';
		}
		swfNode += '/>';
	} else { // PC IE
		swfNode = '<object id="'+ ids +'" classid="'+ swfClassID +'" codebase="'+ swfCodeBase +'" width="'+ w +'" height="'+ h +'" align="'+ swfAlign +'">';
	 	swfNode += '<param name="'+ 'pluginurl' +'" value="'+ swfPluginURL +'" />';
	 	swfNode += '<param name="'+ 'allowScriptAccess' +'" value="'+ swfScriptAccess +'" />';
	 	swfNode += '<param name="'+ 'movie' +'" value="'+ swf +'" />';
	 	swfNode += '<param name="'+ 'quality' +'" value="'+ swfQuality +'" />';
	 	swfNode += '<param name="'+ 'bgcolor' +'" value="'+ c +'" />';
	 	swfNode += '<param name="'+ 'menu' +'" value="'+ m +'" />';
		if (t){
	 		swfNode += '<param name="'+ 'wmode' +'" value="'+ 'transparent' +'" />';
		}
		swfNode += "</object>";
	}
	return swfNode;
}

function insertAdres()
{
	document.write('	TURKEY - BURSA <br> \n');
	document.write('	Uludag Caddesi No:16<br> \n');
	document.write('	Çekirge 16100 <br> \n');
	document.write('	E -mail:<br> \n');
	document.write('	<a href="mailto:buyukyildiz@buyukyildizotel.com" >buyukyildiz@buyukyildizotel.com</a><br> \n');
	document.write('	Phone: +90-224-239 69 90(PBX)<br> \n');
	document.write('	Fax: +90-224-239 69 99<br> \n');
}

function insertTelif() 
{
	document.write('BuyukyildizOtel.Com &copy; 2006 &#8226; <a href="privacy.htm" >Privacy Policy</a> &#8226; <a href="termsofuse.htm" >Terms of Use</a><br><br>\n');
	document.write('Design: <a href="http://www.blue-bilgisayar.com" target="_blank">Blue Internet ve Bilgisayar Hizmetleri</a>');
}
