﻿$(document).ready(function(){
    //Company info
    if ($("#Profile").html() == $("#Absen_title").html()) {
        $("#Profile").addClass("current");
    }
    if ($("#Milestones").html() == $("#Absen_title").html()) {
        $("#Milestones").addClass("current");
    }
    if ($("#Absen_Culture").html() == $("#Absen_title").html()) {
        $("#Absen_Culture").addClass("current");
    }
    if ($("#Manufacturing").html() == $("#Absen_title").html()) {
        $("#Manufacturing").addClass("current");
    }
    if ($("#Technology").html() == $("#Absen_title").html()) {
        $("#Technology").addClass("current");
    }
    if ($("#Quality").html() == $("#Absen_title").html()) {
        $("#Quality").addClass("current");
    }
    if ($("#Certificate").html() == $("#Absen_title").html()) {
        $("#Certificate").addClass("current");
    } 
	if ($("#Employee").html() == $("#Absen_title").html()) {
        $("#Employee").addClass("current");
    }
    if ($("#Our_Partner").html() == $("#Absen_title").html()) {
        $("#Our_Partner").addClass("current");
    }
    if ($("#Absen_Video").html() == $("#Absen_title").html()) {
        $("#Absen_Video").addClass("current");
    }
    
    
    
    //Service
    if ($("#FAQ").html() == $("#Absen_title").html()) {
        $("#FAQ").addClass("current");
    }
    if ($("#Download").html() == $("#Absen_title").html()) {
        $("#Download").addClass("current");
    }
    if ($("#Service").html() == $("#Absen_title").html()) {
        $("#Service").addClass("current");
    }
    
    //contact us
    if ($("#Contact_Us").html() == $("#Absen_title").html()) {
        $("#Contact_Us").addClass("current");
    }
    
    
    //sitemap
    if ($("#Site_Map").html() == $("#Absen_title").html()) {
        $("#Site_Map").addClass("current");
    }
	
      //Gallery
    if ($("#Sports_LED_Displays").html() == $("#Label1").html()) {
        $("#Sports_LED_Displays").addClass("current");
    }
	 if ($("#Rental_LED_Displays").html() == $("#Label1").html()) {
        $("#Rental_LED_Displays").addClass("current");
    } 
	if ($("#Mobile_LED_Displays").html() == $("#Label1").html()) {
        $("#Mobile_LED_Displays").addClass("current");
    } 
	if ($("#Stage_LED_Displays").html() == $("#Label1").html()) {
        $("#Stage_LED_Displays").addClass("current");
    } 
	if ($("#Comerical_LED_Displays").html() == $("#Label1").html()) {
        $("#Comerical_LED_Displays").addClass("current");
    }
	//Spotlight
    if ($("#Spotlight").html() == $("#Absen_title").html()) {
        $("#Spotlight").addClass("current");
    }
	
    //News
    if ($("#Company_News").html() == $("#Absen_title").html()) {
        $("#Company_News").addClass("current");
    }
    if ($("#New_Object").html() == $("#Absen_title").html()) {
        $("#New_Object").addClass("current");
    }
    //Products
    if ($("#Main_push").html() == $("#Absen_title").html()) {
        $("#Main_push").addClass("current");
    }
    if ($("#Common").html() == $("#Absen_title").html()) {
        $("#Common").addClass("current");
    }
    //solution
    if ($("#Sports_LED_Displays").html() == $("#Absen_title").html()) {
        $("#Sports_LED_Displays").addClass("current");
    }
    
    if ($("#Mobile_LED_Displays").html() == $("#Absen_title").html()) {
        $("#Mobile_LED_Displays").addClass("current");
    }
    if ($("#Rental_LED_Displays").html() == $("#Absen_title").html()) {
        $("#Rental_LED_Displays").addClass("current");
    }
    if ($("#Stage_LED_Displays").html() == $("#Absen_title").html()) {
        $("#Stage_LED_Displays").addClass("current");
    }
    if ($("#Comerical_LED_Displays").html() == $("#Absen_title").html()) {
        $("#Comerical_LED_Displays").addClass("current");
    }
    if ($("#Lightbox_LED_Displays").html() == $("#Absen_title").html()) {
        $("#Lightbox_LED_Displays").addClass("current");
    }
    if ($("#Curtain_LED_Displays").html() == $("#Absen_title").html()) {
        $("#Curtain_LED_Displays").addClass("current");
    }
    if ($("#Dancing_Floor_LED_Displays").html() == $("#Absen_title").html()) {
        $("#Dancing_Floor_LED_Displays").addClass("current");
    }
    if ($("#Front_Site_Maintenance_LED_").html() == $("#Absen_title").html()) {
        $("#Front_Site_Maintenance_LED_").addClass("current");
    }
    if ($("#Traffice_LED_Displays").html() == $("#Absen_title").html()) {
        $("#Traffice_LED_Displays").addClass("current");
    }

$("#list0").removeClass("list_none");
        $("#list0").addClass("list");
    
$("#mod0").removeClass("menuNo");
        $("#mod0").addClass("menuOn");
    
    
    
    
    
    
    
    
    
    
})


 function switchmodTag(modtag,modcontent,modk) {
    for(i=0; i <3; i++) {
      if (i==modk) {
        document.getElementById(modtag+i).className="menuOn";document.getElementById(modcontent+i).className="list";}
      else {
        document.getElementById(modtag+i).className="menuNo";document.getElementById(modcontent+i).className="list_none";}
    }
  }
  


function showbgcolor(obj){
	var bottombgcolor = '#F58220';
    obj.style.backgroundColor = bottombgcolor;
}

function hiddenbgcolor(obj){
    obj.style.backgroundColor = '';
}

function showselectbottom(){
	document.getElementById("selectbottom").style.display = '';
}


function MM_jumpMenu(targ, selObj, restore){ //v3.0
    eval(targ + ".location='" + selObj.options[selObj.selectedIndex].value + "'");
    if (restore) 
        selObj.selectedIndex = 0;
}


function showDiv(obj, num, len){
    for (var id = 1; id <= len; id++) {
        var ss = obj + id;
        var snav = obj + "nav" + id;
        if (id == num) {
            try {
                document.getElementById(ss).style.display = "block"
            } 
            catch (e) {
            };
            try {
                //for( i=1, i<len,i++){document.getElementById(snav).className="noactive";}
                document.getElementById(snav).className = "active"
            } 
            catch (e) {
            };
                    }
        else {
            try {
                document.getElementById(ss).style.display = "none"
            } 
            catch (e) {
            };
            try {
                document.getElementById(snav).className = "noactive"
            } 
            catch (e) {
            };
                    }
    }
}

