function swapImg(inImage, t){
	if (t == 1){
		if (inImage.src.indexOf('_on.gif') == -1) {
			inImage.src = inImage.src.slice(0,inImage.src.length-4) + '_on.gif';
		}
	}
	else {
		inImage.src = inImage.src.slice(0,inImage.src.length-7) + '.gif';
	}
}
function winOpen(url) {
	var height = 480;
	var width = 420;
	var scroll = 1;
	var wleft = (screen.width - width) / 2;
	var wtop = (screen.height - height) / 2;
	window.open(url,'newwin','fullscreen=0,scrollbars='+scroll+',height='+height+',width='+width+',top='+wtop+',left='+wleft+'');
}
function openLargeWin(url) {
	var height = 523;
	var width = 620;
	var scroll = 0;
	var wleft = (screen.width - width) / 2;
	var wtop = (screen.height - height) / 2;
	window.open(url,'uploadwin','fullscreen=0,scrollbars='+scroll+',height='+height+',width='+width+',top='+wtop+',left='+wleft+'');
}
function openSmallWin(url) {
	var height = 261;
	var width = 310;
	var scroll = 0;
	var wleft = (screen.width - width) / 2;
	var wtop = (screen.height - height) / 2;
	window.open(url,'uploadwin','scrollbars=no,status=no,toolbar=no,menubar=no,location=no,height='+height+',width='+width+',top='+wtop+',left='+wleft+'');
}
function openVidWin(url) {
	var height = 330;
	var width = 340;
	var scroll = 0;
	var wleft = (screen.width - width) / 2;
	var wtop = (screen.height - height) / 2;
	window.open(url,'uploadwin','fullscreen=0,scrollbars='+scroll+',height='+height+',width='+width+',top='+wtop+',left='+wleft+'');
}

function rightClick(e) {
	if (document.all) {
		if (event.button == 2) {
			alert("All images and copy are the property of BORLA Performance Industries. Copyright BORLA Performance Industries, 2007");
			return false;
		}
	}
	if (document.layers) {
		if (e.which == 3) {
			alert("All images and copy are the property of BORLA Performance Industries. Copyright BORLA Performance Industries, 2007");
			return false;
		}
	}
}
if (document.layers) {
	//document.captureEvents(Event.MOUSEDOWN);
}
//document.onmousedown = rightClick;

function showPromo(inDiv) {
    inDiv = document.getElementById(inDiv);
    inDiv.style.top = document.body.scrollTop;

    if (inDiv.style.display == 'none' || inDiv.style.display == '') {
        inDiv.style.display = 'block';
        document.body.style.overflow = 'hidden';
    } else {
        inDiv.style.display = 'none';
        document.body.style.overflow = 'auto';
    }
}