﻿//flashmenu & banner
var flashvars ="";var flashname ="banner";var bannerflashvars="";var flash_height ="279";var flash_base="../flash/";var menuflash_base="../flash/";
switch (document.body.className) {
	case "index":
		flashvars ="column=0";
		flash_base="flash/";
		menuflash_base="flash/";
		flashname ="banner_index";
		flash_height ="336";
	break;
	case "intro":
		flashvars ="column=1";
		flashname ="banner_intro";
	break;
	case "into":
		flashvars ="column=2";
		flashname ="banner_into";
	break;
	case "solicitude":
		flashvars ="column=3";
		flashname ="banner_4solicitude";
	break;
	case "product":
		flashvars ="column=4";
		flashname ="index";
		flash_height ="585";
		flash_base="../flash/main/";
		var thislink=""+this.location;
		if(thislink.indexOf("?")>0) bannerflashvars=thislink.substring((thislink.indexOf("?")+1));
	break;
	case "book":
		flashvars ="column=5";
		flashname ="banner_book";
	break;
	case "service":
		flashvars ="column=6";
		flashname ="banner_service";
	break;
	case "club":
		flashvars ="column=7";
		flashname ="banner_club";
	break;
}
function menu_open(){
	document.getElementById("menu").style.height="215px";
}
function menu_close(){
	document.getElementById("menu").style.height="40px";
}
document.write("<div class=\"flashmenu\" id=\"menu\">");
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','1002','height','215','src',menuflash_base+'menu','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','base',menuflash_base,'wmode','transparent','flashvars',flashvars,'movie',menuflash_base+'menu' );
document.write("</div><div class=\"flashbanner\">");
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','1002','height',flash_height,'src',flash_base+flashname,'quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','base',flash_base,'wmode','opaque','flashvars',bannerflashvars,'movie',flash_base+flashname );
document.write("</div>");

if (document.body.className=="product") {
	window.scrollBy(0,65);
	document.write("<div id=\"subflashbanner\">");
	AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','650','height','360','src',flash_base+'InteriorPano','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','base',flash_base,'movie',flash_base+'InteriorPano' ); //end AC code
	document.write("</div>");
	document.write("<div id=\"subflashbanner2\">");
	AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','650','height','360','src',flash_base+'InteriorPano2','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','base',flash_base,'movie',flash_base+'InteriorPano2' ); //end AC code
	document.write("</div>");
}
function subflash(){
	document.getElementById("subflashbanner").style.zIndex=6;
	document.getElementById("subflashbanner").style.visibility="visible";
}
function subflash_close(){
	document.getElementById("subflashbanner").style.zIndex=3;
	document.getElementById("subflashbanner").style.visibility="hidden";
}
function subflash2(){
	document.getElementById("subflashbanner2").style.zIndex=6;
	document.getElementById("subflashbanner2").style.visibility="visible";
}
function subflash_close2(){
	document.getElementById("subflashbanner2").style.zIndex=3;
	document.getElementById("subflashbanner2").style.visibility="hidden";
}