
var HelloWorld = function(){
    // everything in this space is private and only accessible in the HelloWorld block
    
    // define some private variables
    var dialog, showBtn;
    
    var toggleTheme = function(){
        getEl(document.body, true).toggleClass('ytheme-gray');
    };
    // return a public interface
    return {
        init : function(){
             showBtn = getEl('show-dialog-hanaelomr'); /// This is link ID ///
             // attach to click event
             showBtn.on('click', this.showDialog, this, true);
             
             //getEl('theme-btn').on('click', toggleTheme);
        },
        
        showDialog : function(){
            if(!dialog){ // lazy initialize the dialog and only create it once
                dialog = new YAHOO.ext.BasicDialog("hello-dlg", { /// This is ID of the main DIV ///
                        modal:false,
                        autoTabs:false,
                        width:550,
                        height:440,
                        shadow:true,
                        minWidth:500,
                        minHeight:430,
                        proxyDrag: true
                });
                dialog.addKeyListener(27, dialog.hide, dialog);
                dialog.addButton('Close', dialog.hide, dialog);
            }
            dialog.show(showBtn.dom);
        }
       
    };
}();
YAHOO.ext.EventManager.onDocumentReady(HelloWorld.init, HelloWorld, true);

////Copy to here///


var HadeyatAlOmr = function(){
    // everything in this space is private and only accessible in the HelloWorld block
    
    // define some private variables
    var dialog, showBtn;
    
    var toggleTheme = function(){
        getEl(document.body, true).toggleClass('ytheme-gray');
    };
    // return a public interface
    return {
        init : function(){
             showBtn = getEl('show-dialog-Hadeyat_Al_Omr'); /// This is link ID ///
             // attach to click event
             showBtn.on('click', this.showDialog, this, true);
             
             //getEl('theme-btn').on('click', toggleTheme);
        },
        
        showDialog : function(){
            if(!dialog){ // lazy initialize the dialog and only create it once
                dialog = new YAHOO.ext.BasicDialog("HadeyatAlOmr-dlg", { /// This is ID of the main DIV ///
                        modal:false,
                        autoTabs:false,
                        width:550,
                        height:430,
                        shadow:true,
                        minWidth:500,
                        minHeight:430,
                        proxyDrag: true
                });
                dialog.addKeyListener(27, dialog.hide, dialog);
                dialog.addButton('Close', dialog.hide, dialog);
            }
            dialog.show(showBtn.dom);
        }
       
    };
}();
YAHOO.ext.EventManager.onDocumentReady(HadeyatAlOmr.init, HadeyatAlOmr, true);
///////////////////////////////Hemayat_Al_Omr/////////////////

var HemayatAlOmr = function(){
    // everything in this space is private and only accessible in the HelloWorld block
    
    // define some private variables
    var dialog, showBtn;
    
    var toggleTheme = function(){
        getEl(document.body, true).toggleClass('ytheme-gray');
    };
    // return a public interface
    return {
        init : function(){
             showBtn = getEl('show-dialog-Hemayat_Al_Omr'); /// This is link ID ///
             // attach to click event
             showBtn.on('click', this.showDialog, this, true);
             
             //getEl('theme-btn').on('click', toggleTheme);
        },
        
        showDialog : function(){
            if(!dialog){ // lazy initialize the dialog and only create it once
                dialog = new YAHOO.ext.BasicDialog("HemayatAlOmr-dlg", { /// This is ID of the main DIV ///
                        modal:false,
                        autoTabs:false,
                        width:550,
                        height:330,
                        shadow:true,
                        minWidth:500,
                        minHeight:430,
                        proxyDrag: true
                });
                dialog.addKeyListener(27, dialog.hide, dialog);
                dialog.addButton('Close', dialog.hide, dialog);
            }
            dialog.show(showBtn.dom);
        }
       
    };
}();
YAHOO.ext.EventManager.onDocumentReady(HemayatAlOmr.init, HemayatAlOmr, true);
///////////////////////////////Marahel_Al_Omr/////////////////

var MarahelAlOmr = function(){
    // everything in this space is private and only accessible in the HelloWorld block
    
    // define some private variables
    var dialog, showBtn;
    
    var toggleTheme = function(){
        getEl(document.body, true).toggleClass('ytheme-gray');
    };
    // return a public interface
    return {
        init : function(){
             showBtn = getEl('show-dialog-Marahel_Al_Omr'); /// This is link ID ///
             // attach to click event
             showBtn.on('click', this.showDialog, this, true);
             
             //getEl('theme-btn').on('click', toggleTheme);
        },
        
        showDialog : function(){
            if(!dialog){ // lazy initialize the dialog and only create it once
                dialog = new YAHOO.ext.BasicDialog("MarahelAlOmr-dlg", { /// This is ID of the main DIV ///
                        modal:false,
                        autoTabs:false,
                        width:550,
                        height:330,
                        shadow:true,
                        minWidth:500,
                        minHeight:430,
                        proxyDrag: true
                });
                dialog.addKeyListener(27, dialog.hide, dialog);
                dialog.addButton('Close', dialog.hide, dialog);
            }
            dialog.show(showBtn.dom);
        }
       
    };
}();
YAHOO.ext.EventManager.onDocumentReady(MarahelAlOmr.init, MarahelAlOmr, true);

