//-----------------------------------------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------------------------------------
function PrintTwitter()
{
	//alert("pTwitter_flag:" + pTwitter_flag);

	if (pTwitter_flag == 1)
	{
		document.write('<object height="350" align="middle" width="315" id="TwitterWidget" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,124,0" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">');
		document.write('<param value="sameDomain" name="allowScriptAccess" />');
		document.write('<param value="false" name="allowFullScreen" />');
		document.write('<param value="http://static.twitter.com/flash/widgets/profile/TwitterWidget.swf" name="movie" />');
		document.write('<param value="high" name="quality" />');
		document.write('<param value="#000000" name="bgcolor" />');
		document.write('<param value="userID=' + pTwitter_userID + '&amp;styleURL=http://static.twitter.com/flash/widgets/profile/velvetica.xml" name="FlashVars" />');
		document.write('<embed height="350" align="middle" width="315" flashvars="userID=' + pTwitter_userID + '&amp;styleURL=http://static.twitter.com/flash/widgets/profile/velvetica.xml" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" allowfullscreen="false" allowscriptaccess="sameDomain" name="TwitterWidget" bgcolor="#000000" quality="high" src="http://static.twitter.com/flash/widgets/profile/TwitterWidget.swf"></embed>');
		document.write('</object><p>');
	}
	else 
	{
		if (pTwitter_flag == -1)
		{
			document.write('<a href="' + pTwitter_ImageLink + '" target="_blank"><img width="300" height="40" border="0" src="' + pTwitter_ImageSRC + '" /></a>');
		}
	}
}
//-----------------------------------------------------------------------------------------------------------------

function PrintYoutube()
{
	//alert("pYouTube_flag:" + pYouTube_flag);

	if (pYouTube_flag == 1)
	{
		document.write('<div id="player">AIESEC TV</div>');
		var so = new SWFObject('/cms/aiesec/AI/swf/player.swf','mpl','315','250','9');
		so.addParam('allowscriptaccess','always');
		so.addParam('allowfullscreen','true');
		so.addParam('flashvars','file=http://gdata.youtube.com/feeds/api/playlists/' + pYouTube_code + '&controlbar=over&playlist=over');
		so.write('player');
	}
	else 
	{
		if (pYouTube_flag == -1)
		{
			document.write('<a href="' + pYouTube_ImageLink + '" target="_blank"><img width="315" height="40" border="0" src="' + pYouTube_ImageSRC + '" /></a>');
		}
	}
}
//-----------------------------------------------------------------------------------------------------------------
		
function PrintFacebook()
{
	//alert("pFacebook_flag:" + pFacebook_flag);
	
	if (pFacebook_flag == 1)
	{
		document.write('<a target="_blank"  href="http://www.facebook.com/group.php?gid=' + pFacebook_gid + '">');
		document.write('<img height="44" border="0" width="315" alt="Face1book" src="/cms/aiesec/AI/images/facebook-country.jpg" />');
		document.write('</a> ');
	}
	else 
	{
		if (pFacebook_flag == -1)
		{
			document.write('<a href="' + pFacebook_ImageLink + '" target="_blank"><img width="50" height="50" border="0" src="' + pFacebook_ImageSRC + '" /></a>');
		}
	}
}
//-----------------------------------------------------------------------------------------------------------------

function PrintFlickr()
{
	//alert("pFlickr_flag:" + pFlickr_flag);
	
	if (pFlickr_flag == 1)
	{
		document.write('<iframe src="http://www.flickr.com/slideShow/index.gne?group_id=&user_id=' + pFlickr_group_id + '&set_id=&tags=' + pFlickr_tags + '" width="315" height="350" frameborder="0" scrolling="no" ></iframe>');
	}
	else 
	{
		if (pFlickr_flag == -1)
		{
			document.write('<a href="' + pFlickr_ImageLink + '" target="_blank"><img width="315" height="40" border="0" src="' + pFlickr_ImageSRC + '" /></a>');
		}
	}
}

function PrintLinkedin()
{
	//alert("pFacebook_flag:" + pFacebook_flag);
	
	if (pLinkedin_flag == 1)
	{
		document.write('<a target="_blank"  href="http://www.linkedin.com/groups?gid=' + pLinkedin_gid + '"> ');
		document.write('<img height="50" border="0" width="50"  alt="LinkedIn" src="/cms/aiesec/AI/images/linkedin_icon.jpg" />');
		document.write('</a> ');
	}
	else 
	{
		if (pLinkedin_flag == -1)
		{
			document.write('<a href="' + pLinkedin_ImageLink + '" target="_blank"><img width="50" height="50" border="0" src="' + pLinkedin_ImageSRC + '" /></a>');
		}
	}
}

function PrintBlogs()
{
	//alert("pFacebook_flag:" + pFacebook_flag);
	
	if (pBlogs_flag == 1)
	{
		document.write('<a target="_blank" href="' + pBlogs_url + '">');
		document.write('<img height="50" border="0" width="50" alt="LinkedIn" src="/cms/aiesec/AI/images/blogs_icon.jpg" />');
		document.write('</a> ');
	}
	else 
	{
		if (pBlogs_flag == -1)
		{
			document.write('<a href="' + pBlogs_ImageLink + '" target="_blank"><img width="50" height="50" border="0" src="' + pBlogs_ImageSRC + '" /></a>');
		}
	}
}

function PrintExtrabuttons()
{
	//alert("pFacebook_flag:" + pFacebook_flag);
	
	if (pExtrabutton1_flag == 1)
	{
		document.write('<a href="' + pExtrabutton1_ImageLink + '" target="_blank"><img width="50" height="50" border="0" src="' + pExtrabutton1_ImageSRC + '" /></a> ');
	}
if (pExtrabutton2_flag == 1)
	{
		document.write('<a href="' + pExtrabutton2_ImageLink + '" target="_blank"><img width="50" height="50" border="0" src="' + pExtrabutton2_ImageSRC + '" /></a> ');
	}
if (pExtrabutton3_flag == 1)
	{
		document.write('<a href="' + pExtrabutton3_ImageLink + '" target="_blank"><img width="50" height="50" border="0" src="' + pExtrabutton3_ImageSRC + '" /></a> ');
	}
	
}
//-----------------------------------------------------------------------------------------------------------------
//-----------------------------------------------------------------------------------------------------------------

