var fo;
var divObj;
var divOver = false;
function initStatus() {
	fo = new flashMovie("Meteo");
	divObj = document.getElementById("topsearch");
	divObj.onmouseover = function() {
		divOver = true;
	}
	divObj.onmousemove = function() {
		divOver = true;
	}
	divObj.onmouseout = function() {
		divOver = false;
	}
	document.onmousemove = function() {
		if (!divOver) fo.set("mouseOutFlash","true");
	}
}
//
window.onload = function(){
	var topnavwrapper = findObj("topnavwrapper");
	var secondarynavwrapper1 = findObj("secondarynavwrapper1");
	var secondarynavwrapper2 = findObj("secondarynavwrapper2");
	var secondarynavwrapper3 = findObj("secondarynavwrapper3");
	var flashzone = findObj("flashzone");	
	if(flashzone!=null)flashzone.className = "jsenabled";

	if(String(document.all)!=="undefined"){
        if(topnavwrapper!=null)
            topnavwrapper.style.filter="alpha(opacity=60)";
        if(secondarynavwrapper1!=null)
            secondarynavwrapper1.style.filter="alpha(opacity=50)";
        if(secondarynavwrapper2!=null)   
            secondarynavwrapper2.style.filter="alpha(opacity=50)";
        if(secondarynavwrapper3!=null)   
            secondarynavwrapper3.style.filter="alpha(opacity=50)";
    } else {
        if(topnavwrapper!=null){
            topnavwrapper.style.opacity=0.6;
        }
        if(secondarynavwrapper1!=null){
            secondarynavwrapper1.style.opacity=0.5;
        }
        if(secondarynavwrapper2!=null){
            secondarynavwrapper2.style.opacity=0.5;
        }
        if(secondarynavwrapper3!=null){
            secondarynavwrapper3.style.opacity=0.5;
    }
  }
}

function preloadPage()
{
	if (document.getElementById) {  // DOM3 = IE5, NS6
		document.getElementById("preloader").style.visibility = "hidden";
	}
	else
	{
		if (document.layers) {  // Netscape 4
			document.preloader.visibility = "hidden";
		}
		else
		{  // IE 4
			document.all.preloader.style.visibility = "hidden";
		}
	}
}

var browser = new Browser();
var fader=null;

function Browser() {

  var ua, s, i;

  this.isIE    = false;  // Internet Explorer
  this.isOP    = false;  // Opera
  this.isNS    = false;  // Netscape
  this.isFF    = false;  //firefox
  this.version = null;

  ua = navigator.userAgent;

  s = "Opera";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isOP = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }

  s = "Netscape6/";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isNS = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }

  // Treat any other "Gecko" browser as Netscape 6.1.

  s = "Gecko";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isNS = true;
    this.version = 6.1;
    return;
  }

  s = "MSIE";
  if ((i = ua.indexOf(s))) {
    this.isIE = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }
  
}

function getPageOffsetLeft(el) {
  var x;
  // Return the x coordinate of an element relative to the page.
  x = el.offsetLeft;
  if (el.offsetParent != null)
    x += getPageOffsetLeft(el.offsetParent);
  return x;
}

function getPageOffsetTop(el) {
  var y;
  // Return the x coordinate of an element relative to the page.
  y = el.offsetTop;
  if (el.offsetParent != null)
    y += getPageOffsetTop(el.offsetParent);
  return y;
}

function findObj(theObj, theDoc)
{
 var p, i, foundObj;

 if(!theDoc) theDoc = document;
 if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
 {
   theDoc = parent.frames[theObj.substring(p+1)].document;
   theObj = theObj.substring(0,p);
 }

 if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
 for (i=0; !foundObj && i < theDoc.forms.length; i++)
   foundObj = theDoc.forms[i][theObj];
 for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++)
   foundObj = findObj(theObj,theDoc.layers[i].document);
 if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);

 return foundObj;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_preloadImages() { //v3.0

  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments;  	
	if(a.length==1){
		var ma=a[0];
		if(ma.indexOf(",")!=-1){
			a=ma.split(",");
		}
	};
	for(i=0; i<a.length; i++)
    	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}


}

