body{
	padding:20px 0 0 0;
	margin:0;
	font-size:12px;
	color:#707070;
	background-color:inherit;
	font-family:Tahoma, Verdana, Arial, Helvetica, sans-serif
}
img{
	border:0;
}
#main{
	width:714px;
	text-align:left;
	background-image:url(images/main_bg.gif);
	background-repeat:repeat-y;
}
#main2{
	width:714px;
	text-align:left;
	/*background-image:url(images/main_bg.gif);
	background-repeat:repeat-y;*/
}
#left{
	width:229px;
	position:relative;
	float:left;
}
#right{
	width:485px;
	position:relative;
	float:left;

}

#middle{
	width:714px;
	position:relative;
	float:left;

}
#flags{
	width:485px;
    height:217px;
	background-image:url(images/flags.png);
}
#flagsen{
	width:485px;
    height:219px;
	background-image:url(images/flagsen.png);
}
.fix{
	clear:left;
	height:1px;
}
.fix2{
	background-color:#FFFFFF;
	color:#707070;
	height:20px;
}
.menu{
	background-image:url(images/menu_bg.gif);
	background-repeat:repeat-y;
	height:115px;
}
.events{
	margin:15px 0 0 25px;
}
.ph{
	margin:17px 11px 0 0px;
	padding-left:25px;
	position:relative;
	float:left;
}
.text1{
	margin:17px 0 0 0;
	position:relative;
	float:left;
	width:125px;
}
.more{
	margin:5px 0 0 0;
}
.more a{
	color:#D5490B;
	background-color:inherit;
	text-decoration:none;
	font-weight:bold;
	font-size:10px;
}
.more a:hover{
	text-decoration:underline;
}
.text1 span{
	color:#E2A111;
	background-color:inherit;
	font-weight:bold;
}
.h_l{
	margin:15px 0 0 25px;
}
.h_l2{
	background-image:url(images/h_l2.gif);
	background-repeat:repeat-x;
	width:686px;
	background-color:#FFFFFF;
	color:#707070;
}
.welcome{
	padding:10px 0 20px 0;
	background-color:#FFFFFF;
	color:#707070;
}
.ph2{
	position:relative;
	float:left;
	margin:0 10px 0 23px;
	width:116px;
}
.text2{
	position:relative;
	float:left;
	width:400px;
}
.text2 ul{
	margin:0 0 0 15px;
	padding:0px;
	color:#D5490B;
	background-color:inherit;
}
.text2 a{
	color:#E2A111;
	background-color:inherit;
}
.text2 ul a, .profile a{
	color:#D5490B;
	background-color:inherit;
}
.text21{
	position:relative;
	float:left;
    padding-left: 20px
}
.text21 ul{
	margin:10 0 0 15px;
	padding:0px;
	color:#D5490B;
	background-color:inherit;
}
.text21 a{
	color:#E2A111;
	background-color:inherit;

}
.text21 ul a, .profile a{
	color:#D5490B;
	background-color:inherit;
}
.h_l3{
	clear:left;
	padding:15px 0 15px 23px;
}
/*
.bg3{
	background-image:url(images/bg3.gif);
	background-repeat:repeat-y;
	margin-left:23px;
}
*/
.profile{
	position:relative;
	float:left;
	width:190px;
	margin:0 35px 0 0;
}
.profile 
	background-image:url(images/profile.gif);
	margin:5px 0 5px 15px;
	padding:0px;
}
.profile ul a{
	color:#E2A111;
	background-color:inherit;
}
.w_do{
	position:relative;
	float:left;
	width:200px;
}
.ph5{
	margin:0px 10px 0 0; 
}
.text5{
	color:#E2A111;
	background-color:inherit;
}
.w_do ul{
	margin:5px 0 5px 15px;
	padding:0px;
	color:#D5490B;
	background-color:inherit;
}
.w_do ul a{
	color:#D5490B;
	background-color:inherit;
} 
a:hover{
	text-decoration:none;
}
.copy{
	position:relative;
	float:left;
	background-color:#FFFFFF;
	color:#707070;
	padding:20px 0 10px 20px;
}
.copy a{
	color:#D5490B;
	background-color:inherit;
}
.footer_nav{
	position:relative;
	float:right;
	background-color:#FFFFFF;
	color:#707070;
	padding:20px 20px 10px 0;
}
.footer_nav a{
	color:#A3A2A2;
	background-color:inherit;
	font-weight:bold;
	text-decoration:none;
}
.footer_nav a:hover{
	text-decoration:underline;
}
.footer_nav img{
	padding-bottom:3px;
}
.ridge {
    border-style: ridge;
}
.scroll {
    overflow: auto;
    height: 100px;
}

