// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = 10;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Revision of Flash required
var requiredRevision = 2;
// -----------------------------------------------------------------------------
// -->
var w = screen.width;

//var expdate = new Date(); expdate.setTime(expdate.getTime() + 60000);
//set_cookie('_bwidth', w, expdate);
createCookie('_bwidth',w ,1);

function createCookie(name,value,days) {
if (days) {
	var date = new Date();
	date.setTime(date.getTime()+(days*24*60*60*1000));
	var expires = "; expires="+date.toGMTString();
}
else var expires = "";
document.cookie = name+"="+value+expires+"; path=/";
}


	(function($){ 
		jQuery.fn.mailto = function() {
			return this.each(function(){
				var email = $(this).html().replace(/\s*\(.+\)\s*/, '@');
				$(this).before('<a href="mailto:' + email + '" rel="nofollow" title="Email ' + email + '">' + email + '</a>').remove();
			});
		};
		$(function(){
			$('a.email').mailto();
		});
	})(jQuery);

        $(function() {
            $("#jsScroller").jScrollPane({animateTo:true, animateInterval:50, animateStep:5});
            
            $('a.meet-to').bind('click',function(){
                $this = $(this);
                var destinationSelector = $(this).attr('rel');
                $("#jsScroller").each(function() {
                        this.scrollTo(destinationSelector);
                        var alture = $(this).css('height');
                    });
                return false;
            });
           
        });

