function thisMovie(movieName) {
	if (navigator.appName.indexOf("Microsoft") != -1) {
		return parent.window[movieName];
	} else {
		return window.parent.document[movieName];
	}
}

function sendToActionScript(value) {
	thisMovie("external_flashcontent").sendToActionScript(value);
}

function sendHistoryBack() {
	thisMovie("external_flashcontent").sendHistoryBack();
}


function sendToActionScript(value) {
	thisMovie("external_flashcontent").sendToActionScript(value);
}

function openLayerHtml(address, key) {
	var ident = document.getElementById('floatHtmlContainer');
	if(!ident){
		var bodyElm = document.getElementsByTagName('body')[0];
		var floatContainer = document.createElement('div');
		floatContainer.id = 'floatHtmlContainer';
		var floatHtml = document.createElement('div');
		floatHtml.id = 'floatHtmlDiv';
		var floatHtmlInner = document.createElement('iframe');
		floatHtmlInner.id = 'floatHtmlInner';
		floatHtml.appendChild(floatHtmlInner);
		floatContainer.appendChild(floatHtml);
		bodyElm.appendChild(floatContainer);
	}else{
		var leng = "100%";
		ident.style.width = leng;
		var floatHtmlInner = document.getElementById('floatHtmlInner');
	}
	floatHtmlInner.src = address;

}

function closeLayerHtml() {
	var ident = document.getElementById('floatHtmlContainer');
	if(ident){
		ident.style.width = 0;
	}
}

function closeMyLayerHtml() {
	thisMovie("external_flashcontent").closeLayerHtml();
	var ident = parent.document.getElementById('floatHtmlContainer');
	if(ident){
		ident.style.width = 0;
	}
}

function showInner() {
	var floatHtmlInner = document.getElementById('floatHtmlInner');
	floatHtmlInner.style.display = "block";
}
