MIN_PICTERS=1;
MAX_PICTERS=5;//max quantity of picters for the gallery, they mast be named as gal1.jpg, gal2.jpg, gal3.jpg and more
count=1;
function change_image(){
	src='images/gal'.concat(count).concat('.jpg');							
	document.getElementById('main_pic').src=src;
}
function left(){
	count++;
	if (count>MAX_PICTERS){count=1}					
	change_image();										
}
function right(){						
	count--;
	if (count<MIN_PICTERS){count=(MAX_PICTERS)}				
	change_image();						
}	

function RunFlash1()
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="1000" height="373">');
document.write('<param name="movie" value="flashfr.swf?id=1" />');
document.write('<param name="quality" value="high" />');
document.write('<embed src="flashfr.swf?id=1" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1000" height="373" />');
document.write('</object>');
}
function RunFlash2()
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="1000" height="373">');
document.write('<param name="movie" value="flashfr.swf?id=2" />');
document.write('<param name="quality" value="high" />');
document.write('<embed src="flashfr.swf?id=2" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1000" height="373" />');
document.write('</object>');
}
function RunFlash3()
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="1000" height="373">');
document.write('<param name="movie" value="flashfr.swf?id=3" />');
document.write('<param name="quality" value="high" />');
document.write('<embed src="flashfr.swf?id=3" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1000" height="373" />');
document.write('</object>');
}
function RunFlash4()
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="1000" height="373">');
document.write('<param name="movie" value="flashfr.swf?id=4" />');
document.write('<param name="quality" value="high" />');
document.write('<embed src="flashfr.swf?id=4" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1000" height="373" />');
document.write('</object>');
}
function RunFlash5()
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="1000" height="373">');
document.write('<param name="movie" value="flashfr.swf?id=5" />');
document.write('<param name="quality" value="high" />');
document.write('<embed src="flashfr.swf?id=5" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1000" height="373" />');
document.write('</object>');
}
function RunFlash6()
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="1000" height="373">');
document.write('<param name="movie" value="flashfr.swf?id=6" />');
document.write('<param name="quality" value="high" />');
document.write('<embed src="flashfr.swf?id=6" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1000" height="373" />');
document.write('</object>');
}

