$(document).ready(function(){$("#arrow_btn").click(function(){$("#layer9_h").slideToggle("slow");$(this).toggleClass("layer9_a");return false});$.get("../getmainxml.php?keyword="+keyword+"&said="+said,{},function(c){$("#mainRes").html("");var b=0;$(c).find("record").each(function(){b++;b<=3?$("#mainRes").append('<div class="arrow"><div class="top"><div><img src="tpl/imgs/top'+b+'.png" /></div><span><a href="'+$(this).find("clickurl").text()+'" target="_blank" class="f14 bordo b" rel="external nofollow">'+
$(this).find("title").text()+'</a></span><p><a href="'+$(this).find("clickurl").text()+'" target="_blank" class="f12 grey" rel="external nofollow">'+$(this).find("description").text()+'</a></p><a href="'+$(this).find("clickurl").text()+'" target="_blank" class="blue f12 b" rel="external nofollow">'+$(this).find("url").text()+'</a><br /><span class="top_stars"><img src="tpl/imgs/s5.png" /></span></div></div>'):$("#mainRes").append('<div class="arrow"><div class="text"><a href="'+$(this).find("clickurl").text()+
'" class="f14 bordo b " rel="external nofollow">'+b+". "+$(this).find("title").text()+'</a><p><a href="'+$(this).find("clickurl").text()+'" target="_blank" class="f12" rel="external nofollow">'+$(this).find("description").text()+'</a></p><a href="'+$(this).find("clickurl").text()+'" target="_blank" class="f12 blue" rel="external nofollow">'+$(this).find("url").text()+'</a><br /><div class="text_stars"><img src="tpl/imgs/s'+mt_rand(1,4)+'.png" /></div></div></div>')});$("#mainRes").hide();$("#mainRes").fadeIn(900);
$("#mainRel").html("");var a='<ul class="grey f12">';$(c).find("related").each(function(){$(this).find("name").each(function(){a=a+'<li><a href="'+rawurlencode($(this).text())+'.html" class="grey">'+$(this).text()+"</a></li>"})});$(c).find("premium").each(function(){$(this).find("name").each(function(){a=a+'<li><a href="'+rawurlencode($(this).text())+'.html" class="grey">'+$(this).text()+"</a></li>"})});a+="</ul>";$("#mainRel").append(a);$("#mainRel").hide();$("#mainRel").fadeIn(900)},"xml")});