
var themovie='http://www.soundware.co.uk/pages/swtvmov.mov'
var link1='http://www.soundware.co.uk'
var link1says='View related product in store.'
var link2='http://www.soundware.co.uk'
var link2says='View related section in store.'

function createwin()
{
helpwin=window.open("", "helpwin", "width=480,height=460,scrollbars=yes status=no menubar=no location=no toolbar=no");
helpwin.document.writeln('<html><head><style>A:link { COLOR: #555555 }; A:unknown { COLOR: #555555 }; A:visited { COLOR: #555555 }; A:hover { COLOR: #0077FF}</style><title>SoundwareTV</title></head>');
helpwin.document.writeln('<img src="http://www.soundware.co.uk/pages/swtvheader.jpg"><P>');
helpwin.document.writeln('<a style="font-family:Arial; color:#333333; font-size:12pt;"><b>Help:</b></a><P>');
helpwin.document.writeln('<a style="font-family:Arial; color:#666666; font-size:11pt;"><b>The videos aren&#39;t playing.</b></a><P>');
helpwin.document.writeln('<a style="font-family:Arial; color:#999999; font-size:9pt;">Firstly, make sure that your browser has the latest version of the video plugin installed by pressing the "Plugin" logo in the player window. Try clearing your temporary internet files and cookies, and make sure that you are using the latest version of your browser, and try the following help pages for information on configuring plugins:</a>');
helpwin.document.writeln('<P><a style="font weight:bold; font-family:arial; font-size:9pt;" href="http://www.apple.com/quicktime/troubleshooting/">Quicktime</a><br><a style="font weight:bold; font-family:arial; font-size:9pt;" href="http://support.microsoft.com/default.aspx?scid=/support/mediaplayer/wmptshoot.asp">Windows Media Player</a><br><a style="font weight:bold; font-family:arial; font-size:9pt;" href="http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15511&sliceId=1">Flash Player</a>');
helpwin.document.writeln('<P><a style="font-family:Arial; color:#999999; font-size:9pt;">If your plugin gives a "file not found" error, please</a> <a style="font weight:bold; font-family:arial; font-size:9pt;" href="mailto:support@soundware.co.uk">report a broken link.</a>');
helpwin.document.writeln('<P><a style="font-family:Arial; color:#666666; font-size:11pt;"><b>The videos keep sticking.</b></a><P>');
helpwin.document.writeln('<a style="font-family:Arial; color:#999999; font-size:9pt;"><P>If the videos keep stopping during playback, it means that either the server is too busy or your internet connection is too slow to handle streaming the file. Wait for the gray progress bar at the bottom of the player to fill completely before playing the video again.</a>');
helpwin.document.writeln('</body></html>');
helpwin.document.close()
helpwin.focus()
}

