	var iload = false;
	var skyLposYs = 9;
	var skyRposYs = 9;
	var page_ay = 0;
	var movobjTimer = new Array();
	var liTimer;

	var isFF = (navigator.userAgent.indexOf("Firefox") != -1) ? true : false;
	var isCH = (navigator.userAgent.indexOf("Chrome") != -1) ? true : false;
	var isSF = (navigator.userAgent.indexOf("Safari") != -1) ? true : false;
/* FLASH detection B */
	var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
	var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
	var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
	// Flash Player Version Detection - Rev 1.6
	// Detect Client Browser type
	// Copyright(c) 2005-2006 Adobe Macromedia Software, LLC. All rights reserved.
	function ControlVersion(){
		var version;
		var axo;
		var e;
		
		// NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry
		try {
			// version will be set for 7.X or greater players
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
			version = axo.GetVariable("$version");
		} catch (e) {}
		
		if (!version){
			try {
				// version will be set for 6.X players only
				axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
				
				// installed player is some revision of 6.0
				// GetVariable("$version") crashes for versions 6.0.22 through 6.0.29,
				// so we have to be careful. 
				
				// default to the first public version
				version = "WIN 6,0,21,0";
				
				// throws if AllowScripAccess does not exist (introduced in 6.0r47)		
				axo.AllowScriptAccess = "always";
				
				// safe to call for 6.0r47 or greater
				version = axo.GetVariable("$version");
				
			} catch (e) {}
		}
		
		if (!version){
			try {
				// version will be set for 4.X or 5.X player
				axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
				version = axo.GetVariable("$version");
			} catch (e) {}
		}
		
		if (!version){
			try {
				// version will be set for 3.X player
				axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
				version = "WIN 3,0,18,0";
			} catch (e) {}
		}
		
		if (!version){
			try {
				// version will be set for 2.X player
				axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
				version = "WIN 2,0,0,11";
			} catch (e) {
				version = -1;
			}
		}
		
		return version;
	}
	
	// JavaScript helper required to detect Flash Player PlugIn version information
	function GetSwfVer(){
		// NS/Opera version >= 3 check for Flash plugin in plugin array
		var flashVer = -1;
		
		if (navigator.plugins != null && navigator.plugins.length > 0) {
			if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
				var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
				var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
				var descArray = flashDescription.split(" ");
				var tempArrayMajor = descArray[2].split(".");
				var versionMajor = tempArrayMajor[0];
				var versionMinor = tempArrayMajor[1];
				var versionRevision = descArray[3];
				if (versionRevision == "") {
					versionRevision = descArray[4];
				}
				if (versionRevision[0] == "d") {
					versionRevision = versionRevision.substring(1);
				} else if (versionRevision[0] == "r") {
					versionRevision = versionRevision.substring(1);
					if (versionRevision.indexOf("d") > 0) {
						versionRevision = versionRevision.substring(0, versionRevision.indexOf("d"));
					}
				}
				var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
				//alert("flashVer="+flashVer);
			}
		}
		// MSN/WebTV 2.6 supports Flash 4
		else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
		// WebTV 2.5 supports Flash 3
		else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
		// older WebTV supports Flash 2
		else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
		else if ( isIE && isWin && !isOpera ) {
			flashVer = ControlVersion();
		}
		return flashVer;
	}
	
	// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
	function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision){
		versionStr = GetSwfVer();
		if (versionStr == -1 ) {
			return false;
		} else if (versionStr != 0) {
			if(isIE && isWin && !isOpera) {
				// Given "WIN 2,0,0,11"
				tempArray         = versionStr.split(" "); 	// ["WIN", "2,0,0,11"]
				tempString        = tempArray[1];			// "2,0,0,11"
				versionArray      = tempString.split(",");	// ['2', '0', '0', '11']
			} else {
				versionArray      = versionStr.split(".");
			}
			var versionMajor      = versionArray[0];
			var versionMinor      = versionArray[1];
			var versionRevision   = versionArray[2];
			
			// is the major.revision >= requested major.revision AND the minor version >= requested minor
			if (versionMajor > parseFloat(reqMajorVer)) {
				return true;
			} else if (versionMajor == parseFloat(reqMajorVer)) {
				if (versionMinor > parseFloat(reqMinorVer))
					return true;
				else if (versionMinor == parseFloat(reqMinorVer)) {
					if (versionRevision >= parseFloat(reqRevision))
						return true;
				}
			}
			return false;
		}
	}

