function MM_openBrWindow(theURL,winName,features) { //v2.0
  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 slide_getImg(value)
{
	document.getElementById('idslide').src=value;

}


function getSearchPage(id) {
				var url = 'getSearchPage.php';
				var rand   = Math.random(9999);
				var pars   = 'id=' + id + '&rand=' + rand;
				var myAjax = new Ajax.Request( url, {method: 'get',asynchronous:true, parameters: pars, onLoading: showSearchLoad, onSuccess: showSearchResponse} );
			}
			
			function showSearchLoad () {
				
				$('newsSearchLoading').style.display = 'block';				
			}
			
			function showSearchResponse (originalRequest) {
				if (200 == originalRequest.status)
				{
					
					var newData = originalRequest.responseText;
						
					$('newsSearchContent').innerHTML = newData;
				}
			}
			/*end select box*/
function getSearchPageQuery(id)	
{
	  var rand   = Math.random(9999);
$.ajax({
   type: "GET",
   url: "getSearchPage.php",
   data: 'id=' + id + '&rand=' + rand,		
    dataType: "html",
   success: function(msg){
	$("#newsSearchContent").html(msg);

   }
 });

}