.text22{
	position:relative;
	float:right;
    padding-left: 20px
}
.text22 ul{
	margin:10 0 0 15px;
	padding:0px;
	color:#D5490B;
	background-color:inherit;
}
.text22 a{
	color:#E2A111;
	background-color:inherit;

}
.text22 ul a, .profile a{
	color:#D5490B;
	background-color:inherit;
}



class RSS_Parser

{

// {{{ Член-променливи (Всички private)

var $Counter; // брои отделните ресурси информация
var $Current; // съдържа името на настоящия елемент
var $Parent; // съдържа името на родителя на настоящия елемент
var $Parser; // XML парсерът
var $Result; // масивът, съдържащ цялата нужна информация

// }}}
// {{{ Конструктор

/**

    * Подготвя обекта

*

    * @access public

*/

function RSS_Parser()
{
$this->Counter = 0;
$this->Current = '';
$this->Parent = '';

if(!($this->Parser = xml_parser_create()))
die('Could not create XML parser!');

xml_set_element_handler($this->Parser, 'start', 'end');
xml_set_character_data_handler($this->Parser, 'data');
}

// }}}
// {{{ start()

/**

    * Управлява отварящите тагове на елементите

*

    * @access private
    * @param resource $Parser XML парсер
    * @param string $Element Име на елемента
    * @param array $Att Асоциативен масив съдържащ атрибутите на елемента

*/

function start($Parser, $Element, $Att)
{
if(ereg(':', $Element))
list($prefix, $this->Current) = explode(':', $Element);
else
$this->Current = $Element;

if(($this->Current == 'CHANNEL') || ($this->Current == 'IMAGE') || ($this->Current == 'ITEM'))
$this->Parent = $this->Current;

if($this->Current == 'ITEM')
$this->Counter++;
}

// }}}
// {{{ end()

/**

    * Управлява затварящите тагове на елементите

*

    * @access private
    * @param resource $Parser XML парсер
    * @param string $Element Име на елемента

*/

function end($Parser, $Element)
{
$this->Current = '';
}

// }}}
// {{{ data()

/**

    * Управлява символните данни на елементите

*

    * @access private
    * @param resource $Parser XML парсер
    * @param string $Data Символни данни на елемента

*/
function data($Parser, $Data)
{
if(($this->Current == '') || (trim($Data) == ''))
return;

if($this->Parent == 'ITEM')
$this->Result['items'][$this->Counter][strtolower($this->Current)] .= stripslashes(htmlspecialchars($Data, ENT_NOQUOTES));

if(($this->Parent == 'CHANNEL') || ($this->Parent == 'IMAGE'))
$this->Result[strtolower($this->Parent)][strtolower($this->Current)] .= stripslashes(htmlspecialchars($Data, ENT_NOQUOTES));
}

// }}}
// {{{ parse()

/**

    * Парсва конкретния документ

*

    * @access public
    * @param string $file Име на файла или URL
    * @return array Масив съдържащ нужната ни информация

*/

function parse($file)
{
$this->Result = array();

$fp = @fopen($file, 'r');

xml_set_object($this->Parser, &$this);

while($Data = fread($fp, 4096))
{
if(!xml_parse($this->Parser, $Data, feof($fp)))
break;
}

xml_parser_free($this->Parser);

$this->RSS_Parser();

return $this->Result;
}

// }}}

}