///////////////////////////////Rabea_Al_Omr/////////////////

var RabeaAlOmr = function(){
    // everything in this space is private and only accessible in the HelloWorld block
    
    // define some private variables
    var dialog, showBtn;
    
    var toggleTheme = function(){
        getEl(document.body, true).toggleClass('ytheme-gray');
    };
    // return a public interface
    return {
        init : function(){
             showBtn = getEl('show-dialog-Rabea_Al_Omr'); /// This is link ID ///
             // attach to click event
             showBtn.on('click', this.showDialog, this, true);
             
             //getEl('theme-btn').on('click', toggleTheme);
        },
        
        showDialog : function(){
            if(!dialog){ // lazy initialize the dialog and only create it once
                dialog = new YAHOO.ext.BasicDialog("RabeaAlOmr-dlg", { /// This is ID of the main DIV ///
                        modal:false,
                        autoTabs:false,
                        width:550,
                        height:500,
                        shadow:true,
                        minWidth:500,
                        minHeight:430,
                        proxyDrag: true
                });
                dialog.addKeyListener(27, dialog.hide, dialog);
                dialog.addButton('Close', dialog.hide, dialog);
            }
            dialog.show(showBtn.dom);
        }
       
    };
}();
YAHOO.ext.EventManager.onDocumentReady(RabeaAlOmr.init, RabeaAlOmr, true);



///////////////////////////////Sanad_Al_Omr/////////////////

var SanadAlOmr = function(){
    // everything in this space is private and only accessible in the HelloWorld block
    
    // define some private variables
    var dialog, showBtn;
    
    var toggleTheme = function(){
        getEl(document.body, true).toggleClass('ytheme-gray');
    };
    // return a public interface
    return {
        init : function(){
             showBtn = getEl('show-dialog-Sanad_Al_Omr'); /// This is link ID ///
             // attach to click event
             showBtn.on('click', this.showDialog, this, true);
             
             //getEl('theme-btn').on('click', toggleTheme);
        },
        
        showDialog : function(){
            if(!dialog){ // lazy initialize the dialog and only create it once
                dialog = new YAHOO.ext.BasicDialog("SanadAlOmr-dlg", { /// This is ID of the main DIV ///
                        modal:false,
                        autoTabs:false,
                        width:550,
                        height:440,
                        shadow:true,
                        minWidth:500,
                        minHeight:430,
                        proxyDrag: true
                });
                dialog.addKeyListener(27, dialog.hide, dialog);
                dialog.addButton('Close', dialog.hide, dialog);
            }
            dialog.show(showBtn.dom);
        }
       
    };
}();
YAHOO.ext.EventManager.onDocumentReady(SanadAlOmr.init, SanadAlOmr, true);





///////////////////////////////Home_Plus/////////////////

var HomePlus = function(){
    // everything in this space is private and only accessible in the HelloWorld block
    
    // define some private variables
    var dialog, showBtn;
    
    var toggleTheme = function(){
        getEl(document.body, true).toggleClass('ytheme-gray');
    };
    // return a public interface
    return {
        init : function(){
             showBtn = getEl('show-dialog-Home_Plus'); /// This is link ID ///
             // attach to click event
             showBtn.on('click', this.showDialog, this, true);
             
             //getEl('theme-btn').on('click', toggleTheme);
        },
        
        showDialog : function(){
            if(!dialog){ // lazy initialize the dialog and only create it once
                dialog = new YAHOO.ext.BasicDialog("HomePlus-dlg", { /// This is ID of the main DIV ///
                        modal:false,
                        autoTabs:false,
                        width:550,
                        height:400,
                        shadow:true,
                        minWidth:500,
                        minHeight:430,
                        proxyDrag: true
                });
                dialog.addKeyListener(27, dialog.hide, dialog);
                dialog.addButton('Close', dialog.hide, dialog);
            }
            dialog.show(showBtn.dom);
        }
       
    };
}();
YAHOO.ext.EventManager.onDocumentReady(HomePlus.init, HomePlus, true);


///////////////////////////////Safety_Plus/////////////////

