/*
Project: Labrin.net
Author: Muradov Sadig (coding&desing)
Author URL: http://sadig.muradov.org
*/
function draw(){
  var canvas = document.getElementById('labrin');
  if (canvas.getContext){
    var ctx = canvas.getContext('2d');

    //tupun bogazi
    ctx.rotate(- Math.PI / 35);
    ctx.shadowOffsetX = 4;   
    ctx.shadowOffsetY = 2;   
    ctx.shadowBlur = 2;   
    ctx.shadowColor = "rgba(0, 0, 0, 0.5)"; 
    ctx.strokeStyle = "#fff";
    ctx.lineWidth = 2;
    ctx.strokeRect(136,60,28,140);
	ctx.fillStyle = "#fff";
    ctx.fillRect(135,130,30,65);
    ctx.clearRect(138,55,25,80);
    
    // tupun bogazi
    ctx.beginPath();
    ctx.save();
    ctx.scale(0.9, 0.2);
    ctx.shadowOffsetX = 2;   
    ctx.shadowOffsetY = -1;   
    ctx.arc(166, 310, 20, 0, 2 * Math.PI, false);
    ctx.strokeStyle = "#fff";
    ctx.lineWidth = 6;
    ctx.stroke();
    ctx.closePath();      

    ctx.beginPath();
    ctx.scale(1, 0.9);
    ctx.arc(155,25,28,1,2,false); // Outer circle
    ctx.strokeStyle = "white";
    ctx.stroke();
    
    
    // tupun oturacagi
    ctx.beginPath();
    ctx.restore();
	ctx.shadowOffsetX = 0;   
    ctx.shadowOffsetY = 0;   
    ctx.shadowBlur = 0;
	ctx.shadowColor = "white";
    ctx.arc(150, 199, 15, 0, 2 * Math.PI, false);
    ctx.closePath(); 
	ctx.fillStyle = "#fff";
    ctx.fill();
    
    //kopukler #kopuk1
    ctx.beginPath();
    ctx.restore(); 
    ctx.arc(140, 130, 5, 0, 2 * Math.PI, false);
    ctx.closePath();
	ctx.fillStyle = "#fff";
    ctx.fill();
    
    //kopukler #kopuk2
    ctx.beginPath();
    ctx.restore();
    ctx.arc(157, 132, 7, 0, 2 * Math.PI, false);
    ctx.closePath();
	ctx.fillStyle = "#fff";
    ctx.fill();
    
    //kopukler #kopuk3
    ctx.beginPath();
    ctx.restore();
    ctx.arc(149, 127, 3, 0, 2 * Math.PI, false);
    ctx.closePath();
	ctx.fillStyle = "#fff";
    ctx.fill();
    
    //kopukler #kopuk4
    ctx.beginPath();
    ctx.restore();
    ctx.arc(146, 133, 6, 0, 2 * Math.PI, false);
    ctx.closePath();
	ctx.fillStyle = "#fff";
    ctx.fill();
    
    
    
    
  }
}
