//First two functions for index page

// hideLayer to hide the swf

function hideLayer1(flashlayer) {

if (document.getElementById) {
// this is the way the standards work
document.getElementById(flashlayer).style.display = "none";
}


else if (document.layers) {
// this is the way nn4 works
document.layers[flashlayer].visibility = "hidden";
}

}

//showLayer to replay or play the swf

function showLayer1(flashlayer) {

if (document.getElementById) {
// this is the way the standards work
document.getElementById(flashlayer).style.display = "";
}

else if (document.layers) {
// this is the way nn4 works
document.layers[flashlayer].visibility = "visible";
}


var screenwidth=screen.width-340
var so = new SWFObject("hsindex.swf", "hsindex",screenwidth,"270","0","000000");
       so.addParam("wmode", "transparent");
       so.addParam("salign", "br");
       so.write(flashlayer);

}

//
// The following are for the product pages
//

function showLayer(flashlayer,videoname) {

if (document.getElementById) {
// this is the way the standards work
document.getElementById(flashlayer).style.display = "";
}


else if (document.layers) {
// this is the way nn4 works
document.layers[flashlayer].visibility = "visible";
}

var screenwidth=screen.width-340
var so = new SWFObject(videoname, "videoname1",screenwidth,"270","0","000000");
       so.addParam("wmode", "transparent");
       so.addParam("salign", "br");
       so.write(flashlayer);

}

// hideLayer to hide the swf

function hideLayer(flashlayer) {

if (document.getElementById) {
// this is the way the standards work
document.getElementById(flashlayer).style.display = "none";
}


else if (document.layers) {
// this is the way nn4 works
document.layers[flashlayer].visibility = "hidden";
}

}