function showMapAlert()
{
	var frmObj = document.getElementById("alert");
    frmObj.style.top = getPageY()+200+"px";    
    frmObj.style.left = (document.body.offsetWidth-300)/2+"px";
	frmObj.style.visibility = "visible";
	frmObj.style.display = "block";
    INTERVAL_MILLIS=40;
    fader = new Fadomatic(frmObj, 30, 0);
    fader.show();
}

function hideMapAlert()
{
	if(fader)
        fader.fadeOut();
    else{
        var frmObj = document.getElementById("alert");
	    frmObj.style.visibility = "hidden";
	    frmObj.style.display = "none";
    }    
    	
}

function showMapViewer()
{
	var frmObj = document.getElementById("mapviewer");
	frmObj.style.visibility = "visible";
	frmObj.style.display = "block";
}

function hideMapViewer()
{
	var frmObj = document.getElementById("mapviewer");
	frmObj.style.visibility = "hidden";
	frmObj.style.display = "none";
    //hideMapAlert();
    var frmObj = document.getElementById("alert");
	frmObj.style.visibility = "hidden";
	frmObj.style.display = "none";
	
}

function showSubContent(cont,title)
{

	var content = document.getElementById(cont);
	var subtitle=document.getElementById("divsubsectiontitle");
	if(subtitle!=null)subtitle.innerHTML=title;
	hideSubContent();
	content.style.visibility = "visible";
	content.style.display = "block";

}

function hideSubContent()
{
	var converter = document.getElementById("converter");
	var comingfrom = document.getElementById("comingfrom");
	var comingto = document.getElementById("comingto");
	var getting = document.getElementById("getting");
	var practical = document.getElementById("practical");

	converter.style.visibility = "hidden";
	converter.style.display = "none";
	comingfrom.style.visibility = "hidden";
	comingfrom.style.display = "none";
	comingto.style.visibility = "hidden";
	comingto.style.display = "none";
	getting.style.visibility = "hidden";
	getting.style.display = "none";
	practical.style.visibility = "hidden";
	practical.style.display = "none";
}

function showSubContent2(cont,title)
{
	var content = document.getElementById(cont);
	var subtitle=document.getElementById("divsubsectiontitle");
	if(subtitle!=null)subtitle.innerHTML=title;
	
	hideSubContent2();
	content.style.visibility = "visible";
	content.style.display = "block";
}

function hideSubContent2()
{
	var transportation = document.getElementById("transportation");
	var usefulnumbers = document.getElementById("usefulnumbers");
	var tips = document.getElementById("tips");
	var dinning = document.getElementById("dinning");
	var information = document.getElementById("information");

	transportation.style.visibility = "hidden";
	transportation.style.display = "none";
	usefulnumbers.style.visibility = "hidden";
	usefulnumbers.style.display = "none";
	tips.style.visibility = "hidden";
	tips.style.display = "none";
	dinning.style.visibility = "hidden";
	dinning.style.display = "none";
	information.style.visibility = "hidden";
	information.style.display = "none";
}


function resetHighlight()
{
	var labels = document.getElementsByTagName('label');
	var inputs = document.getElementsByTagName('input');
	var selects = document.getElementsByTagName('select');
	var textareas = document.getElementsByTagName('textarea');

	for (i = 0; i < labels.length; i++)
	{
		if (labels[i].id.indexOf("lbl") != -1)
			labels[i].className = "";
	}
	for (i = 0; i < inputs.length; i++)
	{
		if (inputs[i].id.indexOf("txt") != -1)
			inputs[i].style.backgroundColor = "";
	}
	for (i = 0; i < selects.length; i++)
	{
		if (selects[i].id.indexOf("opt") != -1)
			selects[i].style.backgroundColor = "";
	}
	for (i = 0; i < textareas.length; i++)
	{
		if (textareas[i].id.indexOf("txt") != -1)
			textareas[i].style.backgroundColor = "";
	}
}

