var _ul = "getFlash.html";
function drawHead (path,focus) {
	if(focus != undefined){
		focus = "focusMenu="+focus;
	} else {
		focus = "focusMenu=";
	}
	var so = new SWFObject(path, "flasharea", "774", "227", "9", "#000000",true,"BEST",_ul);
	//so.addParam("wmode","transparent");
	so.addParam("menu","false");
	so.addParam("flashvars",focus)
	so.write("flasharea");
}
function drawTop (path,lang) {
	var p = window.location.href;
	if(lang == "en"){
		var sotop = new SWFObject(path, "header", "810", "78", "8", "#000000",true,"BEST",_ul);
		sotop.addParam("flashvars","page="+p+"&lang=en");
	} else {
		var sotop = new SWFObject(path, "header", "810", "78", "8", "#000000",true,"BEST",_ul);
		sotop.addParam("flashvars","page="+p+"&lang=th");
	}
	sotop.addParam("menu","false");
	sotop.write("header");
	
}
function popup (ul) {
	window.open(ul + '?p=' + window.location.href ,'popup','scrollbars=yes,width=550,height=600');
}
function openPrivacy () {
	window.open('http://www.larnlenbreeze.com/privacy.html', 'privacy', 'scrollbars=yes,width=460,height=600');
}
function openTerms () {
	window.open('http://www.larnlenbreeze.com/terms.html', 'terms', 'scrollbars=yes,width=460,height=600');
}
function openSendToFriends () {
	window.open('http://www.larnlenbreeze.com/sendtofriends.php'+ '?p=' + window.location.href, 'sendtofriends', 'scrollbars=yes,width=550,height=600');
}
