// remap jQuery to $
(function($){

/*$('.slideshow').cycle({fx: 'fade'}); */

$('.slideshow').cycle({ 
        delay:  100, 
        fx:'fade', 
        speed:  500, 
        timeout: 3000 
    });

/*$('.keywords').cycle({fx: 'fade', delay: 20000}); */


    $('.keywords').cycle({ 
        delay:  2000, 
        fx:     'fade', 
        speed:  500, 
        timeout: 20000 
    }); 
     
 




if(post_id == 2){
	$.getFeed({
	        url: '/rss',
	        success: function(feed) {
	        	
				$('.news .description').html(feed.items[0].description);
				$('.news a').attr('href', feed.items[0].link);
	        	
	        }    
	    });
	
}


})(window.jQuery);

var video_url;

if(top_id == 8 || post_id == 8){
	video_url = '/culturatiVideo02.flv';
}else if(top_id == 10 || post_id == 10){
	video_url = '/culturatiVideo03.flv';
}else if(top_id == 13 || post_id == 13){
	video_url = '/culturatiVideo04.flv';
}else if(top_id == 15 || post_id == 15){
	video_url = '/culturatiVideo05.flv';
}else{
	video_url = '/culturatiVideo01.flv';
}

var flashvars = {
	video_url: template_directory+video_url
};
var params = {wmode: 'transparent'};
var attributes = {};

swfobject.embedSWF(template_directory+"/video-culturati.swf", "flashContent", "950", "360", "9.0.0",template_directory+"/expressInstall.swf", flashvars, params, attributes);





/*   Our Thinking and Experties Jquery*/
$("#right").click(function(){
  $("#moveMe").animate({"left": "+=620px"}, "medium");
});

$("#left").click(function(){
  $("#moveMe").animate({"left": "-=620px"}, "medium");
});

$("#left2").click(function(){
  $("#moveMe").animate({"left": "-=620px"}, "medium");
});
$("#right2").click(function(){
  $("#moveMe").animate({"left": "+=620px"}, "medium");
});


<!--
function popitup(url) {
	newwindow=window.open(url,'name','height=275,width=630');
	if (window.focus) {newwindow.focus()}
	return false;
}

// -->

