
/*
check external interface enable or not
if disable returns null
*/
function externalInterfaceEnable(){
	return true;
}


/*
user iframe for history or not.
if enable( win ie, saf mac return true);
*/
function iframeHistoryEnable(){
	var uName = navigator.userAgent;

	if (uName.indexOf("Safari") > -1){
		//safari true
		return true;
	}
	
	if(uName.indexOf("Win") >-1 && uName.indexOf("MSIE") >-1){
		//win ie true
		return true;
	}else{
		return false;
	}
}


function updateHistoryFrame(param){
	var ifNode = document.getElementById("historyFrame");
	ifNode.src = "/assets/swf/cms/history.html?" + param;
}


function tha_setHash(str){
	document.title = 'fotologue';

	//ExternalInterface changes undefined to "null" to js
	//so convert undefined to "_" that never user in hostname
	str = (str == "_") ? "" : str
	
	 var uName = navigator.userAgent;
	if (uName.indexOf("Safari") > -1){
		location.hash = str;
	}else{
		location.hash = "#"+str;
	}
	
	
	document.currentHref =location.href
}

function tha_setHashAndFocus(str){
	window.focus();
	tha_setHash(str);
}