// form validation functions

function trim(str)
{
	return str.replace(/^\s+/g, '').replace(/\s+$/g, '');
}

function isBlank(str)
{
	if (trim(str) == "" ) 
		return true;
	return false;
}

function isEmail(s)
{
	if (s.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]{2,6}$/) != -1)
		return true;
	return false;
}

function Controle()
{
	if (document.frmNewsletter.chkDeny.checked)
	{
		document.frmNewsletter.chkAgree.checked = true;
		return true;
	}
	return true;
}
function Controle2()
{
	if (!document.frmNewsletter.chkAgree.checked)
	{
		document.frmNewsletter.chkDeny.checked = false;
		return true;
	}
	return true;
}

/* show/hide error */

function showError(formobj,err_str,err_div,input) {
	document.getElementById('error').style.display='block';
	document.getElementById('error').style.zIndex="99999";
	var x = getPageOffsetLeft(input);
	var y = getPageOffsetTop(input);
	var objCon = MM_findObj(err_div+"Content");
	var divObj = MM_findObj(err_div);
	if (objCon != null) {
		objCon.innerHTML="<p>"+err_str+"</p>";
	}
	if (divObj != null) {
		divObj.style.left = (x+4)+"px";
		divObj.style.top = y+20+"px";
		divObj.style.visibility = "visible";
	}
	
	if (browser.isIE) {
		var iframeObj = MM_findObj(err_div+"Iframe");
		if (iframeObj != null && divObj!=null) {
			iframeObj.style.width = divObj.offsetWidth+"px";
			iframeObj.style.height = divObj.offsetHeight+"px";
			iframeObj.style.left = divObj.style.left;
			iframeObj.style.top = divObj.style.top;
			iframeObj.style.visibility = "visible";
			iframeObj.style.position='absolute';
			iframeObj.style.zIndex='9990';
			iframeObj.style.backgroundColor="red";
			
		}
	}
	//input.style.backgroundColor="#ebebeb";
	input.focus();
	return false;
	
}
function closeError(err_div) {
	var divObj=MM_findObj(err_div);
	if (divObj!=null) {
		divObj.style.visibility="hidden";
	}
	if (browser.isIE) {
		var iframeObj = MM_findObj(err_div+"Iframe");
		if (iframeObj!=null) {
			iframeObj.style.visibility="hidden";
		}
	}
}

function getElementsByBaseTagClass(base, tag, className) { 
    var classPat = new RegExp('\\b'+className+'\\b'); 
    var nodes = base.getElementsByTagName(tag); 
    var matching = []; 

    for (var i = 0; i < nodes.length; i++) { 
        if (classPat.test(nodes[i].className)) { 
            matching.push(nodes[i]); 
        } 
    } 
	return matching; 
}


function getPageY(){
	if(window.scrollY) return window.scrollY; // Mozilla
	if(window.pageYOffset) return window.pageYOffset; // Opera, NN4
	if(document.documentElement && document.documentElement.scrollTop){ // IE
		return document.documentElement.scrollTop;
	} else if(document.body && document.body.scrollTop){
		return document.body.scrollTop;
	}
	return 0;
}

function popUpload() {
	var maskObj = MM_findObj("containerMask");
	if (maskObj != null && maskObj.style) {
		maskObj.style.height = document.body.offsetHeight+"px";
		maskObj.style.visibility = "visible";
        maskObj.style.display = "block"; 
	}
}

function closePopup() {
	var maskObj = MM_findObj("containerMask");
	if (maskObj != null && maskObj.style) {
		maskObj.style.visibility = "hidden";
        maskObj.style.display = "none"; 
	}
}

