$.fn.cycle.defaults.speed   = 900;

$.fn.cycle.defaults.timeout = 5000;

$(document).ready(function(){
//$("#pagename").fadeIn("slow");
//$("#pagename").hide();
//$("#pagename").fadeIn("slow");
//$("#pagename").show('fade');

$( "#tabs" ).tabs();


$.jGFeed('http://feeds.feedburner.com/entrepreneur/latest',
function(feeds){
  // Check for errors
  if(!feeds){
    // there was an error
    return false;
  }
  // do whatever you want with feeds here
 
    var entry = feeds.entries[0];
    // Entry title
   
   $("#entdotcomarticle").html('From Entrepreneur.com: <a   target="_blank" href="'+entry.link+'">'+entry.title+'</a>');
   
 
}, 1);

$('#hottopics').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		
	});
	/*
	$('#TopRightFeature').cycle({
		fx: 'scrollUp' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		
	});*/
});  

// Social Tool Bar More Menu //
function Show_Popup(action, userid) {
	$('#popup').fadeIn('fast');
	$('#window').fadeIn('fast');
}
function Close_Popup() {
	$('#popup').fadeOut('fast');
	$('#window').fadeOut('fast');
}

// Article Text Resizer //
var tgs = new Array( 'div','td','tr');
var szs = new Array( '14px','16px' );
//var szs = new Array( 'small','medium' );
var startSz = 1;

function textsizer( trgt,inc ) {
	if (!document.getElementById) return
	var doc = document,text = null,sz = startSz,i,j,cTags;
	
	sz += inc;
	if ( sz < 0 ) sz = 0;
	if ( sz > 1 ) sz = 1;
	startSz = sz;
		
	if ( !( text = doc.getElementById( trgt ) ) ) text = doc.getElementsByTagName( trgt )[ 0 ];

	text.style.fontSize = szs[ sz ];

	for ( i = 0 ; i < tgs.length ; i++ ) {
		cTags = text.getElementsByTagName( tgs[ i ] );
		for ( j = 0 ; j < cTags.length ; j++ ) cTags[ j ].style.fontSize = szs[ sz ];
	}
}


