/* jquery swfObject */
(function(A){A.flashPlayerVersion=function(){var D,B=null,I=false,H="ShockwaveFlash.ShockwaveFlash";if(!(D=navigator.plugins["Shockwave Flash"])){try{B=new ActiveXObject(H+".7")}catch(G){try{B=new ActiveXObject(H+".6");D=[6,0,21];B.AllowScriptAccess="always"}catch(F){if(D&&D[0]===6){I=true}}if(!I){try{B=new ActiveXObject(H)}catch(E){D="X 0,0,0"}}}if(!I&&B){try{D=B.GetVariable("$version")}catch(C){}}}else{D=D.description}D=D.match(/^[A-Za-z\s]*?(\d+)(\.|,)(\d+)(\s+r|,)(\d+)/);return[D[1]*1,D[3]*1,D[5]*1]}();A.flashExpressInstaller="expressInstall.swf";A.hasFlashPlayer=(A.flashPlayerVersion[0]!==0);A.hasFlashPlayerVersion=function(C){var B=A.flashPlayerVersion;C=(/string|integer/.test(typeof C))?C.toString().split("."):C;return(C)?(B[0]>=(C.major||C[0]||B[0])&&B[1]>=(C.minor||C[1]||B[1])&&B[2]>=(C.release||C[2]||B[2])):(B[0]!==0)};A.flash=function(M){if(!A.hasFlashPlayer){return false}var C=M.swf||"",K=M.params||{},E=document.createElement("body"),B,L,H,D,J,I,G,F;M.height=M.height||180;M.width=M.width||320;if(M.hasVersion&&!A.hasFlashPlayerVersion(M.hasVersion)){A.extend(M,{id:"SWFObjectExprInst",height:Math.max(M.height,137),width:Math.max(M.width,214)});C=M.expressInstaller||A.flashExpressInstaller;K={flashvars:{MMredirectURL:window.location.href,MMplayerType:(A.browser.msie&&A.browser.win)?"ActiveX":"PlugIn",MMdoctitle:document.title.slice(0,47)+" - Flash Player Installation"}}}if(M.flashvars&&typeof K==="object"){A.extend(K,{flashvars:M.flashvars})}for(J in (I=["swf","expressInstall","hasVersion","params","flashvars"])){delete M[I[J]]}B=[];for(J in M){if(typeof M[J]==="object"){L=[];for(I in M[J]){L.push(I.replace(/([A-Z])/,"-$1").toLowerCase()+":"+M[J][I]+";")}M[J]=L.join("")}B.push(J+'="'+M[J]+'"')}M=B.join(" ");if(typeof K==="object"){B=[];for(J in K){if(typeof K[J]==="object"){L=[];for(I in K[J]){if(typeof K[J][I]==="object"){H=[];for(G in K[J][I]){if(typeof K[J][I][G]==="object"){D=[];for(F in K[J][I][G]){D.push(F.replace(/([A-Z])/,"-$1").toLowerCase()+":"+K[J][I][G][F]+";")}K[J][I][G]=D.join("")}H.push(G+"{"+K[J][I][G]+"}")}K[J][I]=H.join("")}L.push(window.escape(I)+"="+window.escape(K[J][I]))}K[J]=L.join("&amp;")}B.push('<PARAM NAME="'+J+'" VALUE="'+K[J]+'">')}K=B.join("")}if(!(/style=/.test(M))){M+=' style="vertical-align:text-top;"'}if(!(/style=(.*?)vertical-align/.test(M))){M=M.replace(/style="/,'style="vertical-align:text-top;')}if(A.browser.msie){M+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';K='<PARAM NAME="movie" VALUE="'+C+'">'+K}else{M+=' type="application/x-shockwave-flash" data="'+C+'"'}E.innerHTML="<OBJECT "+M+">"+K+"</OBJECT>";return A(E.firstChild)};A.fn.flash=function(C){if(!A.hasFlashPlayer){return this}var B=0,D;while((D=this.eq(B++))[0]){D.html(A.flash(A.extend({},C)));if(D[0].firstChild.getAttribute("id")==="SWFObjectExprInst"){B=this.length}}return this}}(jQuery));


/* jquery iFixPng  */
(function($) {$.ifixpng = function(customPixel) {$.ifixpng.pixel = customPixel;};$.ifixpng.getPixel = function() {return $.ifixpng.pixel || './img/shim.gif';};var hack = {ltie7  : $.browser.msie && $.browser.version < 7,filter : function(src) {return "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='"+src+"')";}};$.fn.ifixpng = hack.ltie7 ? function() {return this.each(function() {var $$ = $(this);var base = $('base').attr('href');if (base) {base = base.replace(/\/[^\/]+$/,'/');}if ($$.is('img') || $$.is('input')) {if ($$.attr('src')) {if ($$.attr('src').match(/.*\.png([?].*)?$/i)) {var source = (base && $$.attr('src').search(/^(\/|http:)/i)) ? base + $$.attr('src') : $$.attr('src');$$.css({filter:hack.filter(source), width:$$.width(), height:$$.height()}).attr({src:$.ifixpng.getPixel()}).positionFix();}}} else {var image = $$.css('backgroundImage');if (image.match(/^url\(["']?(.*\.png([?].*)?)["']?\)$/i)) {image = RegExp.$1;image = (base && image.substring(0,1)!='/') ? base + image : image;$$.css({backgroundImage:'none', filter:hack.filter(image)}).children().children().positionFix();}}});} : function() { return this; };$.fn.iunfixpng = hack.ltie7 ? function() {return this.each(function() {var $$ = $(this);var src = $$.css('filter');if (src.match(/src=["']?(.*\.png([?].*)?)["']?/i)) {src = RegExp.$1;if ($$.is('img') || $$.is('input')) {$$.attr({src:src}).css({filter:''});} else {$$.css({filter:'', background:'url('+src+')'});}}});} : function() { return this; };$.fn.positionFix = function() {return this.each(function() {var $$ = $(this);var position = $$.css('position');if (position != 'absolute' && position != 'relative') {$$.css({position:'relative'});}});};})(jQuery);

$(document).ready(function() {
	$('body').addClass('jsok');
	$('#footer .footer,#col2 .line, #col2 .change').ifixpng();
	$('#col1more, #col2bobby, #col2obecni, #col3more').hide();
	$('#wrap').prepend('<img src="img/col2head.gif" class="head" alt="" />')
	Cufon.replace('.cufon, .link a');
	Cufon.replace('#col1 .more, #col3 .more, #col1 .back, #col3 .back, #col2 .back',{hover:true});
	$('a[rel=external]').attr('target','_blank');

	function init(){
		$('#col1more, #col3more, #col2bobby, #col2obecni').hide();
		$('#col1main, #col2main, #col3main, .head').show();
	}

	function footer(el){
		if (el == undefined) {
			y = 150;
		} else {
			y = $(el).height()-305;
		}
		if (y < 150) y=150;
		$('#footer').css('padding-top',y+'px')
	}


	$('#col1 .more').click(function(){
		init();
		$('#col1main').hide();
		$('#col1more').slideDown('normal', footer('#col1more'));
		return false;
	});

	$('#col1 .back').click(function(){
		$('#col1more').hide();
		$('#col1main').slideDown('normal', footer());
		return false;
	});

	$('#col3 .more').click(function(){
		init();
		$('#col3main').hide();
		$('#col3more').slideDown('normal', footer('#col3more'));
		return false;
	});

	$('#col3 .back').click(function(){
		$('#col3more').hide();
		$('#col3main').slideDown('normal', footer());
		return false;
	});

	$('#col2 #block2 a').click(function(){
		init();
		$('.head').hide();
		$('#col2main').hide();
		$('#col2bobby').slideDown('normal', footer('#col2bobby'));
		return false;
	});

	$('#col2 #block3 a').click(function(){
		init();
		$('.head').hide();
		$('#col2main').hide();
		$('#col2obecni').slideDown('normal', footer('#col2obecni'));
		return false;
	});

	$('#col2 .back').click(function(){
		$('.head').show();
		$('#col2obecni').hide();
		$('#col2bobby').hide();
		$('#col2main').slideDown('normal', footer());
		return false;
	});


});