<%
Dim f, n, n1, ref
f = Request.ServerVariables("URL")
n = InStr(f, "rating_")
f = Right(f, Len(f) - n - 6)
f = Replace(f, ".asp", "")
f = Trim(Replace(f, "_", " "))

Dim o, i
i = "c:\Qweas-Imp\ratings.ini"
Set o = Server.CreateObject("qwRate.cRate")
Dim ver, scr, scr160, d1, d2, d3, buy, pri, size, code, web, d80, app, lic, os
ver = o.GetKeyValue(f, "version", i)
scr = o.GetKeyValue(f, "screen", i)
scr160 = o.GetKeyValue(f, "screen160", i)
d1 = o.GetKeyValue(f, "down1", i)
d2 = o.GetKeyValue(f, "down2", i)
d3 = o.GetKeyValue(f, "down3", i)
buy = o.GetKeyValue(f, "order", i)
pri = o.GetKeyValue(f, "price", i)
size = o.GetKeyValue(f, "size", i)
code = o.GetKeyValue(f, "code", i)
web = o.GetKeyValue(f, "website", i)
d80 = o.GetKeyValue(f, "desc80", i)
app = o.GetKeyValue(f, "appinfo", i)
lic = o.GetKeyValue(f, "license", i)
os = o.GetKeyValue(f, "os", i)
n = o.getScoreByCode(code)
s = o.getDetailsHTML(code, 1)
Set o = Nothing

	ref = "unrated.png"
	n1 = 0
	If Len(code) = 36 Then
		Set o = Nothing
		If n>80 Then n1 = 5
		If n<81 And n>60 Then n1 = 4
		If n<61 And n>40 Then n1 = 3
		If n<41 And n>20 Then n1 = 2
		If n<21 Then n1 = 1
	End If
	If n1>0 Then ref = n1 & "stars.gif"
	ref = "/rate/images/" & ref

Dim title, down, fver
title =  f & " " & ver & " by " & web & " was rated " & n1 & " stars "
fver = f & " " & ver