function createplayer()
{
vidplayer=window.open("", "vidplayer", "width=470,height=460,scrollbars=no status=no menubar=no location=no toolbar=no");
vidplayer.document.writeln('<html><head><style>A:link { COLOR: #555555 }; A:unknown { COLOR: #555555 }; A:visited { COLOR: #555555 }; A:hover { COLOR: #0077FF}</style><title>SoundwareTV</title></head><body background="http://www.soundware.co.uk/pages/bgimg.jpg"><div style="position:relative; top:20px;"><table width="450" align="center" cellpadding="0"><tr><td colspan="2">');
vidplayer.document.writeln('<OBJECT classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"codebase="http://www.apple.com/qtactivex/qtplugin.cab"width="450" height="360"id="movie1">');
vidplayer.document.writeln('<PARAM name="src" value=')
vidplayer.document.writeln(themovie);
vidplayer.document.writeln('>')
vidplayer.document.writeln('<PARAM name="scale" value="aspect">');
vidplayer.document.writeln('<PARAM name="bgcolor" value="#FFFFFF">');
vidplayer.document.writeln('<PARAM name="autoplay" value="true">');
vidplayer.document.writeln('<PARAM name="EnableJavaScript" value="true">');
vidplayer.document.writeln('<EMBED HEIGHT="367" WIDTH="450" style="position:relative; top:5px;" SRC=');
vidplayer.document.writeln(themovie)
vidplayer.document.writeln(' TYPE="video/quicktime" PLUGINSPAGE="www.apple.com/quicktime/download" EnableJavaScript="true" NAME="movie1" AUTOPLAY="true" SCALE="aspect" /></object>');
vidplayer.document.writeln('</td></tr><tr valign="top"><td align="left"><a onmouseover="font-color:#0077FF" style="position:relative; left:20px; top:15px; font-color:#999999; text-decoration:none; vertical-align:top; font-size:10pt; font-weight:bold;" href=')
vidplayer.document.writeln(link1)
vidplayer.document.writeln('target="_blank"><span style="font-family:arial">')
vidplayer.document.writeln(link1says);
vidplayer.document.writeln('</span></a><br><a onmouseover="font-color:#0077FF" style="position:relative; left:20px; top:15px; font-color:#999999; text-decoration:none; vertical-align:top; font-size:10pt; font-weight:bold;" href=')
vidplayer.document.writeln(link2)
vidplayer.document.writeln('target="_blank"><span style="font-family:arial">')
vidplayer.document.writeln(link2says);
vidplayer.document.writeln('</span></a></td><td align="right">');
vidplayer.document.writeln('<a style="position:relative; top:5px; left:-5px;" href="javascript:opener.createwin()" onmouseover="javascript:document.getElementById(&#39;hb&#39;).src=&#39;http://www.soundware.co.uk/pages/helplogo.gif&#39;" onmouseout="document.getElementById(&#39;hb&#39;).src=&#39;http://www.soundware.co.uk/pages/helplogo2.gif&#39;"><img src="http://www.soundware.co.uk/pages/helplogo2.gif" border="0" id="hb"></a>');
vidplayer.document.writeln('<a style="position:relative; top:5px; left:-5px;" href="http://www.soundware.co.uk/pages/mail.php?customername=Your%20Name&customeremail=Your%20Email" target="_blank" onmouseover="javascript:document.getElementById(&#39;sb&#39;).src=&#39;http://www.soundware.co.uk/pages/signuplogo.gif&#39;" onmouseout="document.getElementById(&#39;sb&#39;).src=&#39;http://www.soundware.co.uk/pages/signuplogo2.gif&#39;"><img src="http://www.soundware.co.uk/pages/signuplogo2.gif" border="0" id="sb"></a>');
vidplayer.document.writeln('<a style="position:relative; top:5px; left:-5px;" href="http://www.apple.com/quicktime/download/" target="_blank" onmouseover="javascript:document.getElementById(&#39;pb&#39;).src=&#39;http://www.soundware.co.uk/pages/pluginlogo.gif&#39;" onmouseout="document.getElementById(&#39;pb&#39;).src=&#39;http://www.soundware.co.uk/pages/pluginlogo2.gif&#39;"><img src="http://www.soundware.co.uk/pages/pluginlogo2.gif" border="0" id="pb"></a>');
vidplayer.document.writeln('<a style="position:relative; top:5px; left:-5px;" href="javascript:window.close()" onmouseover="javascript:document.getElementById(&#39;cb&#39;).src=&#39;http://www.soundware.co.uk/pages/closelogo.gif&#39;" onmouseout="document.getElementById(&#39;cb&#39;).src=&#39;http://www.soundware.co.uk/pages/closelogo2.gif&#39;"><img src="http://www.soundware.co.uk/pages/closelogo2.gif" border="0" id="cb"></a>');
vidplayer.document.writeln('</td></tr></table></div></body></html>');
vidplayer.document.close()
vidplayer.focus()
}


