	//=====================================================================================================================
	// Example: Animation About us page.
	//=====================================================================================================================
		var height_imagestop = 0;
		//var posX_imagestop = 350;
		var posX_imagestop = 300;
		
		var height_topicmenu = 0;
		//var posX_topicmenu = 340;
		var posX_topicmenu = 290;
		var height_u5okmenu = 0;
		//var posX_u5ok = 285;
		var posX_u5ok = 235;
		var deley = 0.0;
		var pageVar;
		
		
		//var i = 2;
		var stockImg = new Array();

		if(pageVar != undefined){
				switch(pageVar){
					case 1:
						 stockImg = new Array("images/247_247.jpg", "images/247_coffeemug.jpg");
					break;
					case 2:
					stockImg = new Array("images/closeup_3rdfloor.jpg","images/closeup_4thfloor.jpg", "images/closeup_astroboy.jpg","images/closeup_online.jpg","images/closeup_workworld.jpg");
					break;
					case 63:
						 stockImg = new Array("images/careers_placehome.jpg","images/closeup_pool.jpg");
					break;


				}
			}

			var i = (stockImg.length - 1);

		
		function callExternalFunc(val){ 
		//		alert(val);
				if(val != undefined){
					switch(val){
						//case 0:
						//	window.location.replace("service.html");
						 // break;    
						case 1:
						//	return false;
						  window.location.replace("services.html");
						  break;
						case 2:
						  window.location.replace("close_up.html");
						  break;
						case 3:
						//	return false;
						  window.location.replace("cmc.html");
						  break;
						case 4:
						  window.location.replace("opportunity_knocks.html");
						  break;
						case 5:
							return false;
						  window.location.replace("news.html");
						  break;
						case 6:
						//return false;
						  window.location.replace("contact.html");
						  break;
						case 7:
							contactmap();
							return false;
						//  window.location.replace("passion.html");
						  break;
						default:
							return false;
						}
			//		window.location.replace("about.html");
				}
			/**/
				$('#imagestop').css('height', height_imagestop );
				$('#imagestop').css('margin-top', posX_imagestop );
				$('#contents').css('height', height_imagestop+48 );
				//alert(height_imagestop);
				
				//if(height_imagestop < 351 )	timer = setTimeout( "incr()", 18);
				if(height_imagestop < 301 )	timer = setTimeout( "incr()", 18);
				else{ $('#menuindex').hide();animetionMenu();  randomImages();  }
			/*	*/
		}
		
	function animetionMenu(){
		
		setInterval("U5okMenuAnimate()",300);
		setInterval("TopicMenuAnimate()",600); 
		
		
	}
		function incr() {			
				posX_imagestop = posX_imagestop - 10;
				height_imagestop = height_imagestop + 10;
				callExternalFunc();
		}
		
		function TopicMenuAnimate(){ 
				$('#topicmenu').css('height', height_topicmenu );
					//alert(posX_topicmenu);
				$('#topicmenu').css('margin-top', posX_topicmenu );
				
				if(screen.width <= 1280){
					$('#topicmenu').css('margin-left', 30 );
				}
				
				if(height_topicmenu < 54 )	timer = setTimeout( "incrTopicMenu()", 14);
		}

		function incrTopicMenu() {			
				//if( posX_topicmenu > 290 ){ posX_topicmenu = posX_topicmenu - 1; } 240
				if( posX_topicmenu > 267 ){ posX_topicmenu = posX_topicmenu - 1;
				height_topicmenu = height_topicmenu + 1;
				TopicMenuAnimate();
				}
		}

		function U5okMenuAnimate(){ 
				//$('#u5ok').css('height', 54 );
				$('#u5ok').css('height', 31 );
				$('#u5ok').css('margin-top', posX_u5ok );
				
				if(screen.width <= 1280){
					$('#u5ok').css('margin-left', 30 );
				}
				
				
				if(height_u5okmenu < 31 )	timer = setTimeout( "incrU5okMenu()",15);
		}

		function incrU5okMenu() {			
				//if( posX_u5ok < 340 ){ posX_u5ok = posX_u5ok + 1; }
				if( posX_u5ok < 291 ){ posX_u5ok = posX_u5ok + 1; 
					U5okMenuAnimate();
				}
		}


		
		function randomImages(){
			

				$('#imgAbout').show();	
				$('#imgAbout').fadeTo('slow', 1.0 );

				switch(pageVar){
					case 12:
					case 13:
					case 14:
					case 15:
					case 22:
					case 23:
					case 31:
					case 32:
					case 33:
					case 6:
						return false;
						break;
				}
				
			/*	if(pageVar == 6){

					return false;
				}
				*/
				//$('#imgAbout').show();	
				//$('#imgAbout').fadeTo('slow', 1.0 );
				//alert('555');
				if(i >=0 ){ timer = setTimeout('callShowImages()', 5000 ); }
				else{ i = (stockImg.length - 1); randomImages(); }				
		}
				
		function callShowImages(){	

			$('#imgAbout').hide();		
			$('#imgAbout').css({opacity:0.0});
			
			$('#imgAbout').attr('src', stockImg[i]);

			//alert(i);
			
			i = i - 1;

			randomImages();
		}
		
		function SlideDown(){
			$('#contents').show();			
		}
		
		function callJsAnimationEnd(val){

			if($.browser.safari) { $( function() { 
				$('#introflash').hide("slow");
			} ); }else{
				$('#introflash').hide();
			}
			$('#menuindex').show();
		}

		
	//=====================================================================================================================
	// Internal function
	//=====================================================================================================================
  	function contactmap(){		
		obj = "#showmap"
		$('#calinfo').show();
//		$('#calinfo').fadeTo("slow", 0.93);
		$('#calinfo').fadeTo("slow", 1);
		
		$('#contactmap').css({opacity:1.0});
		$('#contactmap').css('display', 'block');
		
		var a = $('#contactmap').offset();
		$('#infoclose').css('left', (a.left + 665));
		$('#infoclose').css('top', (a.top - 20));
	}