var SafetyPlus = function(){
    // everything in this space is private and only accessible in the HelloWorld block
    
    // define some private variables
    var dialog, showBtn;
    
    var toggleTheme = function(){
        getEl(document.body, true).toggleClass('ytheme-gray');
    };
    // return a public interface
    return {
        init : function(){
             showBtn = getEl('show-dialog-Safety_Plus'); /// This is link ID ///
             // attach to click event
             showBtn.on('click', this.showDialog, this, true);
             
             //getEl('theme-btn').on('click', toggleTheme);
        },
        
        showDialog : function(){
            if(!dialog){ // lazy initialize the dialog and only create it once
                dialog = new YAHOO.ext.BasicDialog("SafetyPlus-dlg", { /// This is ID of the main DIV ///
                        modal:false,
                        autoTabs:false,
                        width:550,
                        height:400,
                        shadow:true,
                        minWidth:500,
                        minHeight:430,
                        proxyDrag: true
                });
                dialog.addKeyListener(27, dialog.hide, dialog);
                dialog.addButton('Close', dialog.hide, dialog);
            }
            dialog.show(showBtn.dom);
        }
       
    };
}();
YAHOO.ext.EventManager.onDocumentReady(SafetyPlus.init, SafetyPlus, true);



///////////////////////////////Business_Plus/////////////////

var BusinessPlus = function(){
    // everything in this space is private and only accessible in the HelloWorld block
    
    // define some private variables
    var dialog, showBtn;
    
    var toggleTheme = function(){
        getEl(document.body, true).toggleClass('ytheme-gray');
    };
    // return a public interface
    return {
        init : function(){
             showBtn = getEl('show-dialog-Business_Plus'); /// This is link ID ///
             // attach to click event
             showBtn.on('click', this.showDialog, this, true);
             
             //getEl('theme-btn').on('click', toggleTheme);
        },
        
        showDialog : function(){
            if(!dialog){ // lazy initialize the dialog and only create it once
                dialog = new YAHOO.ext.BasicDialog("BusinessPlus-dlg", { /// This is ID of the main DIV ///
                        modal:false,
                        autoTabs:false,
                        width:550,
                        height:400,
                        shadow:true,
                        minWidth:500,
                        minHeight:430,
                        proxyDrag: true
                });
                dialog.addKeyListener(27, dialog.hide, dialog);
                dialog.addButton('Close', dialog.hide, dialog);
            }
            dialog.show(showBtn.dom);
        }
       
    };
}();
YAHOO.ext.EventManager.onDocumentReady(BusinessPlus.init, BusinessPlus, true);




///////////////////////////////Motor_Plus/////////////////

var MotorPlus = function(){
    // everything in this space is private and only accessible in the HelloWorld block
    
    // define some private variables
    var dialog, showBtn;
    
    var toggleTheme = function(){
        getEl(document.body, true).toggleClass('ytheme-gray');
    };
    // return a public interface
    return {
        init : function(){
             showBtn = getEl('show-dialog-Motor_Plus'); /// This is link ID ///
             // attach to click event
             showBtn.on('click', this.showDialog, this, true);
             
             //getEl('theme-btn').on('click', toggleTheme);
        },
        
        showDialog : function(){
            if(!dialog){ // lazy initialize the dialog and only create it once
                dialog = new YAHOO.ext.BasicDialog("MotorPlus-dlg", { /// This is ID of the main DIV ///
                        modal:false,
                        autoTabs:false,
                        width:550,
                        height:440,
                        shadow:true,
                        minWidth:500,
                        minHeight:430,
                        proxyDrag: true
                });
                dialog.addKeyListener(27, dialog.hide, dialog);
                dialog.addButton('Close', dialog.hide, dialog);
            }
            dialog.show(showBtn.dom);
        }
       
    };
}();
YAHOO.ext.EventManager.onDocumentReady(MotorPlus.init, MotorPlus, true);



///////////////////////////////Corporate_Products/////////////////

var CorporateProducts = function(){
    // everything in this space is private and only accessible in the HelloWorld block
    
    // define some private variables
    var dialog, showBtn;
    
    var toggleTheme = function(){
        getEl(document.body, true).toggleClass('ytheme-gray');
    };
    // return a public interface
    return {
        init : function(){
             showBtn = getEl('show-dialog-Corporate_Products'); /// This is link ID ///
             // attach to click event
             showBtn.on('click', this.showDialog, this, true);
             
             //getEl('theme-btn').on('click', toggleTheme);
        },
        
        showDialog : function(){
            if(!dialog){ // lazy initialize the dialog and only create it once
                dialog = new YAHOO.ext.BasicDialog("CorporateProducts-dlg", { /// This is ID of the main DIV ///
                        modal:false,
                        autoTabs:false,
                        width:550,
                        height:400,
                        shadow:true,
                        minWidth:500,
                        minHeight:430,
                        proxyDrag: true
                });
                dialog.addKeyListener(27, dialog.hide, dialog);
                dialog.addButton('Close', dialog.hide, dialog);
            }
            dialog.show(showBtn.dom);
        }
       
    };
}();
YAHOO.ext.EventManager.onDocumentReady(CorporateProducts.init, CorporateProducts, true);