function createflashplayer()
{

vidplayer=window.open("", "vidplayer", "width=470,height=460,scrollbars=no status=0 menubar=no location=no toolbar=no");
vidplayer.document.writeln('<html><head><style>A:link { COLOR: #555555 }; A:unknown { COLOR: #555555 }; A:visited { COLOR: #555555 }; A:hover { COLOR: #0077FF}</style><title>SoundwareTV</title></head><body background="http://www.soundware.co.uk/pages/bgimg.jpg"><div style="position:relative; top:25px;"><table width="450" align="center" cellpadding="0"><tr><td colspan="2">');
vidplayer.document.writeln('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"')
vidplayer.document.writeln('codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"')
vidplayer.document.writeln('width="450" height="344">')
vidplayer.document.writeln('<param name="movie" value=')
vidplayer.document.writeln(themovie) 
vidplayer.document.writeln('><param name="quality" value="high">')
vidplayer.document.writeln('<param name="play" value="true">')
vidplayer.document.writeln('<param name="wmode" value="transparent">')
vidplayer.document.writeln('<param name="scale" value="default">')
vidplayer.document.writeln('<!--[if !IE]> <-->')
vidplayer.document.writeln('<object type="application/x-shockwave-flash" data=')
vidplayer.document.writeln(themovie)
vidplayer.document.writeln(' width="450" height="350">')
vidplayer.document.writeln('</object>')
vidplayer.document.writeln('<!--> <![endif]--></object>')
vidplayer.document.writeln('</td></tr><tr valign="top"><td align="left"><a style="position:relative; left:+20px; top:+20px; font-color:#999999; text-decoration:none; vertical-align:top; font-size:10pt; font-weight:bold;" href=')
vidplayer.document.writeln(link1)
vidplayer.document.writeln('target="_blank"><span style="font-family:arial">')
vidplayer.document.writeln(link1says);
vidplayer.document.writeln('</span></a><br><a style="position:relative; left:+20px; top:+20px; font-color:#999999; text-decoration:none; vertical-align:top; font-size:10pt; font-weight:bold;" href=')
vidplayer.document.writeln(link2)
vidplayer.document.writeln('target="_blank"><span style="font-family:arial">')
vidplayer.document.writeln(link2says);
vidplayer.document.writeln('</span></a></td><td align="right">');
vidplayer.document.writeln('<a style="position:relative; top:17px; left:-5px;" href="javascript:opener.createwin()" onmouseover="javascript:document.getElementById(&#39;hb&#39;).src=&#39;http://www.soundware.co.uk/pages/helplogo.gif&#39;" onmouseout="document.getElementById(&#39;hb&#39;).src=&#39;http://www.soundware.co.uk/pages/helplogo2.gif&#39;"><img src="http://www.soundware.co.uk/pages/helplogo2.gif" border="0" id="hb"></a>');
vidplayer.document.writeln('<a style="position:relative; top:17px; left:-5px;" href="http://www.soundware.co.uk/pages/mail.php?customername=Your%20Name&customeremail=Your%20Email" target="_blank" onmouseover="javascript:document.getElementById(&#39;sb&#39;).src=&#39;http://www.soundware.co.uk/pages/signuplogo.gif&#39;" onmouseout="document.getElementById(&#39;sb&#39;).src=&#39;http://www.soundware.co.uk/pages/signuplogo2.gif&#39;"><img src="http://www.soundware.co.uk/pages/signuplogo2.gif" border="0" id="sb"></a>');
vidplayer.document.writeln('<a style="position:relative; top:17px; left:-5px;" href="http://www.macromedia.com/go/getflashplayer" target="_blank" onmouseover="javascript:document.getElementById(&#39;pb&#39;).src=&#39;http://www.soundware.co.uk/pages/pluginlogo.gif&#39;" onmouseout="document.getElementById(&#39;pb&#39;).src=&#39;http://www.soundware.co.uk/pages/pluginlogo2.gif&#39;"><img src="http://www.soundware.co.uk/pages/pluginlogo2.gif" border="0" id="pb"></a>');
vidplayer.document.writeln('<a style="position:relative; top:17px; left:-5px;" href="javascript:window.close()" onmouseover="javascript:document.getElementById(&#39;cb&#39;).src=&#39;http://www.soundware.co.uk/pages/closelogo.gif&#39;" onmouseout="document.getElementById(&#39;cb&#39;).src=&#39;http://www.soundware.co.uk/pages/closelogo2.gif&#39;"><img src="http://www.soundware.co.uk/pages/closelogo2.gif" border="0" id="cb"></a>');
vidplayer.document.writeln('</td></tr></table></div></body></html>');
vidplayer.document.close()
vidplayer.focus()
}

