function showOneDesign(){//ajax call to page
	Dialog.info({url: "oneDesign.php", options: {method: 'get'}}, 
            {className: "alphacube", width:800});
	document.getElementById('bodydiv').style.visibility='hidden';
}
function showWarranty(){//ajax call to page
	Dialog.info({url: "warranty.php", options: {method: 'get'}}, 
            {className: "alphacube", width:800, height:550});
	document.getElementById('bodydiv').style.visibility='hidden';
}
function showFormulaB(){//ajax call to page
	Dialog.info({url: "bpops.php", options: {method: 'get'}}, 
            {className: "alphacube", width:800});
	document.getElementById('bodydiv').style.visibility='hidden';
}
function showMoreNews(newsid){
	setTimeout("showNews("+newsid+")",500);
}

function showNews(newsid){//ajax call to page
	Dialog.info({url: "newsdetail.php?id="+newsid, options: {method: 'get'}}, 
            {className: "alphacube", width:920, height:550});
	document.getElementById('bodydiv').style.visibility='hidden';
}
function showSubscribe(){//ajax call to page
	Dialog.info({url: "subscribe.htm", options: {method: 'get'}}, 
            {className: "alphacube", width:920, height:550});
	document.getElementById('bodydiv').style.visibility='hidden';
}
function showMoreEvents(eventid){
	setTimeout("showEvent("+eventid+")",500);
}

function showEvent(eventid){//ajax call to page
	Dialog.info({url: "eventdetail.php?id="+eventid, options: {method: 'get'}}, 
            {className: "alphacube", width:920, height:550});
			document.getElementById('bodydiv').style.visibility='hidden';
}

function showBody(){
			document.getElementById('bodydiv').style.visibility='visible';
}

function showEventGallery(galid,eventid){//ajax call to page
	Dialog.closeInfo();
	setTimeout("displayEventGallery("+galid+","+eventid+")",1000);
}

function displayEventGallery(galid,eventid){
	Dialog.info({url: "eventgallerydetail.php?id="+galid+"&eventid="+eventid, options: {method: 'get'}}, 
            {className: "alphacube", width:950, height:600});
}

function showGallery(galid){//ajax call to page
	Dialog.info({url: "gallerydetail.php?id="+galid, options: {method: 'get'}}, 
            {className: "alphacube", width:950, height:600});
	document.getElementById('bodydiv').style.visibility='hidden';
}

function showHowto(galid){//ajax call to page
	Dialog.info({url: "howtodetail.php?id="+galid, options: {method: 'get'}}, 
            {className: "alphacube", width:950, height:600});
	document.getElementById('bodydiv').style.visibility='hidden';
}

function showNewsGallery(galid,newsid){//ajax call to page
	Dialog.closeInfo();
	setTimeout("displayNewsGallery("+galid+","+newsid+")",1000);
}

function displayNewsGallery(galid,newsid){
	Dialog.info({url: "newsgallerydetail.php?id="+galid+"&newsid="+newsid, options: {method: 'get'}}, 
            {className: "alphacube", width:950, height:600});
}

function showWhereGallery(galid){//ajax call to page
	Dialog.info({url: "wheregallerydetail.php?id="+galid, options: {method: 'get'}}, 
            {className: "alphacube", width:950, height:600});
	document.getElementById('bodydiv').style.visibility='hidden';
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function showAddToKart(){//ajax call to page
	MM_openBrWindow('addtokart.php','kart','scrollbars=yes,resizable=yes,width=960,height=620');
	//Dialog.info({url: "addtokart.php", options: {method: 'get'}}, 
            //{className: "alphacube", width:950, height:600});
	//document.getElementById('bodydiv').style.visibility='hidden';
}

function showSubClub(){
	MM_openBrWindow('sub_club.php','submit','scrollbars=yes,resizable=yes,width=850,height=600');
}
function showSubSail(){
	MM_openBrWindow('sub_sail.php','submit','scrollbars=yes,resizable=yes,width=850,height=600');
}
