// JavaScript Document
/*
    function show_country (area, x) {
		//var Map = document.getElementById("country");
		//var Link = document.getElementById("link_" + area);

		document.getElementById("country").style.backgroundPosition = x + "px" + " 0px";
		document.getElementById("link_" + area).className = "menu_button_selected";
	}

	function hide_country (area) {
 		//var Map = document.getElementById("country");
		//var Link = document.getElementById("link_" + area);

		document.getElementById("country").style.backgroundPosition = "0px " + "0px";
		document.getElementById("link_" + area).className = "menu_button";
	}
*/
    function show_country (area, x) {
        var Map = document.getElementById("country");
        var Link = document.getElementById("link_" + area);

        Map.style.backgroundPosition = x + "px " + "0px";
        Link.className = "menu_button_selected";
    }

    function hide_country (area) {
        var Map = document.getElementById("country");
        var Link = document.getElementById("link_" + area);

        Map.style.backgroundPosition = "0px " + "0px";
        Link.className = "menu_button";
    }
    function HideDetails()
    {    
        $(document).ready(function(){
            $("#secondRow").hide();
        });

    }  
 
   
    function ShowDetails()
    {    
        $(document).ready(function(){
            $("#secondRow").show();
        });

    }
function setHomepage()
{
 if (document.all)
    {
        document.body.style.behavior='url(#default#homepage)';
  document.body.setHomePage('http://www.kooora.com/');
 
    }
    else if (window.sidebar)
    {
    if(window.netscape)
    {
         try
   {  
            netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");  
         }  
         catch(e)  
         {  
    alert("this action was aviod by your browser,if you want to enable,please enter about:config in your address line,and change the value of signed.applets.codebase_principal_support to true");  
         }
    } 
    var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components. interfaces.nsIPrefBranch);
    prefs.setCharPref('browser.startup.homepage','http://www.koora.com/');
    }
    else if(window.opera && window.print)
    {
        return true;
    }
}   