/* FLASH detection E */


/* Get/Set x/y position from/to element B */
	function get_xPos(elm) {
		var xPos = 0;
		if (document.getElementById(elm) != null) {
			xPos = document.getElementById(elm).offsetLeft;
		}
		return xPos;
	}

	function set_xPos(from,to,dx) {
		if ((document.getElementById(from) != null)&&(document.getElementById(to) != null)) {
			dx += get_xPos(from);
			document.getElementById(to).style.left = dx + "px";
		}
	}

	function get_yPos(elm) {
		var yPos = 0;
		if (document.getElementById(elm) != null) {
			var parElement = document.getElementById(elm);
			while (typeof parElement == 'object' && parElement.tagName != 'BODY') {
				yPos += parElement.offsetTop;
				parElement = parElement.offsetParent;
			}
		}
		return yPos;
	}

	function set_yPos(from,to,dy) {
		if ((document.getElementById(from) != null)&&(document.getElementById(to) != null)) {
			dy += get_yPos(from);
			document.getElementById(to).style.top = dy + "px";
		}
	}
/* Get/Set x/y position from/to element E */


/* Show/Hide Box B */
	var HideTimer = new Array();

	function box_show(from,box,i,dif) {
		window.clearTimeout(HideTimer[i]);
		set_yPos(from,box,dif);
		document.getElementById(box).style.display = "block";
	}
	function box_show2(box) { document.getElementById(box).style.display = "block"; }
	
	function box_hide(box,i,time_hide) { HideTimer[i] = window.setTimeout("box_hide_now('"+box+"')",time_hide); }
	function box_hide_now(box) { document.getElementById(box).style.display = "none"; }

	/* volani funkce "return ! box_show_hide('type1sub')" pojistka při vypnutém scriptu <noscript><style>.xyz{display: block;}</style></noscript> */
	function box_show_hide(box) { 
		state = document.getElementById(box).style.display; 
		if (state == "block") {document.getElementById(box).style.display = "none"}
		else {document.getElementById(box).style.display = "block"};
	return true;}

	function box_show2_hide1(box1,box2) { 
	state = document.getElementById(box2).style.display; 
	if((state=='none')||(state=='')){box_show2(box2);box_hide_now(box1);} else {box_show2(box1); box_hide_now(box2)}
	return true;}

	function box_mouse_over(i) { window.clearTimeout(HideTimer[i]); }
	function box_mouse_out(box,i,time_mouse_out) { HideTimer[i] = window.setTimeout("box_hide_now('"+box+"')",time_mouse_out); }

	function box_mouse_over2(from,i) { document.getElementById(from).className = "mouse-over"; window.clearTimeout(HideTimer[i]); }
	function box_mouse_out2(from,box,i,time_mouse_out) { document.getElementById(from).className = ""; HideTimer[i] = window.setTimeout("box_hide_now('"+box+"')",time_mouse_out); }

	function set_style(to, styl) {
		document.getElementById(to).className = styl;
	}
/* Show/Hide Box E */


/* Move eTarget in detail*/
	function moveetarget() {
		var eTmove = document.getElementById('d-etarget');
		var eTmoved = document.getElementById('eTargetScript');
		var eThide = document.getElementById('d-etarget-main');
		eTmoved.innerHTML = eTmove.innerHTML;
		eThide.style.display = "none";
	}

	function moveAny(what,where,whatHide) {
		anymove = document.getElementById(what);
		anymoved = document.getElementById(where);
		anyhide = document.getElementById(whatHide);
		anymoved.innerHTML = anymove.innerHTML;
		anyhide.style.display = "none";
	}


