
function writeflash ()
{ 
 var obj=  "<div   id=\"flashcontent\"  style=\" z-index:99; width:756px; height:650px; left: 0px; position: absolute; top: 0px\">";
 
    obj+= "<embed  src=\"nav_beta_2.swf\" flashvars=\"selec_sec="+sec+"&rdpar="+rdpar+"&rdchild="+rdchild+"\" wmode=\"transparent\" quality=\"high\" bgcolor=\"#ffffff\" width=\"756\" height=\"650\" name=\"nav_beta_2 \" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />";
   obj+= "</div>";
   document.write(obj);
  
}
function hidemanu()
{
    if(diap){
        diap=false;
        document.getElementById('navbar').style.visibility='hidden';
    }
 }
 function writeflashhome()
 {
  var obj=  "<div   id=\"flashcontent\" style=\" z-index:99; width:756px; height:530px; left: 0px; position: absolute; top: 0px\">";
    obj+= "<embed  src=\"home.swf \" wmode=\"transparent\" quality=\"high\" bgcolor=\"#ffffff\" width=\"756\" height=\"530\" name=\"home \" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />";
   obj+= "</div>";
   document.write(obj);
 }
 function writeflashabout()
{ 
 var obj=  "<div   id=\"flashcontent\" style=\" z-index:99; width:756px; height:650px; left: 0px; position: absolute; top: 0px\">";
   
    obj+= "<embed  src=\"about.swf\" flashvars=\"rdpar="+rdpar+"\"  wmode=\"transparent\" quality=\"high\" bgcolor=\"#ffffff\" width=\"756\" height=\"650\" name=\"about \" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />";
   obj+= "</div>";
   document.write(obj);
  
}
function writeflashcustom()
{ 
 var obj=  "<div   id=\"flashcontent\" style=\" z-index:99; width:756px; height:650px; left: 0px; position: absolute; top: 0px\">";
    obj+= "<embed  src=\"custom.swf\" wmode=\"transparent\" quality=\"high\" bgcolor=\"#ffffff\" width=\"756\" height=\"650\" name=\"custom \" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />";
   obj+= "</div>";
   document.write(obj);
  
}
function adjushome(){
        var mac=null;
        var  myHeight = 0;
        if( typeof( window.innerWidth ) == 'number' ) {
        mac=1;
        //Non-IE

        myHeight = window.innerHeight;
        } else if( document.documentElement && (document.documentElement.clientHeight ) ) {
        //IE 6+ in 'standards compliant mode'
        myHeight = document.documentElement.clientHeight;
        } else if( document.body && (  document.body.clientHeight ) ) {
        //IE 4 compatible
        myHeight = document.body.clientHeight;
        }
        var content_h= parseInt(document.getElementById('main').style.height.replace(/px/,""));
        if(myHeight>530)
        {
        document.getElementById('main').style.top=((myHeight-content_h)/2).toString(10)+'px';
        }else{
        document.getElementById('main').style.top='0px';
        }
}
function adjuspro(){
 
        var mac=null;
        var  myHeight = 0;
        if( typeof( window.innerWidth ) == 'number' ) {
        mac=1;
        //Non-IE

        myHeight = window.innerHeight;
        } else if( document.documentElement && (document.documentElement.clientHeight ) ) {
        //IE 6+ in 'standards compliant mode'
        myHeight = document.documentElement.clientHeight;
        } else if( document.body && (  document.body.clientHeight ) ) {
        //IE 4 compatible
        myHeight = document.body.clientHeight;
        }
       
        var content_h= parseInt(document.getElementById('main').style.height.replace(/px/,""));
        if(myHeight>670)
        {
        document.getElementById('main').style.top=((myHeight-670)/2).toString(10)+'px';
        }else{
        document.getElementById('main').style.top='0px';
        }
}

      