function createwinplayer()
{
vidplayer=window.open("", "vidplayer", "width=470,height=460,scrollbars=no status=0 menubar=no location=no toolbar=no");
vidplayer.document.writeln('<html><head><style>A:link { COLOR: #555555 }; A:unknown { COLOR: #555555 }; A:visited { COLOR: #555555 }; A:hover { COLOR: #0077FF}</style><title>SoundwareTV</title></head><body background="http://www.soundware.co.uk/pages/bgimg.jpg"><div style="position:relative; top:30px;"><table width="450" align="center" cellpadding="0"><tr><td colspan="2">');
vidplayer.document.writeln('<OBJECT id="movie1" width="450" height="350" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"')
vidplayer.document.writeln('codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"')
vidplayer.document.writeln('standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">')
vidplayer.document.writeln('<param name="fileName" value=')
vidplayer.document.writeln(themovie)
vidplayer.document.writeln('><param name="animationatStart" value="true">')
vidplayer.document.writeln('<param name="autoStart" value="true">')
vidplayer.document.writeln('<param name="showControls" value="true">')
vidplayer.document.writeln('<EMBED type="application/x-mplayer2" pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"')
vidplayer.document.writeln('id="movie1" name="movie1" displaysize="4" autosize="0" bgcolor="#FFFFFF" showcontrols="true" showtracker="-1"')
vidplayer.document.writeln('showdisplay="0" showstatusbar="-1" videoborder3d="-1" width="450" height="358"')
vidplayer.document.writeln('src=')
vidplayer.document.writeln(themovie) 
vidplayer.document.writeln(' autostart="true">')
vidplayer.document.writeln('</EMBED></OBJECT>');
vidplayer.document.writeln('</td></tr><tr valign="top"><td align="left"><a style="position:relative; left:+20px; top:+10px; font-color:#999999; text-decoration:none; vertical-align:top; font-size:10pt; font-weight:bold;" href=')
vidplayer.document.writeln(link1)
vidplayer.document.writeln('target="_blank"><span style="font-family:arial">')
vidplayer.document.writeln(link1says);
vidplayer.document.writeln('</span></a><br><a style="position:relative; left:+20px; top:+10px; font-color:#999999; text-decoration:none; vertical-align:top; font-size:10pt; font-weight:bold;" href=')
vidplayer.document.writeln(link2)
vidplayer.document.writeln('target="_blank"><span style="font-family:arial">')
vidplayer.document.writeln(link2says);
vidplayer.document.writeln('</span></a></td><td align="right">');
vidplayer.document.writeln('<a style="position:relative; top:5px; left:-5px;" href="javascript:opener.createwin()" onmouseover="javascript:document.getElementById(&#39;hb&#39;).src=&#39;http://www.soundware.co.uk/pages/helplogo.gif&#39;" onmouseout="document.getElementById(&#39;hb&#39;).src=&#39;http://www.soundware.co.uk/pages/helplogo2.gif&#39;"><img src="http://www.soundware.co.uk/pages/helplogo2.gif" border="0" id="hb"></a>');
vidplayer.document.writeln('<a style="position:relative; top:5px; left:-5px;" href="http://www.soundware.co.uk/pages/mail.php?customername=Your%20Name&customeremail=Your%20Email" target="_blank" onmouseover="javascript:document.getElementById(&#39;sb&#39;).src=&#39;http://www.soundware.co.uk/pages/signuplogo.gif&#39;" onmouseout="document.getElementById(&#39;sb&#39;).src=&#39;http://www.soundware.co.uk/pages/signuplogo2.gif&#39;"><img src="http://www.soundware.co.uk/pages/signuplogo2.gif" border="0" id="sb"></a>');
vidplayer.document.writeln('<a style="position:relative; top:5px; left:-5px;" href="http://microsoft.com/windows/mediaplayer/en/download/" target="_blank" onmouseover="javascript:document.getElementById(&#39;pb&#39;).src=&#39;http://www.soundware.co.uk/pages/pluginlogo.gif&#39;" onmouseout="document.getElementById(&#39;pb&#39;).src=&#39;http://www.soundware.co.uk/pages/pluginlogo2.gif&#39;"><img src="http://www.soundware.co.uk/pages/pluginlogo2.gif" border="0" id="pb"></a>');
vidplayer.document.writeln('<a style="position:relative; top:5px; left:-5px;" href="javascript:window.close()" onmouseover="javascript:document.getElementById(&#39;cb&#39;).src=&#39;http://www.soundware.co.uk/pages/closelogo.gif&#39;" onmouseout="document.getElementById(&#39;cb&#39;).src=&#39;http://www.soundware.co.uk/pages/closelogo2.gif&#39;"><img src="http://www.soundware.co.uk/pages/closelogo2.gif" border="0" id="cb"></a>');
vidplayer.document.writeln('</td></tr></table></div></body></html>');
vidplayer.document.close()
vidplayer.focus()
}