/* Cookies B */
	var cookieArray = new Array();
	
	function parseCookie() {
		var cookieList=document.cookie.split("; ");
		for (var i=0; i < cookieList.length; i++) {
			var spl = cookieList[i].split("=");
			cookieArray[unescape(spl[0])] = unescape(spl[1]);
			//alert(spl[0] + " = " + cookieArray[unescape(spl[0])]);
		}
	}
	
	function getCookie(name) {
		if (cookieArray[name]) { return cookieArray[name]; } else { return ""; }
	}
	
	function setCookie(name, value, expire) {
		var cookielife = new Date();
		cookielife.setDate(cookielife.getDate() + expire);
		document.cookie = name + "=" + escape(value) + ((expire) ? "; expires=" + cookielife.toGMTString() : "");
	}
	
	parseCookie();
/* Cookies E */


/* Stylesheets B */
	var iHNedStyle;
	var iHNedStyleCount=2;

	function setStylesheet(id) {
		var spl;
		var str;
		
		if (!id) id = 1;
		
		for (var i=1; i < 4; i++) {
			if (document.getElementById("stylesheet" + i)) {
				str = document.getElementById("stylesheet" + i).href;
				spl = str.split("_");
				document.getElementById("stylesheet" + i).href = spl[0] + "_" + id + ".css";
				setCookie("stylesheet", id, 1000);
			}
		}
		if (iload) { setHTML(id); }
	}

	function changeStylesheet() {
		iHNedStyle++;
		if (iHNedStyle>iHNedStyleCount) iHNedStyle = 1;
		setStylesheet(iHNedStyle);
	}

	function setHTML(id) {
		var spl;
		var str;
		//zmeny v html
		if (document.getElementById("logo")) {
			str = document.getElementById("logo").src;
			spl = str.split("_");
			document.getElementById("logo").src = spl[0] + "_" + (id ? id : "1") + ".gif";
		}
		if (document.getElementById("design2")) {
			if (id == 2) {
				document.getElementById("design2").innerHTML = "Alternativní grafiku pro iHNed.cz dodala <a href='http://www.mediafactory.cz/'>MEDIA FACTORY</a>.";
			} else {
				document.getElementById("design2").innerHTML = "";
			}
		}
	}

	iHNedStyle = parseInt(getCookie("stylesheet"));
	if (!iHNedStyle) iHNedStyle = 1; 
	if (iHNedStyle!=1) setStylesheet(iHNedStyle);
/* Stylesheets E */


/* Rotator B */
function Rotator (name, w, h, d, x, y, c, s, p, obj) {
	this.NAME = name;
	this.WIDTH = w;
	this.HEIGHT= h;
	this.DIRECTION = d;
	this.X = x;
	this.Y = y;
	this.COUNT = c;
	this.SPEED = s;
	this.PAUSE = p;
	this.OBJ_ID = obj;
	
	this.DX = 0;
	this.DY = 0;
	this.TimerID = 0;
	this.STOPonPAUSE = false;
	this.AX = new Array(this.COUNT);
	this.AY = new Array(this.COUNT);
	
	this.on = rotator_on;
	this.off = rotator_off;
	this.rotuj = rotator_rotuj;
	this.setdirection = rotator_setdirection;
	this.stoponpause = rotator_stoponpause;
	this.prev = rotator_prev;
	this.next = rotator_next;
	
	if (this.DIRECTION=="up") { this.DY = -1; }
	if (this.DIRECTION=="down") { this.DY = 1; }
	if (this.DIRECTION=="left") { this.DX = -1; }
	if (this.DIRECTION=="right") { this.DX = 1; }
	
	this.AX1 = this.DX * this.WIDTH;
	this.AY1 = this.DY * this.HEIGHT;
	
	for (var i=0; i < this.COUNT; i++) {
		this.AX[i] = this.DX*i*this.WIDTH*(-1);
		this.AY[i] = this.DY*i*this.HEIGHT*(-1);
	}
	
	if (((w==x)&&(this.DX)) || ((h==y)&&(this.DY))) {
		this.TimerID = setTimeout(this.NAME + ".rotuj()", 1);
	} else {
		this.TimerID = setTimeout(this.NAME + ".rotuj()", this.PAUSE);
	}
}

function rotator_on() {
	this.STOPonPAUSE = false;
	clearTimeout(this.TimerID);
	this.TimerID = setTimeout(this.NAME + ".rotuj()", this.SPEED);
}

function rotator_off() {
	clearTimeout(this.TimerID);
}

function rotator_stoponpause() {
	this.STOPonPAUSE = true;
}

