$aPattern = array (
"Dj" => "Đ|Ђ" ,
"dj" => "đ|ђ" ,
"Z" => "Ž|З|Ж" ,
"z" => "ž|з|ж" ,
"C" => "Ć|Č|Ч|Ц|Ћ" ,
"c" => "č|ć|ч|ц|ћ" ,
"S" => "Š|Ш|С" ,
"s" => "š|ш|с" ,
"Dz" => "DŽ|Џ" ,
"dz" => "dž|џ" ,
"B" => "Б" ,
"b" => "б" ,
"V" => "В" ,
"v" => "в" ,
"G" => "Г" ,
"g" => "г" ,
"Nj" => "Њ" ,
"nj" => "њ" ,
"Lj" => "Љ" ,
"lj" => "љ" ,
"D" => "Д" ,
"d" => "д" ,
"I" => "И|Ы|Й" ,
"i" => "и|ы|й" ,
"K" => "К" ,
"k" => "к" ,
"L" => "Л" ,
"l" => "л" ,
"M" => "М" ,
"m" => "м" ,
"N" => "Н" ,
"n" => "н" ,
"P" => "П" ,
"p" => "п" ,
"R" => "Р" ,
"r" => "р" ,
"T" => "Т" ,
"t" => "т" ,
"U" => "У" ,
"u" => "у" ,
"F" => "ф" ,
"f" => "Ф" ,
"H" => "Х" ,
"h" => "х" ,
"A" => "А|Я" ,
"a" => "а|я" ,
"E" => "Е" ,
"e" => "е" ,
"O" => "О" ,
"o" => "о" ,
"H" => "Х" ,
"h" => "х" ,
"J" => "Ј" ,
"j" => "ј" ,
);
while(list( $key , $value ) = each ( $aPattern ))
{
$title = @ ereg_replace ( $value , $key , $title );
}