	function get_flash_content(type,id){
		//alert('this is function get flash content when user click on menu');
		$("#bread_crumb").load('bread_crumb.php'+id);
		var flash = getFlash();
		if(type == 'slide'){
			flash.passText(type,"flash/xml.php"+id);
		}else{
			flash.passText(type,"flash/map.php"+id);
		}
		
		$("#menu_3").load('menu_3.php'+id+"&page=0");
		setTimeout("document.getElementById('text').innerHTML = '';",150);
		setTimeout("showflash();",150);
	}
    
	function get_html_content(id){
		//alert('this is function get flash content when user click on menu');
		$("#bread_crumb").load('bread_crumb.php'+id);
		$("#text").load('get_html_content.php'+id);
		$("#menu_3").load('menu_3.php'+id+"&page=0");
		//$("#menu_3").load('menu_3.php'+id+"&page=0", function() {
		//	alert('get html content');
		//});
		//$("#menu_3").load('menu_3.php'+id);
		//alert('4');
		hideflash();
		//alert('6');
	}
	function hideflash(){
		browser = navigator.appName;
		if(browser == "Microsoft Internet Explorer"){
			document.getElementById('text').style.display = 'block';
			document.getElementById('flashcontent').style.display = 'none';
			//alert('5');
		}else{
			document.getElementById('text').style.visibility = 'visible';
			document.getElementById('flashcontent').style.visibility = 'hidden';
		}
	}
	function showflash(){
		browser = navigator.appName;
		//alert('1');
		if(browser == "Microsoft Internet Explorer"){
			document.getElementById('text').style.display = 'none';
			document.getElementById('text').innerHTML = "";
			document.getElementById('flashcontent').style.display = 'block';
			//alert('2');
		}else{
			document.getElementById('text').style.visibility = 'hidden';
			document.getElementById('text').innerHTML = "";
			document.getElementById('flashcontent').style.visibility = 'visible';
		}
	}
	function layout_init(){
		browser = navigator.appName;
		
        // IE
        if(browser == "Microsoft Internet Explorer"){
    		if (document.getElementById('flashcontent') != undefined) {
                document.getElementById('flashcontent').style.display = "block";
            }                
                
            if (document.getElementById('text') != undefined) {
    		  document.getElementById('text').style.display = "none";
    		  document.getElementById('text').style.align = "center";
            }
		}
        
        //FIREFOX
        else{
            if (document.getElementById('flashcontent') != undefined) {
                document.getElementById('flashcontent').style.visibility = "visible";
            }
            
            if (document.getElementById('text') != undefined) {
        		document.getElementById('text').style.visibility = "hidden";
        		document.getElementById('text').style.align = "center";
        		document.getElementById('text').style.position = "absolute";
        		document.getElementById('text').style.top = "126px";		
        		document.getElementById('flashcontent').style.visibility = 'visible';
            }
		}
	}
	function check_url(){		
        if (href != location.href){		
			//alert(href+'\n'+location.href);
            do_load_content();			
		}
		href = location.href;
		setTimeout("check_url()",10);
	}
	
    function do_load_content(){
		url3 = location.href;
		start = url3.indexOf("?");
		url3 = url3.substr(start);
		type = url3;
		type_position = type.indexOf("type=")+5;
		type = type.substr(type_position);
		if(type == "html"){
			//alert(url3);
			get_html_content(url3);
			
		}else if(type == "slide"){
			get_flash_content("slide",url3);
		}else if(type == "flash"){
			get_flash_content("flash",url3);
		}else{
			get_flash_content("slide","?l1=1");
		}
		//alert('1010'); 
		document.title = "Atlas - Vietnam-based outsourcing partner to leading architecture and engineering firms";
		//alert('11');
		//alert (document.getElementById("keywords").content));

		//google analytic
		//alert(SWFAddress.getBaseURL()+SWFAddress.getValue());	
		pageTracker._trackPageview(SWFAddress.getBaseURL()+SWFAddress.getValue());	
		//alert('12');		
	}
    
    
    function do_load_content_from_url(href){
		url3 = href;
		start = url3.indexOf("?");
		url3 = url3.substr(start);
		type = url3;
		type_position = type.indexOf("type=")+5;
		type = type.substr(type_position);
		if(type == "html"){
			//alert(url3);
			get_html_content(url3);
			
		}else if(type == "slide"){
			get_flash_content("slide",url3);
		}else if(type == "flash"){
			get_flash_content("flash",url3);
		}else{
			get_flash_content("slide","?l1=1");
		}
		//alert('1010'); 
		document.title = "Atlas - Vietnam-based outsourcing partner to leading architecture and engineering firms";
		//alert('11');
		//alert (document.getElementById("keywords").content));

		//google analytic
		//alert(SWFAddress.getBaseURL()+SWFAddress.getValue());	
		pageTracker._trackPageview(SWFAddress.getBaseURL()+SWFAddress.getValue());	
		//alert('12');		
	}
	


	