function rotator_setdirection(d) {
	if (this.DIRECTION != d) {
		this.DIRECTION = d;
		this.DX = 0;
		this.DY = 0;
		if (this.DIRECTION=="up") { this.DY = -1; }
		if (this.DIRECTION=="down") { this.DY = 1; }
		if (this.DIRECTION=="left") { this.DX = -1; }
		if (this.DIRECTION=="right") { this.DX = 1; }
		this.AX1 += (this.DX * this.WIDTH * this.COUNT);
		this.AY1 += (this.DY * this.HEIGHT * this.COUNT);
		clearTimeout(this.TimerID);
	}
}

function rotator_prev() {
	for (i=0; i < this.COUNT; i++) {
		if (this.DX) {
			this.AX[i] -= (this.DX * this.WIDTH);
			if ( ( (this.AX[i] >= (-this.DX * this.WIDTH * this.COUNT))&&(this.DX < 0) ) || ( (this.AX[i] <= (-this.DX * this.WIDTH * this.COUNT))&&(this.DX > 0) ) ) {
				if (this.AX[i] != this.AX1) this.AX[i] = this.AX1;
				this.AX[i] -= (this.DX * this.WIDTH);
			}
			document.getElementById(this.OBJ_ID + i).style.left = this.AX[i]+"px";
		}
		if (this.DY) {
			this.AY[i] -= (this.DY * this.HEIGHT);
			if ( ( (this.AY[i] >= (-this.DY * this.HEIGHT * this.COUNT))&&(this.DY < 0) ) || ( (this.AY[i] <= (-this.DY * this.HEIGHT * this.COUNT))&&(this.DY > 0) ) ) {
				if (this.AY[i] != this.AY1) this.AY[i] = this.AY1;
				this.AY[i] -= (this.DY * this.HEIGHT);
			}
			document.getElementById(this.OBJ_ID + i).style.top = this.AY[i]+"px";
		}
	}
}

function rotator_next() {
	for (i=0; i < this.COUNT; i++) {
		if (this.DX) {
			this.AX[i] += (this.DX * this.WIDTH);
			if ( ( (this.AX[i] <= this.AX1)&&(this.DX < 0) ) || ( (this.AX[i] >= this.AX1)&&(this.DX > 0) ) ) {
				if (this.AX[i] != this.AX1) this.AX[i] = this.AX1;
				this.AX[i] -= (this.DX * this.WIDTH * this.COUNT);
			}
			document.getElementById(this.OBJ_ID + i).style.left = this.AX[i]+"px";
		}
		if (this.DY) {
			this.AY[i] += (this.DY * this.HEIGHT);
			if ( ( (this.AY[i] <= this.AY1)&&(this.DY < 0) ) || ( (this.AY[i] >= this.AY1)&&(this.DY > 0) ) ) {
				if (this.AY[i] != this.AY1) this.AY[i] = this.AY1;
				this.AY[i] -= (this.DY * this.HEIGHT * this.COUNT);
			}
			document.getElementById(this.OBJ_ID + i).style.top = this.AY[i]+"px";
		}
	}
}

function rotator_rotuj() {
	var next = this.SPEED;
	var paus = false;
	
	for (var i=0; i < this.COUNT; i++) {
		if (this.DX) {
			if ( ( (this.AX[i] <= this.AX1)&&(this.DX < 0) ) || ( (this.AX[i] >= this.AX1)&&(this.DX > 0) ) ) {
				if (this.AX[i] != this.AX1) this.AX[i] = this.AX1;
				this.AX[i] += (this.DX * this.WIDTH * (-1) * this.COUNT); next = this.PAUSE; paus = true;
			}
		}
		if (this.DY) {
			if ( ( (this.AY[i] <= this.AY1)&&(this.DY < 0) ) || ( (this.AY[i] >= this.AY1)&&(this.DY > 0) ) ) {
				if (this.AY[i] != this.AY1) this.AY[i] = this.AY1;
				this.AY[i] += (this.DY * this.HEIGHT * (-1) * this.COUNT); next = this.PAUSE; paus = true;
			}
		}
	}
	if (!paus) {
		for (i=0; i < this.COUNT; i++) {
			if (this.DX) {
				this.AX[i] += (this.DX * this.X);
				document.getElementById(this.OBJ_ID + i).style.left = this.AX[i]+"px";
			}
			if (this.DY) {
				this.AY[i] += (this.DY * this.Y);
				document.getElementById(this.OBJ_ID + i).style.top = this.AY[i]+"px";
			}
		}
	}
	
	this.TimerID = setTimeout(this.NAME + ".rotuj()", next);
	
	if (this.STOPonPAUSE && paus) clearTimeout(this.TimerID);
}
/* Rotator E */

