// bac stands for 'banner_ad_container'




function gf_build_innerHTML_bac ( args_which )
  { gf_echo_html_bac ( gf_build_html_bac ( args_which ) ) ;
  }


//------------------------------------------------------------------------
function gf_build_html_bac ( args_which )
  { if      ( args_which == "shockwave" )
      { 
      }
    else if ( args_which == "flash"     )
      { /*
	    lvs_html  = "                                                                                         " ;
    	lvs_html += "<iframe src='http://www.toddanddotty.com/OpenHouse3d/Flash/banner_ad2.swf'   " ;           
    	lvs_html += "        style='position:absolute; width:100%; height:100%;'                              " ;  
    	lvs_html += "        frameborder='0' >                                                                " ;
    	lvs_html += "</iframe>                                                                                " ;
		//lvs_html  = gf_build_html ( "HTML" )                                                                  ; 
        */
		var lvs_flash_URL = "http://www.toddanddotty.com/OpenHouse3d/Flash/banner_ad2.swf" ;
		lvs_html  = "                                                                                                            " ; 
	    lvs_html += "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'                                                " ; 
		lvs_html += "        codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0'      " ; 
		lvs_html += "        width='100%'     height='100%'                                                                      " ; 
		lvs_html += "        id='Untitled-1'                                                                                     " ; 
		lvs_html += "		  align='middle'                                                                                     " ; 
		lvs_html += "		                                                                                         >           " ; 
		lvs_html += "  <param name='allowScriptAccess' value='always'                                                >           " ; 
		lvs_html += "  <param name='movie'             value='" + lvs_flash_URL + "'                                 >           " ; 
		lvs_html += "  <param name='quality'           value='high'                                                   >          " ; 
		lvs_html += "  <param name='bgcolor'           value='#ffffff'                                                >          " ; 
		lvs_html += "  <embed src='" + lvs_flash_URL + "'                                " ; 
		lvs_html += "         quality='high'                                                                                                                   " ;  
		lvs_html += "		 bgcolor='#ffffff'                                                                                                                  " ; 
		lvs_html += "		 width='100%'     height='100%'                                                                                                    " ; 
		lvs_html += "		 name='Untitled-1'                                                                                                                  " ; 
		lvs_html += "		 align='left'                                                                                                                     " ; 
		lvs_html += "		 allowScriptAccess='always'                                                                                                         " ;    
		lvs_html += "		 type='application/x-shockwave-flash'                                                                                               " ; 
		lvs_html += "		 pluginspage='http://www.macromedia.com/go/getflashplayer' />                                                                       " ; 
		lvs_html += "</object>                                                                                                                                  " ;
      
        ///////lvs_html  = gf_build_html_bac ( "HTML" )   // used for testing
      }
    else if ( args_which == "opera"     )
      { ////lvs_html  = "                                                                                         " ;
        //////lvs_html += gf_build_html_bac ( "HTML" )                                                                  ;            
        //////lvs_html += gf_build_html_bac ( "flash" )                                                                  ;            
      }
    else if ( args_which == "picture"   )
      { 
      }
    else if ( args_which == "HTML"   )
      { lvs_html  = "                                                                                                                                           " ;
        lvs_html += "<div id='home_paragraph_A_title_div'                                                                                                       " ;
        lvs_html += "   class=''                                                                                                                                " ;
		lvs_html += "   style='POSITION:absolute;Z-INDEX:3;top:5%;left:15.5%;width:75%;'     >                                                                 " ;
        lvs_html += "  <p id='home_paragraph_A_title_p'                                                                                                         " ;
	    lvs_html += "     class=''                                                                                                                             " ;
		lvs_html += "     style='POSITION:relative;font-size: 12pt;COLOR: #333333;FONT-WEIGHT: normal;font-family: helvetica, arial;text-align: justify;'>      " ;
		lvs_html += "    <strong style='font-size: 14pt;color: rgb(   2 ,  79 ,  91 );font-weight: normal;'>immersive            </strong> &nbsp;&nbsp;         " ;
	    lvs_html += "    <strong style='font-size: 12pt;color: rgb(   2 ,  79 ,  91 );font-weight: normal;'>videogame-style      </strong> &nbsp;&nbsp;       " ;
	    lvs_html += "    <strong style='font-size: 14pt;color: rgb(   2 ,  79 ,  91 );font-weight: normal;'>virtual environments </strong> &nbsp;&nbsp;       " ;
		lvs_html += " 	  <strong style='font-size: 12pt;color: rgb(   0 ,   0 ,   0 );font-weight: bold;'  > in                  </strong> &nbsp;&nbsp;         " ;
		lvs_html += "	  <strong style='font-size: 14pt;color: rgb(   2 ,  79 ,  91 );font-weight: bold;'  >real-time 3D         </strong>                      " ;
		lvs_html += "  </p>                                                                                                                                     " ;
        lvs_html += "</div>                                                                                                                                     " ;
	    lvs_html += "                                                                                                 " ;  
        lvs_html += "<div id='home_paragraph_B_title_div'                                                                                                               " ;
        lvs_html += "     class=''                                                                                                                                      " ;
		lvs_html += "     style='POSITION:absolute;Z-INDEX:4;top:30%;left:20.5%;width:70%;'     >                                                                     " ;
        lvs_html += "  <p id='home_paragraph_B_title_p'                                                                                                                 " ;
	    lvs_html += "     class=''                                                                                                                                      " ;
		lvs_html += "     style='POSITION:relative;font-size: 12pt;COLOR: #333333;FONT-WEIGHT: normal;font-family: helvetica, arial;text-align: justify;'>              " ;
		lvs_html += "    <strong style='font-size:10pt;color: rgb( 0 , 0 , 0 );font-weight: normal;'>great visualization tool for marketing real estate </strong> <br/> " ;
	    lvs_html += "    <strong style='font-size:10pt;color: rgb( 0 , 0 , 0 );font-weight: normal;'>virtual event facilities                           </strong> <br/> " ;
	    lvs_html += "    <strong style='font-size:10pt;color: rgb( 0 , 0 , 0 );font-weight: normal;'>virtual billboards                                 </strong> <br/> " ;
	    lvs_html += "    <strong style='font-size:10pt;color: rgb( 0 , 0 , 0 );font-weight: normal;'>live webcasting on virtual 3D TV's                 </strong> <br/> " ;
		lvs_html += "  </p>                                                                                                                                             " ;
        lvs_html += "</div>                                                                                                                                             " ;
        lvs_html += "                                                                                                 " ;  
        lvs_html += "<!-- VVVVV        try_it hotspot, to accomodate the round shape of the button -->                                          " ;  
	    lvs_html += "<MAP NAME='try_it_map'>                                                                                                    " ;  
        lvs_html += "  <AREA SHAPE='circle' COORDS='38,38,38'                                                                                   " ;  
        lvs_html += "        onmouseover =\"document.getElementById( 'the_body' ).style.cursor = 'pointer'                                  ;   " ;  
	    lvs_html += "   				     document.getElementById('big_button_normal_img' ).src = 'images/home_try_it_button_over.png'    ;   " ;  
	    lvs_html += "					   \"                                                                                                    " ;  
        lvs_html += "	      onmouseout  =\"document.getElementById( 'the_body' ).style.cursor = 'auto'                                     ;   " ;  
        lvs_html += "                       document.getElementById('big_button_normal_img' ).src = 'images/home_try_it_button_normal.png'  ;   " ;  
	    lvs_html += "					   \"                                                                                                    " ;  
        lvs_html += "	      onmousedown =\"document.getElementById('big_button_normal_img' ).src = 'images/home_try_it_button_down.png'    ;   " ;  
	    lvs_html += "	                   \"                                                                                                    " ;  
        lvs_html += "	      onmouseup   =\"document.getElementById('big_button_normal_img' ).src = 'images/home_try_it_button_normal.png'  ;   " ;  
        lvs_html += "                       location.replace('try_it.php')                                                                  ;   " ;  
        lvs_html += "                     \"                                                                          " ;  
	    lvs_html += "							>                                                                      " ;  
        lvs_html += "</map>                                                                                           " ;  
        lvs_html += "<!-- ^^^^^        try_it hotspot, to accomodate the round shape of the button -->                " ;  
	    lvs_html += "                                                                                                 " ;  
        lvs_html += "<!-- VVVVV        try_it button -->                                                              " ;  
        lvs_html += "<div id='big_button_container'                                                                   " ;  
        lvs_html += "     class='big_button_container_div_class_l    big_button_container_div_class_a '               " ;  
	    lvs_html += "	   style='width:10.03%;height:77%; left:73%; top: 24%;'                                    " ;  
	    lvs_html += "		 >                                                                                         " ;  
	    lvs_html += "                                                                                                 " ;  
        lvs_html += "  <div id= 'big_button_normal_div'                                                               " ;  
        lvs_html += "       class='big_button_normal_div_class_l     big_button_normal_div_class_a'     >             " ;  
	    lvs_html += "    <img id = 'big_button_normal_img'                                                            " ;  
	    lvs_html += "		   class='big_button_normal_img_class_l    big_button_normal_img_class_a '                 " ;                                             
        lvs_html += "         src='images/home_try_it_button_normal.png'                                              " ;  
	    lvs_html += "		USEMAP='#try_it_map'        >                                                              " ;  
	    lvs_html += "  </div>                                                                                         " ;  
	    lvs_html += "                                                                                                 " ;  
        lvs_html += "  <div id= 'big_button_over_div'                                                                 " ;                                                                          
	    lvs_html += "       class='big_button_over_div_class_l     big_button_over_div_class_a'    >                  " ;  
	    lvs_html += "    <img id = 'big_button_over_img'                                                              " ;  
	    lvs_html += "		   class='big_button_over_img_class_l    big_button_over_img_class_a '                     " ;                                             
        lvs_html += "         src='images/home_try_it_button_over.png'                                                " ;  
	    lvs_html += "		   USEMAP='#try_it_map'        >                                                           " ;  
	    lvs_html += "  </div>                                                                                         " ;                                       
	    lvs_html += "                                                                                                 " ;  
	    lvs_html += "  <div id= 'big_button_down_div'                                                                 " ;  
	    lvs_html += "       class='big_button_down_div_class_l     big_button_down_div_class_a'       >               " ;  
	    lvs_html += "    <img id = 'big_button_down_img'                                                              " ;  
	    lvs_html += "		   class='big_button_down_img_class_l    big_button_down_img_class_a '                     " ;                                             
        lvs_html += "         src='images/home_try_it_button_down.png'                                                " ;  
	    lvs_html += "		   USEMAP='#try_it_map'        >                                                           " ;  
        lvs_html += "  </div>                                                                                         " ;                                     
        lvs_html += "</div>                                                                                           " ;  
        lvs_html += "<!-- ^^^^^       submit button -->                                                               " ;  
      };

    //print lvs_html ;
    return lvs_html ;
  } ;
  
//------------------------------------------------------------------------
function gf_echo_html_bac( args_html )
  { document.getElementById( "banner_ad_container_div" ).innerHTML = args_html ; 
  };

//------------------------------------------------------------------------


