function SetCookie(key, value, expiredays) {
    var cbRememberMe = document.getElementById('cbRememberMe');
    if (cbRememberMe.checked) {
        var exdate = new Date();
        exdate.setDate(exdate.getDate() + expiredays);
        //document.cookie = key + "=" + escape(value) + ";domain=global.roxy.com" + ((expiredays == null) ? "" : ";expires=" + exdate.toGMTString())
        document.cookie = key + "=" + escape(value) + ((expiredays == null) ? "" : ";expires=" + exdate.toGMTString());
    }
}

function GetCookie(key) {
    if (document.cookie.length > 0) {
        c_start = document.cookie.indexOf(key + "=");
        if (c_start != -1) {
            c_start = c_start + key.length + 1;
            c_end = document.cookie.indexOf(";", c_start);
            if (c_end == -1)
                c_end = document.cookie.length;

            return unescape(document.cookie.substring(c_start, c_end));
        }
    }
    return "";
}



$(document).ready(function(){
	var fadeOpacity = 0.3;
	var fadeDuration = 300;

	var navItemHoverYOffset = "-60px";

	$("area").hover(function(){
		$(".country:not(#"+this.id+ "_country" + ")").stop(true,true).fadeTo(fadeDuration, fadeOpacity);		
	},function(){
		$(".country:not(#"+this.id+ "_country"+")").stop(true,true).fadeTo(fadeDuration, 1.0);				
	});
	
	
	$('#navigation ul li a').hover(function(){
	
		var id= $(this).parent().attr('id').toString();
		id = id.substring(4,id.length);
		$(".country:not(#"+id+ "_country" + ")").stop(true,true).fadeTo(fadeDuration, fadeOpacity);				
	},	function(){
		var id= $(this).parent().attr('id').toString();
		id = id.substring(4,id.length);	
		$(".country:not(#"+this.id+ "_country"+")").stop(true,true).fadeTo(fadeDuration, 1.0);				
	
	});


});