/* CharMen B*/

function ShowCharMen() {
	if (this.SCOUNT==0) {
		document.getElementById(this.NAMES+this.MCOUNT).style.display = 'none';
		this.MCOUNT++;
		if(this.MCOUNT==this.ITEMS) {this.MCOUNT=0};
		document.getElementById(this.NAMES+this.MCOUNT).style.display = 'inline';
	}
	if(this.SCOUNT<=this.CHARNAMES[this.MCOUNT].length) {
		document.getElementById(this.NAMES+this.MCOUNT).innerHTML = this.CHARURLS[this.MCOUNT]+this.CHARNAMES[this.MCOUNT].substr(0,this.SCOUNT++)+'</a>';
		this.STIMER=setTimeout(this.OBJ + ".RUN()",this.CHARSPEED);
	} else {
		this.SCOUNT=0;
		if (this.MARKED==0) { this.STIMER=setTimeout(this.OBJ + ".RUN()",this.TITLESPEED); }
	}
}

function CharMen_on() {
	this.MARKED = 0;
	clearTimeout(this.STIMER);
	this.STIMER = setTimeout(this.OBJ + ".RUN()",this.CHARSPEED);
}

function CharMen_off() {
	this.MARKED = 1;
}

function CharMen_prev() {
	clearTimeout(this.STIMER);
	this.SCOUNT=0;
	document.getElementById(this.NAMES+this.MCOUNT).style.display = 'none';
	if(this.MCOUNT==1) {
		this.MCOUNT=this.ITEMS-1; 
	} else {
		if(this.MCOUNT==0) {
			this.MCOUNT=this.ITEMS-2;
			if(this.MCOUNT<0) {
				this.MCOUNT=0;
			}
		} else {
			this.MCOUNT -= 2;
		}
	}
	this.STIMER=setTimeout(this.OBJ + ".RUN()",this.CHARSPEED);
}

function CharMen_next() {
	clearTimeout(this.STIMER);
	this.SCOUNT=0;
	this.STIMER=setTimeout(this.OBJ + ".RUN()",this.CHARSPEED);
}

function CharMen(obj,count_items,name_item,CharSpeed,TitleSpeed) {
	this.OBJ = obj;
	this.ITEMS = count_items;
	this.NAMES = name_item;
	this.CHARSPEED = CharSpeed;
	this.TITLESPEED = TitleSpeed;
	this.CHARNAMES = new Array(this.ITEMS);
	this.CHARURLS = new Array(this.ITEMS);
	this.MCOUNT = 0;
	this.STIMER = 0;
	this.SCOUNT = 0;
	this.MARKED = 0;
	this.RUN = ShowCharMen;
	this.STOP = CharMen_off;
	this.CONTINUE = CharMen_on;
	this.PREV = CharMen_prev;
	this.NEXT = CharMen_next;
	
	for ( ch=0; ch<this.ITEMS; ch++ ) {
		this.CHARNAMES[ch] = document.getElementById(this.NAMES + ch).innerHTML;
		this.CHARURLS[ch] = this.CHARNAMES[ch].substring(this.CHARNAMES[ch].indexOf('<'), this.CHARNAMES[ch].indexOf('>',this.CHARNAMES[ch].indexOf('<') + 1) + 1);
		this.CHARNAMES[ch] = this.CHARNAMES[ch].substring(this.CHARNAMES[ch].indexOf('>') + 1, this.CHARNAMES[ch].lastIndexOf('<'));
		
		document.getElementById(this.NAMES + ch).innerHTML = '';
		document.getElementById(this.NAMES + ch).style.display = 'none';
	}

	if(this.MCOUNT<=this.ITEMS) {this.STIMER=setTimeout(this.OBJ + ".RUN()",this.CHARSPEED);}
}
/* Charmen E */


