/**** Popup Window Center Alignment ****/
function popup (windowHeight, windowWidth, windowName, windowUri) {
	var centerWidth = (window.screen.width - windowWidth) / 2;
	var centerHeight = (window.screen.height - windowHeight) / 2;
	newWindow = window.open(windowUri, windowName, 'resizable=1,scrollbars=1,width=' + windowWidth + ',height=' + windowHeight +  ',left=' + centerWidth +  ',top=' + centerHeight);
	newWindow.focus();
	return newWindow.name;
}



/**** Popup Window Center Alignment for Projects ****/
function popupProject (windowName, windowUri) {
	var windowWidth = 800;
	var windowHeight = 600;
	var centerWidth = (window.screen.width - windowWidth) / 2;
	var centerHeight = (window.screen.height - windowHeight) / 2;
	newWindow = window.open(windowUri, windowName, 'resizable=0,scrollbars=0,width='+windowWidth+',height='+windowHeight+',left=' + centerWidth +  ',top=' + centerHeight);
	newWindow.focus();
	return newWindow.name;
}



/**** Popup Horizontal Window Center Alignment for Projects ****/
function popupProject2 (windowName, windowUri) {
	var windowWidth = 600;
	var windowHeight = 800;
	var centerWidth = (window.screen.width - windowWidth) / 2;
	var centerHeight = (window.screen.height - windowHeight) / 2;
	newWindow = window.open(windowUri, windowName, 'resizable=0,scrollbars=0,width='+windowWidth+',height='+windowHeight+',left=' + centerWidth +  ',top=' + centerHeight);
	newWindow.focus();
	return newWindow.name;
}



/**** Home Page Flash Slide Show ****/
function homeFlash() {
	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="703" height="361">');
	document.write('<param name="movie" value="../imagesv2/home.swf">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value="transparent">');
	document.write('<embed src="../imagesv2/home.swf" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="703" height="361">');
	document.write('</embed>');
	document.write('</object>');
}



/**** Hotel Show slide show ****/
function hotelShowFlash() {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="160" height="137">');
	document.write('<param name="movie" value="../imagesv2/hotel-show.swf">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="flashvars" value="wmode=transparent">');
	document.write('<embed src="../imagesv2/hotel-show.swf" width="160" height="137" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" flashvars="wmode=transparent"></embed>');
	document.write('</object>');
}















function awards()
{
	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="160" height="99"><param name="movie" value="../scripts/flash/awards.swf"><param name="quality" value="high"><embed src="../scripts/flash/awards.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="160" height="99"></embed></object>');
}
function inAwards()
{
	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="160" height="99"><param name="movie" value="../flash/awards.swf"><param name="quality" value="high"><embed src="../flash/awards.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="160" height="99"></embed></object>');
}

/*function showPopup(URL)
			{
				if (screen.width > 800)
				{
					window.open(URL,"","width=700,height=450,left=80,top=100,scrollbars=yes,resizable=yes,menubar=0,toolbar=0,status=yes")
				}
				else
				{
					window.open(URL,"","width=600,height=450,left=114,top=100,scrollbars=yes,resizable=yes,menubar=0,toolbar=0,status=yes")
				}
			}*/
			
function projects()
{
	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="723" height="500"><param name="movie" value="../flash/Projects.swf" /><param name="wmode" value="transparent"><param name="quality" value="high" /><embed src="../flash/Projects.swf" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="723" height="500"></embed></object>');
}




function contact()
{
	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="723" height="500"><param name="movie" value="../flash/ContactUs.swf"><param name="quality" value="high"><embed src="../flash/ContactUs.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="723" height="500"></embed></object>');
}






<!--//
	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_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
	// DropDown Menu
	 function findPosX(obj)
	  {
		var curleft = 0;
		if(obj.offsetParent)
			while(1) 
			{
			  curleft += obj.offsetLeft;
			  if(!obj.offsetParent)
				break;
			  obj = obj.offsetParent;
			}
		else if(obj.x)
			curleft += obj.x;
		return curleft;
	  }
	
	function callfun()
	{
	var x1=findPosX(document.getElementById('logo'));
	//alert(x1);
	
	//var x = getOffsetLeft(mnuStrengths);
	
	//mnuStrengths.style.left=x;	
	
	internal.style.left=x1+725;
	//investor.style.left=x1+560;
	}
	//-->