// JavaScript Document
var pokaz_konkurs_id = 0;
var pokaz_order = '';
var pokaz_fraza = '';
var pokaz_data_od = '';
var pokaz_data_do = '';

function closeSS() {
	$('pokaz_container').update("");
	try{
		Effect.Fade('pokaz_container');
	}
	catch (exc) {
		$('pokaz_container').hide();
	}
	$('full_container').show();
}

function showPokazContainer (konkurs_id, order, fraza, data_od, data_do) {
	pokaz_konkurs_id = konkurs_id;
	if(order!=null) pokaz_order = order;
	if(order!=null) pokaz_fraza = fraza;
	if(order!=null) pokaz_data_od = data_od;
	if(order!=null) pokaz_data_do = data_do;
	
	//if(records_per_page>0) 
	$('pokaz_container').update("");
	//$('dok_details').update("");
	try{
		Effect.Appear('pokaz_container',{afterFinish:showPokaz});
	}
	catch (exc) {
		$('pokaz_container').show();
		showPokaz();
	}
	//alert(dok_id);
}
function showPokaz () {
	$('full_container').hide();
	$('pokaz_container').update("");
	var myWidth = 0, myHeight = 0;
  	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
 	 } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
  	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
 	}
	var so = new SWFObject('fla/slideshow2.swf', 'idx', myWidth, myHeight, '8', '#000000');
	so.addParam('salign','tl');
	so.addParam('allowFullScreen','true');
	so.addVariable("konkurs_id", pokaz_konkurs_id);
	so.write('pokaz_container');
}
