var preloadFlag = false;

function preloadImages()
{
            if (document.images) 
            {
		home_aboutus            = newImage('images/home/home_aboutus.gif');
                home_aboutus_over    = newImage('images/home/home_aboutus_over.gif');
                home_ourservices      = newImage('images/home/home_ourservices.gif');
                home_ourservices_over = newImage('images/home/home_ourservices_over.gif');
                home_ourclients         = newImage('images/home/home_ourclients.gif');
                home_ourclients_over = newImage('images/home/home_ourclients_over.gif');
                home_logo_02             = newImage('images/home/home_02.gif');
                home_logo_02b           = newImage('images/home/home_02b.gif');
                home_logo_left           = newImage('images/home/home_06.gif');
                home_logo_center       = newImage('images/home/home_07.jpg'); 
                home_logo_right         = newImage('images/home/home_08.jpg'); 
                home_21                     = newImage('images/home/home_21.jpg'); 
                home_22                     = newImage('images/home/home_22.jpg'); 
                home_23                     = newImage('images/home/home_23.jpg'); 
                home_raboutus           =   newImage('images/home/home_raboutus.gif');
                home_raboutus_over   =  newImage('images/home/home_raboutus_over.gif');
                home_rourservices     = newImage('images/home/home_rourservices.gif');
                home_rourservices_over  =   newImage('images/home/home_rourservices_over.gif');
                home_rourclients            =   newImage('images/home/home_rourclients.gif');
                home_rourclients_over   =   newImage('images/home/home_rourclients_over.gif');
     
                about_overview              =   newImage('images/about/about_overview.gif');
                about_overview_over     =   newImage('images/about/about_overview-over.gif');
                about_ourprincipals         = newImage('images/about/about_ourprincipals.gif');
                about_ourprincipals_over = newImage('images/about/about_ourprincipals-over.gif');
                //about_ourpressreleases  =   newImage('images/about/about_pressreleases.gif');
                //about_ourpressreleases_over =   newImage('images/about/about_pressreleases-over.gif');
                about_buisnesspartners          =   newImage('images/about/about_businesspartners.gif');
                about_businesspartners_over =   newImage('images/about/about_businesspartners-over.gif');

                clients_clientlist              =   newImage('images/clients/clients_clientlist.gif');
                clients_clientlist_over     =   newImage('images/clients/clients_clientlist-over.gif');
                clients_successstories  =   newImage('images/clients/clients_successstories.gif');
                clients_successstories_over = newImage('images/clients/clients_successstories-over.gif');
                clients_testimonials            =   newImage('images/clients/clients_testimonials.gif');
                clients_testimonials_over   =   newImage('images/clients/clients_testimonials-over.gif');
     
                service_overview                =   newImage('images/service/services_overview.gif');
                service_overview_over       =   newImage('images/service/services_overview-over.gif');
                service_itcontract              =   newImage('images/service/services_itcontract.gif');
                service_itcontract_over      =   newImage('images/service/services_itcontract-over.gif');
                service_projectManagement = newImage('images/service/services_projectmanagement.gif');
                service_projectManagement_over  =   newImage('images/service/services_projectmanagement-over.gif');
                service_customsoftware              =   newImage('images/service/services_customsoftware.gif');
                service_customsoftware_over     =   newImage('images/service/services_customsoftware-over.gif');
                service_consulting              =   newImage('images/service/services_consulting.gif');
                service_consulting_over     =   newImage('images/service/services_consulting-over.gif');
                service_faqs                        =   newImage('images/service/services_faqs.gif');
                service_faqs_over               =   newImage('images/service/services_faqs-over.gif');

                preloadFlag = true;

            }    
}
function newImage(arg) 
{
	if (document.images) 
        {
		gotImage = new Image();
		gotImage.src = arg;
		return gotImage;
	}
}
function buildlogo()
{
        document.write("<div id=\"logotopleft\"></div>");
        document.write("<div id=\"logotopleftb\"></div>");
        document.write("<div id=\"logoleft\"></div>");
        document.write("<div id=\"logocenter\"></div>");
        document.write("<div id=\"logoright\"></div>"); 
        return;
}
function popup(mylink, windowname, w, h, scroll)
{
            if (! window.focus)return true;
            var href;
            if (typeof(mylink) == 'string')
                href=mylink;
            else
                href=mylink.href;
            var winl = (screen.width - w) / 2;
            var wint = (screen.height - h) / 2;
            
            winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+'  ';

            window.open(href, windowname, winprops);
            return false;
}
function footerbars()
{
            document.write("<div id=\"footTopNav\">");
            document.write("      <p style=\"text-align: center; clear: both;\">");
            document.write("           <a href=\"/About.htm\">About</a>");
            document.write("           |");
            document.write("           <a href=\"/Service.htm\">Services</a>");
            document.write("           |");
            document.write("           <a href=\"/ClientList.php\">Clients</a>");
            document.write("           |");
            document.write("           <a href=\"/Opportunities.htm\" >Opportunities</a>");
            document.write("           |");
            document.write("           <a href=\"/Contact.htm\">Contact</a>");
            document.write("           |");
            document.write("           <a href=\"/Home.htm\">Home</a>");
            document.write("       </p>");
            document.write("</div>");
            document.write("<div id=\"footCopyRight\">");
            document.write("      <p style=\"text-align: center;\">");
            document.write("Copyright &copy; 2009 BGL Group Inc. All rights reserved");
            document.write("      </p>");
            document.write("</div>") ;
            return;
}
      