function getPageOffsetTop(el) {
  var y;
  // Return the x coordinate of an element relative to the page.
  y = el.offsetTop;
  if (el.offsetParent != null)
    y += getPageOffsetTop(el.offsetParent);
  return y;
}
function initscroller() {
		//scrollablediv 1
		var scroller = new Bs_ScrollableDiv();         
		scroller.init('divContainer_1', 'divContent_1');
	  	var sliderObj = new Bs_Slider();
		sliderObj.width          = 11;
		sliderObj.height         = 400;		
		sliderObj.arrowMouseOver = false;
		sliderObj.direction      = 1;
		sliderObj.imgDir         = 'images/';
		sliderObj.setBackgroundImage('scroll_ln.gif', 'repeat');
		sliderObj.setSliderIcon('scroll_knob.gif', 11, 5);
		sliderObj.setArrowIconLeft("up_arrow.gif", 11, 10);//('scroll_up.gif', 11, 10);
		sliderObj.setArrowIconRight("down_arrow.gif",11, 10)//('scroll_dn.gif', 11, 10);
		
		scroller.setSliderObject(sliderObj, 'sliderDiv1');
        var speed=(browser.isNS)?6000:2000;
		scroller.setSlideSpeed(speed, 'pixel'); //50 pixel per second
		scroller.setWheelSpeed(10, 'pixel'); //10 pixel per tick
}

function initSlide(idSlide) {
	// do not modify this variable
	var NODE_WIDTH = 195;
	
	// apply this script for corresponding pages
	var aLiSlide = document.getElementById(idSlide);
	if (!aLiSlide) {
		return true;
	}
	
	// determine width
	var arrLIs = aLiSlide.getElementsByTagName('li');
	var widthContent = 0;	
	for (var i = 0; i < arrLIs.length; i++){
		widthContent += NODE_WIDTH;
	}
	
	// set width
	var aUL = aLiSlide.getElementsByTagName('ul')[0];
	aUL.style.width = widthContent + 'px';
	aUL.style.left = '0px';
	
	arrLIs = aLiSlide.parentNode.getElementsByTagName('li');
	// back
	arrLIs[0].onclick=function(){
		doSlide();
	};
	
	// next
	arrLIs[arrLIs.length - 1].onclick = function() {
		doSlide(true);
	};

	var step = NODE_WIDTH / 10;
	var isMoving = false;
	function doSlide(toLeft) {
		// only one move at a time
		if (isMoving) {
			return;
		}
		
		// get current left (position)
		var curLeft = parseInt(aUL.style.left);
		if (!curLeft) {
			curLeft = 0;
		}
		
		// determine target pos
		var targetPos = 0;
		if (toLeft) {
			if (-curLeft == widthContent - NODE_WIDTH) {
				return;
			}
			
			targetPos = curLeft - NODE_WIDTH;
		} else {
			if (curLeft == 0) {
				return;
			}
			
			targetPos = curLeft + NODE_WIDTH;
		}
		
		// move
		isMoving = true;
		var intervalID = setInterval(function() {
			if (toLeft) {
				curLeft -= step;				 
			} else {
				curLeft += step;
			}
			aUL.style.left = curLeft + "px";
			
			if (curLeft == targetPos) {
				clearInterval(intervalID);
				isMoving = false;
			}			
		}, 50);
	}
}

function initSlideHeight(){
	var arrHeights = getElementByClass('container','popup');
	if (arrHeights.length == 0) {
		return;
	}
	
	var arrHomeHeights = getElementByClass('container','popUpHome01');
	for (var j = 0; j < arrHomeHeights.length; j++) {
		//if (j != 0) {
			arrHomeHeights[j].style.display="none";
		//}
		
		arrHomeHeights[j].getElementsByTagName('img')[0].onclick = function() {
			this.parentNode.parentNode.parentNode.style.display="none";
		}
		
		arrHeights[j].onclick = function() {
			showHeight(this);
		}
	}
	
	//moving
	var isMoving = false;
	
	function showHeight(popup){
		//moving
		if(isMoving){
			return;
		}
		var homeHeight;
		for (var j = 0; j < arrHeights.length; j++) {
			if (arrHeights[j] == popup) {
				var curHeight = 0;
				homeHeight = arrHomeHeights[j];								
				homeHeight.style.display="block";
				var heightContent = homeHeight.offsetHeight;
				isMoving=true;
				var intervalID = setInterval(function() {
					if (curHeight >= heightContent) {
						homeHeight.style.height = heightContent+'px';
						clearInterval(intervalID);
						isMoving=false;
					}else{
						homeHeight.style.height = curHeight + 'px';
						curHeight = curHeight+20;
					}
				},10);
				
				homeHeight.style.height = curHeight + 'px';
			}
			else{
				arrHomeHeights[j].style.display = "none";
			}
		}
	}
}

