
        function ch_content(file) {

            var alist = "";
            if (file == "music")
                alist = "FrmMusic";
            else if (file == "video")
                alist = "FrmVideo";
            else if (file == "photo") {
            alist = "FrmPhoto";
            }
            else if (file == "news")
                alist = "FrmNews";
            else if (file == "blog")
                alist = "FrmBlog";
            else
                alist = "FrmMusic";

            document.getElementById("dvFrmMusic").style.display = "none";
            document.getElementById("dvFrmVideo").style.display = "none";
            document.getElementById("dvFrmPhoto").style.display = "none";
            //document.getElementById("dvFrmNews").style.display = "none";
            document.getElementById("dvFrmBlog").style.display = "none";

            document.getElementById("aFrmMusic").className = "menu_unselected"
            document.getElementById("aFrmVideo").className = "menu_unselected"
            document.getElementById("aFrmPhoto").className = "menu_unselected"
            //document.getElementById("aFrmNews").className = "menu_unselected"
            document.getElementById("aFrmBlog").className = "menu_unselected"


            document.getElementById("dv" + alist).style.display = "list-item";
            document.getElementById("a" + alist).className = "menu_selected"

            return false;
        }


        function ch_contentMedia(file) {

            var alist = "";
            if (file == "music")
                alist = "FrmMusic";
            else if (file == "video")
                alist = "FrmVideo";
            else if (file == "photo") 
                alist = "FrmPhoto";
            else if (file == "news")
                alist = "FrmNews";
            else if (file == "blog")
                alist = "FrmBlog";
            else
                alist = "FrmMusic";

            document.getElementById("dvFrmMusic").style.display = "none";
            document.getElementById("dvFrmVideo").style.display = "none";
            document.getElementById("dvFrmPhoto").style.display = "none";

            document.getElementById("aFrmMusic").className = "menu_unselected"
            document.getElementById("aFrmVideo").className = "menu_unselected"
            document.getElementById("aFrmPhoto").className = "menu_unselected"


            document.getElementById("dv" + alist).style.display = "list-item";
            document.getElementById("a" + alist).className = "menu_selected"

            return false;
        }

  function ModalPopupsAlert1() {
                  
                ModalPopups.Alert("jsAlert1",
                "Contact Us",
                document.getElementById("dvContactForm").innerHTML,
                {
                    okButtonText: "Close"
                }
                );


            }

            var objURL = new Object();




            // Use the String::replace method to iterate over each
            // name-value pair in the query string. Location.search
            // gives us the query string (if it exists).
       //     window.location.search.replace(
       //         new RegExp("([^?=&]+)(=([^&]*))?", "g"),
       //     function($0, $1, $2, $3) {
       //     objURL[$1] = $3;
       //     }
       //     );
       
       function getQueryStrings() {
            var argList = new Object();

        if(window.location != null && window.location.search.length > 1) {
            var urlParms = window.location.search.substring(1);
            var argPairs = urlParms.split('&');

            for(var i = 0; i < argPairs.length; i++) {
                var pos = argPairs[i].indexOf('=')

                if(pos == -1)
                    continue;
                else {
                    var argName = argPairs[i].substring(0, pos);
                    var argVal = argPairs[i].substring(pos + 1);

                    if(argVal.indexOf('+') != -1)
                        argVal = argVal.replace(/\+/g, ' ');

                    argList[argName] = unescape(argVal);
                }
            }
        }
        
        return argList;
    }




            function CheckForPhotoGallery() {

                var queryStrings = getQueryStrings();
    

                for (var strKey in queryStrings) {


                    // Output the key to the document.
 
                    if(strKey=="A" && queryStrings[ strKey ] == "PhotoGallery")
                    {
                        ch_content("photo");
                    }
                }            

 
            }          