

function show_close(xxx) { 
	theObj = document.getElementById(xxx).style; 
	
	if ( theObj.display == "block" ) {
		theObj.display = "none";
		theObj.cursor="default"
	} else {
		theObj.display = "block";
			theObj.cursor="pointer"
	} 

}



function submenu(state) { 

theObj = document.getElementById(state);

if ( theObj.className == "none" ) {

theObj.className = "current";

} 

else {

theObj.className = "none";

}

}



function navc(xxx) { 
	theObj = document.getElementById(xxx).style; 
	if ( theObj.display == "block" ) {
		theObj.display = "none";
	} 
}



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_showHideLayers() { //v6.0

  var i,p,v,obj,args=MM_showHideLayers.arguments;

  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];

    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }

    obj.visibility=v; }

}

function loadImages()
{
    var d=document; if(d.images)
               {
                     if(!d.MM_p) d.MM_p=new Array();
                     var i,j=d.MM_p.length,a=loadImages.arguments; 
                     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 goURL(xxx){
window.location.href=xxx
}

function showSearch(vs, vs1){
	/*document.getElementById(vs1).setAttribute("onmouseover",function(){show_close(vs);});*/
	/*document.getElementById(vs1).setAttribute("onmouseout",function(){fun(event,document.getElementById('s1'));});*/
	
		theObj = document.getElementById(vs).style; 
	
	if ( theObj.display == "block" ) {
		theObj.display = "none";
		
	} else {
		theObj.display = "block";
	} 
	
}

function hideSearch(e,o) 
{ 
        if(window.navigator.userAgent.indexOf("Firefox")>=1) { 
            var x = e.clientX + document.body.scrollLeft;
            var y = e.clientY + document.body.scrollTop ;
            var left = o.offsetLeft;
            var top = o.offsetTop;
            var w = o.offsetWidth
            var h = o.offsetHeight;
            
            if(y < top || y > (h + top) || x > left + w || x<left ) { 
                navc("s1")
            }
        }

        /* IE */
        if(o.contains(event.toElement ) == false){ 
		 navc("s1")
		}
}
	
function showsubmenu(div1,div2,div3,css,css2){
	theObj = document.getElementById(div1)
	theObj1 = document.getElementById(div2)
	theObj2 = document.getElementById(div3)
	
	if ( theObj2.style.display == "block" ) {
		theObj.className="none"
		theObj1.className="navline"
		theObj2.style.display="none"
	} else {
		theObj.className=css
		theObj1.className=css2
		theObj2.style.display="block"
	} 
}



function hidesubmenu(e,div1,div2,div3,css,css2){

	theObj = document.getElementById(div1)
	theObj1 = document.getElementById(div2)
	theObj2 = document.getElementById(div3)
	

	if ( theObj2.style.display == "block" ) {
			theObj.className=css
			theObj1.className=css2
			theObj2.style.display="none"
	} 

}

function searchfocus(searchd,input,bt,s1){
	theObj = document.getElementById(searchd)
	theObj1 = document.getElementById(input)
	theObj2 = document.getElementById(bt)
	theObj3 = document.getElementById(s1)
	theObj.style.backgroundImage = "url('/images/search11.gif')"; 
	theObj1.style.background="#454545"
	theObj2.src="/images/search21.gif"
	theObj3.style.display="block"
}
function searchblur(searchd,input,bt,s1){
	theObj = document.getElementById(searchd)
	theObj1 = document.getElementById(input)
	theObj2 = document.getElementById(bt)
	theObj3 = document.getElementById(s1)
	theObj.style.backgroundImage = "url('/images/search1.gif')"; 
	theObj1.style.background="#212121"
	theObj2.src="/images/search2.gif"
	theObj3.style.display="none"
}
function showicon(icon, icon1){

	theObj = document.getElementById(icon).style
	theObj1 = document.getElementById(icon1)
	if ( theObj.display == "block" ) {
		theObj.display = "none";
		theObj1.src="/images/icon_1.gif"
		
	} else {
		theObj.display = "block";
		theObj1.src="/images/icon_11.gif"
	} 
}
function changebg(div){
	theObj = document.getElementById(div).style
		theObj.backgroundColor="#E5E5E5"
}
function changebgback(div){
	theObj = document.getElementById(div).style
		theObj.backgroundColor="#ffffff"
}
function pcb(div){
	theObj = document.getElementById(div).style
		theObj.backgroundColor="#F3F3F3"
}
function pcbb(div){
	theObj = document.getElementById(div).style
		theObj.backgroundColor="#E5E5E5"
}
function showsmall(div){
	theObj = document.getElementById(div).style
		theObj.backgroundColor="#FB6101"
}
function closesmall(div){
	theObj = document.getElementById(div).style
		theObj.background="none"
}

