function page(id,count,choose)
{
	for (var i=0;i<count;i++)
	{
		document.getElementById(id+(i+1)).style.display='none';
		document.getElementById(id+'t'+(i+1)).style.fontWeight='normal';
	}
	document.getElementById(id+'t'+choose).style.fontWeight='bold';
	document.getElementById(id+choose).style.display='block';
	
	return true;
}


var NS = (navigator.appName=="Netscape")?true:false;
var Film1 = '<a href=\'/gfx/flash/promo_pl.flv\' style=\'display:block;width:520px;height:330px;\'';

function change(id)
{
	if(document.getElementById(id).style.display=='block') 
		document.getElementById(id).style.display='none'; 
	else document.getElementById(id).style.display='block';
	
	return false;
}
function hidden(id)
{
	if (document.getElementById(id))
		document.getElementById(id).style.display='none';
}
function showcon(id)
{
	if (document.getElementById(id))
		document.getElementById(id).style.display='block';
}
function change_in(id)
{
	if(document.getElementById(id).style.display=='inline') 
		document.getElementById(id).style.display='none'; 
	else document.getElementById(id).style.display='inline';
	
	return false;
}
function change_row(id)
{


if (!NS) 
		if(document.getElementById(id).style.display=='block')
			document.getElementById(id).style.display='none'; 
		else document.getElementById(id).style.display='block';
	else
		if(document.getElementById(id).style.display=='table-row') 
			document.getElementById(id).style.display='none'; 
		else document.getElementById(id).style.display='table-row';
		
/*
return false;
*/
}


function load_swf(elem, filek, x, y)
{
	if(document.getElementById(elem))
		document.getElementById(elem).innerHTML='<object width="'+x+'" height="'+y+'"><param name="movie" value="'+filek+'"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="transparent"></params><param name="allowscriptaccess" value="always"></param><embed src="'+filek+'" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="'+x+'" height="'+y+'"></embed></object>';
}
function load_swf2(elem, filek, x, y)
{
	if(document.getElementById(elem))
		document.getElementById(elem).innerHTML='<object width="'+x+'" height="'+y+'"><param name="movie" value="'+filek+'"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="opaque"></params><param name="allowscriptaccess" value="always"></param><embed src="'+filek+'" type="application/x-shockwave-flash" allowscriptaccess="always" wmode="opaque" allowfullscreen="true" width="'+x+'" height="'+y+'"></embed></object>';
}
function load_swf3(elem, filek, x, y)
{
	if(document.getElementById(elem))
		document.getElementById(elem).innerHTML='<object width="'+x+'" height="'+y+'"><param name="movie" value="http://tabasco/gfx/flash/flash_main.swf"></param><param name="allowFullScreen" value="true"></param><param name="wmode" value="opaque"></params><param name="allowscriptaccess" value="always"></param><embed src="http://tabasco/gfx/flash/flash_main.swf" type="application/x-shockwave-flash" allowscriptaccess="always" wmode="opaque" allowfullscreen="true" width="'+x+'" height="'+y+'"></embed></object>';
}
function close_swf(elem)
{
	if(document.getElementById(elem))
		document.getElementById(elem).innerHTML='';
}


function contact_map()
{
	//~ document.write("<iframe width=\"222\" height=\"222\" frameborder=\"0\" scrolling=\"no\" marginheight=\"0\" marginwidth=\"0\" src=\"http:\/\/maps.google.pl\/maps\/ms?ie=UTF8&amp;hl=pl&amp;msa=0&amp;msid=104391582759448099823.0004720a4f243fa6daf51&amp;ll=51.092026,16.985405&amp;spn=0,0&amp;output=embed\"><\/iframe>");
	document.write("<iframe width=\"222\" height=\"222\" frameborder=\"0\" scrolling=\"no\" marginheight=\"0\" marginwidth=\"0\" src=\"http:\/\/maps.google.pl\/maps\/ms?source=s_q&amp;hl=pl&amp;geocode=&amp;ie=UTF8&amp;hq=&amp;hnear=Tomaszowska+7,+Wroc%C5%82aw,+Dolno%C5%9Bl%C4%85skie&amp;msa=0&amp;msid=217053711634158547170.0004720a4f243fa6daf51&amp;ll=51.090321,17.038553&amp;spn=0,0&amp;output=embed\"></iframe>");
}


function page(id)
{
	if (id<0)
	{
		id=0;
	}
	else if(id>photo_i-1)
	{
		id=photo_i-1;
	}
	if (document.getElementById('client-photos'))
		document.getElementById('client-photos').style.marginLeft='-'+(id*260)+'px';
	
	for (var i=0;i<photo_i;i++)
	{
		if (document.getElementById('page'+i))
			document.getElementById('page'+i).style.fontWeight='normal';
	}
	if (document.getElementById('page'+id))
		document.getElementById('page'+id).style.fontWeight='bold';
	photo_actual=id;
}

function hidden2t(id)
{
	if (document.getElementById(id))
		document.getElementById(id).style.display='none';
}
function show2t(id)
{
	if (document.getElementById(id))
		document.getElementById(id).style.display='block';
}