down = " <font face=arial>"
If Len(d1) > 10 Then down = down & "<a href=""" & d1 & """>Download 1" & "</a>"
If Len(d2) > 10 Then down = down & " - <a href=""" & d2 & """>Download 2" & "</a>"
If Len(d3) > 10 Then down = down & " - <a href=""" & d3 & """>Download 3" & "</a>"
down = down & " </font> "


pri = pri & " &nbsp; "
If Len(buy) > 10 Then pri = pri & "<a href=""" & buy & """>Buy Now" & "</a>"


%>

<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title><%=title%></title>

<link rel="stylesheet" href="/style-page.css" type="text/css">
<style type="text/css">
<!--
body{background: #ffffff}

h1 {
  font: bold 16pt verdana;
  color: #ee0000
}
h2 {
  font: bold 14pt Arial;
  color: #0000ee
}

.t1 {
  padding: 3px;
  background: #efefef;
  border: solid 1px #6699cc;
  font: bold 10pt arial;
  color: #880000
}

.t2 {
  padding: 10px;
  font: 10pt verdana;
}

.t3 {
  padding-left: 10px;
  font: 10pt arial;
  width: 300px;
}

.t4 {
  font: 10pt verdana;
  width: 400px;
}

.t30 {
  font: 10pt arial;
  width: 130px;
}

.t40 {
  font: 10pt verdana;
  width: 270px;
}

.t50 {
  font: 10pt verdana;
  width: 300px;
}

.t5 {
  padding: 3px;
  background: #fcd2d2;
  border: solid 1px #ed7575;
  font: bold 10pt arial;
  color: #008800
}

.t6 {
  font: bold 10pt arial;	
}

.t7 {

  font: bold 10pt verdana;
  color: #880000
}


//-->
</style>

</head>
<body bgcolor=#ffffff>

<table cellspacing=0 border=0 class=cssHeader>
<tr><td class=cssLogo rowspan=3><img src="/images/logo/qweas-60.gif" alt="Qweas Logo" border=0></td>
<td rowspan=3 align=center>

<script type="text/javascript"><!--
google_ad_client = "pub-2887570416136676";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text";
google_ad_channel ="";
google_color_border = "336699";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_url = "008000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>
<td align=right valign=top nowrap width=350>
<a href="/bookmark.htm"><font color=green size=2 face=arial>bookmark this page</font></a> - 
<a href="/makehome.htm"><font color=green size=2 face=arial>make qweas your homepage</font></a> &nbsp;</td></tr>

<tr><td class=cssSmallMenu>

<a href="/helpcenter.htm" class=a0>Help Center</a> - 
<a href="/whatsnew.htm" class=a0>What's New</a> -
<a href="/newsletter.htm" class=a0>Newsletter</a>  - 
<a href="/press.htm" class=a0>Press</a>
&nbsp;

</td></tr>

<tr><td class=cssSmallMenu>
<a href="/getbuttons.htm" class=a0>Get Buttons</a> - 
<a href="/linktous.htm" class=a0>Link to Us</a> - 
<a href="/feedback.htm" class=a0>Feedback</a>  - 
<a href="/contactus.htm" class=a0>Contact Us</a>

&nbsp;

</td></tr>
</table>

<table cellspacing=0 class=cssTopMenu>
<tr><td align=center>
<a href="http://www.qweas.com/">Home</a> | 
<a href="http://www.qweas.com/download/">Download</a> | 
<a href="http://www.qweas.com/store/">Store</a> | 
<a href="http://www.qweas.com/new/">New Releases</a> | 
<a href="http://www.qweas.com/popular/">Most Popular</a> | 
<a href="http://www.qweas.com/picks/">Editor Picks</a> |
<a href="http://www.qweas.com/discount/">Special Prices</a> |
<a href="http://www.qweas.com/rate/">Rate</a> |
<a href="http://www.qweas.com/news/">News</a> |
<a href="http://www.qweas.com/faq/">FAQ</a> 
</td></tr></table>

<h1><%=fver%></h1>

<table width=780 border=0 bgcolor=#ffffff>
<tr><td colspan=2><h2><%=d80%></h2></td></tr>
<tr><td colspan=2 class=t5>Software Details</td></tr>
<tr><td class=t3 colspan=2 valign=top>
    <table border=0 width=780>	
	<tr><td class=t30>Software Name:</td><td class=t40> <a href="<%=app%>"><%=f%></a></td>
		<td rowspan=9 class=t50>
		<table width=100% border=0 cellspacing=0 cellpadding=0><tr><td align=center valign=middle>
		<img src="<%=ref%>"></td><td align=center valign=middle>
		<a href="<%=scr%>"><img border=0 src="<%=scr160%>" alt="<%=f%>"></a>
		</td></tr></table>
		</td>
	</tr>
	<tr><td class=t30>Version Number:</td><td class=t40>  <%=ver%> </td></tr>
	<tr><td class=t30>Official Website:</td><td class=t40>  <%=web%> </td></tr>
	<tr><td class=t30>Setup File Size:</td><td class=t40>  <%=size%> </td></tr>
	<tr><td class=t30>Downlaod Links:</td><td class=t40>  <%=down%> </td></tr>
	<tr><td class=t30>Software Price:</td><td class=t40>  <%=pri%> </td></tr>
	<tr><td class=t30>Software License:</td><td class=t40>  <%=lic%> </td></tr>
	<tr><td class=t30>Operating System:</td><td class=t40>  <%=os%> </td></tr>
	<tr><td colspan=2 align=center><font face=arial size=2>  <a href="/developer/guides.htm">See Rating Guides</a> | 
		<a href="/developer/award.htm">Get Award Images</a> </font>
	 </td></tr>
   </table>
</td>


<%=s%>

<tr><td colspan=2 class=t5>Rating Results</td></tr>
<tr><td class=t6>Total Points</td><td class=t7><%=n%></td></tr>
<tr><td class=t6>Stars Awarded</td><td class=t7><%=n1%> Stars &nbsp; &nbsp; <font face=arial size=2>
<a href="/developer/guides.htm">See Rating Guides</a>	| <a href="/developer/award.htm">Get Award Images</a>
</font></td></tr>

</table>
<br>

<table cellspacing=0 class=cssFooter>
<tr><td align=center>

<font face=arial>
<small>
<a href="http://www.qweas.com/search/">Search</a> - 
<a href="http://www.qweas.com/download/">Download</a> - 
<a href="http://www.qweas.com/store/">Store</a> - 
<a href="http://www.qweas.com/directory/">Directory</a> - 
<a href="http://www.qweas.com/service/">Service</a> - 
<a href="http://www.qweas.com/developer/">Developer Center</a>
<br>
&copy; 2006 Qweas 
<a href="http://www.qweas.com">Home</a> - 
<a href="/privacy.htm">Privacy Policy</a> - 
<a href="/terms.htm">Terms of Use</a> - 
<a href="/sitemap.htm">Site Map</a> - 
<a href="/about.htm">About Qweas</a> 

</small></font>
</td></tr></table>
</center>


</body>
</html>