

function pc(id) {
    if(p1=document.getElementById("price"+active_provider)) {
	p1.className='manufacturer_headline';
    }
    if(p2=document.getElementById("price"+id)) {
	p2.className='pageHeading';
    }
    active_provider=id;
}

function do_iframe() {
    ret =false;
    if(document.all && navigator.userAgent.toLowerCase().search("opera") == -1) {
	ret = true;
    }
    return ret;
}



function help(id,leftoffset) {


    c=document.getElementById("helpcontainer");
    w=document.getElementById("writearea");

    help_button=document.getElementById("helper"+id);
    c.style.top=(PageOffsetTop(help_button)+25)+"px";
   /*c.style.left=(PageOffsetLeft(help_button)+25)+"px";*/
   c.style.left=(PageOffsetLeft(help_button)-leftoffset)+"px";
    w.innerHTML=vhelp[id];
    c.style.visibility="visible";
   
    if(do_iframe() && false) {
	u=document.getElementById("underground");
	u.style.top=container.style.top;
	u.style.left=container.style.left;
	u.style.width=container.style.width;
	u.style.height=container.offsetHeight;
	u.style.display="";
    }
}

function my_hide() {
    c=document.getElementById("helpcontainer");
    c.style.visibility="hidden";

    if(do_iframe() && false) {
	u.style.top=0;
	u.style.left=0;
	u.style.width=0;
	u.style.height=0;
	u.style.display="none";
    }
}

function PageOffsetTop(el) {
    var y;

    y = el.offsetTop;
    if (el.offsetParent != null) {
	if(el.offsetParent.style && el.offsetParent.style.overflow && el.offsetParent.style.overflow!="visible") {
	}
	else {
	    y += PageOffsetTop(el.offsetParent);
	}
    }
    return y;
}


function PageOffsetLeft(el) {
    var x;
  
    x = el.offsetLeft;
	if (el.offsetParent != null) {
	    if(el.offsetParent.style && el.offsetParent.style.overflow && el.offsetParent.style.overflow!="visible") {
	    }
	    else {
		x += PageOffsetLeft(el.offsetParent);
	    }
	}
    return x;
}
