Aviles, Centro

<img id="webcam1" width="800" alt="webcam" src="http://www.radioaviles.com/webcam/capture1.jpg" class="webcam_in_frame" onmousedown="PTZMouseDown1(event)" height="600"/>

<script type="text/javascript">

<!--

errorimg1= 0;

document.images.webcam1.onload = DoIt1;

document.images.webcam1.onerror = ErrorImage1;

function LoadImage1()

{

        uniq1 = Math.random();

        document.images.webcam1.src = "http://79.148.102.132:8080/cam_1.jpg?uniq="+uniq1;

        window.status = "[powered by webcamXP]";

}

function PTZMouseDown1(e)

{

        var IE = document.all?true:false;

        var x,y;

        var myx,myy;

        var myifr = document.getElementById("_iframe-ptz");

        tp = getElPos1();

        myx = tp[0];

        myy = tp[1];

        if(IE){

        x = event.clientX - myx + document.body.scrollLeft;

        y = event.clientY - myy + document.body.scrollTop;

        } else {

        x = e.pageX - myx;

        y = e.pageY - myy;

        }

        //alert(x + " :: " + y);

        if (myifr != null) myifr.src = "http://79.148.102.132:8080/ptz?source=1&moveto_x=" + x + "&moveto_y=" + y +"";

        return true;

}

function getElPos1()

{

            el = document.images.webcam1;

            x = el.offsetLeft;

            y = el.offsetTop;

            elp = el.offsetParent;

            while(elp!=null)

              { x+=elp.offsetLeft;

                y+=elp.offsetTop;

                elp=elp.offsetParent;

              }

            return new Array(x,y);

}

function ErrorImage1()

{

        errorimg1++;

        if (errorimg1>1){

              document.images.webcam1.onload = "";

              document.images.webcam1.src = "http://www.darkboard.net/webcam/offline.jpg";

              }else{

              uniq1 = Math.random();

            document.images.webcam1.src = "http://79.148.102.132:8080/cam_1.jpg?uniq="+uniq1;

              }

}

function DoIt1()

{

        errorimg1=0;

        window.setTimeout("LoadImage1(0.01);", 70);

}

//-->

</script>