function openDiv(opendiv,closediv){
openObj = document.getElementById(opendiv).style; 
closeObj = document.getElementById(closediv).style; 
openObj.display = "block";
closeObj.display = "none";
}

function callExternalInterface(id) {
	
    thisMovie("swf").callFlash(id);
}

function thisMovie(movieName) {
    if (navigator.appName.indexOf("Microsoft") != -1) {
		
        return window[movieName]
    }
    else {
		
        return document[movieName]
    }
}
function getSwfObj(swfID) {
				var swfObj;
				if (navigator.appName.indexOf("Microsoft") > -1) {
					swfObj = window[swfID];
				} else {
					swfObj = document[swfID];
				}
				return swfObj;
			}
			
			//-------
			function creatSWF(_swfid,_swfurl,_width,_height,_swfContainerID){	
				var params = {wmode:"transparent",quality:"high",allowscriptaccess:"always"}; 
				var flashvars = {};
				var attributes = {};
				
				
				
				flashvars.swfName = _swfid;
				attributes.id = _swfid;
				swfobject.embedSWF(_swfurl, _swfContainerID, _width, _height, "9.0.0", false, flashvars, params, attributes);
			}
			
			
			//-------
function jsToSay(swfobj,say){
				swfobj.showQuestion(say);
			}
		
