// JavaScript Document
function accPopup(theURL,winName,features) {
		newwindow=window.open(theURL,winName,features);
		if (window.focus) {newwindow.focus()}
		return false;
}

function accImgPopup(theURL,theW,theH) {
		if (typeof imgWin!='undefined') imgWin.close();
		var theT = ',top='+(Math.floor((screen.availHeight-eval(theH)-10)/2));
		var theL = ',left='+(Math.floor((screen.availWidth-eval(theW))/2));
		var features = 'width='+theW+',height='+theH+theT+theL;
		newWindow=window.open(theURL,'imgWin',features);
		newWindow.document.open();
		newWindow.document.write('<html><head><title>audio cook</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><style>body{margin:0;padding:0;}</style></head><body onblur="self.close();">'); 
		newWindow.document.write('<a href="javascript:self.close();"><img src="'+theURL+'" width="'+theW+'" height="'+theH+'" galleryimg="no" id="theImg" border="0"></a>');
		newWindow.document.write('</body></html>');
		newWindow.document.close();
		if (window.focus) {newWindow.focus()}
		return false;
}

function showNav(targetId) {
	var c = $('#'+targetId);
	c.addClass('selected');
	slideTriggered = false;
	if (window.actId && window.actId!=targetId) {
		window.oldActId = window.actId;
		$('#nav_'+window.actId).slideUp('slow',function(){$('#nav_'+targetId).slideDown('slow');$('#'+window.oldActId).removeClass('selected');}); 
		slideTriggered = true;
	}
	if (slideTriggered===false && window.actId==undefined) { $('#nav_'+targetId).slideDown('slow'); }
	window.actId = targetId;
}

//$(document).ready(function() { });
