//------------------------------------------------------------------------------------------------------------- FUNCTIONS: General (BEGIN)
function getMovieName(movieName) {//--------------------------------------------------------------------------- getMovieName: Locates Flash Movie with Exeptions for different browsers
	if(navigator.appName.indexOf("Microsoft") != -1){return window[movieName]}else{return document[movieName]}
}
//------------------------------------------------------------------------------------------------------------- FUNCTIONS: General (END)
//------------------------------------------------------------------------------------------------------------- FUNCTIONS: Walkon Video (BEGIN)
function loadWalkonVideo(clip_id,clip_align,siteid,w,h){
	//alert('clip_align: '+clip_align);
	pw=document.getElementById('pop_walkon');
	switch(clip_align){
		case "lowerright":
			//pw.style.position='absolute';
			pw.style.top='';pw.style.right='0px';pw.style.bottom='0px';pw.style.left='';pw.style.marginLeft='';pw.style.marginTop='';
		break;
		case "lowerleft":
			//pw.style.position='absolute';
			pw.style.top='';pw.style.right='';pw.style.bottom='0px';pw.style.left='0px';pw.style.marginLeft='';pw.style.marginTop='';
		break;
		case "upperright":
			//pw.style.position='absolute';
			pw.style.top='0px';pw.style.right='0px';pw.style.bottom='';pw.style.left='';pw.style.marginLeft='';pw.style.marginTop='';
		break;
		case "upperleft":
			//pw.style.position='absolute';
			pw.style.top='0px';pw.style.right='';pw.style.bottom='';pw.style.left='0px';pw.style.marginLeft='';pw.style.marginTop='';
		break;
		case "center":
			//pw.style.position='absolute';
			pw.style.top='50%';pw.style.right='';pw.style.bottom='';pw.style.left='50%';pw.style.marginLeft='-'+(w/2)+'px';pw.style.marginTop='-'+(h/2)+'px';
		break;
	}
	if(clip_align='divexists'){
		document.getElementById('walkon').style.display='block';
	
		var wv = new SWFObject("../core/flash/walkon_viewer_3_0_0.swf", "walkon_video", w, h, "9", "#FFFFFF", true);
		wv.addVariable("siteid", siteid);
		wv.addVariable("clip_id", clip_id);
		wv.addVariable("clip_location", clip_align);
		wv.addParam("wmode", "transparent");
		wv.addParam("quality", "high");
		wv.addParam("swLiveConnect", "true");
		wv.addParam("allowScriptAccess", "always");
		wv.write("walkon");
	}else{
		document.getElementById('pop_walkon').style.display='block';
	
		var wv = new SWFObject("../core/flash/walkon_viewer_3_0_0.swf", "walkon_video", w, h, "9", "#FFFFFF", true);
		wv.addVariable("siteid", siteid);
		wv.addVariable("clip_id", clip_id);
		wv.addVariable("clip_location", clip_align);
		wv.addParam("wmode", "transparent");
		wv.addParam("quality", "high");
		wv.addParam("swLiveConnect", "true");
		wv.addParam("allowScriptAccess", "always");
		wv.write("pop_walkon");
	}
}
function closeLoader(){
	document.getElementById('pop_walkon').innerHTML='';
	document.getElementById('pop_walkon').style.display='none';
	document.getElementById('walkon').innerHTML='';
	document.getElementById('walkon').style.display='none';
}
function closeWalkon(){//---------------------------------------------------------------------------------------- chatend: Ends Chat for Chat Window
	//alert('closeWalkon: Begin: la_state='+la_state);
	if(la_state='inforeq'){
		document.getElementById('pop_walkon').innerHTML="";
		la_state='';
	}else{
		document.getElementById('pop_walkon').innerHTML="";
		document.getElementById('pop_container').style.display='none';
	}
}
//------------------------------------------------------------------------------------------------------------- FUNCTIONS: Walkon Video (END)
var fvPlyr;
function initialize() {
	var isIE = navigator.appName.indexOf("Microsoft") != -1;
	fvPlyr = (isIE) ? window['walkon_video'] : document['walkon_video'];
}
function replayWalkon() {
	fvPlyr=getMovieName("walkon_video")
	fvPlyr.replayVideo()
}
function hideWalkon() {
	//alert('hideWalkon: Begin: la_state='+la_state);
	//if(la_state=='inforeq'){
	//	document.getElementById('pop_walkon').innerHTML='';
	//	la_state='';
	//}else{
		document.getElementById('pop_container').style.display='none';
		document.getElementById('pop_walkon').innerHTML='';
		la_state='';
	//}
}
function resizeWalkon(wd,w,h) {
		document.getElementById(wd).style.width=w+'px';
		document.getElementById(wd).style.height=h+'px';
}
