var mx,my;
var lb_init=false;

jQuery(document).ready(function(){
   jQuery(document).mousemove(function(e){
        mx=e.pageX;
        my=e.pageY;
   });

   if (lb_init==false) {


   }

})

function popup(id)
{
    jQuery('#info_popup').html(jQuery('#'+id).html());
    jQuery('#info_popup').animate({"opacity":"0.8","left":mx,"top":my});

}

function changeStandort(){
    var sel=document.getElementById("select_standort");
    if (sel) {
        var val=sel.value;
        val=val.replace("&amp;","&");

        if (val.substr(0,4)=="http") {
            window.open(val);
            return;
        } else {
            var id=val.substr(0,val.indexOf("&"));
            if (val) window.location.href="/index.php?id="+val+"&S="+id;
            else return false;
        }
    } else {
        return false;
    }
}

/* Lokring Prd-DB */
function switchToPrdTab(id,tabObj)
{
    jQuery(".page").hide();
    jQuery("#"+id).show();

    jQuery("#tabs li").removeClass("active");
    jQuery(tabObj).addClass("active");

}

function toBasket(art) {

    jQuery.get( 'http://'+location.host+'/index.php?id=2330&ajax=1&do=add&nr='+art,
    function(data) {
      location.replace('http://'+location.host+'/index.php?id=2330');
    });
    //alert('Der Artikel wurde "'+ art  +'"in den Warenkorb gelegt');   
}

