$(function(){motan($("#lienacc"));
var bip = 0;$("#page_wrap").fadeIn(1000,function(){$("#hotline").fadeIn();});
function navint(num){
    $.get('p_w.php?r='+num+'',function(rd){
	    $("#page_wrap").html(rd);});
    $("#cref").val(num);
}
$("#plusplus").click(function(){navint($("#plusplus").val());});
function motan(elem){
elem = elem.attr('id');
switch(elem){
case 'hotline':bip=999999;break;
case 'adaptnt':bip=441599;break;
case 'cadrep':bip=475509;break;
case 'audio':bip=477119;break;
case 'dvdp':bip=476109;break;
case 'lienacc':bip=441599;break;
case 'plusplus':bip=$("#plusplus").val();break;}
$("#page_wrap").fadeOut(function(){
	$.get('p_w.php?r='+bip+'',function(retd){
		$("#page_wrap").html(retd).fadeIn();})});}
$(".naviu").click(function(){motan($(this));});
$("#plus").click(function(){motan($("#plusplus"));});
$("#contact").click(function(){$("#hotline").fadeOut(function(){motan($("#hotline"));}).fadeIn();});
$("#lienacc").click(function(){	motan($("#lienacc"))}).fadeIn();});
$("#plusplus").click(function(){motan($(this));});
$("#telpdf").click(function(){
	if(($("#cref").val()!='000000') && ($("#cref").val()!='999999')){
	       window.location.href = 'pdf/'+$("#cref").val()+'.pdf';
	}
    });
$("#telpdfacc").click(function(){
	if(($("#cref").val()=='000000')){
	    window.location.href ='pdf/441609.pdf';
	}

});
