 function toggle_display(id){



    oD=document.getElementById(id);

    if(oD.style.display=='block'){oD.style.display='none'} else {oD.style.display='block'}

 }
 
 
 function writeflash(ftlo){

       var cde = ('\
      <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"   width="'+iW+'" height="'+iH+'" align="middle">\
      <param name="allowScriptAccess" value="sameDomain" />\
      <param name="movie" value="files/'+ftlo+'" />\
      <param name="quality" value="high" />\
      <param name="menu" value="false" />\
      <param name="wmode" value="transparent" />\
      <embed wmode="transparent" src="files/'+ftlo+'"  width="'+iW+'" height="'+iH+'" menu="false" quality="high"  name="home" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\
      </object>\
      ')
   
      return cde;
 }
 
 function init(){

    //$("#hdide").remove()

 }
 
 function loaderout(){
/*
      document.write('\
      <div id="hdide" style="top:0;left:0;position:absoute;z-index:5000;width:'+$(window).width()+'px;height:'+$(window).height()+'px;background:#999">\
      <img style="margin:20px" src=images/loading.gif />\
      </div>\
      ')*/
 }
 
 function fillflsh(ftlo){

      var flH = $("#theflashc").height();
      $("#theflashc").css('margin-top',Math.floor(555-flH)/2+'px')


                $("a","#menu").click(function(){
                      $('a','#menu').removeClass('sel');
                      $(this).addClass('sel');
                       $("#menuslider").stop().hide()
                      sSrc = $(this).attr('href');
                      sSrc = sSrc.replace(/index\.php/,'_ajax_index.php');
                      $("#theajaxcontent").load(sSrc)
                        return false;

                })




       iW = $(window).width()+20
      iH = Math.floor((555/1024)*iW)

//alert('eee')
     // $("#ifht").html(writeflash(ftlo))
  //    $("#theflash").html(writeflash(ftlo))
     // $("#ttfla").html(writeflash(ftlo))

  if($(window).height()>660){
      iTH=(($(window).height()-$("#all").height()-60)/2);
     $("#all").prepend('<div id="topspacerh" style="z-index:2000;position:relative;height:'+iTH+'px">&nbsp;</div>')

      iMSmt = parseInt($("#menuslider").css("margin-top"));
     // alert(iMSmt)

     if($.browser.msie &&  $.browser.version.substr(0,1)=="6")$("#menuslider").css("margin-top","-"+(iTH+58)+"px")
  }

  //$("#ifht").css("margin-top","-"+(iH-55)+'px')

 $('.mlefth').css("margin-left",Math.floor((iW-1024)/2)+"px")
$("a").focus(function(){$(this).blur()})

  document.write('<img src="images/loading.gif" alt="" />');

 }
 
