/*
Generuje ogon dla obrazka serwowanego przez getimage.php
*/
function getDateTail(){
	return Date.parse(new Date());
}
function writeDateTail(){
	document.write(getDateTail());
}
function writeRndImage(w){
	tail  = getDateTail();
	document.write("<img src='/getimage.php?"+tail+"' width='"+w+"'>");
}
function prezentacja(){
	window.open("/doc/File/flash/BTC_2007.html","prezentacja","width=750, height=350");
}
/*
Movie
*/
function movie_getDivById(id){
	return (d=document.all)?d[id]:document.getElementById(id);
}
function getMovie(){
	return	'<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="195" HEIGHT="182" id="film" ALIGN=""><PARAM NAME=movie VALUE="/doc/Flash/film.swf"><PARAM NAME=loop VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="/doc/Flash/film.swf" loop=false quality=high bgcolor=#FFFFFF  WIDTH="195" HEIGHT="182" NAME="film" ALIGN=""  TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>';		
}
function playMovie(){
	var mv = movie_getDivById('rndImages');
	if (!cookie_get('movie')) {
		cookie_set('movie',1,2)
		mv.innerHTML = getMovie();
	}
}

/*
Cookie
*/
function cookie_set(name,value,days){
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000))
		var expires = "; expires="+date.toGMTString()
	}
	else expires = ""
	document.cookie = name+"="+value+expires+"; path=/"
}
function cookie_get(name) {
	var nameEQ = name + "="
	var ca = document.cookie.split(';')
	for(var i=0;i<ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length)
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length)
	}
	return null
}
function stany_onload(){
	if(typeof(ge_divName)!="undefined"){
		document.onload = ge_load();
	}
	show_box20_23();
}

function show_box20_23()
{
	if( "undefined" != typeof(comunicators) )
	{
		if(''!=comunicators)
		{
			box = movie_getDivById("komunikator-box");
			box.innerHTML = comunicators;
			box.style.backgroundColor="yellow";
			box.style.borderStyle="solid";
			box.style.borderWidth="1px";
			box.style.borderColor="navy";
		}
	}
}


function openEmp(id){
	url = '/pl/popups/pracodawcy.php'+'?item_id='+id;
	employerWindow = window.open(url,'employer',"width=700, height=700");
}
//<!-- (C) stat24 / Wszystkie strony -->
//<script type="text/javascript">
//<!--
//document.writeln('<'+'scr'+'ipt type="text/javascript" src="http://s3.hit.stat.pl/_'+(new Date()).getTime()+'/script.js?id=1wA7Yqr8XJ6_5nAvR7WthZa0XmcpdTuOAWKIjubPWGn.j7/l=11"></'+'scr'+'ipt>');
////-->
//</script>