function toggleDiv(divid){
    if(document.getElementById(divid).style.display == 'none'){
      document.getElementById(divid).style.display = 'block';
    }else{
      document.getElementById(divid).style.display = 'none';
    }
  }
	


/***********************************************
* Gradual Highlight image script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

var baseopacity=30

function slowhigh(which2){
imgobj=which2
browserdetect=which2.filters? "ie" : typeof which2.style.MozOpacity=="string"? "mozilla" : ""
instantset(baseopacity)
highlighting=setInterval("gradualfade(imgobj)",50)
}


function slowlow(which2){
cleartimer();
setTimeout(function() {gradualfadeout(which2);}, 50);
}

function instantset(degree){
if (browserdetect=="mozilla")
imgobj.style.MozOpacity=degree/100
else if (browserdetect=="ie")
imgobj.filters.alpha.opacity=degree
else
imgobj.style.opacity = degree/100;
}

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.1, 0.99)
else if (browserdetect=="ie" && cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=10
else if (browserdetect!="mozilla") {
if (browserdetect!="ie") {
cur2.style.opacity=Math.min(parseFloat(cur2.style.opacity)+0.1, 0.99)
}
}
else if (window.highlighting)
clearInterval(highlighting)
}

function gradualfadeout(cur3){
cr3=setTimeout(function() {gradualfadeout(cur3);}, 50)
if (browserdetect=="mozilla" && cur3.style.MozOpacity>0.3)
cur3.style.MozOpacity=Math.min(parseFloat(cur3.style.MozOpacity)-0.1)
else if (browserdetect=="ie" && cur3.filters.alpha.opacity>30)
cur3.filters.alpha.opacity=cur3.filters.alpha.opacity-10
else if (cur3.style.opacity>0.3)
cur3.style.opacity=Math.min(parseFloat(cur3.style.opacity)-0.1)
if (browserdetect=="mozilla" && cur3.style.MozOpacity<=0.3)
clearTimeout(cr3);
else if (browserdetect=="ie" && cur3.filters.alpha.opacity<=30)
clearTimeout(cr3);
else if (cur3.style.opacity<=0.3)
clearTimeout(cr3);
}

/*************************************************************************
  This code is from Dynamic Web Coding at http://www.dyn-web.com/
  See Terms of Use at http://www.dyn-web.com/bus/terms.html
  Permission granted to use this code 
  as long as this entire notice is included.
*************************************************************************/

function changeContent(id,shtml) {
   if (document.getElementById || document.all) {
      var el = document.getElementById? document.getElementById(id): document.all[id];
      if (el && typeof el.innerHTML != "undefined") el.innerHTML = shtml;
   }
}
function enlargeBox(boxID){
box = document.getElementById(boxID); 
if(box.style.display=="none")
{effect=new Effect.BlindDown(box);}
else
{ effect=new Effect.BlindUp(box);}}

function hidetheBox(boxID) 
{box = document.getElementById(boxID); 
effect = new Effect.BlindUp(box);}


function GetManufac(form) {
    Selection = form.list.selectedIndex;
    Result = form.list.options[Selection].text;
    var manufacUrl =("http://www.soundware.co.uk/sc/sections/" + Result);
    document.location = manufacUrl; 

}

