function setDivImage_1 (cesta_number)
{ 
        var cesta_js = "";
        //var web_bg = "bl";
    
        for (i = 0; i < cesta_number; i++) 
          {
            cesta_js = cesta_js+"../";
          }
    
	document.getElementById("abc").style.backgroundImage = "url(\""+cesta_js+"img/bg_"+web_bg+"_1.jpg\")";
}
function setDivImage_2 (cesta_number)
{
        var cesta_js = "";
        //var web_bg = "bl";
    
        for (i = 0; i < cesta_number; i++) 
          {
            cesta_js = cesta_js+"../";
          }
    
	document.getElementById("abc").style.backgroundImage = "url(\""+cesta_js+"img/bg_"+web_bg+"_2.jpg\")";
}
function setDivImage_3 (cesta_number)
{
        var cesta_js = "";
        //var web_bg = "bl";
    
        for (i = 0; i < cesta_number; i++) 
          {
            cesta_js = cesta_js+"../";
          }
    
	document.getElementById("abc").style.backgroundImage = "url(\""+cesta_js+"img/bg_"+web_bg+"_3.jpg\")";
}
function setDivImage_4 (cesta_number)
{
        var cesta_js = "";
        //var web_bg = "bl";
    
        for (i = 0; i < cesta_number; i++) 
          {
            cesta_js = cesta_js+"../";
          }
    
	document.getElementById("abc").style.backgroundImage = "url(\""+cesta_js+"img/bg_"+web_bg+"_4.jpg\")";
}

function setDivImage_5 (cesta_number)
{
        var cesta_js = "";
        //var web_bg = "bl";
    
        for (i = 0; i < cesta_number; i++) 
          {
            cesta_js = cesta_js+"../";
          }
    
	document.getElementById("abc").style.backgroundImage = "url(\""+cesta_js+"img/bg_"+web_bg+"_5.jpg\")";
}

