<!--#include file="../../../conn/conn4.asp" -->
<!--#include file="../../../conn/function.asp" -->
<%
D_domain=split(split("http://"&Request.ServerVariables("HTTP_HOST")&Request.ServerVariables("URL"),"http://")(1),"/theme")(0)
%>
<?xml version="1.0" encoding="gb2312" ?>

<template title='<%=C_title%>'>

	<layout>
		<!-- set your logo , menu layout support "top","bottom" -->
		<logo>top</logo>
		<menu>top</menu>
		<music>bottom</music>
		<fullscreen>bottom</fullscreen>
		<social>bottom</social>
	</layout>
	
	<!-- global style -->
	<style>
		
		<!-- top panel style 
			show means is or not show background
		-->
		<top>
			<show>true</show>
			<color>0x000000</color>
			<alpha>.5</alpha>
			<height>58</height>
		</top>
		
		<!-- footer background color and alpha -->
		<footer>
			<show>true</show>
			<color>0x000000</color>
			<alpha>1</alpha>
			<height>26</height>
		</footer>
		
		<!-- footer menu top line color and alpha -->
		<menuline>
			<color>0xf5d600</color>
			<alpha>1</alpha>
			<height>0</height>
		</menuline>
		
		<!-- footer sub menu background color and alpha -->
		<submenu>
			<color>0xf5d600</color>
			<alpha>.4</alpha>
		</submenu>
		
		<!-- center effect delay time, color and alpha -->
		<center>
			<bgcolor>0x000000</bgcolor>
			<bgalpha>.5</bgalpha>
			<bgspacing>20</bgspacing>
			<delay>0.8</delay>
		</center>
	</style>
	<%
	if left(C_music,4)="http" then
	music=C_music
	else
	music="http://"&D_domain&"/media/"&C_music
	end if
	%>
	<logo src='media/<%=logo%>' width="291" left_spacing='<%=C_logox%>' top_spacing='<%=C_logoy%>'  align="left" delay='0.3' />
	<music align='right' left_spacing="-45" top_spacing="10" path='<%=music%>' auto='true' />
	<fullscreen align='right' left_spacing="-10" top_spacing="10" />

	<social align='right' left_spacing='-80' top_spacing="5" social_spacing="3">
		<feed>http://www.flashcs.ru/</feed>
		<twitter>http://www.flashcs.ru/</twitter>
		<flickr>http://www.flashcs.ru/</flickr>
		<digg>http://www.flashcs.ru/</digg>
		<linkedin>http://www.flashcs.ru/</linkedin>
		<youtube>http://www.flashcs.ru/</youtube>
	</social>

	<siteinfo align='left' left_spacing='5' top_spacing='5'>
		<![CDATA[<font size="12px"><%=C_foot%></font>]]>
	</siteinfo>
	<background>
		<style alpha="1" grid="false" effect="12" delay_time="0.8" switch_delay_time="1" stage_align="center" video_buffer_time="1" video_time_play="0" video_volume="1" />
		<defaultbackground src='media/0.png' />
	</background>
	<menus align="left" left_spacing="200" top_spacing="9" menu_spacing="5" >	
		
	<%
Set rs= Server.CreateObject("ADODB.RecordSet")
sql="select * from menu1 where U_sub=0 order by U_order"
rs.open sql,conn,1,1
if not rs.eof then
Do while Not rs.eof

Set rs1= Server.CreateObject("ADODB.RecordSet")
sql1="select * from menu1 where U_sub="&rs("U_id")&" order by U_order"
rs1.open sql1,conn,1,1
if not rs1.eof then

Do while Not rs1.eof

if rs1("U_type")="text" then
U_width="860"
U_height="350"
end if

if rs1("U_type")="photo" or rs1("U_type")="video" then
U_width="960"
U_height="320"
end if

if rs1("U_type")="contact"then
U_width="860"
U_height="340"
end if

if rs1("U_type")="slideshow"then
U_width="860"
U_height="400"
end if

if rs1("U_type")="news"then
U_width="960"
U_height="250"
end if
if rs1("U_type")="link" then
submenu=submenu&"<submenu id='"&rs1("U_id")&"' title='"&rs1("U_title")&"' src='"&rs1("U_bg")&",_blank' width='860' height='360' position='' effect='' xml='' type='link' />"
else
if rs1("U_type")="form" or rs1("U_type")="buy" then
submenu=submenu&"<submenu id='"&rs1("U_id")&"' title='"&rs1("U_title")&"' src='theme/v12/swf/"&rs1("U_type")&".swf?F_id="&rs1("U_typeid")&"' width='"&U_width&"' height='"&U_height&"' position='center' effect='move' xml='"&rs1("U_type")&"|"&rs1("U_typeid")&"' type='element' ><background src='media/"&rs1("U_bg")&"' /></submenu>"
else
if rs1("U_type")="html" then

