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 getCatPage(id) {
				var url = 'getPage.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: showLoad, onSuccess: showResponse} );
			}
			
			function showLoad () {
				
				$('newsLoading').style.display = 'block';				
			}
			
			function showResponse (originalRequest) {
				if (200 == originalRequest.status)
				{
					
					var newData = originalRequest.responseText;
					$('newsContentDetail').innerHTML = '';	
					$('newsContent').innerHTML = newData;
				}
			}
			
			
function getCatPageAccessories(id) {
				var url = 'getPagedetail.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: showLoadAccessories, onSuccess: showResponseAccessories} );
			}
			
			function showLoadAccessories () {
				
				$('newsLoading').style.display = 'block';				
			}
			
			function showResponseAccessories (originalRequest) {
				if (200 == originalRequest.status)
				{
					
					var newData = originalRequest.responseText;
						
					$('newsContentDetail').innerHTML = newData;
				}
			}
			/*end getCatPageAccessoriesbox*/
