
if(typeof showtype == "undefined") {
	showtype="All";
}

if(typeof btntype == "undefined") {
	btntype="model1";
}
if(btntype=="model1") {
	/*if(publisher_code=="48c8b47eb1151") {
		rv_key="news,political,politics,india,national";
	}*/
	document.write ('<a href="" class="share_button_vn" onclick="return ventuno.Widget.search(rv_key,publisher_code,showtype)" target="_blank" style="text-decoration:none;" href=""></a>');
}
else if(btntype=="model2") {
		document.write ('<a href="" class="share_button_model2" onclick="return ventuno.Widget.search(rv_key,publisher_code,showtype)" target="_blank" style="text-decoration:none;" href=""></a>');
}
else if(btntype=="model4") {
	document.write ('<div id="rvCntVEN"  style="width:180px;"></div>');
	rv_key = rv_key.replace(/['"]/g,'');
	getRelatedVideo_VENTUNO(rv_key,publisher_code,showtype,4);
	
}
else if(btntype=="model5") {
	document.write ('<div id="rvCntVEN"></div>');
	rv_key = rv_key.replace(/['"]/g,'');
	getRelatedVideo_VENTUNO(rv_key,publisher_code,showtype,5);
	
}


function getRelatedVideo_VENTUNO(rv_key,publisher_code,showtype,model){
	windowURL=window.location+"";		
	url="http://ventuno.in/mrss/relatedVideo.php?key="+rv_key+"&location="+windowURL+"&hashcode="+publisher_code+"&type="+showtype+"&newway="+model;
	RVcnt=document.getElementById('rvCntVEN');
	RVcnt.innerHTML="<p align=center><table><tr><td><img src=http://ventuno.in/mrss/images/ven_logo_sml.png><td><font style=\"font-size:14px\" face=arial color=red><b>Related Videos</b></font></tr><tr><td colspan=2 align=center><br><img align=left src=http://ventuno.in/mrss/images/spinner_rv.gif width=45></table></p>";
	
	 var script_id = null;  
	 var script = document.createElement('script');  
	 script.setAttribute('type', 'text/javascript');  
	 script.setAttribute('src', url);  
	 script.setAttribute('id', 'script_id');  
	   
	  script_id = document.getElementById('script_id');  
	  if(script_id){  
	     document.getElementsByTagName('head')[0].removeChild(script_id);  
	  }  
      // Insert <script> into DOM  
	  document.getElementsByTagName('head')[0].appendChild(script);  
}  
 
function callback(data) {  
     txt=data['content'];  
 	 RVcnt=document.getElementById('rvCntVEN');
     RVcnt.innerHTML=txt;      
}  
document.write ('<script type="text/javascript" src="http://ventuno.in/mrss/widget/images/popup.js?v=0.05"></script>');