- 01
 - 02
 - 03
 - 04
 - 05
 - 06
 - 07
 - 08
 - 09
 - 10
 - 11
 - 12
 - 13
 - 14
 - 15
 - 16
 - 17
 - 18
 - 19
 - 20
 - 21
 - 22
 - 23
 - 24
 - 25
 - 26
 - 27
 - 28
 - 29
 - 30
 - 31
 - 32
 - 33
 - 34
 - 35
 - 36
 - 37
 - 38
 
                        #top1
    	if($this->space == "slot1")
    	{
    		$pos = new Rennab();
    		$this->size = $pos->getSizes('slot1');
    		
    		$this->content = Doctrine::getTable('Rennab')->createQuery('a')
                    ->where('a.position = ?', array('slot1'))
    		    ->orderBy('RAND()')
    		    ->fetchOne();
    	}
#top2
    	if($this->space == "slot2")
    	{
    		$pos = new Rennab();
    		$this->size = $pos->getSizes('slot2');
    		
    		$this->content = Doctrine::getTable('Rennab')->createQuery('a')
                        ->leftJoin('a.Photo ph')
    		        ->where('a.position = ?', array('slot2'))
    		        ->orderBy('RAND()')
    		        ->fetchOne();
    	}
#top3
    	if($this->space == "slot3")
    	{
    		$pos = new Rennab();
    		$this->size = $pos->getSizes('slot3');
    		
    		$this->content = Doctrine::getTable('Rennab')->createQuery('r')
                        ->leftJoin('r.Photo ph')
    		        ->where('r.position = ?', array('slot3'))
    		        ->orderBy('RAND()')
    		        ->fetchOne();
    	}