function objmover(what,sx,sy,ex,ey,dx,dy,sp,id) {
	clearTimeout(movobjTimer[id]);
	if (sx<ex) {sx+=dx;} else {sx-=dx;}
	if (sy<ey) {sy+=dy;} else {sy-=dy;}
	if(dx){$(what).css("left",sx+"px");}
	if(dy){$(what).css("top",sy+"px");}
	if((sx!=ex)||(sy!=ey)) movobjTimer[id] = setTimeout('objmover("'+what+'",'+sx+','+sy+','+ex+','+ey+','+dx+','+dy+','+sp+','+id+')',sp);
}

function full_img_init(sml,src,tit,w,h) {
	$(sml).click(function(){
		var str = "<div><img src="+src+" alt='' width='"+w+"' height='"+h+"' title='"+tit+"' /><span>&nbsp;</span></div>";
		var dx = get_xPos("ihned")+5;
		$('#d-big-foto').html(str).css("top",(page_ay+25)+"px").css("left",(dx+20)+"px");
		$("#d-big-foto-bg").css("top",(page_ay+5)+"px").css("left",dx+"px").css("width",(w+40)+"px").css("height",(h+40)+"px").fadeTo(0, 0.95).show("fast");
		$('#d-big-foto').show("normal");
	});
}

function toplogin() {
	return true;
	$.post("http://prihlaseni.ihned.cz/index.php?p=0R0000_a", $("#toploginform").serialize(), function(data){
		if (data == "1") {
			location.reload();
		} else {
			$("#logininfo").html(data);
			$("#logininfo").slideDown();
			clearTimeout(liTimer);
			liTimer = setTimeout('$("#logininfo").slideUp()',5000);
		}
	});
}

function setAsHP(){
	if (isIE){
		document.getElementById('setHP-a').style.behavior='url(#default#homepage)';
		document.getElementById('setHP-a').setHomePage('http://ihned.cz/');
		return false;
	}else if(isFF){
		$('#setHP-a').blur().html('iHNed.cz').css('text-decoration','underline');
		$('#setHP').prepend('Přetáhněte tento odkaz na tlačítko "Domů" v prohlížeči a potvrďte: ');
		return false;
	}else if(isCH){
		$('#setHP').css('margin-top','3px').html('Přejdět v navigaci prohlížeči na Nástroje, zvolte Možnosti a kartu Základy<br>a u sekce Domovská stránka přepněte na Otevří tuto stránku a vyplňte: ihned.cz');
		return false;
	}else if(isOpera||isSF){
		$('#setHP').css('margin-top','3px').html('Přejdět v navigaci prohlížeči na Nástroje, zvolte Nastavení<br>a u kolonky domovská stránka klikněte na tlačítko "Použít stávající" nebo vyplňte: ihned.cz');
		return false;
	}else{
		$('#setHP').css('margin-top','3px').html('Změnu domovské stránky na ihned.cz proveďte v nastavení prohlížeče');
		return false;
	}
}

/* On load */
function on_load() {
	iload = true;
	set_yPos("top","r-spon", 23);
}

function on_load2() {
	iload = true;
	set_xPos("ihned","r-sky", 999);
	if (document.getElementById("col3line") != null) setTimeout('document.getElementById("col3line").style.height = (get_yPos("foot") - get_yPos("col3line") - 4) + "px"', 1000);
	
	if ($("#r-sky-l").css("display")=="inline" && !$("#r-sky-l-ozn").length) {
		set_xPos("ihned","r-sky-l", -119);
		$("#r-sky-ozn").css("display","none");
		$("#r-sky").css("padding-left","2px");
	}
	setTimeout('set_xPos("ihned","r-sky", 999)', 1000);
}

window.onresize = function() { set_xPos("ihned","r-sky", 999); set_xPos("ihned","r-sky-l", -128); }

$(document).ready(function(){
	$("#d-big-foto").click(function(){
		$("#d-big-foto-bg").hide("normal");
		$("#d-big-foto").hide("normal");
	});
});

$(window).scroll(function(){
	page_ay = document.body.scrollTop;
});
