<?php /* Smarty version 2.6.25, created on 2011-03-23 17:20:12
         compiled from kp.tpl */ ?>
  <div style="display: none;" class="box" id="weatherBox">
            <div class="head"><a title="关闭" id="closeWTBOX" class="close">关闭</a><span style="float:left;">#{postTime}</span></div>
            <h2>#{city} #{more}</h2>
            #{weather} </div>
    </div> 
 <div id="search" class="wp cl" style="margin-bottom:10px;">
        <div id="ex" >
         <div id="weather">
             <a title="点击查看更多" id="wet" onClick="Weather.more()"><strong>#{city}</strong> #{img} #{title}</a> <a onClick="Weather.set()" href="javascript:void(0)" target="_parent">[定制城市]</a>
          </div> 
          <div id="date"></div>
          
                      
                        <div id="setCity" style="display:none">
                            <select id="w_pro" name="w_pro" onChange="Weather.loadCity(this.value)">
                                <option value="141">A 澳门</option>
                                <option value="119">A 安徽</option>
                                <option value="109">B 北京</option>
                                <option value="135">C 重庆</option>
                                <option value="123">F 福建</option>
                                <option value="127">G 广东</option>
                                <option value="128">G 广西</option>
                                <option value="137">G 贵州</option>
                                <option value="131">G 甘肃</option>
                                <option value="111">H 河北</option>
                                <option value="124">H 河南</option>
                                <option value="125">H 湖北</option>
                                <option value="126">H 湖南</option>
                                <option value="129">H 海南</option>
                                <option value="116">H 黑龙江</option>
                                <option value="122">J 江西</option>
                                <option value="120">J 江苏</option>
                                <option value="115">J 吉林</option>
                                <option value="114">L 辽宁</option>
                                <option value="132">N 宁夏</option>
                                <option value="113">N 内蒙古</option>
                                <option value="133">Q 青海</option>
                                <option value="117">S 上海</option>
                                <option value="118">S 山东</option>
                                <option value="112">S 山西</option>
                                <option value="130">S 陕西</option>
                                <option value="136">S 四川</option>
                                <option value="110">T 天津</option>
                                <option value="142">T 台湾</option>
                                <option value="139">X 西藏</option>
                                <option value="134">X 新疆</option>
                                <option value="140">X 香港</option>
                                <option value="138">Y 云南</option>
                                <option value="121">Z 浙江</option>
                            </select>
                            <select name="w_city" id="w_city">
                            </select>
                            <a class="set button" onClick="Weather.tick()">确定</a> <a class="auto button" onClick="Weather.init(1)">自动判断</a> </div>
        </div>
        <div id="sm" class="clearfix" >
            <ul id="sm_tab">
                <?php $_from = $this->_tpl_vars['search_class']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['search_class1']):
?>
                <li s_tab="js_type_<?php echo $this->_tpl_vars['search_class1']['classid']; ?>
" <?php if ($this->_tpl_vars['search_class1']['is_default']): ?> class="active" default="1"<?php endif; ?>><?php echo $this->_tpl_vars['search_class1']['classname']; ?>
</li>
                <?php endforeach; endif; unset($_from); ?>
            </ul>
        </div>
        <div id="sb" class="clearfix">

            <?php $_from = $this->_tpl_vars['search_class']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['search_class2']):
?>
            <?php if ($this->_tpl_vars['search_class2']['classid'] == 2): ?>
             <div class="search-box" id="js_type_<?php echo $this->_tpl_vars['search_class2']['classid']; ?>
" <?php if ($this->_tpl_vars['search_class2']['is_default'] != 1): ?> style="display:none;"<?php endif; ?>>
            <div class="sf" >
            <table height="100%" width="100%"><tr><td valign="middle" align="center">
                
<script type="text/javascript"><!--
  google_ad_client = "pub-3043661870494778";
  google_ad_format = "js_sdo";
  google_color_bg = "parentport";
  google_cts_mode ="hq";
  google_num_cts = "6";
  google_cts_font_size = "14";
  google_color_link = "336699";
  google_searchbox_width = 215;
  google_searchbox_height = 30;
  google_link_target = 2;
  google_ad_channel = "9521510331";
  google_logo_pos = "left";
  google_rs_pos = "right";
  google_ad_height = 35;
  google_ad_width = 935;
//-->
</script>
<script type="text/javascript"
  src=" http://pagead2.googlesyndication.com/pagead/show_sdo.js">
