// JavaScript Document
function noError(){return true;}
window.onerror = noError;

$(function() {
	$('.neoslideshow img:gt(0)').hide();
	setInterval(function(){
      $('.neoslideshow :first-child').fadeOut()
         .next('img').fadeIn()
         .end().appendTo('.neoslideshow');}, 
      4000);
})

function setHomePage()
{
    var isIE= navigator.userAgent.indexOf('MSIE') != -1;
    
    if(isIE)
    {
        var url = 'http://www.epicompany.com';
        
        var homePage = document.body;
        
        homePage.style.behavior = 'url(#default#homepage)';
        homePage.setHomePage(url);
    }
    else
    {
        alert('[Ctrl+D] set hompage!');
    }
}


function load_tab(val)
{
  	for(i=1;i<=4;i++)
	{
		if(val==i)
		{
			$("#tab_"+val).show(10);
			document.getElementById('class_'+val).className='tab_active';
		}else{
			$("#tab_"+i).hide(10);	
			document.getElementById('class_'+i).className='tab_none';
		}
	}
}
function changeOpenmenu(id){

	var f=document.getElementById(id).className;
	if(f=='cen_sub_none'){
		document.getElementById(id).className='cen_sub';
	}else{
		document.getElementById(id).className='cen_sub_none';
	}

}

loadstatustext = '';
function ajaxLoad(url,id)
   {
       if (document.getElementById) {
           var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
           }
           if (x)
               {
           x.onreadystatechange = function()
                   {
                       el = document.getElementById(id);
                      // el.innerHTML = loadstatustext;
               if (x.readyState == 4 && x.status == 200)
                       {
                       el.innerHTML = x.responseText;
                   }
                   }
               x.open("GET", url, true);
               x.send(null);
               }
       }

