function change_short_description( el_li )
{
	id = el_li.id.substring(3,el_li.id.length);
	div = document.getElementById( "wp_desc_" + id );

	div_bottom = document.getElementById( "bottom_info" );
	div_bottom.innerHTML = div.innerHTML;
	
} 

//function change_short_description( el_li )
//{
//    var elements = document.getElementsByTagName("div");
//    for (var i = 0; i < elements.length; i++) {
//		el = elements[ i ];
//        if (el.id != null && el.id.length > 7 && el.id.substring(0,7) == "wp_desc") {
//			el.style.display = "none";
//		}
//    }
//	
//	id = el_li.id.substring(3,el_li.id.length);
//	div = document.getElementById( "wp_desc_" + id );
//	
//	var pos = get_absolute_pos( document.getElementById('web_products') );
//	div.style.top = ''+(pos.y-10)+'px';
//	div.style.left = ''+(pos.x+300)+'px';
//	div.style.display = "block";
//	
//	div_li = document.getElementById( 'wp_' + id );
//	div_li.style.backgroundImage = 'url("../images/home_button_s.gif")';
//} 
function close_short_description( el_li )
{
	
}
//function close_short_description( el_li )
//{
//	id = el_li.id.substring(3,el_li.id.length);
//	div = document.getElementById( "wp_desc_" + id );
//	div.style.display = "none";
//
//	div_li = document.getElementById( 'wp_' + id );
//	div_li.style.backgroundImage = 'url("../images/home_button.gif")';
//} 

var __isFireFox = navigator.userAgent.match(/gecko/i);   
  
  
//returns the absolute position of some element within document   
function get_absolute_pos(element) {   
    var res = new Object();   
    res.x = 0; res.y = 0;   
    if (element !== null) {   
        res.x = element.offsetLeft;    
        res.y = element.offsetTop;    
           
        var offsetParent = element.offsetParent;   
        var parentNode = element.parentNode;   
  
        while (offsetParent !== null) {   
            res.x += offsetParent.offsetLeft;   
            res.y += offsetParent.offsetTop;   
  
            if (offsetParent != document.body && offsetParent != document.documentElement) {   
                res.x -= offsetParent.scrollLeft;   
                res.y -= offsetParent.scrollTop;   
            }   
            //next lines are necessary to support FireFox problem with offsetParent   
            if (__isFireFox) {   
                while (offsetParent != parentNode && parentNode !== null) {   
                    res.x -= parentNode.scrollLeft;   
                    res.y -= parentNode.scrollTop;   
                       
                    parentNode = parentNode.parentNode;   
                }       
            }   
            parentNode = offsetParent.parentNode;   
            offsetParent = offsetParent.offsetParent;   
        }   
    }   
    return res;   
}  

function contact_us_click()
{
	div_bottom = document.getElementById( "bottom_info" );
	div = document.getElementById( "contact_us_content" );
	div_bottom.innerHTML = div.innerHTML;
}
