<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Just another blog</title>
	<atom:link href="http://alexdubchak.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://alexdubchak.wordpress.com</link>
	<description>A bit of everything.</description>
	<lastBuildDate>Mon, 22 Jun 2009 11:06:43 +0000</lastBuildDate>
	<language>uk</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='alexdubchak.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Just another blog</title>
		<link>http://alexdubchak.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://alexdubchak.wordpress.com/osd.xml" title="Just another blog" />
	<atom:link rel='hub' href='http://alexdubchak.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Menu dynamic collapsing/expanding script</title>
		<link>http://alexdubchak.wordpress.com/2009/06/22/menu-dynamic-collapsingexpanding-script/</link>
		<comments>http://alexdubchak.wordpress.com/2009/06/22/menu-dynamic-collapsingexpanding-script/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 11:06:43 +0000</pubDate>
		<dc:creator>alexdubchak</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Navigation]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://alexdubchak.wordpress.com/?p=6</guid>
		<description><![CDATA[Був прикручений плагін Collapsing Pages. Але скрипт трохи криво працював. Ну розбиратися було лінь, то я і навайв свій jQuery(document).ready(function($){ // Селектор віджета var box = '.box'; var expandedNode = '&#8211;'; var collapsedNode = '+'; var emptyNode = '&#160;' $(".box") //Шукаємо всі посиланння на сторінку, які не мають вкладень... .find("li.page_item:not(:has(ul))") .each(function(){ $(this) .children(":first") //... і [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alexdubchak.wordpress.com&amp;blog=8276612&amp;post=6&amp;subd=alexdubchak&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Був прикручений плагін Collapsing Pages. Але скрипт трохи криво працював. Ну розбиратися було лінь, то я і навайв свій</p>
<div style="background:#EEEEEE;border:solid 1px #666;color:#000000;line-height:1.2em;-moz-border-radius:5px;padding:10px;">
<pre>
jQuery(document).ready(function($){
	// Селектор віджета
	var box = '.box';
	var expandedNode = '&ndash;';
	var collapsedNode = '+';
	var emptyNode = '&nbsp;'

	$(".box")
		//Шукаємо всі посиланння на сторінку, які не мають вкладень...
		.find("li.page_item:not(:has(ul))")
		.each(function(){
			$(this)
				.children(":first")
				//... і перед першим потомком вставляємо знак порожньої гілки
				.before("<span class='toggleExpand'>" + emptyNode + "</span>")
		});	

	$(".box")
		//Шукаємо всі посиланння на сторінку, які не є батькіськими до посилання на поточну сторінку, не є поточною сторінкою, і мають вкладення...
		.find("li.page_item:not(.current_page_ancestor,.current_page_item):has(ul)")
		.each(function(){
			$(this)
				.children(":first")
				//... і позначаємо їх знаком згорнутої гілки.
				.before("<span class='toggleExpand expandeble'>" + collapsedNode + "</span>")
		});

	$(".box")
		//Шукаємо всі посиланння на сторінку, які є батькіськими до посилання на поточну сторінку або є поточною сторінкою, і мають вкладення...
		.find("li.page_item.current_page_ancestor,li.page_item.current_page_item:has(ul)")
		.each(function(){
			$(this)
				.children(":first")
				//... і позначаємо їх знаком розгорнуої гілки.
				.before("<span class='toggleExpand expandeble'>" + expandedNode + "</span>")
		});

	$(".box")
		//Шукаємо всі посиланння на сторінку, які не є батькіськими до посилання на поточну сторінку, не є поточною сторінкою...
		.find("li.page_item:not(.current_page_ancestor, .current_page_item) ul")
		//... і робимо всі вкладення згорнутими.
		.addClass("page_item_hidden");

	$(".box")
		.find(".toggleExpand.expandeble")
		//Реагуємо на клацання по знаку гілки
		.click(function(event){
			//Припиняємо виринання бабл-евентів.
			event.stopPropagation();
			//Якщо данна гілка виявилася згорнутою ...
			if ($(this).text()==collapsedNode)
			{
				//... позначаємо її знаком розгорнутої гілки ...
				$(this).parent().children(".toggleExpand.expandeble").html(expandedNode);
				//... і розгортаємо ПЕРШЕ вкладення.
				$(this).parent().children("ul").removeClass("page_item_hidden");
			}
			else //Інакше
			{
				//... позначаємо її знаком згорнутої гілки ..
				$(this).parent().find(".toggleExpand.expandeble").html(collapsedNode);
				//... і згортаємо ВСІ вкладення.
				$(this).parent().find("ul").addClass("page_item_hidden")
			}
		})
});
</pre>
</div>
<p>І до цього всього діла простенький цсс</p>
<div style="background:#EEEEEE;border:solid 1px #666;color:#000000;line-height:1.2em;-moz-border-radius:5px;padding:10px;">
<pre>
.page_item{
	list-style-type:none!important;
}
.current_page_item&gt;a{
	font-weight:bold;
}
.page_item_hidden{
	display:none;
}
span.toggleExpand{
	cursor:default;
	padding-right:2px;
}
span.toggleExpand.expandeble{
	cursor:pointer;
}
</pre>
</div>
<p></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alexdubchak.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alexdubchak.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alexdubchak.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alexdubchak.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alexdubchak.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alexdubchak.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alexdubchak.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alexdubchak.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alexdubchak.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alexdubchak.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alexdubchak.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alexdubchak.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alexdubchak.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alexdubchak.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alexdubchak.wordpress.com&amp;blog=8276612&amp;post=6&amp;subd=alexdubchak&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alexdubchak.wordpress.com/2009/06/22/menu-dynamic-collapsingexpanding-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a45a8cfcca3c5c1c6b940617d8c93a38?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alexdubchak</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello world!</title>
		<link>http://alexdubchak.wordpress.com/2009/06/22/hello-world/</link>
		<comments>http://alexdubchak.wordpress.com/2009/06/22/hello-world/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 09:47:54 +0000</pubDate>
		<dc:creator>alexdubchak</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alexdubchak.wordpress.com&amp;blog=8276612&amp;post=1&amp;subd=alexdubchak&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Welcome to <a href="http://wordpress.com/">WordPress.com</a>. This is your first post. Edit or delete it and start blogging!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alexdubchak.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alexdubchak.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alexdubchak.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alexdubchak.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alexdubchak.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alexdubchak.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alexdubchak.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alexdubchak.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alexdubchak.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alexdubchak.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alexdubchak.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alexdubchak.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alexdubchak.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alexdubchak.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alexdubchak.wordpress.com&amp;blog=8276612&amp;post=1&amp;subd=alexdubchak&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alexdubchak.wordpress.com/2009/06/22/hello-world/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a45a8cfcca3c5c1c6b940617d8c93a38?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alexdubchak</media:title>
		</media:content>
	</item>
	</channel>
</rss>
