jQuery(document).ready(function() {
	//slideshow
	//jQuery('#feed_image_controls').html('<ul id="slideshow_nav">');
	jQuery('#index_slideshow').cycle({
	fx: 'fade', 
	speed:  5000, 
	timeout:  2000 ,
	height: '470px',
	width: '824px',
	fit: 1,
	pager: '#slideshow_nav',
    pagerAnchorBuilder: function(idx, slide) { 
        return '#slideshow_nav li:eq(' + idx + ') a';//'<li class="slide_nav"><a href="#">'+ (idx+1 )+ '</a></li>'; 
    } 
	
	});	
	

	
	//news feed
	jQuery('#feed_text ul').cycle({
	fx: 'scrollUp', 
	speed:  3000, 
	timeout:  10000 ,
	width: '538px',
	fit: 1
	});
});
// Read a page's GET URL variables and return them as an associative array.
function getUrlVars(href)
{
	url = href ? href : window.location.href ;
    var vars = [], hash;
    var hashes = url.slice(url.indexOf('?') + 1).split('&');
    for(var i = 0; i < hashes.length; i++)
    {
        hash = hashes[i].split('=');
        vars.push(hash[0]);
        vars[hash[0]] = hash[1];
    }
    return vars;
}