Set rs2= Server.CreateObject("ADODB.RecordSet")
sql2="select * from html where H_id="&rs1("U_typeid")
rs2.open sql2,conn,1,1
H_width=rs2("H_width")
H_height=rs2("H_height")
rs2.close
set rs2=nothing

submenu=submenu&"<submenu id='"&rs1("U_id")&"' title='"&rs1("U_title")&"' src='theme/v12/swf/"&rs1("U_type")&".swf?H_id="&rs1("U_typeid")&"&H_title="&rs1("U_title")&"&H_width="&H_width&"&H_height="&H_height&"' width='"&U_width&"' height='"&U_height&"' position='center' effect='move' xml='"&rs1("U_type")&"|"&rs1("U_typeid")&"' type='element' ><background src='media/"&rs1("U_bg")&"' /></submenu>"

else
submenu=submenu&"<submenu id='"&rs1("U_id")&"' title='"&rs1("U_title")&"' src='theme/v12/swf/"&rs1("U_type")&".swf' width='"&U_width&"' height='"&U_height&"' position='center' effect='move' xml='"&rs1("U_type")&"|"&rs1("U_typeid")&"' type='element' ><background src='media/"&rs1("U_bg")&"' /></submenu>"
end if
end if
end if
rs1.movenext
		loop
	end if
if rs("U_type")="text" then
U_width="860"
U_height="300"
end if

if rs("U_type")="photo" or rs("U_type")="video" then
U_width="960"
U_height="320"
end if

if rs("U_type")="contact"then
U_width="860"
U_height="340"
end if

if rs("U_type")="slideshow"then
U_width="860"
U_height="400"
end if

if rs("U_type")="news"then
U_width="960"
U_height="250"
end if
	
	

if rs("U_type")="sub" then
main="<menu id='"&rs("U_id")&"' title='"&rs("U_title")&"' src='' width='' height='' position='' effect='' xml='' type='submenu' >"
else
if rs("U_type")="link" then
main="<menu id='"&rs("U_id")&"' title='"&rs("U_title")&"' src='"&rs("U_bg")&",_blank' width='860' height='360' position='' effect='' xml='' type='link'  />"
bb=""
else
if rs("U_type")="form" or rs("U_type")="buy" then
main="<menu id='"&rs("U_id")&"' title='"&rs("U_title")&"' src='theme/v12/swf/"&rs("U_type")&".swf?F_id="&rs("U_typeid")&"' width='"&U_width&"' height='"&U_height&"' position='center' effect='move' xml='"&rs("U_type")&"|"&rs("U_typeid")&"' type='element'><background src='media/"&rs("U_bg")&"' />"
else
if rs("U_type")="html" then

Set rs2= Server.CreateObject("ADODB.RecordSet")
sql2="select * from html where H_id="&rs("U_typeid")
rs2.open sql2,conn,1,1
H_width=rs2("H_width")
H_height=rs2("H_height")
rs2.close
set rs2=nothing

main="<menu id='"&rs("U_id")&"' title='"&rs("U_title")&"' src='theme/v12/swf/"&rs("U_type")&".swf?H_id="&rs("U_typeid")&"&H_title="&rs("U_title")&"&H_width="&H_width&"&H_height="&H_height&"' width='"&U_width&"' height='"&U_height&"' position='center' effect='move' xml='"&rs("U_type")&"|"&rs("U_typeid")&"' type='element'><background src='media/"&rs("U_bg")&"' />"

else
main="<menu id='"&rs("U_id")&"' title='"&rs("U_title")&"' src='theme/v12/swf/"&rs("U_type")&".swf' width='"&U_width&"' height='"&U_height&"' position='center' effect='move' xml='"&rs("U_type")&"|"&rs("U_typeid")&"' type='element'><background src='media/"&rs("U_bg")&"' />"
bb="</menu>"
end if
end if
end if
end if
set rs1=nothing

response.Write main&submenu&bb
submenu=""
rs.movenext
		loop
	end if
set rs=nothing
	%>
	</menus>

</template>