/*
$Id: video_popup.js,v 1.2 2010/1/04 09:34:47 Speakersmic
*/
/*
$Id: video_popup.js,v 1.2 2010/1/04 09:34:47 Speakersmic
*/
function display(action, id)
{
if (action == 'show')
{
document.getElementById("explanation"+id).style.display = "block";
document.getElementById("link"+id).href= "javascript:display('hide', "+id+")";
document.getElementById("link"+id).innerHTML = "Close";
}
if (action == 'hide')
{
document.getElementById("explanation"+id).style.display = "none";
document.getElementById("link"+id).href= "javascript:display('show', "+id+")";
document.getElementById("link"+id).innerHTML = "Explain";
}
}
/*
To use this scriptjust insert the following in your page:
<a id="link1" href="javascript:display('show', 1)">Explain</a>
<div id="explanation1" style="display:none">This form let's you input your order details, please keep it short!</div>

And this in Customer/service_head.tpl:
<script src="{$SkinDir}/video_popup.js" type="text/javascript"></script>
*/