</script>
</td></tr></table>
</div></div>
            <?php endif; ?>
            <?php if ($this->_tpl_vars['search_class2']['classid'] != 2): ?>
            <div class="search-box" id="js_type_<?php echo $this->_tpl_vars['search_class2']['classid']; ?>
" <?php if ($this->_tpl_vars['search_class2']['is_default'] != 1): ?> style="display:none;"<?php endif; ?>>
                <div class="sw">
                    <p id="sw_<?php echo $this->_tpl_vars['search_class2']['classid']; ?>
">
                        <?php $_from = $this->_tpl_vars['search_keyword']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['keyword']):
?>
                            <?php if ($this->_tpl_vars['keyword']['class'] == $this->_tpl_vars['search_class2']['classid']): ?>
                                <a href="<?php echo $this->_tpl_vars['keyword']['url']; ?>
" target="_blank"><?php echo $this->_tpl_vars['keyword']['name']; ?>
</a>
                            <?php endif; ?>
                        <?php endforeach; endif; unset($_from); ?>
                    </p><!--/ keywords-->
                </div>
                <div class="sf">
                    <form action="http://115.com/s" method="get" target="_blank">
                        <a href="http://115.com" id="sf_label" rel="lk"><img src="<?php echo $this->_tpl_vars['URL']; ?>
/static/images/s/115.gif" width="105" height="35" rel="img" /></a><input type="text" name="q" class="int" autocomplete="off" rel="kw"/><input class="searchint" type="submit" value="115聚搜" rel="btn" />
                        <div class="ctrl">
                        <?php $_from = $this->_tpl_vars['search']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['row1']):
?>
                            <?php if ($this->_tpl_vars['row1']['class'] == $this->_tpl_vars['search_class2']['classid']): ?>
                            <label><input class="radio" type="radio" value="engine_<?php echo $this->_tpl_vars['row1']['id']; ?>
" name="search_select" rad="engine_<?php echo $this->_tpl_vars['row1']['id']; ?>
" <?php if ($this->_tpl_vars['row1']['is_default']): ?> checked="checked"<?php endif; ?> /><?php echo $this->_tpl_vars['row1']['search_select']; ?>
</label>
                            <?php endif; ?>
                        <?php endforeach; endif; unset($_from); ?>
                        </div>
                    </form>
                </div>
            </div>
            <?php endif; ?>
            <?php endforeach; endif; unset($_from); ?>
           
            <div id="suggest" style="display:none"></div>
        </div>
    </div>    
    <script type="text/javascript" src="<?php echo $this->_tpl_vars['URL']; ?>
/public/home/js/base.js"></script>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['URL']; ?>
/public/home/js/core.js"></script>
  
<script type="text/javascript" src="<?php echo $this->_tpl_vars['URL']; ?>
/public/home/js/config.js"></script>

<script type="text/javascript">
    try{
		if(window.SR){
			SR.SearchData = {
                <?php $_from = $this->_tpl_vars['search']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['row2']):
?>
                    engine_<?php echo $this->_tpl_vars['row2']['id']; ?>
: {
						action: "<?php echo $this->_tpl_vars['row2']['action']; ?>
",
						name: "<?php echo $this->_tpl_vars['row2']['name']; ?>
",
						btn: "<?php echo $this->_tpl_vars['row2']['btn']; ?>
",
						img: ["<?php echo $this->_tpl_vars['row2']['img_text']; ?>
","<?php echo $this->_tpl_vars['row2']['img_url']; ?>
"],
						url: "<?php echo $this->_tpl_vars['row2']['url']; ?>
",
						params: {
							<?php echo $this->_tpl_vars['row2']['params']; ?>

						}
                    },
                <?php endforeach; endif; unset($_from); ?>
				none:{}
            }	
		}
		
		var sbBox = document.getElementById('sb');
		var sbForms = sbBox.getElementsByTagName('form');
		for(var i = 0,len = sbForms.length; i < len; i++){
			sbForms[i].reset();
		}
		
		var sbRadios = sbBox.getElementsByTagName('input');
		var inputTxtArr = [];
		if(sbRadios.length){
			var setRadios = [];
			for(var i = 0,len = sbRadios.length; i < len; i++){
				var input = sbRadios[i];
				if(input.getAttribute("rad") && input.checked){
					setRadios.push(input);
				}
				else if(input.getAttribute("rel") == "kw"){
					var key = inputTxtArr.push(input);
					input.setAttribute("index",key - 1);
					
				}
			}
			try{
			for(var i = 0,len = setRadios.length; i < len; i++){
				var input = setRadios[i];
				
				SR.RadioMod.ClickRadio(input);
			}
			}catch(e){}
		}
	}catch(e){}
    </script>