        var br_flag;
        var alt = "";
        
        if (window.sidebar) { // Mozilla Firefox Bookmark
                br_flag = "firefox";
                alt = "Bookmark This Site";
        }else if (window.external){
                br_flag = "ie";
                alt = "Add To Favorite";
        }else if (window.opera && window.print ){
                                br_flag = "opera";
                alt = "Add To Favorite";
                }
        
        function getURL(source){
                var url = "http://www.gamezhero.com/?utm_campaign=bookmark&utm_source="+source+"&utm_medium="+br_flag;                
                return(url)
        }
        function CreateBookmarkLink(obj) {
                //location.href;

                var title = "Gamezhero.com @ Free Online Games";
                
                if (br_flag=="firefox") { // Mozilla Firefox Bookmark
                        window.sidebar.addPanel(title, getURL("favorite"),"");
                                                
                                                try {
                                                        netscape.security.PrivilegeManager.enablePrivilege("UniversalPreferencesWrite");
                                                        navigator.preference("browser.startup.homepage", getURL("homepage"));                      
                                                }catch (e) {}
                                                
                } else if(br_flag=="ie" ) { // IE Favorite
                        window.external.AddFavorite(getURL("favorite"), title); 
                        
                        obj.style.behavior = 'url(#default#homepage)';
                        obj.setHomePage(getURL("homepage"));
                } else if (br_flag=="opera"){
                                                var mbm = document.createElement('a');
                                                mbm.setAttribute('rel','sidebar');
                                                mbm.setAttribute('href',getURL("favorite"));
                                                mbm.setAttribute('title',title);
                                                mbm.click();                                    
                                }
        }

                if (br_flag=="ie") { 
                                //document.write('<div style="cursor:pointer; position:absolute; left:0; top:0; width:105px; height:105px; z-index:1;"><a onClick="javascript:CreateBookmarkLink(this);"><img border="0" src="http://www.gamezhero.com/images/btn/b_addtofavorite.gif" alt="'+alt+'" title="'+alt+'" width="105" height="105"></a></div>');
                                //document.write('<div style="cursor:pointer; position:absolute; left:0; top:0; width:105px; height:105px; z-index:1;"><a href="http://www.gamezhero.com/gettoolbar.html?utm_campaign=toolbar_site&utm_source=site&utm_medium=top_button"><img border="0" src="http://www.gamezhero.com/images/btn/b_newgamealerts.gif" alt="New Game Alerts!" title="New Game Alerts" width="105" height="105"></a></div>');
                } else if(br_flag=="firefox"){
                                //document.write('<div style="cursor:pointer; position:absolute; left:0; top:0; width:105px; height:105px; z-index:1;"><a onClick="javascript:CreateBookmarkLink(this);"><img border="0" src="http://www.gamezhero.com/images/btn/b_bookmark.gif" alt="'+alt+'" title="'+alt+'" width="105" height="105"></a></div>');
                }
                //document.write('<div style="cursor:pointer; position:absolute; left:0; top:0; width:100px; height:130px; z-index:1;"><a href="http://www.gamezhero.com/followus.html" target="_blank"><img border="0" src="http://www.gamezhero.com/images/btn/followus.gif" alt="Follow Us On Social Networks" title="Follow Us On Twitter" width="100" height="130"></a></div>');
