var postRequest=false;function makePOSTRequest(url,callbackfunc,parameters){postRequest=false;if(window.XMLHttpRequest){postRequest=new XMLHttpRequest();if(postRequest.overrideMimeType){postRequest.overrideMimeType('text/html');}}else if(window.ActiveXObject){try{postRequest=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{postRequest=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){}}}
if(!postRequest){alert('Cannot create XMLHTTP instance');return false;}
var content="";for(var key in parameters){if(content!="")
content+="&";content+=escape(key)+"="+escape(plus(parameters[key].toString()));}
postRequest.onreadystatechange=callbackfunc;postRequest.open('POST',url,true);postRequest.setRequestHeader("Content-type","application/x-www-form-urlencoded");postRequest.setRequestHeader("Content-length",parameters.length);postRequest.setRequestHeader("Connection","close");postRequest.send(content);alert(content);}
function GetXmlHttpObject()
{var xmlHttp=null;try
{xmlHttp=new XMLHttpRequest();}
catch(e)
{try
{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}}
return xmlHttp;}
var g_xmlHttp=null;var nextXmlCallBack=null;var callBackXMLHttp=new Array();function makeAjaxRequest(url,callback,items,closing){var xmlHttp=GetXmlHttpObject();if(xmlHttp==null)
{alert("Your browser does not support AJAX!");return;}
if(url.indexOf("?")>=0)
url=url+"&sid="+Math.random();else
url=url+"?sid="+Math.random();for(var key in items){url=url+"&"+escape(key)+"="+escape(plus(items[key].toString()));}
var async=true;if(closing)
async=false;if(async){xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState==4)
{if(callback&&callback!='')
eval(callback+"(xmlHttp.responseText.replace('\\n', '').replace('\\r', ''))");}};}
xmlHttp.open("GET",url,async);xmlHttp.send(null);if(!async){if(callback){eval(callback+"(xmlHttp.responseText.replace('\\n', '').replace('\\r', ''))");}}}
function plus(text){return text.replace(/\+/g,";;plus;;");}
function stateChanged(event)
{if(g_xmlHttp.readyState==4)
{if(nextXmlCallBack&&nextXmlCallBack!='')
eval(nextXmlCallBack+"(g_xmlHttp.responseText.replace('\\n', '').replace('\\r', ''))");g_xmlHttp=null;}}
function updateSelect(selectname,text){var sel=getElemN(selectname);if(!sel){alert("Select "+selectname+" non-trouv&eacute;");return;}
clearSelect(sel);var options=text.split("[!OPTION]");for(var i=0;i<options.length;i++){if(options[i]!=""){var pz=options[i].split("!--X--!");sel.options[sel.options.length]=new Option(pz[1],pz[0]);}}}
function getAd(placement,dontblock){if(!dontblock)
dontblock=false;$.ajax({'async':false,'global':false,'url':'http://www.hiphopfranco.com/ajaxcalls.php?mode=getad&placement='+placement.toString()+'&sid='+Math.random(),'success':function(data){if(data.substring(0,5)=="EVAL="){var pos=data.indexOf("=");data=data.substring(pos+1);eval(data);}
else{$("script:last").after(data);}}});}
function getAdNoReturn(placement){makeAjaxRequest("http://www.hiphopfranco.com/ajaxcalls.php?mode=getad","",{"placement":placement});}
function writeAd(r){eval(r);}
var ve_publisher="infinimedia";var ve_site="hiphopfranco";var ve_area="hiphopfranco";var ve_width=300;var ve_height=250;var ve_alternate="";var ve_location='';var google_ad_slot="3208482062";var google_ad_width=300;var google_ad_height=250;function alterBigBox(div){div.style.backgroundColor="#eeeeee";google_ad_slot="3208482062";google_ad_width=300;google_ad_height=250;document.write("<scr"+"ipt type=\'text/javascript\' src=\'http://pagead2.googlesyndication.com/pagead/show_ads.js\'></scr"+"ipt>");}
function alterBanner(div){div.style.display='none';GA_googleFillSlot("HHF_TopBanner");}
function showVEBanner(){ve_publisher="infinimedia";ve_site="hiphopfranco";ve_area="hiphopfranco";ve_location="banner_site";ve_width=728;ve_height=90;ve_alternate='http://www.hiphopfranco.com/adsense.php?placement=1';if(location.href.indexOf("forum")>-1){ve_location="banner_forum";}
document.write("<script src='http://core.videoegg.com/eap/html/js/init.js?"+Math.random()+"'></script>");}
function showVEBigBox(spplacement){if(!spplacement)
spplacement="3";ve_publisher="infinimedia";ve_site="hiphopfranco";ve_area="hiphopfranco";ve_width=300;ve_height=250;ve_alternate='http://www.hiphopfranco.com/adsense.php?placement='+spplacement;document.write("<script src='http://core.videoegg.com/eap/html/js/init.js?"+Math.random()+"'></script>");}
function showVEForumPosts(){ve_publisher="infinimedia";ve_site="hiphopfranco";ve_area="hiphopfranco";ve_location="BANNER_5POST";ve_placement="";ve_width=728;ve_height=90;ve_alternate="http://www.hiphopfranco.com/adsense.php?placement=4";document.write("<script src='http://core.videoegg.com/eap/html/js/init.js?"+Math.random()+"'></sc"+"ript>");}
function showVETwig(){ve_publisher="infinimedia";ve_site="hiphopfranco";ve_area="hiphopfranco";ve_location="twig_forum";ve_placement="twig_bottom";ve_width=0;ve_height=0;ve_alternate="";document.write("<script src='http://core.videoegg.com/eap/html/js/init.js?"+Math.random()+"'></sc"+"ript>");}