function playAudio(strName)
{
 	testwindow=window.open ("audio/" + strName + ".htm", "mywindow","width=580,height=360");
}

function openPage(strName)
{
	testwindow=window.open (strName + ".htm", "mywindow","width=540,height=640");
}

function popitup(url)
{
	newwindow=window.open(url,'forum');
	if (window.focus) {newwindow.focus()}
}

function playVideo(strName)
{
	testwindow=window.open ("video/" + strName + ".htm", "mywindow","width=580,height=360");
}

function playPod(strName)
{
	testwindow=window.open ("audio/pod/" + strName + ".htm", "mywindow","width=580,height=360");
}

function showProduct(strName)
{
 	testwindow=window.open ("images/" + strName + ".htm", "mywindow","width=580,height=360");
}
function showPictures(strName)
{
	testwindow=window.open ("images/" + strName + ".htm", "mywindow","width=580,height=320");
}
function showPics(strName)
{
	testwindow=window.open ("images/" + strName + ".htm", "mywindow","width=360,height=280,status=no");
}
function showBlog(strName)
{
	testwindow=window.open ("pod/" + strName + ".htm", "mywindow","width=580,height=700");
}


function popup(mypage,myname,w,h) 
{

var popupWindow=null;
var href;

LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;
settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';

if (! window.focus)return true;

if (typeof(mypage) == 'string')
   href=mypage;
else
   href=mypage.href;

popupWindow=window.open(href,myname,settings);

popupWindow.focus();

popupWindow.location=mypage;
return false;

}

var baseopacity=0

function showtext(thetext)
{

if (!document.getElementById)

return

textcontainerobj=document.getElementById("tabledescription")

browserdetect=textcontainerobj.filters? "ie" : typeof textcontainerobj.style.MozOpacity=="string"? "mozilla" : ""

instantset(baseopacity)

document.getElementById("tabledescription").innerHTML=thetext

highlighting=setInterval("gradualfade(textcontainerobj)",50)

}

function hidetext()
{

cleartimer()

instantset(baseopacity)

}

function instantset(degree)
{

if (browserdetect=="mozilla")

textcontainerobj.style.MozOpacity=degree/100

else if (browserdetect=="ie")

textcontainerobj.filters.alpha.opacity=degree

else if (document.getElementById && baseopacity==0)

document.getElementById("tabledescription").innerHTML=""

}

function cleartimer()
{

if (window.highlighting) clearInterval(highlighting)

}

function gradualfade(cur2)
{

if (browserdetect=="mozilla" && cur2.style.MozOpacity<1)

cur2.style.MozOpacity=Math.min(parseFloat(cur2.style.MozOpacity)+0.2, 0.99)

else if (browserdetect=="ie" && cur2.filters.alpha.opacity<100)

cur2.filters.alpha.opacity+=20

else if (window.highlighting)

clearInterval(highlighting)

}


