// #########  End Product Per Page View 12,24,36 Drop Down box   ######### //
var eventTimer;
function showProductTip_Layer(proid)
{
    //alert('testing');
    eventTimer=setTimeout("showProductTip_Layer_Content("+proid+")",200);
}
function showProductTip_LayerClearTime(){
    clearTimeout(eventTimer);
}
function showProductTip_Layer_Content(proid)
{
    
    dcsMultiTrack('DCS.dcsuri', '/shopproductdetail.php','WT.ti', proid);

    var url = "shopproductdetail.php";
    var params = "product_id="+proid;
    var showProductDetail = AjaxAgent.call(url,"","",params);
    //return showProductDetail;
    document.getElementById('shopproductdetail').style.display='block';

    document.getElementById('shopproductdetail').innerHTML=showProductDetail;  
     jQuery.getScript('http://connect.facebook.net/de_DE/all.js#appId=113518962072846&amp;xfbml=1');
     jQuery.getScript('http://platform.twitter.com/widgets.js');
     jQuery.getScript('https://apis.google.com/js/plusone.js');
     if(document.getElementById('g-plusoneHref').innerHTML!='')
     {
         gapi.plusone.render("gplusbutton",{"size": "medium","href" : document.getElementById('g-plusoneHref').innerHTML});
     }     
}

function showProductTip_Layer_response()
{
    if (BackgroundtableHttp.readyState == 4)
    {
        if (BackgroundtableHttp.responseText.indexOf('invalid') == -1)
        {
            try
            {
                var htmlRecord = BackgroundtableHttp.responseText;
                document.getElementById('shopproductdetail').style.display='block';

                document.getElementById('shopproductdetail').innerHTML=htmlRecord;

                BackgroundtableBusy = false;
            } // end try 
            catch(e)
            {
                alert("Error: " + e) ;
            } // end try catch
        } // end if response index -1
    } // end if readystate 4
} // end tableresponse function
function tt_HideInit_close()
{
    document.getElementById('shopproductdetail').style.display='none';
}

function textbox_close(id)
{
    document.getElementById(id).style.display='none'
    if(id=='textbox_matter_short')
    {
        document.getElementById('textbox_matter_detail').style.display='block';
        //document.getElementById('textbox_border').style.position='absolute';    
    }
    else
    {
        document.getElementById('textbox_matter_short').style.display='block';    
        /*alert(document.getElementById('textbox_border').style.position);*/
        //document.getElementById('textbox_border').style.position='';    



    }

}

function top_menu(id)
{
    if(document.getElementById(id).style.backgroundColor=='')
    {
        document.getElementById(id).style.backgroundColor='#DD4814';
    }
    else
    {
        document.getElementById(id).style.backgroundColor='';
    }
    /*alert(id);*/

}