/* getElementByClass
/**********************/
function getElementByClass(idname,classname){
	var partscollect=new Array();
	var inc=0;
	//get all tag name
	var alltags=document.getElementById(idname).getElementsByTagName("*");
	var j=0;
	for (i=0; i<alltags.length; i++){
		var cla=alltags[i].className;
		if (cla.indexOf(classname)!=-1){ partscollect[j]=alltags[i];j++}
	}
	return partscollect;
}
function initSlideAccording(){
	//get div with class faqContent
	var faqContent=getElementByClass('container','faqContent');
	if(faqContent.length = 0){
		return;
	}
	
	//get all dt and dd
	var arrDT = document.getElementById('container').getElementsByTagName('dt');
	var arrDD = document.getElementById('container').getElementsByTagName('dd');
	
	//display none dd
	for (var i=0 ; i < arrDT.length; i++){
		if(i!=0)
		arrDD[i].style.display='none';
		
		//add event for dt
		arrDT[i].onclick=function(){
			According(this);
		}
		arrDT[i].onmouseover=function(){
			if(this.className!='active')
			this.className='hover';
		}
		arrDT[i].onmouseout=function(){
			if(this.className!='active')
			this.className="";
		}
		
	}
	
	//moving
	var isMoving=false;
	
	function According(according){
		if( isMoving ){
			return;
		}
		var curDD;
		for (var j = 0; j < arrDT.length; j++) {
		
			if (arrDT[j] == according) {
				
				var curHeight = 0;
				curDD = arrDD[j];								
				curDD.style.display="block";
				var heightContent = curDD.offsetHeight;
				//set class active for DT
				arrDT[j].className='active';
				isMoving=true;
				var intervalID = setInterval(function() {
					if (curHeight >= heightContent) {
						//alert(heightContent)
						heightContent=heightContent-13;
						curDD.style.height = heightContent+'px';
						clearInterval(intervalID);
						isMoving=false;
						
					}else{
						
						curDD.style.height = curHeight + 'px';
						curHeight = curHeight+10;
						
					}
				},10);
				curDD.style.height = curHeight + 'px';
			}
			else{
				arrDD[j].style.display = "none";
				//set class active for DT
				arrDT[j].className='';
			}
			
		}
		
	}

}
function initPopup(){
	var popup=document.getElementById('popup');
	if( !popup ){
		return;
	}
	//display none for popup
	popup.style.display='none';
	var findAnswer=getElementByClass('container','findAnswer');
	findAnswer[0].onclick=function(){
		//open popup
		isOpenPoup(popup);
	}
}
function isOpenPoup(popup){
	//create iframeObj
	var screenWidth = document.body.clientWidth;
	var screenHeight = document.body.clientHeight;
	var faqBlock=document.getElementById('faqBlock');
	if(document.getElementById('popupiFrame')){
		var iframeObj=document.getElementById('popupiFrame');
	}else{
		var iframeObj = document.createElement("iframe");
		iframeObj.id = "popupiFrame";
		if(browser.isIE)
			faqBlock.appendChild(iframeObj);
		else 	
			document.body.appendChild(iframeObj);
			
			
	}
	iframeObj.style.width=screenWidth+'px';
	iframeObj.style.height=screenHeight+'px';
	iframeObj.style.top=0+'px';
	iframeObj.style.left=0+'px';
	iframeObj.style.position='absolute';
	iframeObj.style.display='block';
	iframeObj.style.zIndex='1980';
	iframeObj.style.filter='alpha(opacity=40)';
	if(document.getElementById('popupDiv')){
		var divObj=document.getElementById('popupDiv');
	}else{
		var divObj = document.createElement("div");
		divObj.id = "popupDiv";
		if(browser.isIE)
			faqBlock.appendChild(divObj);
		else
			document.body.appendChild(divObj);
	}
	divObj.style.width=screenWidth+'px';
	divObj.style.height=screenHeight+'px';
	divObj.style.top=0+'px';
	divObj.style.left=0+'px';
	divObj.style.position='absolute';
	divObj.style.display='block';
	divObj.style.zIndex='1990';
	divObj.style.backgroundColor="#181817";
	document.getElementById('faqCategory').style.visibility="hidden";
	document.getElementById('topsearch').style.visibility="hidden";
	if (browser.isIE){
		divObj.style.filter='alpha(opacity=40)';
	}else{
		divObj.style.opacity='0.66';
	}	
	//---end
	
	popup.style.position='absolute';
	popup.style.display='block';
	var widthPopup=(screenWidth/2)-250;
	var heightPopup=(screenHeight/2)-200;
	popup.style.top=heightPopup+'px';
	popup.style.left=widthPopup+'px';
	popup.style.zIndex='1999';
	
	//get button close
	var buttonClose=document.getElementById('formSend').getElementsByTagName('a')[0];
	buttonClose.onclick = function() {
		iframeObj.style.display = "none";
		divObj.style.display = "none";
		popup.style.display = "none";
		//hide error
		document.getElementById('error').style.display = 'none';
		document.getElementById('errorIframe').style.visibility = "hidden";
		
		document.getElementById('faqCategory').style.visibility = "visible";
		document.getElementById('topsearch').style.visibility = "visible";
	}
	
}
function initChoonseCate(){
	var chooseCate=document.getElementById('faqCategory');
	if(!chooseCate) {
		return true;
	}
	chooseCate.onchange=function(){
		var enlarge=document.getElementById('faqContentMain');
		enlarge.innerHTML="";
		var img=document.createElement('img');
		img.src="images/loadingAjax.gif";
		img.style.margin='50px 0px 0px 380px';
		enlarge.appendChild(img);
		xmlhttpPost(chooseCate.value);
	}
}
function xmlhttpPost(value){
	var url=location.href+'&nav3=ajax&ajaxvalue='+value;
	//var url="http://sm-pro/ddb/egypttravel/portal_evol/templates/common/ajax/text.tpl";
	var XMLHttpRequestObject = false;
	var bien=bien;
	if(window.XMLHttpRequest){
		XMLHttpRequestObject= new XMLHttpRequest();
		}
	else if(window.ActiveXObject){
		XMLHttpRequestObject =new ActiveXObject("Microsoft.XMLHTTP");
		}
	if(XMLHttpRequestObject){
		XMLHttpRequestObject.open("POST",url,true);
		XMLHttpRequestObject.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
		XMLHttpRequestObject.onreadystatechange = function(){
		if(XMLHttpRequestObject.readyState == 4 && XMLHttpRequestObject.status == 200){
				updatepage(XMLHttpRequestObject.responseText);
			}
		}
	XMLHttpRequestObject.send(getquerystring());
	}
}
function getquerystring(){
		return true;
}
function updatepage(str){
	document.getElementById('faqContentMain').innerHTML=str;
	initSlideAccording();
}
function bodyOnload(){
	initPopup();
	initSlideAccording();
	initSlideHeight();
	initSlide('slideMain');
	initSlide('slideMain01');
	initSlide('slideMain02');
	initSlide('slideMain03');
	initSlide('slideMain04');
	initSlide('slideMain05');
	fomenufont.write("flashzone");
	fotopsearch.write("topsearch");	
	foMenuButton.write("menubutton");
	initStatus();
	initChoonseCate();
}