function changeDivImage_l(cesta_number)
{ 
        var cesta_js = "";
        //var web_bg = "bl";
    
        for (i = 0; i < cesta_number; i++) 
          {
            cesta_js = cesta_js+"../";
          }
    
	var url = window.location;
	var imgPath = new String();
        var OP = new String();
        var Chr = new String();
	imgPath = document.getElementById("abc").style.backgroundImage;
	Chr = "url("+web_op_chr+"img/bg_"+web_bg+"_";
	OP = "url(\""+web_op_chr+"img/bg_"+web_bg+"_";

	if(imgPath == "url(\""+cesta_js+"img/bg_"+web_bg+"_1.jpg\")" || imgPath == "url("+cesta_js+"img/bg_"+web_bg+"_1.jpg)" || imgPath == Chr+'1.jpg)' || imgPath == OP+'1.jpg\")' || imgPath == "")
	{ 
		document.getElementById("abc").style.backgroundImage = "url(\""+cesta_js+"img/bg_"+web_bg+"_5.jpg\")";
		imgPath_post = 5;
		$.post(""+url,{background: imgPath_post}, function(data){});
	}
        if(imgPath == "url(\""+cesta_js+"img/bg_"+web_bg+"_5.jpg\")" || imgPath == "url("+cesta_js+"img/bg_"+web_bg+"_5.jpg)" || imgPath == Chr+'5.jpg)' || imgPath == OP+'5.jpg\")' || imgPath == "")
	{ 
		document.getElementById("abc").style.backgroundImage = "url(\""+cesta_js+"img/bg_"+web_bg+"_4.jpg\")";
		imgPath_post = 4;
		$.post(""+url,{background: imgPath_post}, function(data){});
	}
	if(imgPath == "url(\""+cesta_js+"img/bg_"+web_bg+"_4.jpg\")" || imgPath == "url("+cesta_js+"img/bg_"+web_bg+"_4.jpg)" || imgPath == Chr+'4.jpg)' || imgPath == OP+'4.jpg\")' || imgPath == "")
	{
		document.getElementById("abc").style.backgroundImage = "url(\""+cesta_js+"img/bg_"+web_bg+"_3.jpg\")";
		imgPath_post = 3;
		$.post(""+url,{background: imgPath_post}, function(data){});
	}
	if(imgPath == "url(\""+cesta_js+"img/bg_"+web_bg+"_3.jpg\")" || imgPath == "url("+cesta_js+"img/bg_"+web_bg+"_3.jpg)" || imgPath == Chr+'3.jpg)' || imgPath == OP+'3.jpg\")')
	{
		document.getElementById("abc").style.backgroundImage = "url(\""+cesta_js+"img/bg_"+web_bg+"_2.jpg\")";
		imgPath_post = 2;
		$.post(""+url,{background: imgPath_post}, function(data){});
	}
	if(imgPath == "url(\""+cesta_js+"img/bg_"+web_bg+"_2.jpg\")" || imgPath == "url("+cesta_js+"img/bg_"+web_bg+"_2.jpg)" || imgPath == Chr+'2.jpg)' || imgPath == OP+'2.jpg\")')
	{
		document.getElementById("abc").style.backgroundImage = "url(\""+cesta_js+"img/bg_"+web_bg+"_1.jpg\")";
		imgPath_post = 1;
		$.post(""+url,{background: imgPath_post}, function(data){});
	}
}
function changeDivImage_r(cesta_number)
{
        var cesta_js = "";
        //var web_bg = "bl";
    
        for (i = 0; i < cesta_number; i++) 
          {
            cesta_js = cesta_js+"../";
          }
    
	var url = window.location;
	var imgPath = new String();
	var OP = new String();
        var Chr = new String();
	imgPath = document.getElementById("abc").style.backgroundImage;
	Chr = "url("+web_op_chr+"img/bg_"+web_bg+"_";
	OP = "url(\""+web_op_chr+"img/bg_"+web_bg+"_";

	//alert(imgPath+' '+OP+'2.jpg\")');

	if(imgPath == "url(\""+cesta_js+"img/bg_"+web_bg+"_1.jpg\")" || imgPath == "url("+cesta_js+"img/bg_"+web_bg+"_1.jpg)" || imgPath == Chr+'1.jpg)' || imgPath == OP+'1.jpg\")' || imgPath == "")
	{
		document.getElementById("abc").style.backgroundImage = "url(\""+cesta_js+"img/bg_"+web_bg+"_2.jpg\")";
		imgPath_post = 2;
		$.post(""+ url,{background: imgPath_post}, function(data){});
	}
	if(imgPath == "url(\""+cesta_js+"img/bg_"+web_bg+"_2.jpg\")" || imgPath == "url("+cesta_js+"img/bg_"+web_bg+"_2.jpg)" || imgPath == Chr+'2.jpg)' || imgPath == OP+'2.jpg\")')
	{
		document.getElementById("abc").style.backgroundImage = "url(\""+cesta_js+"img/bg_"+web_bg+"_3.jpg\")";
		imgPath_post = 3;
		$.post(""+ url,{background: imgPath_post}, function(data){});
	}
	if(imgPath == "url(\""+cesta_js+"img/bg_"+web_bg+"_3.jpg\")" || imgPath == "url("+cesta_js+"img/bg_"+web_bg+"_3.jpg)" || imgPath == Chr+'3.jpg)' || imgPath == OP+'3.jpg\")')
	{
		document.getElementById("abc").style.backgroundImage = "url(\""+cesta_js+"img/bg_"+web_bg+"_4.jpg\")";
		imgPath_post = 4;
		$.post(""+ url,{background: imgPath_post}, function(data){});
	}
	if(imgPath == "url(\""+cesta_js+"img/bg_"+web_bg+"_4.jpg\")" || imgPath == "url("+cesta_js+"img/bg_"+web_bg+"_4.jpg)" || imgPath == Chr+'4.jpg)' || imgPath == OP+'4.jpg\")')
	{
		document.getElementById("abc").style.backgroundImage = "url(\""+cesta_js+"img/bg_"+web_bg+"_5.jpg\")";
		imgPath_post = 5;
		$.post(""+ url,{background: imgPath_post}, function(data){});
	}
        if(imgPath == "url(\""+cesta_js+"img/bg_"+web_bg+"_5.jpg\")" || imgPath == "url("+cesta_js+"img/bg_"+web_bg+"_5.jpg)" || imgPath == Chr+'5.jpg)' || imgPath == OP+'5.jpg\")')
	{
		document.getElementById("abc").style.backgroundImage = "url(\""+cesta_js+"img/bg_"+web_bg+"_1.jpg\")";
		imgPath_post = 1;
		$.post(""+ url,{background: imgPath_post}, function(data){});
	}
}	
