function FaceVar(val1,val2){
   var FaceValue = val1;
   var FaceID = val2;
   window.document.myFlash.SetVariable("face", FaceValue);


}

function BackVar(val1,val2){
   var BackValue = val1;
   window.document.myFlash.SetVariable("back", BackValue);
   
document.frmFace.selectBg[0].checked = true

}

function VoiceVar(val1,val2){
   var VoiceValue = val1;
   window.document.myFlash.SetVariable("voice", VoiceValue);

   
}

function setBackTransp(){

window.document.myFlash.SetVariable("back", "transparent");
document.frmFace.selectBg[0].checked = false;
document.frmFace.selectBg[1].checked = false;
document.frmFace.selectBg[2].checked = true
document.getElementById("myFlash").style.backgroundColor="#ffffff"
}

function passURL(args){
   var UrlVar1 = args.value;
   window.document.myFlash.SetVariable("imageURL", UrlVar1);
}

function passURL2(){
   var UrlVar1 = document.frmFace.bgURL.value;
   window.document.myFlash.SetVariable("back", "back_001");
   window.document.myFlash.SetVariable("imageURL", UrlVar1);

}

function setBackURL(){
 
window.document.myFlash.SetVariable("back", "back_001");

}


function setHex(){
document.frmFace.selectBg[1].checked = true
window.document.myFlash.SetVariable("back", "transparent");
var h1=frmFace.hex1.value;
var h2=frmFace.hex2.value;
var h3=frmFace.hex3.value;
window.document.myFlash.SetVariable("hc1", h1);
window.document.myFlash.SetVariable("hc2", h2);
window.document.myFlash.SetVariable("hc3", h3);

}


function setPos(val){

var PosValue = val;
   
window.document.myFlash.SetVariable("position", PosValue);

}

function setSize(val1){

var SizeValue = val1;

window.document.myFlash.SetVariable("size", SizeValue);


}

function setBgType(val1){

var BgTypeValue = val1.value;


}

function setMouse(){
var MouseValue=document.frmFace.follow.value
window.document.myFlash.SetVariable("follow", MouseValue);

}

function setMute(val){
var MuteValue=val.value
window.document.myFlash.SetVariable("mute", MuteValue);

}

function setBorder(val){
var BorderValue=val.value
window.document.myFlash.SetVariable("border", BorderValue);

}

function resetBG(){

document.getElementById("myFlash").style.backgroundColor="#ffffff"

}

function showLayer1()
{

document.getElementById("layer1").style.visibility="visible";
document.getElementById("layer2").style.visibility="hidden";
document.getElementById("layer3").style.visibility="hidden";
document.getElementById("layer4").style.visibility="hidden";
}


function showLayer2()
{


document.getElementById("layer2").style.visibility="visible";
document.getElementById("layer1").style.visibility="hidden";
document.getElementById("layer3").style.visibility="hidden";
document.getElementById("layer4").style.visibility="hidden";
}


function showLayer3()
{


document.getElementById("layer3").style.visibility="visible";
document.getElementById("layer1").style.visibility="hidden";
document.getElementById("layer2").style.visibility="hidden";
document.getElementById("layer4").style.visibility="hidden";
}

function showLayer4()
{


document.getElementById("layer4").style.visibility="visible";
document.getElementById("layer1").style.visibility="hidden";
document.getElementById("layer2").style.visibility="hidden";
document.getElementById("layer3").style.visibility="hidden";
}

//pop up script
function popwin(URL, name, w, h) {
	pop_window = window.open(URL,name,'width=' + w + ',height=' + h + ',left=100,screenX=100,top=100,screenY=100,fullscreen=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
	self.name = "main";
	if (window.focus) {
		setTimeout('pop_window.focus();',1);
	}
}

//-->