var windowOpen = false;
var window1;
function MM_openBrWindow(theURL,winName,features) { //v2.0
   if (windowOpen == false)
        {
		windowOpen = true;
	   	window1=window.open(theURL,winName,features);
		}
   else if (windowOpen == true)
       	{
        window1.close();
		windowOpen = true;   
	  	window1=window.open(theURL,winName,features);
		} 
}//-->


function menu( id)
{
	if(document.getElementById(id).style.display=='none')
	{
		document.getElementById(id).style.display='block'; 
	}
	else
	{
		document.getElementById(id).style.display='none'; 
		
	}
}


		$(function () {
			$('div.demo marquee').marquee('pointer').mouseover(function () {
				$(this).trigger('stop');
			}).mouseout(function () {
				$(this).trigger('start');
			}).mousemove(function (event) {
				if ($(this).data('drag') == true) {
					this.scrollLeft = $(this).data('scrollX') + ($(this).data('x') - event.clientX);
				}
			}).mousedown(function (event) {
				$(this).data('drag', true).data('x', event.clientX).data('scrollX', this.scrollLeft);
			}).mouseup(function () {
				$(this).data('drag', false);
			});
		});
