$(document).ready(function(){
	
// тэги в блоге
	$(function(){
    //get tag feed
//    $.getJSON("/blog/tagcloud", function(data){
//        $("<ul>").attr("id", "tagList").appendTo("#tagCloud");
//        //create tags
//        $.each(data.tags, function(i, val){
//            //create item
//            var li = $("<li>");
//            //create link
//			pathArray = window.location.pathname.split( '/' );
//			var aclass = '';
//            if (pathArray[3] == val.slug){
//               aclass = 'active';
//            }
//            $("<a>").text(val.slug).attr("href", "/blog/tag/" + val.slug + "/").addClass(aclass).appendTo(li);
//
//
//            //add to list
//            li.appendTo("#tagList");
//            li.children().css("fontSize", (val.freq / 10 < 1) ? val.freq / 10 + 1 + "em" : (val.freq / 10 > 2) ? "2em" : val.freq / 10 + "em");
//});
//    });
});
    $("#breadcrumbs ul li:last-child").addClass("last");
    if(typeof paging == 'function') { paging(); }
    
    $("#test").click(function() {
    	$('#myContent').animate({height: '100%', width: '100%'}, 1000);
    	var flashvars = {};
		var params = {};
			params.wmode = "opaque";
		var attributes = {};
			swfobject.embedSWF("/uploads/files/flash/id75.swf", "myContent", "20%", "20%", "6.0.0", "../i/design/expressInstall.swf", flashvars, params, attributes);
		
    });
});