/*  this code defines the main menu which appears on every panel displayed
     this code is using the coolmenu subsystem to do all the work.
*/
    
            ocMain=new makeCM("ocMain") //Making the menu object. Argument: menuname

            //Menu properties   
            ocMain.pxBetween=0
            ocMain.fromLeft=0
            ocMain.fromTop=105  
            ocMain.rows=0 
            ocMain.menuPlacement="left"

            ocMain.offlineRoot="file:///c|/work/bgl/BGL Website June 2004/" <!--file:///C|/Inetpub/wwwroot/dhtmlcentral/" -->
            ocMain.onlineRoot="/" 
            ocMain.resizeCheck=1 
            ocMain.wait=00 
            ocMain.fillImg="cm_fill.gif"
            ocMain.zIndex=30

            //Background bar properties
            ocMain.useBar=1
            ocMain.barWidth="menu"
            ocMain.barHeight="menu" 
            ocMain.barClass="clBar"
            ocMain.barX="menu"
            ocMain.barY="menu"
            ocMain.barBorderX=0
            ocMain.barBorderY=0
            ocMain.barBorderClass=""

            //Level properties - ALL properties have to be spesified in level 0
            ocMain.level[0]=new cm_makeLevel() //Add this for each new level
            ocMain.level[0].width=166
            ocMain.level[0].height=20 
            ocMain.level[0].regClass="clLevel0"
            ocMain.level[0].overClass="clLevel0over"
            ocMain.level[0].borderX=0
            ocMain.level[0].borderY=0
            ocMain.level[0].borderClass="clLevel0border"
            ocMain.level[0].offsetX=0
            ocMain.level[0].offsetY=0
            ocMain.level[0].rows=0
            ocMain.level[0].arrow=0
            ocMain.level[0].arrowWidth=0
            ocMain.level[0].arrowHeight=0
            ocMain.level[0].align="right"

            //EXAMPLE SUB LEVEL[1] PROPERTIES - You have to specify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
            ocMain.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
            ocMain.level[1].width=200
            ocMain.level[1].height=20
            ocMain.level[1].regClass="clLevel1"
            ocMain.level[1].overClass="clLevel1over"
            ocMain.level[1].borderX=0
            ocMain.level[1].borderY=0
            ocMain.level[1].align="right" 
            ocMain.level[1].offsetX=0 
            ocMain.level[1].offsetY=0
            ocMain.level[1].rows=0
            ocMain.level[1].borderClass="clLevel1border"
            ocMain.level[1].align="top" 

            ocMain.makeMenu('top0','','','About.htm','','','','images/home/home_aboutus.gif','images/home/home_aboutus_over.gif')
                    ocMain.makeMenu('sub00','top0','Overview','About.htm')
                    ocMain.makeMenu('sub01','top0','Our Principal','AboutourPrincipals.php')        
                    //ocMain.makeMenu('sub02','top0','Press Releases','AboutPressReleases.htm')
                    ocMain.makeMenu('sub03','top0','Business Partners','AboutBusiness.htm')
                       
            ocMain.makeMenu('top1','','','Service.htm','','','','images/home/home_ourservices.gif','images/home/home_ourservices_over.gif')
					ocMain.makeMenu('sub10','top1','Overview','Service.htm')
                    ocMain.makeMenu('sub11','top1','IT Contract Resources','ServiceIT.htm')
                    ocMain.makeMenu('sub12','top1','Project Management','ServiceProject.htm')
                    ocMain.makeMenu('sub13','top1','Software Development','ServiceCustom.htm')
                    ocMain.makeMenu('sub14','top1','Consulting Services','ServiceConsulting.htm')
					ocMain.makeMenu('sub15','top1','FAQs','ServiceFaqs.php') 

             ocMain.makeMenu('top2','','','ClientList.php','','','','images/home/home_ourclients.gif','images/home/home_ourclients_over.gif')
                    ocMain.makeMenu('sub20','top2','Client List','ClientList.php')
                    ocMain.makeMenu('sub21','top2','Success Stories','ClientSuccessList.php')   
                    ocMain.makeMenu('sub22','top2','Testimonials','ClientTestimonials.php')
                     
             ocMain.makeMenu('top3','','','Opportunities.htm','','','','images/home/home_opportunities.gif','images/home/home_opportunities_over.gif')          
             ocMain.makeMenu('top4','','','Contact.htm','','','','images/home/home_contactus.gif','images/home/home_contactus_over.gif') 
             //Leave this line
            ocMain.construct()			

            ocCHbar=new makeCM("ocCHbar") //Making the menu object. Argument: menuname

            //Menu properties   
            ocCHbar.pxBetween=0
            ocCHbar.fromLeft=630
            ocCHbar.fromTop=24  
            ocCHbar.rows=1
            ocCHbar.menuPlacement="left"

            ocCHbar.offlineRoot="file:///c|/work/bgl/BGL Website June 2004/" <!--file:///C|/Inetpub/wwwroot/dhtmlcentral/" -->
            ocCHbar.onlineRoot="/" 
            ocCHbar.resizeCheck=1 
            ocCHbar.wait=00 
            ocCHbar.fillImg="cm_fill.gif"
            ocCHbar.zIndex=30

            //Background bar properties
            ocCHbar.useBar=1
            ocCHbar.barWidth="menu"
            ocCHbar.barHeight="menu" 
            ocCHbar.barClass="clchBar"
            ocCHbar.barX="menu"
            ocCHbar.barY="menu"
            ocCHbar.barBorderX=0
            ocCHbar.barBorderY=0
            ocCHbar.barBorderClass=""

            //Level properties - ALL properties have to be spesified in level 0
            ocCHbar.level[0]=new cm_makeLevel() //Add this for each new level
            ocCHbar.level[0].width=45
            ocCHbar.level[0].height=32 
            ocCHbar.level[0].regClass="clchbarLevel0"
            ocCHbar.level[0].overClass="clchbarLevel0over"
            ocCHbar.level[0].borderX=0
            ocCHbar.level[0].borderY=0
            ocCHbar.level[0].borderClass="clchbarLevel0border"
            ocCHbar.level[0].offsetX=0
            ocCHbar.level[0].offsetY=0
            ocCHbar.level[0].rows=0
            ocCHbar.level[0].arrow=0
            ocCHbar.level[0].arrowWidth=0
            ocCHbar.level[0].arrowHeight=0
            ocCHbar.level[0].align="right"

            ocCHbar.makeMenu('CHtop0','','','Home.htm','','','','images/home/home_home.gif','images/home/home_home_over.gif')
            ocCHbar.makeMenu('CHtop1','','','Contact.htm','',75,'','images/home/home_contact.gif','images/home/home_contact_over.gif') 
            
            //Leave this line
            ocCHbar.construct()			

      