
bd = document;
sr = 'http://i1.makcdn.com/images/ramadan/RamadanAcrossMaktoob/html/';
var Ramadan_Box_Width;
var Ramadan_Box_Height;
var Ramadan_Box_FName;
if ( typeof Ramadan_Box_Name !== 'undefined' ){
	
	switch(Ramadan_Box_Name){
	case '3_1':
	  Ramadan_Box_Width  = 300;
	  Ramadan_Box_Height = 252;
	  if ( Ramadan_Channel_Name == 'sh3bwah' || Ramadan_Channel_Name == 'majda' )
	   Ramadan_Box_FName  = 'box3_1-10.html';
	  else
	   Ramadan_Box_FName  = 'box3_1-11.html';
	  break;
	case '3_2':
	  Ramadan_Box_Width  = 300;
	  Ramadan_Box_Height = 252;
	  if ( Ramadan_Channel_Name == 'sh3bwah' || Ramadan_Channel_Name == 'majda' )
	   Ramadan_Box_FName  = 'box3_2-10.html';
	  else
	   Ramadan_Box_FName  = 'box3_2-11.html';
	  break;
	case '3_3':
	  Ramadan_Box_Width  = 195;
	  Ramadan_Box_Height = 182;
	  if ( Ramadan_Channel_Name == 'sh3bwah' || Ramadan_Channel_Name == 'majda' )
	   Ramadan_Box_FName  = 'box3_3-10.html';
	  else
   	   Ramadan_Box_FName  = 'box3_3-11.html';
	  break;
	case '3_4':
	  Ramadan_Box_Width  = 300;
	  Ramadan_Box_Height = 252;
	  if ( Ramadan_Channel_Name == 'sh3bwah' || Ramadan_Channel_Name == 'majda' )
	   Ramadan_Box_FName  = 'box3_4-10.html';
	  else
	   Ramadan_Box_FName  = 'box3_4-11.html';
	  break;
	default:
	  /*Ramadan_Box_Width  = '302px';
	  Ramadan_Box_Height = '199px';
	  Ramadan_Box_Name   = 'box3_1-3.html';*/
	  
	}
	
	if ( Ramadan_Box_FName !== '' ){
	  var mldate_  = new Date(); var mlYear_  = mldate_.getFullYear(); var mlMonth_ = mldate_.getMonth()+1; var mlDay_   = mldate_.getDate();    var rn_ = Math.floor( Math.random() * 11) * 999999;
	  
	  sr+=Ramadan_Box_FName+'?dd'+ mlYear_ + "&vv=" + mlMonth_ + "&aa=" + mlDay_ + '&rf=' + rn_ + "&chname="+ Ramadan_Channel_Name ;
	  //Ramadan_Box_Height= parseInt(Ramadan_Box_Height,10) + 53+'px';
	  //alert(Ramadan_Box_Height);
	  e='<iframe name="Ramadan_boxes_iframe" width='+Ramadan_Box_Width+" height="+Ramadan_Box_Height+" frameborder="+0+" src=\""+sr+'" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no"></iframe>';
	  bd.write( e );

	}
}
