		/*<div id="fb-root"></div>
		<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
		<fb:like href="http://dev-djit.fr/dev/TestShareFb/index.php?mid=tJeoS9WThxo&mt=TitreDeTest26&curl=http://i.ytimg.com/vi/tJeoS9WThxo/2.jpg" show_faces="true" width="450" send="true">
		</fb:like>*/


//var BASE_URL = "http://www.edjing.com/fr/indexFacebook.php";
//var BASE_URL = "http://www.edjing.com/"+languageUserInit+"/index.php";
var BASE_URL = "http://www.edjing.com/general/facebookPlayer/shareFacebook.php";
var BASE_URL2 = "http://www.edjing.com/general/facebookPlayer/shareFacebook.php";
//var BASE_URL = "http://ppedjing.edjing.altern-it.com/general/facebookPlayer/testPlaylist.php";

var maVariableFacebookTest = 'ok';

function FacebookButtons()
{
	this._shareURL = "";
	this._buttonHTMLString = "";
}

FacebookButtons.prototype.buildLikeAndSendMusicButtonFrom = function(videoID, musicTitle, coverURL)
{
	this._shareURL = BASE_URL + "?mid=" + videoID + "&mt=" + musicTitle + "&curl=" + coverURL;
	return this._shareURL;
}

FacebookButtons.prototype.buildLikeAndSendMusicButtonFrom2 = function(videoID, musicTitle, coverURL)
{
	//this._shareURL = BASE_URL2 + "music/YTB/" + videoID + "/" + musicTitle + "/" + coverURL;
	this._shareURL = BASE_URL2 + "?mid=" + videoID + "&mt=" + musicTitle + "&curl=" + coverURL;
	return this._shareURL;
}

FacebookButtons.prototype.buildLikeAndSendPlaylistButtonFrom = function(pid)
{
	this._shareURL = BASE_URL + "?pid=" + pid;
	return this._shareURL;
}

FacebookButtons.prototype.buildLikeAndSendPlaylistButtonFrom2 = function(pid)
{
	//this._shareURL = BASE_URL2 + "playlist/" + pid;
	this._shareURL = BASE_URL2 + "?pid=" + pid;
	return this._shareURL;
}

FacebookButtons.prototype.displayButtonInto = function(divID)
{
	//this._buttonHTMLString = "<div id='fb-root'></div>";
	//this._buttonHTMLString += "<fb:like href='" + this._shareURL + "'show_faces='true' width='450' send='true'></fb:like>";
	
	
	//this._buttonHTMLString = '<iframe src="//www.facebook.com/plugins/like.php?href='+encodeURI(this._shareURL)+'&amp;send=false&amp;layout=standard&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=80&amp;appId=129821227069162" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>';
	
	//this._buttonHTMLString = '<div class="fb-like" data-href="'+this._shareURL+'" data-send="false" data-width="450" data-show-faces="true"></div>';
	
    /* <iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.edjing.com%2Fgeneral%2FfacebookPlayer%2Ftest.php%3Fmid%3DtJeoS9WThxo%26mt%3DTitreDeTest26%26curl%3Dhttp%3A%2F%2Fi.ytimg.com%2Fvi%2FtJeoS9WThxo%2F2.jpg&amp;send=false&amp;layout=standard&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;
    font&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe>*/
    
    
    
    //this._buttonHTMLString = '<iframe src="//www.facebook.com/plugins/like.php?href=' + encodeURIComponent(this._shareURL) + '&amp;send=false&amp;layout=standard&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe>';
    if(languageUserInit == 'fr'){
      this._buttonHTMLString = '<iframe src="//www.facebook.com/plugins/like.php?href=' + encodeURIComponent(this._shareURL) + '&amp;send=false&amp;layout=button_count&amp;width=90&amp;show_faces=false&amp;action=like&amp;colorscheme=dark&amp;font&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:90px; height:21px;" allowTransparency="true"></iframe>';
    }else{
      this._buttonHTMLString = '<iframe src="//www.facebook.com/plugins/like.php?locale=en_US&href=' + encodeURIComponent(this._shareURL) + '&amp;send=false&amp;layout=button_count&amp;width=90&amp;show_faces=false&amp;action=like&amp;colorscheme=dark&amp;font&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:90px; height:21px;" allowTransparency="true"></iframe>';
    }
    
	$('#' + divID).html(this._buttonHTMLString);
}

FacebookButtons.prototype.displayButtonIntoWithoutCount = function(divID)
{
	//this._buttonHTMLString = "<div id='fb-root'></div>";
	//this._buttonHTMLString += "<fb:like href='" + this._shareURL + "'show_faces='true' width='450' send='true'></fb:like>";
	
	
	//this._buttonHTMLString = '<iframe src="//www.facebook.com/plugins/like.php?href='+encodeURI(this._shareURL)+'&amp;send=false&amp;layout=standard&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=80&amp;appId=129821227069162" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>';
	
	//this._buttonHTMLString = '<div class="fb-like" data-href="'+this._shareURL+'" data-send="false" data-width="450" data-show-faces="true"></div>';
	
    /* <iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.edjing.com%2Fgeneral%2FfacebookPlayer%2Ftest.php%3Fmid%3DtJeoS9WThxo%26mt%3DTitreDeTest26%26curl%3Dhttp%3A%2F%2Fi.ytimg.com%2Fvi%2FtJeoS9WThxo%2F2.jpg&amp;send=false&amp;layout=standard&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;
    font&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe>*/
    
    
    
    //this._buttonHTMLString = '<iframe src="//www.facebook.com/plugins/like.php?href=' + encodeURIComponent(this._shareURL) + '&amp;send=false&amp;layout=standard&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe>';
    if(languageUserInit == 'fr'){
      this._buttonHTMLString = '<iframe src="//www.facebook.com/plugins/like.php?href=' + encodeURIComponent(this._shareURL) + '&amp;send=false&amp;layout=standard&amp;width=64&amp;show_faces=false&amp;action=like&amp;colorscheme=dark&amp;font&amp;height=30" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:64px; height:30px;" allowTransparency="true"></iframe>';
    }else{
      this._buttonHTMLString = '<iframe src="//www.facebook.com/plugins/like.php?locale=en_US&href=' + encodeURIComponent(this._shareURL) + '&amp;send=false&amp;layout=standard&amp;width=64&amp;show_faces=false&amp;action=like&amp;colorscheme=dark&amp;font&amp;height=30" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:64px; height:30px;" allowTransparency="true"></iframe>';
    }
    
	$('#' + divID).html(this._buttonHTMLString);
}
