Christopher attended the University of Michigan, where he performed in the Michigan Marching Band, and graduated with a degree in Aerospace Engineering. He began his rocket science career at Hughes Aircraft (now Boeing) as a spacecraft propulsion engineer, performing launch ops at the Kennedy Space Center and Cape Canaveral.

He later returned to Michigan, working as a software support tech, college computer instructor, desktop publisher, and programmer, developing web applications in finance, manufacturing, contact management, and mortgage industries.

Christopher wrote his first manuscripts in 1988 and 1989, which served as the superstructure for his later works. In 1990, Christopher wrote the first chapter of Judas Christ, then paused four months while he created a manuscript which he entered the Turner Tomorrow Award contest - his first version of A Farewell To Kings.

With the release of Immaculate Inception in April 2014, and as Judas Christ, Book II undergoes rewrite, Christopher is also reworking A Farewell To Kings, to adjust for the changes that have taken place since its first light.

Christopher is a traveled biker, a versatile musician, a loving husband, and a devoted father. He hopes to instill in his children a love of writing, the courage to put pen to paper, and the resilience to persevere to THE END.


All website coding and image processing by CPSimmons
My Résumé
My Books
My Books
My Book Trailer
LinkedIN
What I do — ASP.NET
<%@ Page MasterPageFile="/wpx1.master" Language="VB" AutoEventWireup="true" CodeFile="casedetail.aspx.vb" Inherits="casedetailP" EnableEventValidation="false" MaintainScrollPositionOnPostback="true" %>
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="cphSlave1">
<!--%'//*******************************************%>
<!--%'//************* YER CONTEXT BELOW HERE ******%>
<!--%'//*******************************************%-->
<div style="width:1260px;height:100%;min-height:722px;background-color:#f8f8f8;border:solid 0px #00ffff;margin-left:auto;margin-right:auto;margin-bottom:0px;"><!--bfcfd6-->
<!--div style="padding-top:4px;padding-bottom:4px;position:relative;left:-5px;width:1254px;height:24px;float:left;text-align:right;background-image:url(/phcr/images/detailheaderback1.png);background-color:#bfcfd6;white-space:normal;border:solid 1px #6994a7;border-top:solid 0px red;margin-bottom:8px;margin-top:0px;padding-right:8px;"-->
<div class="cdhdr12" style="width:1247px;"><h1 class="gvh1" style="margin-bottom:-8px;border:solid 0px #ff0000;margin-top:0px;"><asp:Label runat="server" id="lblPRodTypeHeader"/> Detail</h1></div>
<div style="clear:both;background-color:Transparent;width:150px;height:512px;float:left;margin-left:8px;display:block;padding-left:16px;">
<div style="float:left;margin-right:9px;margin-bottom:8px;"><a href="/products.aspx"><asp:Image runat="server" ID="imgProdIcon" Width="98" Height="98" style="border:solid 0px #a8cce2;padding:1px;" ToolTip="This product type is one of over a dozen WDI Publishing Product Types"/></a></div>
<div style="clear:both;z-index:10000;margin-top:24px;"><asp:Hyperlink runat="server" ID="hlCDAuth"><asp:Image runat="server" ID="imgCDAuth" Width="100" Height="100" style="border:solid 0px #ffffff;padding:2px;" /></asp:Hyperlink></div>
<div style="clear:both;display:block;margin-top:8px;border:solid 0px #dddddd;width:100px;height:auto;padding:2px;"><asp:HyperLink runat="server" ID="hlPartnerIcon" ><asp:Image runat="server" ID="imgPartnerIcon"/></asp:HyperLink></div>
<div style="clear:both;display:block;margin-top:8px;border:solid 0px #dddddd;width:100px;height:98px;padding:0px;border:solid 0px navy;text-align:center;"><asp:imagebutton runat="server" id="bAdd2Faves" ImageURL="http://wdi-publishing.com/phcr/images/phcr-icon23_large-off.png" OnClick="Add2Faves" style="clear:both;margin-top:2px;" ToolTip="Stores an avatar of this case in My Favorites for easy access."/><asp:imagebutton runat="server" id="bRemoveFaves" ImageURL="http://wdi-publishing.com/phcr/images/phcr-icon23_large.png" OnClick="RemoveFaves" Visible="false" style="clear:both;margin-top:2px;" ToolTip="Stores an avatar of this case in My Favorites for easy access."/><span class="tinytext"></span><br /></div>
<div style="clear:both;display:block;margin-top:4px;margin-bottom:16px;border:solid 0px #dddddd;width:100px;height:16px;;padding:0px;border:solid 0px green;text-align:center;"><asp:label runat="server" id="lblInFaves" CssClass="tinytext" visible="false" ToolTip="...have favorited this item"/></div>

<div style="margin-top:12px;width:100px;">
<div style="margin-bottom:8px;display:none;"><asp:Image runat="server" ID="imgQRCode" Width="100" Height="100" visible="false" /></div>
<asp:Panel runat="server" id="pnlMobile" visible="true" style="width:108px;">
<div class="tinytext" style="float:left;text-align:center;width:108px;height:auto;margin-bottom:12px;">
<b>Got Mobile?</b><br />Try our<br />mobile templates
</div>
<div class="tinytext" style="float:left;text-align:center;width:64px;margin-bottom:16px;border:solid 0px magenta;margin-right:4px;">
<asp:HyperLink runat="server" ID="hlMobile1" ImageURL="/images/tablet_icon128w.png" ImageHeight="84" style="margin-right:8px;margin-left:auto;margin-right:auto;" /><br />
Tablets
</div>
<div class="tinytext" style="float:left;text-align:center;width:32px;margin-bottom:16px;border:solid 0px lime;">
<asp:HyperLink runat="server" ID="hlMobile2" ImageURL="/images/iphone_icon168h.png" ImageHeight="84" ImageAlign="center" style="margin-right:8px;margin-left:auto;margin-right:auto;" /><br />
Phones
</div>
</asp:Panel>
<div style=""></div>
<asp:Label runat="server" ID="lblTimeIn" CssClass="tinyMsg" Text="In: " visible="false"/><br />
<asp:Label runat="server" ID="lblTimeOut" CssClass="tinyMsg" Text="Out: " visible="false"/><br />
<asp:Label runat="server" ID="lblTimeDiff" CssClass="tinyMsg" Text="Load time: " visible="false"/><br />
</div>
</div>
<div runat="server" id="divMain" visible="true" style="float:left;background-color:Transparent;width:794px;min-height:666px;margin-left:auto;margin-right:auto;border:solid 0px purple;">
<div style="background-color:Transparent;width:794px;height:auto;white-space:normal;">
<div id="lbltitleplain" style="overflow:hidden;width:832px;height:auto;white-space:nowrap;border:solid 0px red;padding-bottom:2px;" class="caseTitle2"><asp:Label runat="server" ID="lblTitle" cssCLass="casettlZ"/><asp:Label runat="server" ID="lblSubTitle" cssCLass="casesubttlZ" style="border:solid 0px purple;"/><asp:Textbox runat="server" id="txtTitlePlain" Visible="False"/></div>
<div id="lblAuthors" class="rptAuthors">by <asp:Label runat="server" id="lblAuthor" CssClass="caseauthor"/><asp:Label runat="server" id="lblCaseWriter" visible="false"/></div>
<div style="margin-top:0px;margin-bottom:-4px;"><img src="/skins/2/images/cleanline1-8h.png" width="572" height="8" /></div>
<div><span class="fldHead">Product Type: </span><asp:Label runat="server" id="lblProductType" class="rptDesc"/> 
<span class="fldHead">Publication Date: </span><asp:Label runat="server" id="lblPubDate" class="rptDesc"/> 
<span class="fldHead">Product ID#: </span><asp:Label runat="server" id="lblCaseID" cssClass="rptDesc"/><asp:HiddenField runat="server" id="hidCID" Visible="true"/> 
<span class="fldHead">Length: </span><asp:label runat="server" id="lblLength" class="rptDesc"/><asp:Label runat="server" id="lblLenFoot" class="rptDesc" Text="pages"/><br />
<p><asp:label runat="server" id="lblCoreDisciplines" cssclass="rptDesc" /></p>
</div>
<asp:Panel runat="server" id="pnlBookPreview" visible="False" style="clear:both;width:156px;height:216px;border:solid 0px #cccccc;float:left;margin:16px;">
<asp:Image runat="server" ID="imgBookCover" Visible="True" style="margin-right:4px;float:left;height:216px;" ToolTip="To purchase, please click on the Amazon Button to the right" />
</asp:Panel>
<div runat="server" id="divPrevTN" style="width:666px;height:108px;border:solid 0px #ff00ff;margin-top:16px;">
<div style="width:96px;height:96px;border:solid 0px #ff0000;float:left;margin-right:16px;text-align:center;">
<asp:Hyperlink runat="server" ID="hlCasePreview" ImageUrl="/phcr/images/pdf-icon-flat-64.png" Visible="True" style="margin-right:4px;" /><div class="fldHeadC" style="width:96px;border:solid 0px red;padding-top:0px;"><asp:Hyperlink runat="server" ID="hlPreview" CssClass="fldHeadC" Text="" Visible="True" style="text-align:left;" /></div>
</div>
<div style="float:left;width:96px;height:96px;border:solid 0px #00ff00;margin-right:16px;text-align:center;">
<asp:Hyperlink runat="server" ID="HLTeachingNote" ImageUrl="/phcr/images/pdf-icon-flat-64.png" Visible="False" style="margin-right:4px;" /><div class="fldHeadC" style="width:96px;border:solid 0px red;padding-top:0px;"><asp:Hyperlink runat="server" ID="hlTNtag" CssClass="fldHeadC" Text="Teaching<br />Note" Visible="False" style="text-align:center" /></div>
</div>
<div style="float:left;width:128px;height:88px;border:solid 0px #dddddd;margin-right:16px;text-align:center;padding-top:4px;">
<asp:Hyperlink runat="server" ID="HLSpecialSnowflake" ImageHeight="60" Visible="False" style="margin-right:4px;width:128px;margin-bottom:-4px;" /><asp:Hyperlink runat="server" ID="HLSpecialSnowflakeTag" CssClass="fldHeadC" Visible="False" style="text-align:left" />
</div>

</div>
<div runat="server" id="divTN" visible="True" style="clear:both;margin-top:12px;"><span class="fldHead" ><b>TEACHING NOTE: </b></span><asp:Label runat="server" ID="lblTNTag" CssClass="rptDesc" Text=""/><br /></div>

<div id="ProdHead" style="clear:none;padding-top:8px;border:solid 0px #ff0000;">
<p><asp:Label ID="lblDescription" runat="server" Text='<%# Eval("Description")%>' CssClass="rptDesc" style="white-space:normal;" /><br /></p>
<asp:Panel runat="server" id="pnlTPs" visible="True"><p><span class="fldHead"><b>TEACHING POINTS: </b><asp:Literal runat="server" id="litTPs" Text="No Teaching Points at this time..."/></span></p></asp:Panel>
<p style="clear:both;"><asp:label runat="server" id="lblSecTags" cssclass="rptDesc"/><br />
<asp:label runat="server" id="lblSalesRank" cssclass="rptDesc"/></p>
</div>
<br />
<asp:Literal runat="server" ID="litMakeFBComment" />
<asp:Panel runat="server" ID="pnlCourseChildren" Visible="False">
<div id="Div1" style="clear:both;margin-top:12px;padding-top:8px;border:">
<div class="cpbc" style="clear:both;width:802px;background-color:#a8cce2;background-image:url(/phcr/images/detailheaderback1.png);background-position:left;padding:8px;color:#231f20;margin-top:8px;border:solid 1px #b2ba9f;"><img src="/phcr/images/phcr-icon14_small.png" align="absmiddle" style="margin-right:4px;display:none;"/>Included in this Course</div>
<table width="820" cellpadding=4 cellspacing=0 border="<%=Borderoff%>" style="float:left;margin-bottom:16px;" >
<asp:SqlDataSource ID="dsCourseChildren" runat="server"></asp:SqlDataSource>
<asp:Repeater runat="server" DataSourceID="dsCourseChildren" ID="rptCourseChildren">
<ItemTemplate>
<tr><td style="width:16px;"><img src="/phcr/images/phcr-icon<%#Eval("producttype") %>_med.png" height="48" /></td><td class="relList1"><a class="rptTitleSmall" href="/casedetail.aspx?cid=<%#Eval("childID") %>"><%#getCaseTitleBreakByNumber(Eval("childID")) %></a><br /><span class="finetext"><%#GetAuthorListByCase(Eval("childID")) %></span></td></tr>
</ItemTemplate>
<AlternatingItemTemplate>
<tr style="background-color:#ebeff1;"><td style="width:16px;"><img src="/phcr/images/phcr-icon<%#Eval("producttype") %>_med.png" height="48" /></td><td class="relList1"><a class="rptTitleSmall" href="/casedetail.aspx?cid=<%#Eval("childID") %>"><%#getCaseTitleBreakByNumber(Eval("childID")) %></a><br /><span class="finetext"><%#GetAuthorListByCase(Eval("childID")) %></span></td></tr>
</AlternatingItemTemplate>
<FooterTemplate>
<tr><td colspan="2" style="background-color:#d8e8e3;height:2px;"></tr>
</FooterTemplate>
</asp:Repeater>
</table>
</div>
</asp:Panel>
<asp:Panel runat="server" ID="pnlModuleChildren" Visible="False">
<div id="Div2" style="margin-top:12px;padding-top:8px;clear:both;width:820px;overflow:hidden;">
<div class="cpbc" style="clear:both;width:802px;background-color:#e9dfe5;background-image:url(/phcr/images/detailheaderback1.png);background-position:center;padding:8px;color:#231f20;margin-top:8px;border:solid 1px #b2ba9f;"><img src="/phcr/images/phcr-icon12_small.png" align="absmiddle" style="margin-right:4px;display:none;"/>Included in this Module</div>
<asp:SqlDataSource ID="dsModuleChildren" runat="server"/>
<table width="820" cellpadding=4 cellspacing=0 border="<%=Borderoff%>" style="float:left;" >

<asp:Repeater runat="server" DataSourceID="dsModuleChildren" ID="rptModuleChildren">
<ItemTemplate>
<tr><td style="width:16px;"><img src="/phcr/images/phcr-icon<%#Eval("producttype") %>_med.png" height="48" /></td><td class="relList1"><a class="rptTitleSmall" href="/casedetail.aspx?cid=<%#Eval("childID") %>"><%#getCaseTitleBreakByNumber(Eval("childID")) %></a><br /><span class="finetext"><%#GetAuthorListByCase(Eval("childID")) %></span></td></tr>
</ItemTemplate>
<AlternatingItemTemplate>
<tr style="background-color:#ebeff1;"><td style="width:16px;"><img src="/phcr/images/phcr-icon<%#Eval("producttype") %>_med.png" height="48" /></td><td class="relList1"><a class="rptTitleSmall" href="/casedetail.aspx?cid=<%#Eval("childID") %>"><%#getCaseTitleBreakByNumber(Eval("childID")) %></a><br /><span class="finetext"><%#GetAuthorListByCase(Eval("childID")) %></span></td></tr>
</AlternatingItemTemplate>
</asp:Repeater>
</table></div>
</asp:Panel>
<div class="cpbc" style="clear:both;width:802px;background-color:#ddf3fd;background-image:url(/phcr/images/detailheaderback1.png);background-position:right;padding:8px;color:#231f20;margin-top:8px;border:solid 1px #b2ba9f;"><img src="/phcr/images/phcr-icon12_small.png" align="absmiddle" style="margin-right:4px;display:none;"/>Related Products</div>
<div style="clear:both;display:block;">
<asp:SqlDataSource ID="dsCases2Rel" runat="server"></asp:SqlDataSource>
<asp:Panel runat="server" ID="pnlRelItems" Visible="true">
<table width="820" cellpadding=4 cellspacing=0 border="<%=Borderoff%>" style="float:left;" > <asp:Repeater runat="server" DataSourceID="dsCases2Rel" ID="rptCases2Rel"> <ItemTemplate> <tr><td style="width:16px;"><img src="/phcr/images/phcr-icon<%#Eval("producttype") %>_med.png" height="48" /></td><td class="relList1"><a class="relList1" href="/casedetail.aspx?cid=<%#Eval("childCID") %>"><%#getCaseTitleBreakByNumber(Eval("childCID")) %></a><br /><span class="finetext"><%#GetAuthorListByCase(Eval("childCID")) %></span></td></tr> </ItemTemplate> <AlternatingItemTemplate> <tr style="background-color:#ebeff1;"><td style="width:16px;"><img src="/phcr/images/phcr-icon<%#Eval("producttype") %>_med.png" height="48" /></td><td class="relList1"><a class="relList1" href="/casedetail.aspx?cid=<%#Eval("childCID") %>"><%#getCaseTitleBreakByNumber(Eval("childCID")) %></a><br /><span class="finetext"><%#GetAuthorListByCase(Eval("childCID")) %></span></td></tr> </AlternatingItemTemplate>
<FooterTemplate>
<tr><td colspan="2" style="background-color:#d8e8e3;height:2px;"></tr>
</FooterTemplate>
</asp:Repeater>
<asp:SqlDataSource ID="dsSyl2Rel" runat="server"></asp:SqlDataSource>
<asp:Repeater runat="server" DataSourceID="dsSyl2Rel" ID="rptSyl2Rel">
<ItemTemplate>
<tr><td style="width:16px;"><img src="/phcr/images/phcr-icon<%#Eval("producttype") %>_med.png" height="48" /></td><td class="relList1"><a class="rptTitleSmall" href="/syldetail.aspx?sid=<%#Eval("TheID") %>"><%#Eval("relTitle") %></a></td></tr>
</ItemTemplate>
<AlternatingItemTemplate>
<tr style="background-color:#ebf1ef;"><td style="width:16px;"><img src="/phcr/images/phcr-icon<%#Eval("producttype") %>_med.png" height="48" /></td><td class="relList1"><a class="rptTitleSmall" href="/syldetail.aspx?sid=<%#Eval("TheID") %>"><%#Eval("relTitle") %></a></td></tr>
</AlternatingItemTemplate>
<FooterTemplate>
<tr><td colspan="2" style="background-color:#b8cbc5;height:8px;"></td></tr>
</FooterTemplate>
</asp:Repeater>
</table>
</asp:Panel>
<asp:Panel runat="server" ID="pnlNoRel" Visible="false">
<p>There are no items related to this product at this time</p>
</asp:Panel>

</div>
</div>
</div>
<div runat="server" id="divNoItems" visible="false" style="float:left;background-color:Transparent;width:794px;min-height:666px;margin-left:auto;margin-right:auto;border:solid 0px purple;">
<asp:Literal runat="server" id="litNoItems"/>
<asp:SqlDataSource ID="dsNoItems" runat="server" />
<table width="760" cellpadding=4 cellspacing=0 border="<%=Borderoff%>" style="float:left;border:solid 1px #cccccc;" > <asp:Repeater runat="server" DataSourceID="dsNoItems" ID="rptNoItems" Visible="true"> <ItemTemplate> <tr><td style="width:16px;"><img src="/phcr/images/phcr-icon<%#Eval("producttype") %>_med.png" height="48" /></td><td class="relList1"><a class="relList1" href="/casedetail.aspx?cid=<%#Eval("caseid") %>"><%#getCaseTitleBreakByNumber(Eval("caseid")) %></a><br /><span class="finetext"><%#GetAuthorListByCase(Eval("caseid")) %></span></td></tr> </ItemTemplate> <AlternatingItemTemplate> <tr style="background-color:#ebeff1;"><td style="width:16px;"><img src="/phcr/images/phcr-icon<%#Eval("producttype") %>_med.png" height="48" /></td><td class="relList1"><a class="relList1" href="/casedetail.aspx?cid=<%#Eval("caseid") %>"><%#getCaseTitleBreakByNumber(Eval("caseid")) %></a><br /><span class="finetext"><%#GetAuthorListByCase(Eval("caseid")) %></span></td></tr> </AlternatingItemTemplate>
<FooterTemplate>
<tr><td colspan="2" style="background-color:#d8e8e3;height:2px;"></tr>
</FooterTemplate>
</asp:Repeater>
</table>
</div>
<div runat="server" id="BuyingOpts" style="float:right;margin-top:0px;border:solid 0px #ff0000;white-space:normal;width:248px;">
<div class="cpbc" runat="server" id="divPurchase" visible="true" style="clear:both;width:234px;background-color:#9db19a;background-image:url(/phcr/images/detailheaderback1.png);background-position:right;padding:3px;color:#231f20;margin-top:8px;border:solid 1px #b2ba9f;"><img src="/phcr/images/phcr-icons_purchase_med.png" align="absmiddle" style="margin-right:4px;width:32px;"/>Purchase</div>
<div style="clear:both;">
<asp:Panel runat="server" id="pnlShCart" visible="true">
<div id="Div3" style="padding-top:8px;clear:both;display:none;">
<div class="fldHead" style="width:128px;height:36px;border:solid 1px #ff0000;float:left;">Buy One*<br />(one PDF)</div>
<div style="width:32px;height:36px;float:left;margin-left:8px;border:solid 1px #00ff00;"><asp:Checkbox runat="server" id="chkBuyONe"/></div>
<div style="width:auto;height:36px;float:left;margin-left:8px;border:solid 1px #0000ff;"><asp:Label runat="server" id="lblPrice" cssclass="money"/> each</div>
</div>
<div id="shcart" style="padding-top:8px;clear:both;">
<div style="width:240px;height:32px;border:solid 0px #0000ff;white-space:nowrap;">
<div style="font-size:12pt;font-weight:bold;width:auto;height:36px;float:left;margin-left:0px;text-align:left;background-color:Transparent;color:#00274c;">Price:</div>
<div style="font-size:12pt;width:auto;height:auto;float:left;margin-left:4px;text-align:right;background-color:Transparent;color:#00274c;border:solid 0px #ccffcc;"><asp:Label runat="server" id="lblPriceCR" cssclass="money-wpx"/> ea.</div>
<div style="font-size:12pt;font-weight:bold;width:auto;height:auto;float:right;margin-left:0px;padding-right:0px;white-space:nowrap;border:solid 0px #ffddff;color:#00274c;">Quantity: <asp:Textbox runat="server" id="txtQtyCR" width="28" CssClass="phcreditbox" style="text-align:right;position:relative;top:2px;" Text="1" onfocus="javascript:this.select();" /></div>
</div>
<div style="clear:both;border:solid 0px #ffffdd;position:relative;top:-16px;" class="tinytext">(includes one PDF)</div>
</div>
<div style="clear:both;float:left;width:240px;background-color:Transparent;font-size:11px;color:#4a6c9b;font-weight:normal;margin-top:0px;margin-bottom:12px;">
<div><asp:Label runat="server" id="lblisincart" Text=" " cssClass="gvh4"/></div>
<div style="clear:both;"><asp:ImageButton runat="server" id="bAdd2cart" ImageURL="/phcr/images/bAdd2MyCart.png" style="float:left;margin-right:8px;" enabled="True" OnClick="doAdd2Cart"/><asp:ImageButton runat="server" id="bRemovecart" ImageURL="/phcr/images/bRemoveMyCart.png" style="float:left;margin-right:8px;" Visible="true" enabled="True" OnClick="doCartRemove"/></div>
</div>
<asp:Panel ID="Panel3" runat="server" visible="false">
<div style="position:relative;left:0px;top:-20px;font-family:Lucida Sans, Tahoma;font-size:14px;color:#4a6c9b;font-weight:bold;z-index:999999;">HARDCOPY</div>
<div style="position:relative;left:20px;top:-40px;font-family:Lucida Sans, Tahoma;font-size:14px;color:#4a6c9b;font-weight:bold;z-index:999999;"><asp:textbox runat="server" id="txtQtyHCColor" width="48" style="font-size:14px;"/></div>
<div style="position:relative;left:360px;top:-64px;font-family:Lucida Sans, Tahoma;font-size:14px;color:#4a6c9b;font-weight:bold;z-index:999999;"><asp:Label runat="server" id="lblPriceHCColor" cssclass="money"/></div>
</asp:Panel>

<asp:Panel runat="server" id="pnlShowCDCartFinePrint">
<div style="clear:both;float:left;width:240px;background-color:Transparent;font-family:Lucida Sans, Tahoma;font-size:11px;color:#4a6c9b;font-weight:normal;margin-top:4px;margin-bottom:12px;">
<div id="fineprint" class="tinytext" style="clear:both;"><br />*If you need to make copies, you MUST purchase the corresponding number of permissions, and you must own a single copy of the product. <!--a href="#" class="inline">Find out more</a--></div>
<br />
<span class="tinytext">Electronic Downloads are available immediately after purchase, and will be found in <a href="/MyPurchases.aspx" class="inline">MyPurchases</a>. Downloads are delivered in Adobe PDF and require Adobe Reader or equivalent. "Quantity" reflects the number of copies you intend to use. No refunds. PDF files are DRM-free, do not expire, and are not encrypted. However, unauthorized distribution of these files is prohibited pursuant to term of use of this website. For details see the <a href="/legal.aspx" class="inline">Legal Page</a>.</span>
<asp:Checkbox runat="server" id="chkShowCDCartFinePrint" OnCheckedChanged="DoShowCDCartFinePrint" AutoPostBack="True" style="float:right;" TextAlign="Left" Text="PERMANENTLY hide this fine print" class="tinytext"/>
</div>
</asp:Panel>
</asp:Panel>


<asp:Panel runat="server" id="pnlShowFrame" visible="True" style="text-align:center;padding:16px;">
<asp:Literal runat="server" id="litAmazonFrame"/>
<div runat="server" id="pnlNotInCart" visible="False" class="tinytext" style="text-align:center;width:128px;margin-left:auto;margin-right:auto;padding-top:4px;"><b>IMPORTANT: </b>This item<br />will NOT appear in your cart.</div>
</asp:Panel>
<asp:Panel runat="server" id="pnlShow2Library" visible="False" style="border:solid 0px red;">
<div class="cpbc" style="clear:both;width:234px;background-color:#9db19a;background-image:url(/phcr/images/detailheaderback1.png);background-position:right;padding:3px;color:#231f20;margin-top:0px;border:solid 1px #b2ba9f;"><img src="/phcr/images/phcr-icons_mycart_free_med.png" align="absmiddle" style="margin-right:4px;width:32px;"/>Add to Library</div>
<div style="clear:both;">
<asp:Literal runat="server" id="litFreeStuff"/>
<div runat="server" id="pnlAdd2Library" visible="True" style="text-align:center;width:200px;margin-left:auto;margin-right:auto;padding:4px 0 16px 0;"><b>This <asp:Literal runat="server" ID="litThisType"/> is provided by WDI and our partners free for usage.</div>
<div style="width:128px;margin-left:auto;margin-right:auto;"><asp:Button runat="server" ID="b2Lib" Width="96" CssClass="tinybutton" Text="View" OnClick="doDL" style="margin-bottom:8px;"/></div>
<div style="width:222px;margin-left:auto;margin-right:auto;text-align:justify;"class="tinytext">Displays the item in your browser, and if you are logged in, places the item into your WDI Publishing Cloud.</div>
</div>
</asp:Panel>
<div class="cpbc" style="clear:both;width:234px;background-color:#9db19a;background-image:url(/phcr/images/detailheaderback1.png);background-position:right;padding:3px;color:#231f20;margin-top:8px;border:solid 1px #b2ba9f;"><img src="/phcr/images/phcr-icons_mycart_med.png" align="absmiddle" style="margin-right:4px;width:32px;"/>My Cart</div>
<div style="clear:both;width:240px;border-left:solid 1px #b2ba9f;border-right:solid 1px #b2ba9f;">
<asp:SqlDataSource ID="dsSideCart" runat="server"></asp:SqlDataSource>
<asp:Panel runat="server" ID="pnlSideCart" Visible="true">
<asp:Repeater runat="server" ID="rptSideCart" DataSourceID="dsSideCart" >
<HeaderTemplate><div style="clear:both;height:2px;"></div></HeaderTemplate>
<ItemTemplate>
<div style="clear:both;border:solid 0px lime;width:234px;float:left;padding:3px 2px 3px 2px;margin-left:4px;"><img src="/phcr/images/phcr-icon<%#Eval("producttype") %>_small.png" height="20" style="float:left;margin-right:8px;"/><a class="relList1" style="font-size:9pt;line-height:9pt;" href="/casedetail.aspx?cid=<%#Eval("caseid") %>" Title='<%#DoCaseTitlesPlain(Eval("Title"),Eval("SubTitle"))%> - Qty: <%#Eval("quantity") %>'><%#Eval("Nickname") %></a></div>
</ItemTemplate>
<FooterTemplate><div style="clear:both;height:0px;"></div></FooterTemplate>
</asp:Repeater>
</asp:Panel>
<asp:Panel runat="server" ID="pnlNoSideCart" Visible="false">
<div class="tinyMsg" colspan="2" style="text-align:center;"><br />There are no items in<br />your cart at this time<br /> </div>
</asp:Panel>
<div class="cpbc" style="clear:both;width:234px;height:18px;;background-color:#9db19a;background-image:url(/phcr/images/detailheaderback1.png);background-position:right;padding:3px;color:#231f20;margin-top:8px;border-top:solid 1px #b2ba9f;border-bottom:solid 1px #b2ba9f;">
<span style="float:right;margin-left:20px;text-align:right;background-color:Transparent;color:#006600;border:solid 0px #ccffcc;"><span style="width:auto;height:24px;float:right;margin-left:0px;text-align:left;background-color:Transparent;color:#000000;"><b>Total:</b> <asp:Label runat="server" id="lblCartTotal" cssclass="money-phcr"/></span></span>
</div>

</div>
<asp:Panel runat="server" id="pnlFaves" visible="false">
<div style="clear:both;float:none;"></div>
<div class="cpbc" style="clear:both;width:234px;background-color:#ffee8f;background-image:url(/phcr/images/detailheaderback1.png);background-position:right;padding:3px;color:#231f20;margin-top:8px;border:solid 1px #d3c887;"><img src="/phcr/images/phcr-icon23_med.png" align="absmiddle" style="margin-right:4px;width:32px;"/>My Favorites</div>
<div runat="server" id="divFaves" style="clear:both;width:240px;height:80px;border-left:solid 1px #b2ba9f;border-right:solid 1px #b2ba9f;overflow-y:auto;">
<asp:SqlDataSource ID="dsSideFave" runat="server"></asp:SqlDataSource>
<asp:Panel runat="server" ID="pnlSideFave" Visible="true">
<asp:Repeater runat="server" ID="rptSideFave" DataSourceID="dsSideFave" >
<HeaderTemplate><div style="clear:both;height:2px;"></div></HeaderTemplate>
<ItemTemplate>
<div style="clear:both;border:solid 0px lime;width:216px;float:left;padding:3px 2px 3px 2px;margin-left:4px;margin-bottom:0px;"><img src="/phcr/images/phcr-icon<%#Eval("producttype") %>_small.png" height="20" style="float:left;margin-right:4px;margin-bottom:8px;"/><a class="relList1" style="font-size:9pt;line-height:9pt;" href="/casedetail.aspx?cid=<%#Eval("caseid") %>" Title='<%#DoCaseTitlesPlain(Eval("Title"),Eval("SubTitle"))%>'><%#Eval("Nickname") %></a></div>
</ItemTemplate>
<FooterTemplate><div style="clear:both;height:0px;"></div></FooterTemplate>
</asp:Repeater>
</asp:Panel>
<asp:Panel runat="server" ID="pnlNoSideFave" Visible="false">
<div class="tinyMsg" colspan="2" style="text-align:center;"><br />You have not favorited<br />any items at this time<br /> </div>
</asp:Panel>
</div>
<div class="cpbc" style="clear:both;width:234px;height:16px;background-color:#ffee8f;background-image:url(/phcr/images/detailheaderback1.png);background-position:right;padding:3px;color:#231f20;border:solid 1px #b2ba9f;margin-bottom:16px;"><asp:Button runat="server" id="bMaxFaves" class="tinytext" Text="Max" visible="true" style="width:36px;height:12px;float:right;" OnCommand="DoCommands" CommandName="ToggleFaveHt" /><asp:button runat="server" id="bMinFaves" class="tinytext" value="Min" style="width:36px;height:12px;float:right;" visible="false"/></div>
</asp:Panel>

<div style="clear:both;float:none;"></div>
<div style="width:242px;height:14px;background-color:#f0f0f0;padding:0px;margin-top:8px;display:none;"><asp:LinkButton runat="server" ID="lbToggleCP" Text="Hide" style="float:right;font-size:9px;color:#666666;" Visible="true" OnCommand="DoCommands" CommandName="ToggleTCP"/></div>
<asp:Panel runat="server" ID="pnlAllCP" visible="False" style="border:solid 1px #dce0ef;">
<asp:Panel runat="server" ID="pnlTCP" Visible="true" style="border-bottom:solid 1px #aba060;width:242px;">
<div class="cpbc" style="width:234px;background-color:#ece2aa;padding:3px;color:#231f20;border:solid 1px #b2ba9f;border-bottom:solid 0px #b2ba9f;"><img src="/phcr/images/phcr-icon7_small.png" align="absmiddle" style="margin-right:4px;"/>Active CoursePack </div>
<div class="cpbc" style="clear:both;width:234px;height:64px;background-color:#fff6c7;padding:4px 3px 4px 3px;border-left:solid 1px #aba060;border-right:solid 1px #aba060;border-bottom:solid 1px #aba060"><asp:imagebutton runat="server" ID="bSave2Cart" imageURL="/phcr/images/bCPSave2Cart72.png" Height="24" OnCommand="DoCommands" CommandName="Save2Cart" style="float:right;" Visible="false" />
<div style="float:left;width:224px;background-color:#fff6c7;"><asp:Textbox runat="server" ID="txtTCP1_RefNum" style="background-color:Transparent;font-weight:bold;font-size:13px;border:none;width:auto" onfocus="this.style.backgroundColor='#ffffff';" onblur="this.style.backgroundColor='Transparent';" /></div>
<div style="float:left;width:48px;background-color:#fff6c7;" class="tinytextr" >Course: </div><div style="float:left;"><asp:Textbox runat="server" ID="txtTCP1_CourseName" CssClass="txttcp11" style="width:120px;" onfocus="this.style.backgroundColor='#ffffff';" onblur="this.style.backgroundColor='Transparent';" /></div>
<div style="clear:both;float:left;width:48px;background-color:#fff6c7;" class="tinytextr" >Number: </div><div style="float:left;"><asp:Textbox runat="server" ID="txtTCP1_CourseNum" CssClass="txttcp11" style="width:48px;" onfocus="this.style.backgroundColor='#ffffff';" onblur="this.style.backgroundColor='Transparent';" /></div><div style="float:left;width:48px;background-color:#fff6c7;display:block;" class="tinytextr" >Students:</div><div style="float:left;"><asp:Textbox runat="server" ID="txtTCP1_StudentsNum" CssClass="txttcp11" style="width:24px;display:block;" onfocus="this.style.backgroundColor='#ffffff';" onblur="this.style.backgroundColor='Transparent';" /></div>
<div style="clear:both;float:left;width:48px;background-color:#fff6c7;" class="tinytextr" >Starts: </div><div style="float:left;"><asp:Textbox runat="server" ID="txtTCP1_TermStart" CssClass="txttcp11" style="width:72px;" onfocus="this.style.backgroundColor='#ffffff';" onblur="this.style.backgroundColor='Transparent';" /></div><div style="clear:none;float:right;"><asp:ImageButton runat="server" ID="bSave2TCP" ImageUrl="/phcr/images/bAdd36.png" style="float:left;" ToolTip="Add to Active CoursePack" OnCommand="DoCommands" CommandName="Add2TCP" /> <asp:ImageButton runat="server" ID="bSaveCPHead" ImageUrl="/phcr/images/bDone36.png" style="float:left;" ToolTip="Save the CP Changes" OnClick="UpdateTCP"/></div>
</div>
<div style="overflow-x:hidden;overflow-y:auto;width:242px;max-height:242px;">
<asp:SqlDataSource ID="dsTCP" runat="server"/>
<asp:Repeater runat="server" DataSourceID="dsTCP" ID="rptTCP">
<ItemTemplate>
<div style="clear:both;width:238px;height:auto;border-top:solid 0px #6994a7;overflow:hidden;background-color:#fefbf0;padding:3px;" class="searchdiv" onclick="location.href='/casedetail.aspx?cid=<%#Eval("CaseID")%>';">
<div id="CaseIcons" style="float:left;white-space:nowrap;width:28px;height:32px;padding:1px;border:solid 0px blue;margin-right:2px;background-color:Transparent;">
<div style="float:left;margin-bottom:4px;"><a href="/casedetail.aspx?cid=<%# Eval("CaseID")%>"><img src="/phcr/images/phcr-icon<%# Eval("ProductType")%>_small.png" /></a></div>
<div style="clear:both;z-index:10000;margin-top:0px;display:none;"><a href="/author.aspx?auid=<%# Eval("Author")%>"><img src="/images/authors/author<%# Eval("Author")%>_48.png" height="24" /></a></div>
</div>
<div style="float:left;width:198px;height:auto;border:solid 0px #770077;background-color:#fefbf0;">
<div><a href="/casedetail.aspx?cid=<%# Eval("CaseID")%>"><asp:Label ID="lblTitle" runat="server" Text='<%# Eval("Nickname")%>' CssClass="casetitle2" /></a></div>
<div><span class="caseauthor2">by </span><asp:Label runat="server" ID="lblAuthHead" Text="Author: " Visible="false" CssClass="fldHead" /><asp:Label ID="lblAuthor1" runat="server" Text='<%# GetAuthorListByCase(Eval("CaseId"))%>' CssClass="caseauthor2" /></div>
</div>
</div>
</ItemTemplate>
</asp:Repeater>
</div>
</asp:Panel>
<asp:Panel runat="server" ID="pnlMCP" Visible="false" style="margin-right:6px;">
<div class="cpbc" style="width:234px;background-color:#e9f6c8;padding:3px;color:#231f20;margin-top:16px;border:solid 1px #b2ba9f;"><img src="/phcr/images/phcr-icon7_small.png" align="absmiddle" style="margin-right:4px;"/>My CoursePacks</div>
<div style="width:240px;height:187px;background-color:#bdc9a0;border-left:solid 1px #b2ba9f;border-right:solid 1px #b2ba9f;z-index:100;padding:0px;overflow-y:auto;">
<asp:SqlDataSource ID="dsMCP" runat="server"/>
<asp:Repeater runat="server" DataSourceID="dsMCP" ID="rptMCP">
<ItemTemplate>
<div style="float:right;background-color:#faf7f5;padding:0px 4px 0px 4px;border-left:#dce0df;"><asp:ImageButton ID="Add2TCP" runat="server" OnCommand="DoCommands" CommandName="MakeTCP" CommandArgument='<%#Eval("OrderID") %>' ImageURL="/phcr/images/bAdd36.png" style="float:right;position:relative;top:4px;width:36px;" Visible="true" ToolTip="disabled for demo purposes"/><br /><asp:ImageButton ID="bEditCpak" runat="server" OnCommand="DoCommands" CommandName="MakeTCP" CommandArgument='<%#Eval("OrderID") %>' ImageURL="/phcr/images/bEdit36.png" style="float:right;position:relative;top:4px;width:36px;" Visible="true" ToolTip="Makes this CoursePack the Active CPack"/></div>
<div class="casetitle2" style="background-color:#faf7f5;padding:0px 4px 0px 4px;font-size:12px;color:#343535"><%#Eval("RefNum")%></div>
<div class="casetitle3" style="background-color:#faf7f5;padding:0px 4px 0px 4px;"><%#Eval("CourseName")%> <%#Eval("CourseNumber")%></div>
<div style="background-color: #faf7f5; padding: 0px 4px 0px 4px;font-size:11px;">Term Starts: <%#FormatDateTime(Eval("TermStart"), vbShortDate)%>, <%#Eval("StudentsNum")%> students</div>
</ItemTemplate>
<SeparatorTemplate><div style="background-color:#b2ba9f;height:4px;padding:0px;"></div></SeparatorTemplate>
<FooterTemplate><div style="background-color:#757b64;height:4px;padding:0px;"></div></FooterTemplate>
</asp:Repeater>

</div>
</asp:Panel>
</asp:Panel>
</div>
<div style="text-align:left;position:relative;left:-12px;top:100px;display:none;">
<asp:imagebutton runat="server" id="bBuyThemNow" ImageURL="/skins/1/images/bBuyOne.png" OnClick="doAdd2Cart" ToolTip="Click here for Express Checkout!" /><br />

</div>
<!--b style="font-size:9px;">REGISTERED EDUCATORS COPIES</b-->
<div style="display:none;">
<asp:SqlDataSource ID="dsCases2Syl" runat="server"></asp:SqlDataSource>
<table width="354" cellpadding=4 cellspacing=0 border="<%=Borderoff%>" style="float:right;" >
<asp:Panel runat="server" ID="Panel1" Visible="true">
<tr><td colspan="2" class="rbgr2">WDI Publishing Syllabi</td></tr>
<asp:Repeater runat="server" DataSourceID="dsCases2Syl" ID="rptCases2Syl">
<ItemTemplate>
<tr><td><img src="/phcr/images/phcr-icon18_large.png" height="16" /></td><td class="relList1"><a href="/syldetail.aspx?sid=<%#Eval("parentCID") %>"><%#Eval("relTitle") %></a></td></tr>
</ItemTemplate>
</asp:Repeater>
<tr><td colspan="2"><img src="/skins/1/images/spacer.gif" width="320" height="3" /></td></tr>
</asp:Panel>
<asp:Panel runat="server" ID="Panel2" Visible="false">
<tr><td class="tinyMsg" colspan="2" style="text-align:center;"><br />There are no items related to this product at this time<br /> </td></tr>
</asp:Panel>
</table>
</div>
</div>
<div class="clr"></div>
</div>
<div style="width:100%;background-image:url(/phcr/images/detailheaderback1.png);background-repeat:no-repeat;background-size:100% 100%;height:auto;">
<!-- BEGIN THose Who Bought -->
<asp:Panel runat="server" ID="pnlTWB" Visible="true">
<div class="cpbc" style="clear:both;width:100%;background-color:#b4d0b0;background-image:url(/phcr/images/detailheaderback3-1260.png);background-position:left;background-size:100%;padding:8px 0px 8px 0px;color:#231f20;margin-top:24px;margin-left:auto;margin-right:auto;border:none;border-top:solid 1px #b2ba9f;border-bottom:solid 1px #b2ba9f;"><span style="margin-left:8px;">Those Who Bought This Item Also Bought...</span></div><!-- b4d0b0 -->
<div style="clear:both;padding-top:0px;width:100%;height:196px;background-color:Transparent;border:solid 0px #b2ba9f;border-top:none;overflow-y:hidden;overflow-y:scrollable;background-image:url(/phcr/images/detailheaderback1xxx.png);background-position:right;background-repeat:no-repeat;background-size:100% 100%;;margin-top:0px;margin-left:auto;margin-right:auto;margin-bottom:-36px;">
<div class="clr"></div> <div runat="server" id="divTWB" style="width:auto;height:178px;border:solid 0px Red;margin-top:0px;margin-left:auto;margin-right:auto;padding-top:8px;white-space:nowrap;overflow-x:scrollable;overflow-y:hidden"> <asp:SqlDataSource ID="dsTW1" runat="server"/> <asp:Repeater ID="rptTW1" DataSourceID="dsTW1" runat="server"> <ItemTemplate> <div style="width:118px;height:154px;float:left;margin-right:24px;margin-bottom:16px;padding:4px 4px 4px 4px;border:solid 0px #b2ba9f;border-right:solid 1px #b2ba9f;border-bottom:solid 1px #b2ba9f;" class="authdivW" onclick="location.href='/casedetail.aspx?cid=<%#Eval("CaseID")%>&r=tw';"> <div style="float:left;height:48px;width:48px;border:solid 0px #ff00ff;white-space:normal;text-align:center;font-weight:bold;margin-right:4px;margin-bottom:4px;"> <img src="/images/authors/author<%# Eval("author") %>.png" style="margin-right:4px;height:48px;"> </div> <div style="float:right;height:48px;width:48px;border:solid 0px #ff00ff;white-space:normal;text-align:center;font-weight:bold;margin-right:4px;margin-bottom:4px;"> <img src="/phcr/images/phcr-icon<%# Eval("producttype") %>_med.png" style="margin-right:4px;height:48px;"> </div> <div class="caseauthor2" style="float:left;height:auto;width:106px;border:solid 0px #ff00ff;white-space:normal;text-align:left;font-weight:bold;margin-right:4px;margin-bottom:4px;font-size:8pt;line-height:9pt;"> <%# GetAuthorLastListByCase(Eval("CaseId"))%> </div> <div style="float:left;clear:both;font-weight:normal;width:106px;height:64px;text-align:left;border:solid 0px lime;background-color:Transparent;line-height:16px;margin:0px 0 4px 2px;"><a href="/casedetail.aspx?cid=<%#Eval("CaseID")%>&r=tw" style="white-space:normal;font-size:8.5pt;line-height:10pt;"><%#ShortDesc(GetCaseTitleByNumber(Eval("CaseID")), 88)%></a></div> </div> </ItemTemplate> </asp:Repeater> </div>
</div>
</asp:Panel>
<!-- END THose Who Bought -->
<div class="clr"></div></div>
</asp:Content>
What I do — VBScript
0001 Imports System
0002 Imports System.Data
0003 Imports System.Data.SQLClient
0004 Imports System.Data.SQLClient.SqlConnection
0005 Imports XCVBGlobals
0006 Imports XCVBConstants
0007 Public Class casedetailP
0008 Inherits System.Web.UI.Page
0009 Const MAX_TITLE_BEFORE_BREAK = 108
0010 Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
0011 Dim strSQL As String
0012 Dim getCTX As String
0013 Dim tCTX As String
0014 Dim inTime As DateTime
0015 inTime = Now()
0016 Dim OutTime As DateTime
0017 Dim CaseCT As Integer
0018 lblTimeIn.Text &= inTime.ToString("hh:mm:ss.fff")
0019 If Request.QueryString.ToString = "" Then
0020 Response.Redirect("/")
0021 Else
0022 End If
0023 Session("setFromPage") = Request.ServerVariables("HTTP_REFERER")
0024 If Session("XCVSD") Is Nothing Or Session("XCVSD") = 666 Then
0025 Session("XCVSD") = Q7MakeTempUTX()
0026 Session("tempid") = Session("XCVSD")
0027 End If
0028 If Session("whereClause") = "" Then
0029 Session("whereClause") = WhereZero
0030 End If
0031 If Not Page.IsPostBack Then
0032 tCTX = MyQuest(Trim(Request("cid")), 10, 666, Request.ServerVariables("SCRIPT_NAME"), Request.ServerVariables("REMOTE_HOST")) 'who is asking!?' GetAuthor = Left(Trim(Request("auid")), 3)
0033 writeStats(Request.ServerVariables("SCRIPT_NAME") & "?" & tCid, Session("XCVSD"), Request.ServerVariables("REMOTE_HOST"), Request.ServerVariables("HTTP_REFERER"), Request.ServerVariables("HTTP_USER_AGENT"))
0034 If tCTX <> "" Then
0035 Else
0036 trace.warn("noCTX", Request.QueryString.ToString) 'nothing
0037 If len(Request.QueryString.ToString) = 7 Then
0038 If IsNumeric(Request.QueryString.ToString) Then
0039 tCTX = Request.QueryString.ToString
0040 Else
0041 tCTX = 1001001
0042 End If
0043 Else
0044 tCTX = 666666
0045 End If
0046 End If
0047 If tCTX = "1430438" Then '//******** SPECIAL SNOWFLAKE FOR WALMART/USATX case
0048 response.redirect("/casedetail-ss1.aspx?cid=1430438")
0049 End If
0050 getCTX = del33t(Lcase(tCTX))
0051 If Not IsNumeric(getCTX) Then
0052 divMain.Visible = False
0053 divNoItems.Visible = True
0054 imgProdIcon.Visible = False
0055 imgCDAuth.Visible = False
0056 imgPartnerIcon.Visible = False
0057 bAdd2Faves.Visible = False
0058 BuyingOpts.Visible = False
0059 If tCid = "attack" Then
0060 litNoItems.Text = "<h1 class='wdph1' style='color:red;'>This request has FAILED.</h1>"
0061 Else
0062 litNoItems.Text = "<h2 class=" & QUOTE & "wdph2" & QUOTE & " style='margin-top:0px;'>We’re sorry! There is no WDI Publishing product with that TX.</h2><h3 class='wdph3'>We cannot determine any possible alternatives for your input.</h3>It’s possible that the item is not yet available for sale, or has been removed from our catalog."
0063 End If
0064 Else
0065 CaseCT = getscalar("select count(caseid) from tbl_Xxxxx where caseid=" & getCTX & " AND Active=1")
0066 If CaseCT <= 0 AND (Session("gllevel") < RoleCaseketeer OR Session("gllevel")="" OR Session("gllevel") Is Nothing ) AND MyQuest(Trim(Request("rd")), 7, 666, Request.ServerVariables("SCRIPT_NAME"), Request.ServerVariables("REMOTE_HOST")) ="" Then
0067 If getCTX > 10000 And getCTX < 11000 Then
0068 response.redirect("/stride/casedetail.aspx?cid=" & getCTX)
0069 End If
0070
0071 dim tRedir as String = getscalar("select redir from tbl_Xxxxx where caseid=" & getCTX)
0072 if tRedir<>"" Then
0073
0074 Else
0075
0076 End If
0077 divMain.Visible = False
0078 divNoItems.Visible = True
0079 imgProdIcon.Visible = False
0080 imgCDAuth.Visible = False
0081 imgPartnerIcon.Visible = False
0082 bAdd2Faves.Visible = False
0083 BuyingOpts.Visible = False
0084 Dim findTest As String = seekCTX(getCTX)
0085 trace.warn("findTest", findTest)
0086 If findtest = "attack" Then
0087 litNoItems.Text = "<h3 class='wdph3'>This request has FAILED.</h3>"
0088 ElseIf findTest = "666666" Or findTest = "" Then
0089 litNoItems.Text = "<h3 class='wdph3'>We cannot determine any possible alternatives for your input.</h3>It’s possible that the item is not yet available for sale, or has been removed from our catalog."
0090 Else
0091 dsNoItems.ConnectionString = ConfigurationManager.ConnectionStrings("XCVSDF").ConnectionString
0092 dsNoItems.SelectCommand = "Select * from tbl_Xxxxx " & findTest & " AND Active=1" '//****WHERE caseid=" & getCTX - 1000 & "UNION Select * from tbl_Xxxxx WHERE caseid=" & getCTX + 10000 & "UNION Select * from tbl_Xxxxx WHERE caseid=" & getCTX - 10000 & "UNION Select * from tbl_Xxxxx WHERE left(caseid,6) LIKE " & left(getCTX, 6) & " UNION Select * from tbl_Xxxxx WHERE caseid=" & getCTX - 10000 & "UNION Select * from tbl_Xxxxx WHERE caseid=" & getCTX - 999 & "UNION Select * from tbl_Xxxxx WHERE caseid=" & replace(getCTX, 1428, 1429) & "UNION Select * from tbl_Xxxxx WHERE caseid=" & replace(getCTX, 1429, 1428)
0093 rptNoItems.DataBind()
0094
0095 if rptNoItems.Items.Count=0 Then
0096
0097
0098
0099
0100
0101 Else
0102
0103 End If
0104 End If
0105 Else
0106 divMain.Visible = True
0107 divNoItems.Visible = False
0108 imgProdIcon.Visible = True
0109 imgCDAuth.Visible = True
0110 imgPartnerIcon.Visible = True
0111 bAdd2Faves.Visible = True
0112 If getscalar("select HideLevel1 from tbl_Xxxxx where Caseid=" & getCTX) = "True" Then
0113 If Session("gllevel") Is Nothing Or Session("gllevel") = "1" Then
0114 response.redirect("/")
0115 End If
0116 End If
0117 popthispage(getCTX)
0118 PopFaves()
0119 imgQRCode.ImageUrl = "/images/qrcodes/qrcode-" & getCTX & ".png"
0120 If Not Session("XCVSD") Is Nothing Then
0121 IsInQuiver(getCTX)
0122 End If
0123 strSQL = "select TopicTX, MessageTX, Body, Visible from ForumMessages where body like '%casedetail.aspx?cid=" & getCTX & "%'"
0124 txtQtyCR.Focus()
0125 End If
0126 End If
0127 Else
0128 End If
0129 Dim myHL As Hyperlink
0130 myHL = CType(Master.FindControl("hlLog"), Hyperlink)
0131 If Not myHL Is Nothing Then
0132 myHL.NavigateUrl = "/login.aspx?bk=cd"
0133 End If
0134 OutTime = Now()
0135 lblTimeOut.Text &= OutTime.ToString("hh:mm:ss.fff")
0136 lblTimeDiff.Text &= (OutTime.Ticks - InTime.Ticks) / 10000000
0137 If Session("gllevel") = 7 Then
0138 lblTimeDiff.Visible = True
0139 Else
0140 lblTimeDiff.Visible = False
0141 End If
0142 dsMCP.ConnectionString = ConfigurationManager.ConnectionStrings("XCVSDF").ConnectionString
0143 If Session("OrderTX") Is Nothing Then
0144 dsMCP.SelectCommand = "select Orderid, refnum, Studentsnum, Termstart, Coursename, courseNumber from tbl_XXXXxxxxx where userid=" & Session("XCVSD") & " AND complete=0 and settled=0 ORDER BY refnum ASC, TermStart ASC"
0145 Else
0146 dsMCP.SelectCommand = "select Orderid, refnum, Studentsnum, Termstart, Coursename, courseNumber from tbl_XXXXxxxxx where userid=" & Session("XCVSD") & " AND complete=0 and settled=0 AND ORDERTX <> " & Trim(Session("OrderTX")) & " ORDER BY refnum ASC, TermStart ASC"
0147 End If
0148 rptMCP.DataBind()
0149 If Session("OrderTX") Is Nothing Then
0150 pnlTCP.Visible = False
0151 Else
0152 pnlTCP.Visible = True
0153 dsTCP.ConnectionString = ConfigurationManager.ConnectionStrings("XCVSDF").ConnectionString
0154 dsTCP.SelectCommand = TCP_SQL0 & " where orderid=333 ORDER BY cartid DESC" '" & session("OrderTX") & "
0155 rptTCP.DataBind()
0156 End If
0157 End Sub
0158 Sub popthispage(ByVal itemTX As Integer)
0159 Dim MyConnexion As SqlConnection
0160 Dim MyCmd As SqlCommand
0161 Dim MySQLAdapter As SqlDataAdapter
0162 Dim MyReader As SqlDatAxxxder
0163 Dim ds As DataSet
0164 Dim strSQL As String
0165 Dim tStr As String
0166 Dim tTitle As String
0167 Dim tSubTitle As String
0168 Dim MyPLainTitle As String
0169 Dim tTNote As String
0170 MyConnexion = New SqlConnection(ConfigurationManager.ConnectionStrings("XCVSDF").ConnectionString)
0171 MyConnexion.Open()
0172 strSQL = "select *, tbl_XxxxxxxXxxxx.ProductType as ProductTypeTitle from tbl_Xxxxx JOIN tbl_XxxxxxxXxxxx on tbl_XxxxxxxXxxxx.ProductTypeTX = tbl_Xxxxx.ProductType where CaseTX=" & itemTX '//or whatever
0173 MyCmd = New SQLCommand(strSQL, MyConnexion)
0174 MyReader = MyCmd.ExecuteReader()
0175 If MyReader.HasRows Then
0176 Myreader.Read()
0177 If Not MyReader("redir").ToString() Is System.DBNull.Value Then
0178 If IsNumeric(MyReader("redir").ToString()) Then
0179 response.redirect("/casedetail.aspx?cid=" & MyReader("redir").ToString())
0180 Else
0181 End If
0182 Else
0183 End If
0184 hidCTX.Value = itemTX.ToString()
0185 Session("thisCaseid") = itemTX.ToString()
0186 hlCDAuth.NavigateURL = AUTHOR_PAGE_PHCR_QSTRING & MyReader("author").ToString()
0187 imgCDAuth.ImageURL = "/images/authors/author" & MyReader("author").ToString() & ".png"
0188 lblAuthor.Text = "<a href='" & AUTHOR_PAGE_PHCR_QSTRING & MyReader("author").ToString() & "' class='authlink'>" & GetAuthorLinkListByCase(itemTX) & "</a>"
0189 lblCaseWriter.Text = GetCaseWriterListByCase(itemTX)
0190 lblPubDate.Text = String.Format("{0:MM/yyyy}", MyReader("PubDate"))
0191 lblProductType.Text = MyReader("ProductTypeTitle").ToString()
0192 litThisType.Text = MyReader("ProductTypeTitle").ToString()
0193 lblPRodTypeHeader.Text = MyReader("ProductTypeTitle").ToString()
0194 imgProdIcon.ImageURL = "/phcr/images/phcr-icon" & MyReader("ProductType").ToString() & "_large.png"
0195 hlPartnerIcon.ImageURL = "/skins/2/images/PartnerIcon" & MyReader("PrimaryPartner").ToString() & "_100.png"
0196 hlPartnerIcon.NavigateURL = "/partner.aspx?pid=" & MyReader("PrimaryPartner").ToString()
0197 lblDescription.Text = "<b>DESCRIPTION: </b>" & Replace(Replace(MyReader("Description").ToString(), "<p>", ""), "</p>", "")
0198 Select Case lcase(lblProductType.Text).Trim
0199 Case "course"
0200 pnlCourseChildren.Visible = True
0201 Case "module"
0202 pnlModuleChildren.Visible = True
0203 Case Else
0204 End Select
0205 lblLength.Text = MyReader("Length").ToString()
0206 lblLenFoot.Text = MyReader("LenUnits").ToString()
0207 Page.Title = "WDI Publishing: " & MyPlainTitle
0208 tTitle = getTitleWithBreaksByTitle(MyReader("Title").ToString())
0209 tSubTitle = getTitleWithBreaksByTitle(MyReader("SubTitle").ToString())
0210 lblTitle.Text = tTitle
0211 If Trim(tSubTitle) <> "" Then
0212 lblSubTitle.Text = ":
" & tSubTitle
0213 lblSubTitle.Visible = True
0214 Else
0215 lblSubTitle.Visible = False
0216 End If
0217 MyPLainTitle = DoCaseTitlesPlain(MyReader("Title").ToString(), MyReader("SubTitle").ToString())
0218 txtTitlePlain.Text = MyPlainTitle
0219 Page.Title = "WDI Publishing: " & MyPlainTitle
0220 tTNote = Trim(LCase(MyReader("TeachingNoteLoc").ToString()))
0221 Dim tPdfURL As String
0222 Select Case Session("Q7Level")
0223 Case RoleGuest
0224 If MyReader("PreviewLoc").ToString() Is System.DBNull.Value Then
0225 tPdfURL = PreviewPDFPath & "404.pdf"
0226 hlCasePreview.NavigateURL = Trim(tPdfURL)
0227 hlPreview.NavigateURL = Trim(tPdfURL)
0228 hlPreview.Text = "No Preview"
0229 Else
0230 tPdfURL = PreviewPDFPath & MyReader("PreviewLoc").ToString()
0231 hlCasePreview.NavigateURL = Trim(tPdfURL)
0232 hlPreview.NavigateURL = Trim(tPdfURL)
0233 hlPreview.Text = "PREVIEW"
0234 End If
0235 If MyReader("PriceCR").ToString() Is System.DBNull.Value Then
0236 lblPriceCR.Text = " "
0237 Else
0238 lblPriceCR.Text = FormatCurrency(MyReader("PriceCR"), 2) '.ToString("{0:c}") 'String.Format("{0:c}", MyCmd.ExecuteScalar())
0239 End If
0240 If MyReader("PriceHCColor").ToString() Is System.DBNull.Value Then
0241 lblPriceHCColor.Text = " "
0242 Else
0243 lblPriceHCColor.Text = FormatCurrency(MyReader("PriceHCColor"), 2)
0244 End If
0245 If tTNote = "404t.pdf" Then
0246 lblTNTag.Text = "None"
0247 Else
0248 lblTNTag.Text = "Available to Registered Educators. Please <a href='/login.aspx?bk=cd' class='inline'>login</a> to view it."
0249 End If
0250 Select Case itemTX
0251 Case 1429335
0252 pnlNotInCart.Visible = True
0253 hlCasePreview.Visible = False
0254 pnlShCart.Visible = False
0255 hlPreview.Visible = False
0256 HLTeachingNote.Visible = False
0257 hlTNtag.Visible = False
0258 HLSpecialSnowflake.Visible = False
0259 HLSpecialSnowflakeTag.Visible = False
0260 lblTNTag.Text = "Not Applicable"
0261 pnlTPS.Visible = False
0262 divTN.Visible = False
0263 divPrevTN.Visible = False
0264 imgBookCover.Visible = True
0265 pnlBookPreview.Visible = True
0266 imgBookCover.ImageURL = "/books/images/batra1-216h.png"
0267 litAmazonFrame.Text = "<xframe.*></xframe>"
0703 Case Else
0704 pnlShCart.Visible = True
0705 IsInCart(itemTX)
0706 pnlNotInCart.Visible = False
0707 HLSpecialSnowflake.Visible = False
0708 HLSpecialSnowflakeTag.Visible = False
0709 End Select
0710 End Select
0711 If MyReader("DeliverFree") = True Then
0712 pnlNotInCart.Visible = True
0713 hlCasePreview.Visible = False
0714 pnlShCart.Visible = False
0715 pnlShowFrame.Visible = False
0716 divPurchase.Visible = False
0717 pnlShow2Library.Visible = True
0718 hlPreview.Visible = False
0719 HLSpecialSnowflake.Visible = False
0720 HLSpecialSnowflakeTag.Visible = False
0721 pnlTPS.Visible = False
0722 Else
0723 divPurchase.Visible = True
0724 pnlShow2Library.Visible = False
0725 End If
0726 MyReader.Close()
0727 strSQL = "select tpFull+' ' as tp256 from tbl_XxxxxxxxXxxxx where CaseTX=" & itemTX
0728 Dim tTps As String
0729 MyCmd = New SqlCommand(strSQL, MyConnexion)
0730 If MyCmd.ExecuteScalar() Is System.DBNull.Value Then
0731 litTPs.Text = "No teaching points given"
0732 Else
0733 tTps = MyCmd.ExecuteScalar()
0734 litTPs.Text = doTPSText(MyCmd.ExecuteScalar()) 'blank handled in function
0735 End If
0736 lblCaseTX.Text = TX2Mask(itemTX)
0737 Session("thisCaseTX") = itemTX
0738 If Session("XCVSD") Is Nothing Then
0739 writeHistory2(999999, 4, itemTX, "/casedetail.aspx?cid=", MyPlainTitle, 1, Request.ServerVariables("REMOTE_HOST"))
0740 Else
0741 writeHistory2(Session("XCVSD"), 4, itemTX, "/casedetail.aspx?cid=", MyPlainTitle, 1, Request.ServerVariables("REMOTE_HOST"))
0742 End If
0743 If Session("loggedin") = "xyzzy" Then
0744 bAdd2cart.Enabled = True '//*** True in both cases
0745 bAdd2cart.ToolTip = "Add this item to your cart"
0746 Else
0747 bAdd2cart.Enabled = True '//*** True in both cases
0748 bAdd2cart.ToolTip = "Add this item to your Guest Cart"
0749 End If
0750 dsCourseChildren.ConnectionString = ConfigurationManager.ConnectionStrings("XCVSDF").ConnectionString
0751 dsCourseChildren.SelectCommand = "select childid, tbl_Xxxxx.Title, tbl_Xxxxx.Subtitle, tbl_Xxxxx.ProductType from tbl_CxxxxxxLxxxx JOIN tbl_Xxxxx ON tbl_Xxxxx.caseid=tbl_CxxxxxxLxxxx.ChildTX where CourseTX=" & itemTX & " AND tbl_Xxxxx.Active=1 order by Nickname"
0752 rptCourseChildren.DataBind()
0753 dsModuleChildren.ConnectionString = ConfigurationManager.ConnectionStrings("XCVSDF").ConnectionString
0754 dsModuleChildren.SelectCommand = "select childid, tbl_Xxxxx.Title, tbl_Xxxxx.Subtitle, tbl_Xxxxx.ProductType from tbl_MxxxxxxLxxxx JOIN tbl_Xxxxx ON tbl_Xxxxx.caseid=tbl_MxxxxxxLxxxx.ChildTX where ModuleTX=" & itemTX & " AND tbl_Xxxxx.Active=1 order by Nickname"
0755 rptModuleChildren.DataBind()
0756 dsSideCart.ConnectionString = ConfigurationManager.ConnectionStrings("XCVSDF").ConnectionString
0757 dsSideCart.SelectCommand = "select tbl_XxXxxx.Quantity, tbl_XxXxxx.caseid, tbl_Xxxxx.Title, tbl_Xxxxx.Subtitle, tbl_Xxxxx.Nickname, ProductType from tbl_XxXxxx JOIN tbl_Xxxxx ON tbl_Xxxxx.CaseTX=tbl_XxXxxx.CaseTX where userid=" & Session("XCVSD") & " AND iscart=1 and tbl_XxXxxx.Active=1 AND orderid IS NULL ORDER BY cartTX desc"
0758 rptSideCart.DataBind()
0759 If rptSideCart.Items.Count = 0 Then
0760 rptSideCart.Visible = False
0761 lblCartTotal.Text = FormatCurrency(0, 2)
0762 pnlNoSideCart.Visible = True
0763 Else
0764 rptSideCart.Visible = True
0765 lblCartTotal.Text = FormatCurrency(getSubTotalbyUTX(Session("XCVSD"), Session("gllevel")), 2)
0766 pnlNoSideCart.Visible = False
0767 End If
0768
0769 dsCases2Rel.ConnectionString = ConfigurationManager.ConnectionStrings("XCVSDF").ConnectionString
0770 dsCases2Rel.SelectCommand = "Select * from (Select childcid, tbl_Xxxxx.Nickname as RelTitle, tbl_Xxxxx.Producttype from tbl_RxxxxxxIxxxx JOIN tbl_Xxxxx ON tbl_Xxxxx.caseid = tbl_RxxxxxxIxxxx.childcid where ParentCTX = " & itemTX & " and tbl_Xxxxx.active=1 UNION Select ParentCTX, tbl_Xxxxx.Nickname as RelTitle, tbl_Xxxxx.Producttype from tbl_RxxxxxxIxxxx JOIN tbl_Xxxxx ON tbl_Xxxxx.caseid = tbl_RxxxxxxIxxxx.ParentCTX where ChildCTX =" & itemTX & " and tbl_Xxxxx.active=1) a order by Producttype, Reltitle asc"
0771 rptCases2Rel.DataBind()
0772 If Session("gllevel") = RoleWibbley Or Session("gllevel") = 5 Or Session("gllevel") = 7 Then
0773 dsSyl2Rel.ConnectionString = ConfigurationManager.ConnectionStrings("XCVSDF").ConnectionString
0774 dsSyl2Rel.SelectCommand = "select parentCTX as TheId, 'Syllabus: ' + tbl_Sxxxxxx.title as relTitle, '18' as Producttype from tbl_RxxxxxxIxxxx JOIN tbl_Xxxxx ON tbl_Xxxxx.Caseid=tbl_RxxxxxxIxxxx.CHildCTX JOIN tbl_Sxxxxxx ON syllabusTX=tbl_RxxxxxxIxxxx.ParentCTX where InSyllabus=1 AND Relship=2 and (parentCTX=" & itemTX & " or childCTX=" & itemTX & ") AND tbl_Sxxxxxx.Active=1 AND tbl_Sxxxxxx.Purge=0 order by reltitle"
0775 rptSyl2Rel.DataBind()
0776 End If
0777 If rptCases2Rel.Items.Count > 0 Then
0778 pnlRelItems.Visible = True
0779 pnlNoRel.Visible = False
0780 Else
0781 pnlRelItems.Visible = False
0782 pnlNoRel.Visible = True
0783 End If
0784 If rptSyl2Rel.Items.Count > 0 Then
0785 rptSyl2Rel.Visible = True
0786 Else
0787 rptSyl2Rel.Visible = False
0788 End If
0789 strSQL = "select tbl_Sxxxxxx.title as relTitle, childCTX, parentCTX from tbl_RxxxxxxIxxxx JOIN tbl_Xxxxx ON tbl_Xxxxx.Caseid=tbl_RxxxxxxIxxxx.CHildCTX JOIN tbl_Sxxxxxx ON syllabusTX=tbl_RxxxxxxIxxxx.ParentCTX where InSyllabus=1 AND Relship=2 and (parentCTX=" & itemTX & " or childCTX=" & itemTX & ") AND tbl_Sxxxxxx.Active=1 AND tbl_Sxxxxxx.Purge=0 ORDER BY tbl_Sxxxxxx.Title ASC"
0790 dsCases2Syl.ConnectionString = ConfigurationManager.ConnectionStrings("XCVSDF").ConnectionString
0791 dsCases2Syl.SelectCommand = strSQL
0792 rptCases2Syl.DataBind()
0793 dsTW1.ConnectionString = ConfigurationManager.ConnectionStrings("XCVSDF").ConnectionString
0794 dsTW1.SelectCommand = "select TOP 25 caseid, author, producttype, count(caseid) from (select tbl_Xxxxx.caseid , author, producttype from tbl_XxXxxx JOIN tbl_Xxxxx ON tbl_Xxxxx.CaseTX=tbl_XxXxxx.caseid JOIN tbl_Xxxxxxx ON author=AuthorTX where glxid IS NOT NULL AND userid in (select distinct XverTX from tbl_XxXxxx where caseid=" & itemTX & " AND userid NOT IN (select gluid from tbl_XxxxxX where Q7Level>3) AND glxid IS NOT NULL)) as TEMP WHERE caseid<>" & itemTX & " GROUP BY caseid, Author, producttype HAVING count(caseid)>=3 order by count(caseid) desc"
0795 rptTW1.DataBind()
0796 If rptTW1.Items.Count > 0 Then
0797 divTWB.Style.Add("width", rptTW1.Items.Count * 152 - 0 & "px;")
0798 pnlTWB.Visible = True
0799 Else
0800 pnlTWB.Visible = False
0801 End If
0802 strSQL = "select caseid, partitem, tbl_FxxxxAxxxx.FocusAxxx as TheKeyTopic from tbl_XXXXXX JOIN tbl_FxxxxAxxxx ON tbl_FxxxxAxxxx.faTX = partitem where caseid=" & itemTX & " and partid=2 order by TheKeyTopic" ' UNION select caseid, partitem, tbl_SxxTxxx.SecTag as TheKeyTopic from tbl_XXXXXX JOIN tbl_SxxTxxx ON tbl_SxxTxxx.tagTX = partitem where caseid=" & itemTX & " and partid=3 order by TheKeyTopic"
0803 strSQL = "select caseid, partitem, tbl_CxxxBxx.CoreBiz as TheKeyTopic from tbl_XXXXXX JOIN tbl_CxxxBxx ON tbl_CxxxBxx.CoreBizTX = partitem where caseid=" & itemTX & " and partid=1 order by TheKeyTopic"
0804 lblCoreDisciplines.Text = "<b>Core Disciplines: </b>"
0805 MyCmd = New SqlCommand(strSQL, MyConnexion)
0806 MyReader = MyCmd.ExecuteReader()
0807 While MyReader.Read()
0808 lblCoreDisciplines.Text &= "<a class='inline' href='/search1.aspx?cb=" & Trim(MyReader.GetValue(1).ToString()) & "'>" & MyReader.GetValue(2).ToString() & "</a>; "
0809 End While
0810 If lblCoreDisciplines.Text.Length > 2 Then
0811 lblCoreDisciplines.Text = Replace(Left(lblCoreDisciplines.Text, lblCoreDisciplines.Text.Length - 2), " ;", ";")
0812 Else
0813 lblCoreDisciplines.Text = ""
0814 End If
0815 MyReader.Close()
0816 strSQL = "select caseid, partitem, tbl_SxxTxxx.SecTag as TheSecTag from tbl_XXXXXX JOIN tbl_SxxTxxx ON tbl_SxxTxxx.tagTX = partitem where caseid=" & itemTX & " and partid=3 order by TheSecTag"
0817 lblSalesRank.Text = "<b>Sales Rank: </b>" & "#" & getSalesRankbyCaseTX(itemTX)
0818 MyCmd = New SqlCommand(strSQL, MyConnexion)
0819 MyReader = MyCmd.ExecuteReader()
0820 If MyReader.HasRows Then
0821 lblSecTags.Text = "<b>Secondary Tags: </b>"
0822 While MyReader.Read()
0823 lblSecTags.Text &= "<a class='inline' href='/search1.aspx?st=" & Trim(MyReader.GetValue(1).ToString()) & "'>" & MyReader.GetValue(2).ToString() & "</a>; "
0824 End While
0825 lblSecTags.Text = Replace(Left(lblSecTags.Text, lblSecTags.Text.Length - 2), " ;", ";")
0826 Else
0827 lblSecTags.Text = "<b>Secondary Tags:</b> None"
0828 End If
0829 MyReader.Close()
0830 hlMobile1.NavigateURL = "/m/cd.aspx?cid=" & itemTX
0831 hlMobile2.NavigateURL = "/i/cd.aspx?cid=" & itemTX
0832 hlMobile2.Target = "_blank"
0833 Else
0834 End If
0835 setCartNum()
0836 MyReader.Close()
0837 MyConnexion.Close()
0838 End Sub
0839 Function DoCaseTitlesByNumber(ByVal theCTX As Integer) As String
0840 Dim ThisTitle As String
0841 Dim ThisSubTitle As String
0842 ThisTitle = getscalar("select title from tbl_Xxxxx where CaseTX=" & theCTX)
0843 ThisSubTitle = getscalar("select subtitle from tbl_Xxxxx where CaseTX=" & theCTX)
0844 DoCaseTitlesByNumber = DoCaseTitlesPlain(ThisTitle, ThisSubTitle)
0845 End Function
0846 Function MakeFBLike(ByVal theCTX As Integer) As String
0847 Dim ThisFrame As String
0848 ThisFrame = "<div class='fb-like' data-href='http://sdf_publishing.com/casedetail.aspx?cid=" & theCTX & "' data-send='false' data-layout='button_count' data-width='112' data-show-faces='false' data-font='verdana'></div>"
0849 MakeFBLike = ThisFrame
0850 End Function
0851 Sub IsInCart(ByVal cid As Integer)
0852 Dim MyConnexion As SqlConnection
0853 Dim MyCmd As SqlCommand
0854 Dim MyReader As SqlDatAxxxder
0855 Dim strSQL As String
0856 If Not Session("XCVSD") Is Nothing Then
0857 MyConnexion = New SqlConnection(ConfigurationManager.ConnectionStrings("XCVSDF").ConnectionString)
0858 MyConnexion.Open()
0859 MyCmd = New SqlCommand(strSQL, MyConnexion)
0860 strSQL = "select CaseTX, quantity, ItemType from tbl_XxXxxx where XverTX=" & Session("XCVSD") & " AND CaseTX=" & cid & " AND OrderTX IS NULL AND IsCart=1 and Active=1" '//or whatever
0861 MyCmd = New SqlCommand(strSQL, MyConnexion)
0862 MyReader = MyCmd.ExecuteReader()
0863 If MyReader.HasRows Then
0864 pnlShCart.Enabled = True
0865 pnlShCart.Visible = False '//*** BOOKS = false
0866 bAdd2cart.Visible = False
0867 bRemoveCart.Visible = True
0868 bRemoveCart.Enabled = True
0869 bRemoveCart.ImageUrl = "/phcr/images/bRemoveMyCart.png"
0870 lblisincart.Visible = True
0871 lblisincart.Text = "This item is in your cart"
0872 txtQtyCR.CssClass = "txbx0r"
0873 txtQtyCR.Enabled = False
0874 While MyReader.Read()
0875 Select Case MyReader("ItemType").ToString()
0876 Case cartDLItem
0877 If Trim(MyReader("quantity").ToString()) = "1" Then
0878 End If
0879 Case cartCRItem
0880 txtQtyCR.Text = MyReader("quantity").ToString()
0881 Case Else
0882 End Select
0883 End While
0884 Else
0885 pnlShCart.Visible = True '//*** BOOKS = false
0886 txtQtyCR.Enabled = True
0887 bRemoveCart.Visible = False
0888 lblPriceCR.Visible = True
0889 bAdd2cart.Enabled = True
0890 bAdd2cart.Visible = True
0891 bAdd2Cart.ImageUrl = "/phcr/images/bAdd2MyCart.png"
0892 bRemoveCart.Visible = False
0893 bRemoveCart.Enabled = False
0894 lblisincart.Visible = True 'always
0895 lblisincart.Text = " "
0896 End If
0897 MyReader.Close()
0898 MyConnexion.Close()
0899 End If
0900 End Sub
0901 Sub ClearCart()
0902 txtQtyCR.Text = ""
0903 setCartNum()
0904 End Sub
0905 Protected Sub doCartRemove(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs)
0906 Dim MyConnexion As SqlConnection
0907 Dim MyCmd As SqlCommand
0908 Dim strSQL As String
0909 MyConnexion = New SqlConnection(ConfigurationManager.ConnectionStrings("XCVSDF").ConnectionString)
0910 MyConnexion.Open()
0911 strSQL = "DELETE FROM tbl_XxXxxx WHERE Q7XTX IS NULL AND IsCart=1 AND XverTX=" & Session("XCVSD") & " AND CaseTX ='" & Session("thisCaseTX") & "'"
0912 MyCmd = New SqlCommand(strSQL, MyConnexion)
0913 MyCmd.ExecuteNonQuery()
0914 pnlShCart.Enabled = True
0915 bAdd2cart.Visible = True
0916 bRemoveCart.Visible = True
0917 lblisincart.Visible = True
0918 lblisincart.Text = " "
0919 txtQtyCR.CssClass = "txbx1r"
0920 txtQtyCR.Text = 1
0921 IsInCart(hidCTX.Value)
0922 ClearCart()
0923 txtQtyCR.Text = 1
0924 MyConnexion.Close()
0925 setCartNum()
0926 dsSideCart.ConnectionString = ConfigurationManager.ConnectionStrings("XCVSDF").ConnectionString
0927 dsSideCart.SelectCommand = "select tbl_XxXxxx.Quantity, tbl_XxXxxx.caseid, tbl_Xxxxx.Title, tbl_Xxxxx.Subtitle, tbl_Xxxxx.Nickname, ProductType from tbl_XxXxxx JOIN tbl_Xxxxx ON tbl_Xxxxx.CaseTX=tbl_XxXxxx.CaseTX where userid=" & Session("XCVSD") & " AND iscart=1 and tbl_XxXxxx.Active=1 AND orderid IS NULL ORDER BY cartTX desc"
0928 rptSideCart.DataBind()
0929 lblCartTotal.Text = FormatCurrency(getSubTotalbyUTX(Session("XCVSD"), Session("gllevel")), 2)
0930 If rptSideCart.Items.Count = 0 Then
0931 rptSideCart.Visible = False
0932 lblCartTotal.Text = FormatCurrency(0, 2)
0933 pnlNoSideCart.Visible = True
0934 Else
0935 rptSideCart.Visible = True
0936 lblCartTotal.Text = FormatCurrency(getSubTotalbyUTX(Session("XCVSD"), Session("gllevel")), 2)
0937 pnlNoSideCart.Visible = False
0938 End If
0939 End Sub
0940 Protected Sub doAdd2Cart(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs)
0941 Dim MyConnexion As SqlConnection
0942 Dim MyCmd As SqlCommand
0943 Dim strSQL As String
0944 If trim(txtQtyCR.Text) = "" Then
0945 Else
0946 MyConnexion = New SqlConnection(ConfigurationManager.ConnectionStrings("XCVSDF").ConnectionString)
0947 MyConnexion.Open()
0948 strSQL = "DELETE FROM tbl_XxXxxx WHERE Q7XTX IS NULL AND OrderTX IS NULL AND IsCart=1 AND XverTX=" & Session("XCVSD") & " AND CaseTX ='" & hidCTX.Value & "'"
0949 MyCmd = New SqlCommand(strSQL, MyConnexion)
0950 MyCmd.ExecuteNonQuery()
0951 If txtQtyCR.Text <> "" Then
0952 If IsNumeric(txtQtyCR.Text) Then 'validated by the page before submit
0953 strSQL = "insert into tbl_XxXxxx (XverTX, quantity, ItemType, CaseTX, ItemTitle, isCart, isList, Active, Purge) VALUES (@XverTX, @quantity, @ItemType, @CaseTX, @ItemTitle, @isCart, @isList, @Active, @Purge)"
0954 MyCmd = New SqlCommand(strSQL, MyConnexion)
0955 MyCmd.Parameters.Add(New SqlParameter("@XverTX", Session("XCVSD")))
0956 MyCmd.Parameters.Add(New SqlParameter("@quantity", txtQtyCR.Text))
0957 MyCmd.Parameters.Add(New SqlParameter("@ItemType", cartCRItem))
0958 MyCmd.Parameters.Add(New SqlParameter("@CaseTX", hidCTX.Value))
0959 MyCmd.Parameters.Add(New SqlParameter("@ItemTitle", txtTitlePlain.Text))
0960 MyCmd.Parameters.Add(New SqlParameter("@isCart", True))
0961 MyCmd.Parameters.Add(New SqlParameter("@isList", False))
0962 MyCmd.Parameters.Add(New SqlParameter("@Active", True))
0963 MyCmd.Parameters.Add(New SqlParameter("@Purge", False))
0964 MyCmd.ExecuteNonQuery()
0965 End If
0966 End If
0967 MyConnexion.Close() 'close it here FOR SURE!!!
0968 IsInCart(hidCTX.Value)
0969 pnlShCart.Visible = True
0970 pnlShCart.Enabled = True
0971 bAdd2cart.Visible = False
0972 bRemoveCart.Visible = True
0973 lblisincart.Visible = True
0974 lblisincart.Text = "This item is in your cart"
0975 txtQtyCR.CssClass = "txbx0r"
0976 setCartNum()
0977 dsSideCart.ConnectionString = ConfigurationManager.ConnectionStrings("XCVSDF").ConnectionString
0978 dsSideCart.SelectCommand = "select tbl_XxXxxx.Quantity, tbl_XxXxxx.caseid, tbl_Xxxxx.Title, tbl_Xxxxx.Subtitle, tbl_Xxxxx.Nickname, ProductType from tbl_XxXxxx JOIN tbl_Xxxxx ON tbl_Xxxxx.CaseTX=tbl_XxXxxx.CaseTX where userid=" & Session("XCVSD") & " AND iscart=1 and tbl_XxXxxx.Active=1 AND orderid IS NULL ORDER BY cartTX desc"
0979 rptSideCart.DataBind()
0980 lblCartTotal.Text = FormatCurrency(getSubTotalbyUTX(Session("XCVSD"), Session("gllevel")), 2)
0981 If rptSideCart.Items.Count = 0 Then
0982 rptSideCart.Visible = False
0983 lblCartTotal.Text = FormatCurrency(0, 2)
0984 pnlNoSideCart.Visible = True
0985 Else
0986 rptSideCart.Visible = True
0987 lblCartTotal.Text = FormatCurrency(getSubTotalbyUTX(Session("XCVSD"), Session("gllevel")), 2)
0988 pnlNoSideCart.Visible = False
0989 End If
0990 End If
0991 If sender.TX.ToString = "bBuyThemNow" Then
0992 response.redirect("/myCart.aspx")
0993 End If
0994 End Sub
0995 Sub Add2Faves(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs)
0996 Dim MyConnexion As SqlConnection
0997 Dim MyCmd As SqlCommand
0998 Dim strSQL As String
0999 Dim tStr As String
1000 MyConnexion = New SqlConnection(ConfigurationManager.ConnectionStrings("XCVSDF").ConnectionString)
1001 MyConnexion.Open()
1002 strSQL = "insert into tbl_XxXxxxxxxx (XverTX, ItemType, SyllabusTX, ItemTitle, isQuiver, Active, Purge, tbl_XxXxxxxxxx.timestamp0, timestamp1) VALUES (@XverTX, @ItemType, @SyllabusTX, @ItemTitle, @isQuiver, @Active, @Purge, @timestamp0, @timestamp1)"
1003 MyCmd = New SqlCommand(strSQL, MyConnexion)
1004 MyCmd.Parameters.Add(New SqlParameter("@XverTX", Session("XCVSD")))
1005 MyCmd.Parameters.Add(New SqlParameter("@ItemType", MWSCase))
1006 MyCmd.Parameters.Add(New SqlParameter("@SyllabusTX", hidCTX.Value))
1007 MyCmd.Parameters.Add(New SqlParameter("@ItemTitle", txtTitlePlain.Text.ToString()))
1008 MyCmd.Parameters.Add(New SqlParameter("@isQuiver", 1))
1009 MyCmd.Parameters.Add(New SqlParameter("@Active", 1))
1010 MyCmd.Parameters.Add(New SqlParameter("@Purge", 0))
1011 MyCmd.Parameters.Add(New SqlParameter("@timestamp0", Now()))
1012 MyCmd.Parameters.Add(New SqlParameter("@timestamp1", Now()))
1013 MyCmd.ExecuteNonQuery()
1014 MyConnexion.Close()
1015 bAdd2Faves.Visible = False
1016 bRemoveFaves.Visible = True
1017 pnlFaves.Visible = True
1018 IsInQuiver(hidCTX.Value)
1019 PopFaves()
1020 End Sub
1021 Sub RemoveFaves(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs)
1022 Dim MyConnexion As SqlConnection
1023 Dim MyCmd As SqlCommand
1024 Dim strSQL As String
1025 MyConnexion = New SqlConnection(ConfigurationManager.ConnectionStrings("XCVSDF").ConnectionString) ''
1026 MyConnexion.Open()
1027 strSQL = "DELETE FROM tbl_XxXxxxxxxx WHERE XverTX=" & Session("XCVSD") & " AND SyllabusTX ='" & hidCTX.Value & "'"
1028 MyCmd = New SqlCommand(strSQL, MyConnexion)
1029 MyCmd.ExecuteNonQuery()
1030 MyConnexion.Close()
1031 If Session("gllevel") >= RoleWibbley Then
1032 bAdd2Faves.Visible = True
1033 End If
1034 bRemoveFaves.Visible = False
1035 IsInQuiver(hidCTX.Value)
1036 PopFaves()
1037 End Sub
1038 Sub IsInQuiver(ByVal cid As Integer)
1039 Dim MyConnexion As SqlConnection
1040 Dim MyCmd As SqlCommand
1041 Dim MyReader As SqlDatAxxxder
1042 Dim strSQL As String ''''
1043 If Not Session("XCVSD") Is Nothing Then
1044 MyConnexion = New SqlConnection(ConfigurationManager.ConnectionStrings("XCVSDF").ConnectionString)
1045 MyConnexion.Open() '
1046 strSQL = "select SyllabusTX, ItemType from tbl_XxXxxxxxxx where XverTX=" & Session("XCVSD") & " AND SyllabusTX=" & cid & " AND IsQuiver=1 and Active=1" '//or whatever
1047 MyCmd = New SqlCommand(strSQL, MyConnexion)
1048 MyReader = MyCmd.ExecuteReader()
1049 If MyReader.HasRows Then
1050 bAdd2Faves.Visible = False
1051 bRemoveFaves.Visible = True
1052 lblInFaves.Visible = True
1053 lblInFaves.Text = getscalar("select count(syllabusTX) from tbl_XxXxxxxxxx WHERE syllabusTX=" & cid) & " favorited this"
1054 Else
1055 bAdd2Faves.Visible = True
1056 bRemoveFaves.Visible = False
1057 lblInFaves.Visible = True
1058 lblInFaves.Text = getscalar("select count(syllabusTX) from tbl_XxXxxxxxxx WHERE syllabusTX=" & cid) & " favorited this"
1059 End If
1060 MyReader.Close()
1061 MyConnexion.Close()
1062 End If
1063 End Sub
1064 Function SetPartnerIcons(ByVal MyMask) As String
1065 End Function
1066 Function doTPSText(ByVal myText) As String
1067 Dim tStr As String
1068 If myText = "" Then
1069 tStr = "<i>No teaching points at this time</i>"
1070 Else
1071 tStr = myText
1072 End If
1073 tStr = "<ul class='tps'>" & tStr
1074 tStr = Replace(tStr, vbCrLf, "")
1075 tStr = Replace(tStr, "[*]", "<li>")
1076 tStr = Replace(tStr, "<li>", "<li class='tps'>")
1077 tStr &= "</ul>"
1078 Return tStr
1079 End Function
1080 Function getSalesRankbyCaseTX(ByVal cid) As Integer
1081 Dim strSQL As String
1082 Dim MyConnexion As SqlConnection
1083 Dim MyCmd As SqlCommand
1084 Dim MyReader As SqlDatAxxxder
1085 Dim iRank As Integer
1086 iRank = 1
1087 strSQL = "select caseid, sum(quantity) as ttlQ from tbl_XxXxxx JOIN tbl_XXXxxxxxxxxxxxx ON tbl_XXXxxxxxxxxxxxx.Q7XTX = tbl_XxXxxx.Q7XTX WHERE tbl_XxXxxx.Q7XTX IS NOT NULL AND tbl_XXXxxxxxxxxxxxx.timestamp0 >=getdate()-180 GROUP BY caseTX Order by sum(quantity) DESC"
1088 MyConnexion = New SqlConnection(ConfigurationManager.ConnectionStrings("XCVSDF").ConnectionString)
1089 MyConnexion.Open()
1090 MyCmd = New SQLCommand(strSQL, MyConnexion)
1091 MyReader = MyCmd.ExecuteReader()
1092 If MyReader.HasRows Then
1093 While myReader.Read()
1094 If MyReader("caseid").ToString() = cid Then
1095 MyReader.Close()
1096 MyConnexion.Close()
1097 Return iRank
1098 Else
1099 iRank += 1
1100 End If
1101 End While '//no more movenext
1102 MyReader.Close()
1103 MyConnexion.Close()
1104 Return iRank
1105 Else
1106 MyReader.Close()
1107 MyConnexion.Close()
1108 Return 451
1109 End If
1110 End Function
1111 Sub setCartNum()
1112 Dim tCt As Integer
1113 Dim MyLabel As Label
1114 MyLabel = CType(Master.FindControl("lblCartNum"), Label)
1115 If Not MyLabel Is Nothing Then
1116 MyLabel.Text = "MyCart (" & getCartNum(Session("XCVSD")) & ")"
1117 End If
1118 End Sub
1119 Sub DoCommands(ByVal Src As Object, ByVal Args As CommandEventArgs)
1120 Dim MyConnexion As SqlConnection
1121 Dim MyCmd As SqlCommand
1122 Dim MyReader As SqlDatAxxxder
1123 Dim strSQL As String
1124 Dim tCase As Integer
1125 Dim tQty As Integer
1126 Dim tPrice As Double
1127 Dim tIType As Integer
1128 Dim tTitle As String
1129 Dim tTX As Integer
1130 Dim strWhere0
1131 Select Case (Args.CommandName)
1132 Case "Add2TCP"
1133 If Session("OrderTX") > 0 Then
1134 MyConnexion = New SqlConnection(ConfigurationManager.ConnectionStrings("XCVSDF").ConnectionString)
1135 MyConnexion.Open()
1136 strSQL = "select * from tbl_Xxxxx where Caseid=" & Session("thisCTX")
1137 MyCmd = New SQLCommand(strSQL, MyConnexion)
1138 MyReader = MyCmd.ExecuteReader()
1139 If MyReader.HasRows Then
1140 Myreader.Read()
1141 tCase = MyReader("Caseid").ToString()
1142 tPrice = MyReader("pricereg").ToString()
1143 tIType = MyReader("producttype").ToString()
1144 tTitle = MyReader("nickname").ToString()
1145 tQty = 1
1146 End If
1147 MyReader.Close()
1148 strSQL = "INSERT INTO tbl_XxXxxx (XverTX, OrderTX, Refnum, Caseid, quantity, unitprice, totalprice, itemtype, ItemTitle) VALUES (@XverTX, @OrderTX, @Refnum, @Caseid, @quantity, @unitprice, @totalprice, @itemtype, @ItemTitle);Select @@IDENTITY;"
1149 MyCmd = New SqlCommand(strSQL, MyConnexion)
1150 MyCmd.Parameters.AddWithValue("@XverTX", Session("XCVSD"))
1151 MyCmd.Parameters.AddWithValue("@OrderTX", Session("OrderTX"))
1152 MyCmd.Parameters.AddWithValue("@RefNum", "MyRefnum69")
1153 MyCmd.Parameters.AddWithValue("@Caseid", tCase)
1154 MyCmd.Parameters.AddWithValue("@quantity", tQty)
1155 MyCmd.Parameters.AddWithValue("@unitprice", tPrice)
1156 MyCmd.Parameters.AddWithValue("@totalprice", tQty * tPrice)
1157 MyCmd.Parameters.AddWithValue("@itemtype", tIType)
1158 MyCmd.Parameters.AddWithValue("@ItemTitle", tTitle)
1159 tTX = MyCmd.ExecuteScalar()
1160 Session("thisCTX") = tTX
1161 MyConnexion.Close()
1162 strSQL = STRSQL0
1163 strWhere0 = " WHERE CaseTX in (SELECT syllabusid as CaseTX from tbl_XxXxxxxxxx Where tbl_XxXxxxxxxx.isQuiver=1 AND userid=" & Session("XCVSD") & ")"
1164 Session("Where0") = strWhere0
1165 strSQL &= strWhere0 & " ORDER BY Nickname ASC"
1166 dsTCP.ConnectionString = ConfigurationManager.ConnectionStrings("XCVSDF").ConnectionString
1167 dsTCP.SelectCommand = TCP_SQL0 & " where orderid=" & session("OrderTX") & " ORDER BY cartid DESC"
1168 rptTCP.DataBind()
1169 pnlTCP.Visible = True
1170 End If
1171 Case "RemoveTCP"
1172 MyConnexion = New SqlConnection(ConfigurationManager.ConnectionStrings("XCVSDF").ConnectionString)
1173 MyConnexion.Open()
1174 strSQL = "DELETE from tbl_XxXxxx WHERE OrderTX=" & Session("OrderTX") & " AND CaseTX=" & Args.CommandArgument
1175 MyCmd = New SqlCommand(strSQL, MyConnexion)
1176 MyCmd.ExecuteNonQuery()
1177 MyConnexion.Close()
1178 dsTCP.ConnectionString = ConfigurationManager.ConnectionStrings("XCVSDF").ConnectionString
1179 dsTCP.SelectCommand = TCP_SQL0 & " where orderid=" & session("OrderTX") & " ORDER BY cartid DESC"
1180 rptTCP.DataBind()
1181 Case "MakeTCP"
1182 Session("OrderTX") = Args.CommandArgument
1183 pnlTCP.Visible = True
1184 dsTCP.ConnectionString = ConfigurationManager.ConnectionStrings("XCVSDF").ConnectionString
1185 dsTCP.SelectCommand = TCP_SQL0 & " where orderid=" & session("OrderTX") & " ORDER BY Nickname ASC"
1186 rptTCP.DataBind()
1187 dsMCP.ConnectionString = ConfigurationManager.ConnectionStrings("XCVSDF").ConnectionString
1188 dsMCP.SelectCommand = "select Orderid, refnum, Studentsnum, Termstart, Coursename, courseNumber from tbl_XXXXxxxxx where userid=" & Session("XCVSD") & " AND complete=0 and settled=0 AND ORDERTX <> " & Trim(Session("OrderTX")) & " ORDER BY refnum ASC, TermStart ASC"
1189 rptMCP.DataBind()
1190 PopTCP(Args.CommandArgument)
1191 Case "ToggleTCP"
1192 pnlAllCP.Visible = False
1193 Case "ToggleFaveHt"
1194 If bMaxFaves.Text = "Max" Then
1195 divFaves.Style("height") = "auto"
1196 bMaxFaves.Text = "Min"
1197 Else
1198 PopFaves()
1199 bMaxFaves.Text = "Max"
1200 End If
1201 Case Else
1202 End Select
1203 End Sub
1204 Sub PopTCP(ByVal myOTX)
1205 Dim MyConnexion As SqlConnection
1206 Dim MyCmd As SqlCommand
1207 Dim MyReader As SqlDatAxxxder
1208 Dim strSQL As String
1209 MyConnexion = New SqlConnection(ConfigurationManager.ConnectionStrings("XCVSDF").ConnectionString)
1210 MyConnexion.Open()
1211 strSQL = "select * from tbl_XXXXxxxxx WHERE ORderid=" & myOTX
1212 MyCmd = New SQLCommand(strSQL, MyConnexion)
1213 MyReader = MyCmd.ExecuteReader()
1214 If MyReader.HasRows Then
1215 Myreader.Read()
1216 txtTCP1_RefNum.Text = MyReader("RefNum").ToString()
1217 txtTCP1_CourseName.Text = MyReader("CourseName").ToString()
1218 txtTCP1_CourseNum.Text = MyReader("CourseNumber").ToString()
1219 txtTCP1_TermStart.Text = FormatDateTime(MyReader("TermStart"), vbShortDate)
1220 txtTCP1_StudentsNum.Text = MyReader("StudentsNum").ToString()
1221 End If
1222 MyReader.Close()
1223 MyConnexion.Close()
1224 End Sub
1225 Sub UpdateTCP(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs)
1226 Dim MyConnexion As SqlConnection
1227 Dim MyCmd As SqlCommand
1228 Dim MyReader As SqlDatAxxxder
1229 Dim strSQL As String
1230 If Session("OrderTX") Is Nothing Then
1231 Else
1232 MyConnexion = New SqlConnection(ConfigurationManager.ConnectionStrings("XCVSDF").ConnectionString)
1233 MyConnexion.Open()
1234 strSQL = "UPDATE tbl_XXXXxxxxx SET RefNum=@RefNum, CourseName=@CourseName, CourseNumber=@CourseNumber, TermStart=@TermStart, StudentsNum=@StudentsNum WHERE Orderid=" & Session("OrderTX")
1235 MyCmd = New SQLCommand(strSQL, MyConnexion)
1236 MyCmd.Parameters.AddWithValue("@RefNum", txtTCP1_RefNum.Text)
1237 MyCmd.Parameters.AddWithValue("@CourseName", txtTCP1_CourseName.Text)
1238 MyCmd.Parameters.AddWithValue("@CourseNumber", txtTCP1_CourseNum.Text)
1239 MyCmd.Parameters.AddWithValue("@TermStart", txtTCP1_TermStart.Text)
1240 MyCmd.Parameters.AddWithValue("@StudentsNum", txtTCP1_StudentsNum.Text)
1241 MyCmd.ExecuteNonQuery()
1242 MyConnexion.Close()
1243 End If
1244 End Sub
1245 Function getTitleWithBreaksByTitle(ByVal myTitle As String) As String
1246 Dim tTitle As String
1247 tTitle = myTitle
1248 If Len(tTitle) > MAX_TITLE_BEFORE_BREAK Then 'watch out for CreativeCalligraphyInvitations.com—SlideDeck X(
1249 Dim tStr As String
1250 Dim uStr As String
1251 tStr = left(tTitle, MAX_TITLE_BEFORE_BREAK)
1252 tStr = Left(tStr, InStrRev(tStr, " ") - 1)
1253 uStr = Left(tStr, InStrRev(tStr, " ") - 1)
1254 tTitle = uStr & "
" & Right(tTitle, Len(tTitle) - Len(uStr))
1255 Else
1256 tTitle = tTitle
1257 End If
1258 getTitleWithBreaksByTitle = tTitle
1259 End Function
1260 Sub DoShowCDCartFinePrint(ByVal sender As Object, ByVal e As EventArgs)
1261 Dim MyConnexion As SqlConnection
1262 Dim MyCmd As SqlCommand
1263 Dim strSQL As String
1264 MyConnexion = New SqlConnection(ConfigurationManager.ConnectionStrings("XCVSDF").ConnectionString)
1265 MyConnexion.Open()
1266 strSQL = "UPDATE tbl_XxxxxX SET ShowCDCartFinePrint = ~ShowCDCartFinePrint where gluid=" & Session("XCVSD") '//*** toggles
1267 MyCmd = New SqlCommand(strSQL, MyConnexion)
1268 MyCmd.ExecuteNonQuery()
1269 MyConnexion.Close()
1270 pnlShowCDCartFinePrint.Visible = False
1271 End Sub
1272 Sub DoDL(ByVal sender As Object, ByVal e As EventArgs)
1273 response.redirect("/downloader.aspx?cid=" & Session("thisCaseTX"))
1274 End Sub
1275 Function getShowCDCartFinePrint(ByVal myUTX As Integer) As Boolean
1276 Dim MyConnexion As SqlConnection
1277 Dim MyCmd As SqlCommand
1278 Dim strSQL As String
1279 Dim tBool As Boolean
1280 MyConnexion = New SqlConnection(ConfigurationManager.ConnectionStrings("XCVSDF").ConnectionString)
1281 MyConnexion.Open()
1282 strSQL = "SELECT ShowCDCartFinePrint FROM tbl_XxxxxX WHERE gluid=" & myUTX
1283 MyCmd = New SqlCommand(strSQL, MyConnexion)
1284 tBool = MyCmd.ExecuteScalar()
1285 MyConnexion.Close()
1286 Return tBool
1287 End Function
1288 Sub PopFaves()
1289 dsSideFave.ConnectionString = ConfigurationManager.ConnectionStrings("XCVSDF").ConnectionString
1290 dsSideFave.SelectCommand = "select cartTX, userTX, Title, Subtitle, Nickname, SyllabusTX as CaseTX, producttype, ItemType, Timestamp1, tbl_Xxxxx.author, blurb, tbl_Xxxxx.PreviewLoc from tbl_XxXxxxxxxx JOIN tbl_Xxxxx ON tbl_Xxxxx.CaseTX=tbl_XxXxxxxxxx.SyllabusTX where XverTX=" & Session("XCVSD") & " AND IsQUiver=1 AND tbl_XxXxxxxxxx.Active=1 AND tbl_XxXxxxxxxx.Purge=0 order by ProductType, ItemTitle"
1291 rptSideFave.DataBind()
1292 If rptSideFave.Items.Count = 0 Then
1293 rptSideFave.Visible = False
1294 pnlNoSideFave.Visible = True
1295 divFaves.Style.Add("height", "80px")
1296 Else
1297 rptSideFave.Visible = True
1298 pnlNoSideFave.Visible = False
1299 divFaves.Style.Add("height", SetRptFavesHeight(rptSideFave.Items.Count) & "px")
1300 End If
1301 End Sub
1302 Function SetRptFavesHeight(ByVal fCt As Integer) As String
1303 Dim tHt As Integer
1304 tHt = 1 + fCt * 36
1305 If tHt > 200 Then
1306 Return "200"
1307 Else
1308 Return tHt
1309 End If
1310 End Function
1311 Function GetAuthorLastListByCase(ByVal cid As String) As String
1312 Dim MyConnexion As SqlConnection
1313 Dim MyCmd As SqlCommand
1314 Dim MyReader As SqlDatAxxxder
1315 Dim strSQL As String
1316 Dim tList As String
1317 Dim tSQL As String
1318 tSQL = "select Left(Fname, 1) + '. ' + Lname as LName from tbl_Xxxxxxx where Authorid in (Select author from tbl_Xxxxx where caseid=" & cid & ")"
1319 tList = ""
1320 tList += Trim(getScalar(tSQL))
1321 MyConnexion = New SqlConnection(ConfigurationManager.ConnectionStrings("XCVSDF").ConnectionString)
1322 MyConnexion.Open()
1323 strSQL = "select Fname, LName from tbl_XXXXXX Join tbl_Xxxxxxx ON partItem=authorid where tbl_XXXXXX.caseid=" & cid & " And partTX = 5 order by tbl_XXXXXX.sortorder asc"
1324 MyCmd = New SqlCommand(strSQL, MyConnexion)
1325 MyReader = MyCmd.ExecuteReader()
1326 If MyReader.HasRows Then
1327 tList += ", "
1328 While MyReader.Read()
1329 tList += Left(Trim(MyReader("Fname")), 1) & ". " & Trim(MyReader("Lname")) & ", "
1330 End While
1331 tList += "~"
1332 MyReader.Close()
1333 GetAuthorLastListByCase = Replace(tList, ", ~", "")
1334 Else
1335 GetAuthorLastListByCase = tList
1336 End If
1337 MyConnexion.Close()
1338 End Function
1339 Function seekCTX(ByVal mycid As String) As String
1340 Dim tStr As String
1341 tStr = " WHERE Caseid IN ("
1342 If Not IsNumeric(mycid) Then
1343 Return " WHERE Caseid IN (666666 "
1344 End If
1345 If left(mycid, 1) = 2 Then
1346 mycid = 1 & mid(mycid, 2, len(mycid) - 1)
1347 tStr &= mycid & ", "
1348 End If
1349 If IsNumeric(mycid) And len(mycid) = 7 Then
1350 tStr &= mycid & ", "
1351 tStr &= mycid - 1 & ", "
1352 tStr &= mycid + 1 & ", "
1353 tStr &= mycid - 10 & ", "
1354 tStr &= mycid + 10 & ", "
1355 tStr &= mycid - 100 & ", "
1356 tStr &= mycid + 100 & ", "
1357 tStr &= mycid - 1000 & ", "
1358 tStr &= mycid + 1000 & ", "
1359 tStr &= mycid - 10000 & ", "
1360 tStr &= mycid + 10000 & ", "
1361 If left(mycid, 1) > 2 And left(mycid, 1) <> 4 Then '//*** Len = 6 and first digit<>1
1362 Return " WHERE tbl_Xxxxx.Caseid IN (666666)"
1363 End If
1364 If left(mycid, 1) = 4 Then
1365 If len(mycid) = 6 Then '//*** 428592 --> bye bye
1366 mycid = 1 & mycid
1367 tStr &= mycid & ", "
1368 Else
1369 Return " WHERE tbl_Xxxxx.Caseid IN (666666)"
1370 End If
1371 End If
1372 tStr &= swapChars(mycid)
1373 tStr &= "666)"
1374 Else
1375 If len(mycid) < 5 Then
1376 Return " WHERE tbl_Xxxxx.Caseid IN (666666)"
1377 End If
1378 If left(mycid, 1) > 2 And left(mycid, 1) <> 4 Then '//*** Len = 6 and first digit<>1
1379 Return " WHERE tbl_Xxxxx.Caseid IN (666666)"
1380 End If
1381 If left(mycid, 1) = 4 Then
1382 If len(mycid) = 6 Then '//*** 428592 --> bye bye
1383 mycid = 1 & mycid
1384 tStr &= mycid & ", "
1385 Else
1386 Return " WHERE tbl_Xxxxx.Caseid IN (666666)"
1387 End If
1388 End If
1389 If left(mycid, 1) = 2 Then
1390 mycid = 1 & mid(mycid, 2, len(mycid) - 1)
1391 tStr &= mycid & ", "
1392 End If
1393 If left(mycid, 1) <> 1 Then
1394 mycid = 1 & mid(mycid, 2, len(mycid) - 1)
1395 tStr &= mycid & ", "
1396 End If
1397 If len(mycid) > 7 Then
1398 myCid = Left(mycid, 7)
1399 tStr &= mycid & ", "
1400 End If
1401 If len(mycid) = 5 Then
1402 If mycid >= 10000 And mycid <= 10015 Then
1403 response.redirect("/stride/casedetail.aspx?cid=" & mycid)
1404 Else
1405 Return " WHERE tbl_Xxxxx.Caseid IN (666666)"
1406 End If
1407 End If
1408 If len(mycid) = 6 Then
1409 For nn = 0 To 9
1410 tStr &= mycid & nn.ToString & ", "
1411 Next
1412 End If
1413 tStr &= "666)"
1414 End If
1415 Return tStr
1416 End Function
1417 Function swapChars(ByVal mystr As String) As String
1418 Dim nn As Integer
1419 Dim tch1 As Char
1420 Dim tch2 As Char
1421 Dim tchX As Char
1422 Dim hStr As String = left(mystr, 2)
1423 Dim tStr As String = right(mystr, 5) '//len(str)=7 or not get here.
1424 Dim mStr As String
1425 Dim outStr As String = ""
1426 mStr = hStr
1427 For nn = 1 To 4
1428 tch1 = mid(tStr, nn, 1)
1429 tch2 = mid(tStr, nn + 1, 1)
1430 tchX = tch1
1431 tch1 = tch2
1432 tch2 = tchX
1433 outStr &= mstr & left(tStr, nn - 1) & tch1 & tch2 & right(tStr, 4 - nn) & ", "
1434 Next
1435 Return outStr
1436 End Function
1437 Function del33t(ByVal lStr As String) As String
1438 lStr = LCase(lstr)
1439 lStr = replace(lstr, "!", "1")
1440 lStr = replace(lstr, "i", "1")
1441 lStr = replace(lstr, "l", "1")
1442 lStr = replace(lstr, "z", "2")
1443 lStr = replace(lstr, "e", "3")
1444 lStr = replace(lstr, "a", "4")
1445 lStr = replace(lstr, "s", "5")
1446 lStr = replace(lstr, "f", "5")
1447 lStr = replace(lstr, "g", "6")
1448 lStr = replace(lstr, "t", "7")
1449 lStr = replace(lstr, "b", "8")
1450 lStr = replace(lstr, "q", "9")
1451 lStr = replace(lstr, "o", "0")
1452 Return lStr
1453 End Function
1454 End Class
What I do — C#
/// using System;
/// using System.Data;
/// using System.Data.Common;
/// using System.Data.SqlClient;
/// using System.Web;
/// using System.Web.SessionState;
/// using System.Web.UI;
/// using System.Web.UI.WebControls;
/// using System.Web.UI.HtmlControls;
/// using System.Configuration;
/// using System.Text;
/// using System.IO;
///
/// namespace aspnetcspage
/// {
///    ///
///    /// Summary About WDI Publishing, fed from tblNavPageContent
///    ///

///    
///    public partial class about : Page
///    {
///    protected void Page_Load(object sender, System.EventArgs e)
///       {
///       string MyPageID = "1000";
///       string strSQL = "select * from tblNavPageContent" +
///          "WHERE pgid=" + MyPageID;
///       if(!IsPostBack)
///          {
///          SqlConnection connexion = new SqlConnection();
///          SqlCommand cmd;
///          connexion.ConnectionString = "Data Source=localhost;Initial" + ///          "Catalog=**********;Integrated Security=False;User ID=****;" + ///          "password=**************;MultipleActiveResultSets=True";
///          connexion.Open();
///          cmd = new SqlCommand(strSQL, connexion);
///          DbDataReader dr = cmd.ExecuteReader();
///          
///          if(dr.HasRows)
///             {
///                while(dr.Read())
///                {
///                   litNavPageContent.Text = dr["PageContent"].ToString();
///                   Page.Title = "WDI Publishing: " +
///          "dr["PageTitle"].ToString();
///                }
///             }
///             dr.Close();
///          connexion.Close();
///          litPhone.Text ="734-867-5309";
///          litEmail.Text ="jenny@8675309.edu";
///          }
///       }
///    }
/// }
What I do — MS SQL Server
SELECT TOP 1 glomid, ArticleDate, ArticlePic, glomBlurb, Title, Subtitle, ID, Displayname from ( SELECT TOP 1 glomid, ArticleDate, ArticlePic, glomBlurb, Title, Subtitle, ID, Displayname from tbl_Xxxxxxx JOIN tbl_Xxxxx ON tbl_Xxxxxxx.Author=tbl_Xxxxx.ID WHERE (tbl_Xxxxxxx.PubDate <= getdate()) AND FEATURED=1 AND LIVE=1 AND ShowPartnerPagesOnly=0 order by ArticleDate DESC ) A UNION ALL SELECT TOP 1 glomid, ArticleDate, ArticlePic, glomBlurb, Title, Subtitle, ID, Displayname from tbl_Xxxxxxx JOIN tbl_Xxxxx ON tbl_Xxxxxxx.Author=tbl_Xxxxx.ID WHERE glomid IN ( ) UNION ALL SELECT TOP 3 glomid, ArticleDate, ArticlePic, glomBlurb, Title, Subtitle, ID, Displayname from ( SELECT TOP 3 glomid, ArticleDate, ArticlePic, glomBlurb, Title, Subtitle, ID, Displayname from tbl_Xxxxxxx JOIN tbl_Xxxxx ON tbl_Xxxxxxx.Author=tbl_Xxxxx.ID WHERE tbl_Xxxxxxx.PubDate <= getdate() AND FEATURED=1 AND tbl_Xxxxxxx.glomid NOT IN ( SELECT TOP 1 glomid from ( SELECT TOP 1 glomid from tbl_Xxxxxxx WHERE (tbl_Xxxxxxx.PubDate <= getdate()) AND FEATURED=1 AND LIVE=1 AND ShowPartnerPagesOnly=0 order by ArticleDate DESC ) A UNION SELECT TOP 1 glomid from tbl_Xxxxxxx WHERE glomid IN (3973) ) Order by ArticleDate DESC ) C


SELECT glomid from (SELECT TOP 1 * from ( SELECT TOP 1 * from tbl_Xxxxxxx WHERE (tbl_Xxxxxxx.PubDate <= getdate()) AND FEATURED=1 AND LIVE=1 AND ShowPartnerPagesOnly=0 order by ArticleDate DESC ) A UNION ALL SELECT TOP 1 * from tbl_Xxxxxxx WHERE glomid IN (3973) UNION ALL SELECT TOP 3 * from ( SELECT TOP 3 * from tbl_Xxxxxxx WHERE tbl_Xxxxxxx.PubDate <= getdate() AND FEATURED=1 AND tbl_Xxxxxxx.glomid NOT IN ( SELECT TOP 1 glomid from ( SELECT TOP 1 glomid from tbl_Xxxxxxx WHERE (tbl_Xxxxxxx.PubDate <= getdate()) AND FEATURED=1 AND LIVE=1 AND ShowPartnerPagesOnly=0 order by ArticleDate DESC ) A UNION SELECT TOP 1 glomid from tbl_Xxxxxxx WHERE glomid IN (3973) ) Order by ArticleDate DESC ) C ) D


DECLARE @CT1 as int;DECLARE @CT2 as int;DECLARE @BP1 as int;DECLARE @BP2 as int;SET @CT1 = (SELECT count(*) from tbl_Xxxxxxx where LockFirstFeatured=1);SET @CT2 = (SELECT count(*) from tbl_Xxxxxxx where LockSecondFeatured=1);SET @BP1 = (SELECT glomid from tbl_Xxxxxxx where LockFirstFeatured=1);SET @BP2 = (SELECT glomid from tbl_Xxxxxxx where LockSecondFeatured=1);if @CT1=1 BEGIN if @CT2=0 BEGIN SELECT top (4 - @CT1) live, sliderpic, glomid, ArticleDate, ArticlePic, glomBlurb, Title, Subtitle, ID, Displayname from tbl_Xxxxxxx JOIN tbl_Xxxxx ON tbl_Xxxxxxx.Author=tbl_Xxxxx.ID WHERE tbl_Xxxxxxx.glomID NOT IN (@BP1) AND tbl_Xxxxxxx.PubDate <= getdate()AND FEATURED=1 AND LIVE=1 AND ShowPartnerPagesOnly=0 order by ArticleDate DESC; END ELSE BEGIN SELECT top (4 - @CT1 - @CT2) live, sliderpic, glomid, ArticleDate, ArticlePic, glomBlurb, Title, Subtitle, ID, Displayname from tbl_Xxxxxxx JOIN tbl_Xxxxx ON tbl_Xxxxxxx.Author=tbl_Xxxxx.ID WHERE tbl_Xxxxxxx.glomID NOT IN (@BP1, @BP2) AND tbl_Xxxxxxx.PubDate <= getdate()AND FEATURED=1 AND LIVE=1 AND ShowPartnerPagesOnly=0 order by ArticleDate DESC; END END ELSE BEGIN SELECT top 4 live, sliderpic, glomid, ArticleDate, ArticlePic, glomBlurb, Title, Subtitle, ID, Displayname from tbl_Xxxxxxx JOIN tbl_Xxxxx ON tbl_Xxxxxxx.Author=tbl_Xxxxx.ID WHERE tbl_Xxxxxxx.PubDate <= getdate()AND FEATURED=1 AND LIVE=1 AND ShowPartnerPagesOnly=0 order by ArticleDate DESC; END


What I do — Javascript
// 001 var sliderIntervalId = 0;
// 002 var sliderWidth = 255;
// 003 var sliderHeight = document.documentElement.clientHeight-24;
// 004 var sliding = false;
// 005 var sliding2 = false;
// 006 var slideSpeed = 30;
// 007 var cliht
// 008 function setFootRail() {
// 009 clientht = getPlatform();
// 010 document.getElementById("qmenu").style.display="none";
// 011 document.getElementById("qmenu").style.top=(clientht-48)+'px';
// 012 document.getElementById("footrail").style.display="block";
// 013 document.getElementById("footrail").style.top=(clientht-48)+'px';
// 014 document.getElementById("footrailx").style.display="none";
// 015 document.getElementById("footrailx").style.top=(clientht-48)+'px';
// 016 document.getElementById("leftshadow").style.height=(clientht+24)+'px';
// 017 document.getElementById("rightshadow").style.height=(clientht)+'px';
// 018 document.getElementById("flyinglogo").style.left=1240 + (document.documentElement.clientWidth - 1240)/2 - 180 + 'px';
// 019 document.getElementById("flyinglogo").style.filter='alpha(opacity=' + (document.documentElement.clientWidth - 1240)/2 + ')';
// 020 document.getElementById("flyinglogo").style.opacity=(document.documentElement.clientWidth - 1440)/200;
// 021 }
// 022 function hideMask(){
// 023 document.getElementById("overlay1").style.display="none";
// 024 document.getElementById("overlay2").style.display="none";
// 025 }
// 026 function hidePanel(MyPanel){
// 027 document.getElementById("tint").style.display="none";
// 028 document.getElementById(MyPanel).style.display="none";
// 029 if(MyPanel=="tmenu")
// 030 {
// 031 navProd.src='/skins/1/images/products.png';
// 032 document.getElementById("prodicon").style.display="none";
// 033 }
// 034 }
// 035 function showPanel(MyPanel){
// 036 if(MyPanel=="qmenu")
// 037 {
// 038 document.getElementById("qmenu").style.top=(clientht-384)+'px'
// 039 document.getElementById("qmenu").style.display="block";
// 040 document.getElementById("footrail").style.display="none";
// 041 document.getElementById("footrailx").style.display="block";
// 042 document.getElementById("qmenu").style.filter="alpha(opacity=90)";
// 043 document.getElementById("qmenu").style.opacity="0.90";
// 044 }
// 045 if(MyPanel=="footrail")
// 046 {
// 047 document.getElementById("qmenu").style.display="none";
// 048 document.getElementById("footrail").style.display="block";
// 049 document.getElementById("footrailx").style.display="none";
// 050 }
// 051 if(MyPanel=="qlinksx")
// 052 {
// 053 if (document.getElementById("qlinksx").style.display=="block")
// 054 {
// 055 document.getElementById("qlinksx").style.display="none";
// 056 }
// 057 else
// 058 {
// 059 document.getElementById("qlinksx").style.display="block";
// 060 }
// 061 }
// 062
// 063
// 064 if(MyPanel=="popWibbleys")
// 065 {
// 066 document.getElementById("tint").style.display="block";
// 067 document.getElementById("popWibbleys").style.display="block";
// 068 }
// 069 if(MyPanel=="popDiscussion")
// 070 {
// 071 document.getElementById("tint").style.display="block";
// 072 document.getElementById("popDiscussion").style.display="block";
// 073 }
// 074 if(MyPanel=="popCPak")
// 075 {
// 076 if(document.getElementById("popCPak").style.display=="block")
// 077 {
// 078 document.getElementById("tint").style.display="none";
// 079 document.getElementById("popCPak").style.display="none";
// 080 }
// 081 else
// 082 {
// 083 document.getElementById("tint").style.display="block";
// 084 document.getElementById("popCPak").style.display="block";
// 085 }
// 086
// 087
// 088 }
// 089 if(MyPanel=="popCopyright")
// 090 {
// 091
// 092 document.getElementById("popCopyright").style.display="block";
// 093 }
// 094 if(MyPanel=="tmenu")
// 095 {
// 096 navProd.src='/skins/1/images/products_active.png';
// 097 document.getElementById("tmenu").style.display="block";
// 098
// 099 }
// 100 if(MyPanel=="glmenu")
// 101 {
// 102 if (document.getElementById("iMenuCP").style.display=="block")
// 103 {
// 104 document.getElementById("Menuback").style.display="none";
// 105 document.getElementById("iMenuCP").style.display="none";
// 106 }
// 107 else
// 108 {
// 109 document.getElementById("Menuback").style.display="block";
// 110 document.getElementById("iMenuCP").style.display="block";
// 111 }
// 112 }
// 113 //if(MyPanel=="topNpanel")
// 114 // if (document.getElementById("topNpanel").style.width=="777px")
// 115 // {
// 116 // document.getElementById("topNpanel").style.width="233px";
// 117 // document.getElementById("topNpanelEx").style.left="229px";
// 118 // }
// 119 // else
// 120 // {
// 121 // document.getElementById("topNpanel").style.width="777px";
// 122 // document.getElementById("topNpanelEx").style.left="777px";
// 123 // }
// 124 }
// 125 function clearPops(MyPanel){
// 126 if(MyPanel !="tmenu"){
// 127 document.images.navProd.src='/skins/1/images/products.png';
// 128 document.getElementById("tmenu").style.display="none";
// 129 document.getElementById("prodicon").style.display="none";
// 130 }
// 131 if(MyPanel !="amenu"){
// 132 document.images.navAcct.src='/skins/1/images/myaccount.png';
// 133 document.getElementById("amenu").style.display="none";
// 134 document.getElementById("accticon").style.display="none";
// 135 }
// 136 if(MyPanel !="fmenu"){
// 137 document.images.navFAQ.src='/skins/1/images/faq.png';
// 138 document.getElementById("fmenu").style.display="none";
// 139 document.getElementById("faqicon").style.display="none";
// 140 }
// 141 }
// 142 function togglePanel(MyPanel){
// 143 if(MyPanel=="tmenu")
// 144 {
// 145 clearPops(MyPanel);
// 146 if(document.getElementById("tmenu").style.display == "block")
// 147 {
// 148 document.images.navProd.src='/skins/1/images/products.png';
// 149 document.getElementById("tmenu").style.display="none";
// 150 document.getElementById("prodicon").style.display="none";
// 151
// 152 }
// 153 else
// 154 {
// 155 document.images.navProd.src='/skins/1/images/products_active.png';
// 156 document.getElementById("tmenu").style.display="block";
// 157 document.getElementById("prodicon").style.display="block";
// 158 }
// 159 }
// 160 if(MyPanel=="amenu")
// 161 {
// 162 clearPops(MyPanel);
// 163 if(document.getElementById("amenu").style.display == "block")
// 164 {
// 165 document.images.navAcct.src='/skins/1/images/myaccount.png';
// 166 document.getElementById("amenu").style.display="none";
// 167 document.getElementById("accticon").style.display="none";
// 168
// 169 }
// 170 else
// 171 {
// 172 document.images.navAcct.src='/skins/1/images/myaccount_active.png';
// 173 document.getElementById("amenu").style.display="block";
// 174 document.getElementById("accticon").style.display="block";
// 175 }
// 176
// 177 }
// 178 if(MyPanel=="fmenu")
// 179 {
// 180 clearPops(MyPanel);
// 181 if(document.getElementById("fmenu").style.display == "block")
// 182 {
// 183 document.images.navFAQ.src='/skins/1/images/faq.png';
// 184 document.getElementById("fmenu").style.display="none";
// 185 document.getElementById("faqicon").style.display="none";
// 186
// 187 }
// 188 else
// 189 {
// 190 document.images.navFAQ.src='/skins/1/images/faq_active.png';
// 191 document.getElementById("fmenu").style.display="block";
// 192 document.getElementById("faqicon").style.display="block";
// 193 }
// 194 }
// 195 }
// 196 function shade(id, ht){
// 197 if(document.getElementById(id).style.height==ht+'px')
// 198 {
// 199 document.getElementById(id).style.height='auto';
// 200 document.getElementById(id+'bar').style.top='auto';
// 201 }
// 202 else
// 203 {
// 204 document.getElementById(id).style.height=ht+'px';
// 205 document.getElementById(id+'bar').style.top=ht+'px';
// 206 }
// 207 }
// 208 function shadeFav(ht){
// 209 if(document.getElementById('fav').style.height==ht+'px')
// 210 {
// 211 document.getElementById('fav').style.height='auto';
// 212 document.getElementById('favbar').style.top='auto';
// 213 }
// 214 else
// 215 {
// 216 document.getElementById('fav').style.height=ht+'px';
// 217 document.getElementById('favbar').style.top=ht+'px';
// 218 }
// 219 }
// 220 function shadeMCP(ht){
// 221 if(document.getElementById('mcp').style.height==ht+'px')
// 222 {
// 223 document.getElementById('mcp').style.height='auto';
// 224 document.getElementById('mcpbar').style.top='auto';
// 225 }
// 226 else
// 227 {
// 228 document.getElementById('mcp').style.height=ht+'px';
// 229 document.getElementById('mcpbar').style.top=ht+'px';
// 230 }
// 231 }
// 232 function Slide()
// 233 {
// 234 if(sliding)
// 235 return;
// 236 sliding = true;
// 237 document.getElementById('topNpanelEx').style.display="none";
// 238 if(sliderWidth == 255)
// 239 {
// 240 //alert('SlideOutRun');
// 241 sliderIntervalId = setInterval('SlideOutRun()', 10);
// 242 }
// 243 else
// 244 {
// 245 //alert('SlideInRun');
// 246 sliderIntervalId = setInterval('SlideInRun()', 10);
// 247 }
// 248 }
// 249 function Slide2()
// 250 {
// 251 if(sliding2)
// 252 return;
// 253 sliding2 = true;
// 254 document.getElementById('RecAddEx').style.display="none";
// 255 if(sliderWidth == 255)
// 256 {
// 257 //alert('SlideOutRun');
// 258 sliderIntervalId = setInterval('SlideOutRun2()', 10);
// 259 }
// 260 else
// 261 {
// 262 //alert('SlideInRun');
// 263 sliderIntervalId = setInterval('SlideInRun2()', 10);
// 264 }
// 265 }
// 266 function Slide3()
// 267 {
// 268 if(sliding)
// 269 return;
// 270 sliding = true;
// 271
// 272 if(sliderHeight > clientht-384)
// 273 {
// 274 document.getElementById('footrail').style.display="none";
// 275 document.getElementById('footrailx').style.display="block";
// 276 document.getElementById('qmenu').style.display="block";
// 277 document.getElementById('qmenu').style.top=clientht-42 + 'px';
// 278
// 279 sliderIntervalId = setInterval('SlideUpRun()', 10);
// 280 }
// 281 else
// 282 {
// 283 sliderIntervalId = setInterval('SlideDownRun()', 10);
// 284 }
// 285 }
// 286 function SlideInRun()
// 287 {
// 288 slider = document.getElementById('topNpanel');
// 289 if(sliderWidth <= 255)
// 290 {
// 291 sliding = false;
// 292 sliderWidth = 255;
// 293 slider.style.width = '251px';
// 294 document.getElementById('topNpanelEx').style.display="block";
// 295 document.getElementById('topNpanelEx').style.left="256px";
// 296 clearInterval(sliderIntervalId);
// 297 }
// 298 else
// 299 {
// 300 sliderWidth -= slideSpeed;
// 301 if(sliderWidth < 255)
// 302 sliderWidth = 255;
// 303 slider.style.width = sliderWidth + 'px';
// 304 }
// 305 }
// 306 function SlideOutRun()
// 307 {
// 308 slider = document.getElementById('topNpanel');
// 309 if(sliderWidth >= 777)
// 310 {
// 311 sliding = false;
// 312 sliderWidth = 777;
// 313 slider.style.width = '777px';
// 314 document.getElementById('topNpanelEx').style.display="block";
// 315 document.getElementById('topNpanelEx').style.left="782px";
// 316 clearInterval(sliderIntervalId);
// 317 }
// 318 else
// 319 {
// 320 sliderWidth += slideSpeed;
// 321 if(sliderWidth > 777)
// 322 sliderWidth = 777;
// 323 slider.style.width = sliderWidth + 'px';
// 324 }
// 325 }
// 326 function SlideInRun2()
// 327 {
// 328 slider = document.getElementById('RecAdd');
// 329 if(sliderWidth <= 255)
// 330 {
// 331 sliding2 = false;
// 332 sliderWidth = 255;
// 333 slider.style.width = '251px';
// 334 document.getElementById('RecAddEx').style.display="block";
// 335 document.getElementById('RecAddEx').style.left="256px";
// 336 clearInterval(sliderIntervalId);
// 337 }
// 338 else
// 339 {
// 340 sliderWidth -= slideSpeed;
// 341 if(sliderWidth < 255)
// 342 sliderWidth = 255;
// 343 slider.style.width = sliderWidth + 'px';
// 344 }
// 345 }
// 346 function SlideOutRun2()
// 347 {
// 348 slider = document.getElementById('RecAdd');
// 349 if(sliderWidth >= 777)
// 350 {
// 351 sliding2 = false;
// 352 sliderWidth = 777;
// 353 slider.style.width = '777px';
// 354 document.getElementById('RecAddEx').style.display="block";
// 355 document.getElementById('RecAddEx').style.left="782px";
// 356 clearInterval(sliderIntervalId);
// 357
// 358 }
// 359 else
// 360 {
// 361 sliderWidth += slideSpeed;
// 362 if(sliderWidth > 777)
// 363 sliderWidth = 777;
// 364 slider.style.width = sliderWidth + 'px';
// 365 }
// 366 }
// 367 function SlideUpRun()
// 368 {
// 369 clientht = document.documentElement.clientHeight;
// 370 slider = document.getElementById('qmenu');
// 371 if(sliderHeight <= (clientht-384))
// 372 {
// 373 sliding = false;
// 374 sliderHeight = clientht-384;
// 375 slider.style.top = clientht-384 + 'px';
// 376 clearInterval(sliderIntervalId);
// 377 document.getElementById('footrailx').style.display="block";
// 378
// 379 }
// 380 else
// 381 {
// 382 sliderHeight -= slideSpeed;
// 383 if(sliderHeight < clientht-384)
// 384 sliderHeight = clientht-384;
// 385 slider.style.top = sliderHeight + 'px';
// 386 //slider2.style.top = sliderHeight + 'px';
// 387 //alert(slider.style.height);
// 388 }
// 389 }
// 390 function SlideDownRun()
// 391 {
// 392 clientht = document.documentElement.clientHeight;
// 393 slider = document.getElementById('qmenu');
// 394 if(sliderHeight >= clientht-24)
// 395 {
// 396 sliding = false;
// 397 sliderHeight = clientht;
// 398 slider.style.top = clientht + 'px';
// 399 clearInterval(sliderIntervalId);
// 400 setFootRail();
// 401 }
// 402 else
// 403 {
// 404 sliderHeight += slideSpeed;
// 405 if(sliderHeight > clientht-24){
// 406 sliderHeight = clientht-24;
// 407 }
// 408 slider.style.top = sliderHeight + 'px';
// 409 //slider2.style.top = sliderHeight + 'px';
// 410
// 411 }
// 412 }
// 413 function SearchBoxFocus(){
// 414 if (document.forms[0].txtSearch.value == 'Search Catalog'){
// 415 document.forms[0].txtSearch.value='';
// 416 document.forms[0].txtSearch.style.color='#000000';
// 417 }
// 418 }
// 419 function EmailBoxFocus(){
// 420 if (document.forms[0].txtEmail.value == 'Enter your email address'){
// 421 document.forms[0].txtEmail.value='';
// 422 document.forms[0].txtEmail.style.color='#000000';
// 423 }
// 424 }
// 425 function CPBoxFocus(){
// 426 alert(document.getElementById('txtCPBox').value);
// 427 if (document.getElementById('txtCPBox').value == 'Contact information for CoursePack provider'){
// 428 document.getElementById('txtCPBox').txtCPBox.value='';
// 429 document.getElementById('txtCPBox').style.color='#000000';
// 430 }
// 431 }
// 432 function getPlatform (){
// 433 if (navigator.platform =='iPad' || navigator.platform =='iPhone')
// 434 clientht = window.innerHeight;
// 435 else
// 436 clientht = document.documentElement.clientHeight;
// 437 return clientht;
// 438 }
//
What I do — CSS
.acbg {text-align:center;font-weight:normal;background-image:url(/phcr/images/detailheaderback1.png);background-size:100% 100%;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;font-family:"Arial Rounded MT Bold", "Lucida Grande", Arial;}

.acpagent {text-align:left;font-weight:normal;font-family:"Source Sans Pro", Sans-Serif;font-size:9pt;color:#666666;padding-left:0px;}

.acpauthor {text-align:left;font-weight:normal;font-family:"Source Sans Pro", Sans-Serif;font-size:9pt;color:#000000;padding-left:2px;}

.acplabel{background-color:Transparent;color:#aaaaaa;font-family:"Source Sans Pro", Sans-Serif;font-size:10pt;}

.acptitle {text-align:left;font-weight:normal;font-family:"Source Sans Pro", Sans-Serif;font-size:11pt;line-height:11pt;color:#000000;padding-left:2px;}

.adoptmenuitem {background-color:Transparent;border:none;}

.adoptmenuitem:hover {background-color:#f7fcec;border-bottom:solid 1px #757b64;}

.albg {text-align:left;font-weight:normal;background-image:url(/phcr/images/detailheaderback1.png);background-size:100% 100%;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;font-family:"Arial Rounded MT Bold", "Lucida Grande", Arial;}

.albgx {text-align:left;font-weight:normal;background-image:url(/phcr/images/detailheaderback1.png);border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;font-family:"Arial Rounded MT Bold", "Lucida Grande", Arial;}

.alt0 {background-color:#eeeeee;}

.arbg {text-align:right;font-weight:normal;background-image:url(/phcr/images/detailheaderback1.png);background-size:100% 100%;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;font-family:"Arial Rounded MT Bold", "Lucida Grande", Arial;}

.arbgd {text-align:right;font-weight:normal;background-image:url(./images/diagonalrule.png);background-size:100% 100%;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;font-family:"Arial Rounded MT Bold", "Lucida Grande", Arial;}

.auth1{position:relative;background-color:#c6c2b6;padding-left:4px;width:180px;float:right;text-align:left;padding-right:4px;border-left:solid 1px #bbb8aa;border-bottom:solid 1px #aaa799;}

.auth2{position:relative;background-color:#b5b1a5;padding-left:4px;width:180px;float:right;text-align:left;padding-right:4px;border-left:solid 1px #aaa799;border-bottom:solid 1px #999688;}

.authdiv {background-color:#f8f8f8;border:solid 1px #dce0df;}

.authdiv:hover {background-color:#dce0df;border:solid 1px #aba060;}

.authdiv2 {background-color:#e4e4e4;border:solid 1px #dce0df;}

.authdiv2:hover {background-color:#c8cccb;border:solid 1px #959e9c;}

.authdivW {background-color:#ffffff;border:solid 1px #dce0df;}

.authdivW:hover {background-color:#fff9d9;border:solid 1px #aba060;}

.bigmoney{background-color:#ffffcc;border-left:solid 0px #9EBFD9;border-top:solid 2px #006600;color:#006600;font-family:"Source Sans Pro", Sans-Serif;font-size:17pt;font-weight:bold;text-align:right;vertical-align:top;padding-top:2px;padding-right:2px;}

.bigred{color:#ff0000;font-weight:bold;background-color:#ffFFaa;font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;}

.bigtime {font-family:"andale mono", "Courier New";background-color:Black;color:#66FF00;font-size:23pt;font-weight:bold;}

.blurbB{font-family:"Source Sans Pro", Sans-Serif;font-size:9pt;font-weight:bold;color:#000000;text-align:left;}

.canxbutton1 {font-size:13pt;font-family:"Source Sans Pro", Sans-Serif;color:#990000;font-weight:bold;background-color:#ccaaaa;}

.carthdr1{position:relative;left:0px;background-image:url(/phcr/images/detailheaderback1.png);background-color:#bfcfd6;font-family:"Source Sans Pro", Sans-Serif;font-size:17pt;font-weight:normal;color:#022951;text-transform:uppercase;line-height:23pt;height:24px;white-space:normal;padding:4px 4px 4px 8px;border-top:none;}

.cartnum{font-family:"Arial Black";font-size:13pt;color:White;}

.caseauthor{font-family:"Source Sans Pro", Sans-Serif;color:#8f7648;font-size:13pt;font-weight:bold;font-style: italic;}

.caseauthor{font-family:"Source Sans Pro", Sans-Serif;color:#026590;font-size:10pt;line-height:12pt;font-weight:bold;font-style: normal;}

.caseauthor2{font-family:"Source Sans Pro", Sans-Serif;color:#00274c;font-size:9pt;line-height:10pt;font-weight:normal;font-style: normal;}

.caseauthorZ{font-family:"Source Sans Pro", Sans-Serif;color:#121212;font-size:13pt;font-weight:bold;font-style: italic;}

.casedesc{font-size:10pt;line-height:12pt;color:#231f20;margin-top:8px;}

.casedescCPX{font-family:"Source Sans Pro", Sans-Serif;font-size:10pt;line-height:11pt;color:#231f20;margin-top:8px;}

.casesubttl{font-family:"Source Sans Pro", Sans-Serif;color:#8f7648;font-size:17pt;font-weight:normal;}

.casesubttlZ{font-family:"Source Sans Pro", Sans-Serif;color:#121212;font-size:13pt;line-height:14pt;font-weight:normal;}

.casetitle {text-align:left;font-weight:bold;font-family:"Source Sans Pro", Sans-Serif;font-size:11pt;line-height:13pt;padding-left:0px;color:#343535;text-decoration:none;margin-top:4px;}

.casetitle2 {text-align:left;font-weight:bold;font-family:"Source Sans Pro", Sans-Serif;font-size:10pt;line-height:12pt;padding-left:0px;color:#343535;text-decoration:none;}

.casetitle3 {text-align:left;font-weight:normal;font-family:"Source Sans Pro", Sans-Serif;font-size:10pt;line-height:12pt;padding-left:0px;color:#343535;text-decoration:none;}

.casetitleCPX{font-family:"Source Sans Pro", Sans-Serif;font-size:10pt;line-height:11pt;}

.casettl{font-family:"Source Sans Pro", Sans-Serif;color:#8f7648;font-size:17pt;font-weight:bold;}

.casettlZ{font-family:"Source Sans Pro", Sans-Serif;color:#121212;font-size:15pt;line-height:15pt;font-weight:bold;}

.cbg {text-align:center;font-weight:bold;background-color:#dddddd;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;}

.cdhdr {position:relative;left:-2px;text-align:right;background-image:url(/phcr/images/detailheaderback1.png);background-color:#bfcfd6;width:1008px;height:24px;float:left;white-space:normal;padding:4px 8px 4px 4px;border:solid 1px #6994a7;border-top:none;margin-bottom:8px;margin-top:0px;}

.cdhdr12 {position:relative;left:-1px;text-align:right;background-image:url(/phcr/images/detailheaderback1-1260.png);background-color:#bfcfd6;width:1247px;height:24px;float:left;white-space:normal;padding:0px 8px 8px 4px;border:solid 1px #6994a7;border-top:none;margin-bottom:8px;margin-top:0px;}

.cdhdrf {text-align:right;background-image:url(/phcr/images/detailheaderback1.png);background-color:#bfcfd6;height:24px;white-space:normal;padding:4px 8px 4px 4px;border:solid 1px #6994a7;border-top:none;margin-bottom:8px;margin-top:0px;}

.cfh1 {font-family:"Source Sans Pro", Sans-Serif;font-size:19pt;font-weight:bold;color:#0066aa;text-transform:uppercase;line-height:23pt;background-color:Transparent;margin-top:0px;}

.cfh2 {font-family:"Source Sans Pro", Sans-Serif;font-size:17pt;font-weight:bold;color:#8f7648;}

.cfh3 {font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;font-weight:bold;color:#022951;}

.cfh4 {font-family:"Source Sans Pro", Sans-Serif;font-size:12pt;font-style:italic;font-weight:bold;color:#022951;}

.cfwtext{font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;color:white;}

.chkhd0{float:left;clear:both;width:966px;height:28px;background-color:#f8f8f8;margin-bottom:4px;padding:2px;border:solid 0px #6d8b69;}

.chkhd0err{float:left;clear:both;width:666px;height:14px;background-color:Transparent;margin-bottom:4px;padding:0px;border:solid 0px #6d8b69;}

.chkhd0x{float:left;clear:both;width:430px;height:28px;background-color:#f8f8f8;margin-bottom:4px;padding:2px;border:solid 0px #6d8b69;}

.chkhd1{float:left;width:166px;height:24px;background-color:#dce0df;text-align:right;font-weight:bold;color:#445741;font-family:"Source Sans Pro", Sans-Serif;margin-right:4px;padding:2px;}

.chkhd1err{float:left;width:64px;height:12px;background-color:#dce0df;text-align:right;font-weight:bold;color:#445741;font-family:"Source Sans Pro", Sans-Serif;margin-right:4px;padding:2px;}

.chkhd1x{float:left;width:96px;height:24px;background-color:#dce0df;text-align:right;font-weight:bold;color:#445741;font-family:"Source Sans Pro", Sans-Serif;margin-right:4px;padding:2px;}

.chkhd2{float:left;width:700px;height:24px;background-color:#f8f8f8;text-align:left;font-weight:bold;color:#445741;font-family:"Source Sans Pro", Sans-Serif;padding:2px;border:dotted 0px #cccccc;}

.chkhd2err{float:left;width:500px;height:12px;background-color:Transparent;text-align:left;font-weight:bold;color:#445741;font-family:"Source Sans Pro", Sans-Serif;padding:2px;}

.chkhd2x{float:left;width:128px;height:48px;background-color:#f8f8f8;text-align:left;font-weight:bold;color:#445741;font-family:"Source Sans Pro", Sans-Serif;padding:2px;}

.clearfix {float:none;clear:both;}

.clr {clear:both;}

.countOf{font-family:"Source Sans Pro", Sans-Serif;font-size:12pt;color:#ffffff;font-weight:bold;}

.cp {text-align:center;font-weight:normal;}

.cpakcode{font-size:17pt;font-family:"Courier New", Arial, Sans-Serif;font-weight:bold;vertical-align:middle;text-align:right;padding-left:4px;border:solid 1px #999999;}

.cpbc {font-family:"Source Sans Pro", Sans-Serif;font-size:12pt;color:#231f20;font-weight:bold;vertical-align:top;}

.credtext {font-family:"times new roman", times, serif;font-size:13pt;color:#006600;font-style:italic;}

.ct1{position:relative;top:0px;background-color:#adb8c4;padding-left:4px;width:722px;}

.ct2{position:relative;top:0px;background-color:#9ca6b1;padding-left:4px;width:722px;}

.ddlbx1 {background-color:#ffffff; color:#000000; padding-left:2px; text-align:left; font-family:"Source Sans Pro", Sans-Serif; font-size:8pt; font-weight:normal; height:18px; }

.ddlSearch1{font-family:"Source Sans Pro", Sans-Serif;font-weight:bold;font-size:13pt;height:22px;margin-right:16px;margin-bottom:4px;}

.desc1{background-color:#eeebd8;padding-left:4px;padding-top:8px;padding-bottom:4px;width:722px;color:#ff0000;}

.desc2{background-color:#dddac7;padding-left:4px;padding-top:8px;padding-bottom:4px;width:722px;color:#ff0000;}

.dgItem {border-bottom:#fedcba 1px solid;background-color:Fuchsia;}

.dirtHead{font-family:"Source Sans Pro", Sans-Serif;font-size:12pt;font-weight:bold;color:#000000;border-bottom:solid 0px #E8A901;vertical-align:top;padding-right:2px;}

.dtlThumb {text-align:center;background-color:#ffffff;padding-left:4px;vertical-align:baseline;}

.err1 {font-family:"Source Sans Pro", Sans-Serif;font-size:11pt;font-weight:bold;color:#AA0000;background-color:#FEEE9C;vertical-align:middle;}

.errnice{font-family:"Source Sans Pro", Sans-Serif;color:#006600;font-size:13pt;text-align:justify;font-style:italic;padding:16px;border:outset 5px #99cc99;}

.errspeedbump{font-family:"Source Sans Pro", Sans-Serif;color:Maroon;background-color:#FFFFAA;font-size:13pt;font-weight:bold;text-align:center;margin-top:8px;margin-left:24px;margin-bottom:24px;padding:24px;border:outset 5px maroon;}

.eventDate{font-family:"Arial Rounded MT Bold";font-size:15pt;color:#022951;float:left;}

.eventDur{clear:none;font-family:Serif;font-size:10pt;width:156px;text-align:center;font-style:italic;color:#333333;text-align:left;}

.eventLoc{font-family:"Source Sans Pro", Sans-Serif;font-style:normal;font-size:11pt;color:#6b1500;float:left;}

.eventTitle{font-family:"Source Sans Pro", Sans-Serif;font-size:11pt;color:#333333;float:left;}

.eventType{font-family:"Source Sans Pro", Sans-Serif;font-size:11pt;color:#333333;float:left;}

.fauthors1{padding-top:0px;height:24px;background-color:#d7c979;text-transform:uppercase;color:#024c6b;text-align:center;font-family:"Source Sans Pro", Sans-Serif;font-size:15pt;font-weight:bold;}

.fcase1{padding-top:0px;height:24px;background-color:#549ac6;text-transform:uppercase;color:White;text-align:center;font-family:"Source Sans Pro", Sans-Serif;font-size:15pt;font-weight:bold;}

.fcase2{padding-top:0px;height:24px;background-color:#549ac6;text-transform:uppercase;color:White;text-align:center;font-family:"Source Sans Pro", Sans-Serif;font-size:15pt;font-weight:bold;}

.fcase3{padding-top:0px;height:24px;background-color:#dce0df;text-transform:uppercase;color:Black;text-align:center;font-family:"Source Sans Pro", Sans-Serif;font-size:15pt;font-weight:bold;}

.fcase4{padding-top:0px;height:24px;background-color:#549ac6;text-transform:uppercase;color:White;text-align:center;font-family:"Source Sans Pro", Sans-Serif;font-size:15pt;font-weight:bold;}

.fcase5{padding-top:0px;height:24px;background-color:#a9dcf1;text-transform:uppercase;color:Black;text-align:center;font-family:"Source Sans Pro", Sans-Serif;font-size:15pt;font-weight:bold;}

.fcase6{padding-top:0px;height:24px;background-color:#8f1c00;text-transform:uppercase;color:White;text-align:center;font-family:"Source Sans Pro", Sans-Serif;font-size:15pt;font-weight:bold;}

.fcase7{padding-top:0px;height:24px;background-color:#549ac6;text-transform:uppercase;color:White;text-align:center;font-family:"Source Sans Pro", Sans-Serif;font-size:15pt;font-weight:bold;}

.fcase8{padding-top:0px;height:24px;background-color:#374635;text-transform:uppercase;color:White;text-align:center;font-family:"Source Sans Pro", Sans-Serif;font-size:15pt;font-weight:bold;}

.fcase9{padding-top:0px;height:24px;background-color:#549ac6;text-transform:uppercase;color:White;text-align:center;font-family:"Source Sans Pro", Sans-Serif;font-size:15pt;font-weight:bold;}

.fcase10{padding-top:0px;height:24px;background-color:#549ac6;text-transform:uppercase;color:White;text-align:center;font-family:"Source Sans Pro", Sans-Serif;font-size:15pt;font-weight:bold;}

.fcase11{padding-top:0px;height:24px;background-color:#ee8853;text-transform:uppercase;color:White;text-align:center;font-family:"Source Sans Pro", Sans-Serif;font-size:15pt;font-weight:bold;}

.fcase12{padding-top:0px;height:24px;background-color:#755469;text-transform:uppercase;color:White;text-align:center;font-family:"Source Sans Pro", Sans-Serif;font-size:15pt;font-weight:bold;}

.fcase13{padding-top:0px;height:24px;background-color:#755469;text-transform:uppercase;color:White;text-align:center;font-family:"Source Sans Pro", Sans-Serif;font-size:15pt;font-weight:bold;}

.fcase14{padding-top:0px;height:24px;background-color:#425d86;text-transform:uppercase;color:White;text-align:center;font-family:"Source Sans Pro", Sans-Serif;font-size:15pt;font-weight:bold;}

.fcase15{padding-top:0px;height:24px;background-color:#549ac6;text-transform:uppercase;color:White;text-align:center;font-family:"Source Sans Pro", Sans-Serif;font-size:15pt;font-weight:bold;}

.fcase16{padding-top:0px;height:24px;background-color:#ffee8f;text-transform:uppercase;color:Black;text-align:center;font-family:"Source Sans Pro", Sans-Serif;font-size:15pt;font-weight:bold;}

.fcase17{padding-top:0px;height:24px;background-color:#549ac6;text-transform:uppercase;color:White;text-align:center;font-family:"Source Sans Pro", Sans-Serif;font-size:15pt;font-weight:bold;}

.fcase18{padding-top:0px;height:24px;background-color:#549ac6;text-transform:uppercase;color:White;text-align:center;font-family:"Source Sans Pro", Sans-Serif;font-size:15pt;font-weight:bold;}

.fcase19{padding-top:0px;height:24px;background-color:#807748;text-transform:uppercase;color:White;text-align:center;font-family:"Source Sans Pro", Sans-Serif;font-size:15pt;font-weight:bold;}

.fcase20{padding-top:0px;height:24px;background-color:#a05b38;text-transform:uppercase;color:White;text-align:center;font-family:"Source Sans Pro", Sans-Serif;font-size:15pt;font-weight:bold;}

.featblurb{font-family:"Source Sans Pro", Sans-Serif;font-size:10pt;line-height:11pt;color:#231f20;margin-top:8px;}

.featdiv:hover {background-color:#fff9d9;border:solid 1px #807748;}

.featdiv{background-color:Red;border:solid 1px #dce0df;}

.feattitle {text-align:left;font-weight:bold;font-family:"Source Sans Pro", Sans-Serif;font-size:11pt;line-height:12pt;padding-left:0px;color:#343535;text-decoration:none;margin-top:4px;}

.finetext {font-family:"Source Sans Pro", Sans-Serif;font-size:9pt;color:#000000;line-height:10pt;}

.flatest{padding-top:0px;height:24px;background-color:#f4af8c;text-transform:uppercase;color:Black;text-align:center;font-family:"Source Sans Pro", Sans-Serif;font-size:15pt;font-weight:bold;}

.fldFoot{font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;font-weight:normal;color:#000000;}

.fldHead{font-family:"Source Sans Pro", Sans-Serif;font-size:10pt;font-weight:bold;color:#000000;text-align:left;}

.fldHeadC{font-family:"Lucida Grande", Arial, Sans-Serif;font-size:11px;font-weight:bold;color:#000000;text-align:center;}

.glblurb1 {text-align:left;font-family:"Source Sans Pro", Sans-Serif;font-size:12pt;color:black;}

.glblurb2 {font-family:"Source Sans Pro", Sans-Serif;text-align:left;font-size:12pt;color:black;}

.glblurb3 {font-family:"Source Sans Pro", Sans-Serif;text-align:left;font-size:12pt;color:black;}

.glblurb3p {font-family:"Source Sans Pro", Sans-Serif;text-align:left;font-size:12pt;color:black;}

.globtext{font-family:"Source Sans Pro", Sans-Serif;font-size:12pt;color:#000000;}

.gltype1 {font-family:"Source Sans Pro", Sans-Serif;text-align:right;font-size:17pt;color:#00b6db;}

.gltype2 {font-family:"Source Sans Pro", Sans-Serif;text-align:right;font-size:17pt;color:#7CBD70;}

.gltype3 {font-family:"Source Sans Pro", Sans-Serif;text-align:right;font-size:17pt;color:#AE3225;}

.gltype3p {font-family:"Source Sans Pro", Sans-Serif;text-align:left;font-size:17pt;color:#9F2EA0;}

.glusername {text-align:left;vertical-align:top;font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;font-weight:bold;padding-left:4px;padding-right:4px;color:#FF3300;}

.gveditbox{font-size:17pt;font-family:"Source Sans Pro", Sans-Serif;font-weight:bold;vertical-align:middle;text-align:right;padding-left:4px;border:solid 1px #999999;}

.gvh1 {font-family:"Source Sans Pro", Sans-Serif;font-size:24pt;font-weight:normal;color:#022951;text-transform:uppercase;line-height:24pt;background-color:Transparent;margin-top:-4px;}

.gvh2 {font-family:"Source Sans Pro", Sans-Serif;font-size:19pt;font-weight:normal;color:#8f7648;}

.gvh3 {font-family:"Source Sans Pro", Sans-Serif;font-size:15pt;font-weight:normal;color:#022951;}

.gvh4 {font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;font-style:normal;font-weight:bold;color:#022951;}

.gvli {font-family:"Source Sans Pro", Sans-Serif;font-size:11pt;color:#017b94;}

.gvtxtbox{font-size:17pt;font-family:"Source Sans Pro", Sans-Serif;font-weight:bold;vertical-align:middle;text-align:left;padding-left:4px;}

.gvul{margin-top:4px;}

.gvwtext{font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;color:white;}

.headrblu{background-color:#022951;font-family:"Source Sans Pro", Sans-Serif;font-size:17pt;color:White;height:24px;padding-left:8px;padding-right:8px;}

.isbn0 {float:left;margin-right:8px;font-family:Courier;font-size:8pt;font-weight:bold;color:#330033;background-color:#cccccc;padding:2px;}

.isbn1 {float:left;margin-right:8px;font-family:"andale mono";font-size:9pt;color:#003333;background-color:#ffffff;padding:2px;}

.isbn2 {float:left;margin-right:8px;font-family:"andale mono";font-size:9pt;color:#003300;background-color:#ffffff;padding:2px;}

.IsInCart{color:#62bb46;font-size:13pt;font-weight:bold;padding-right:4px;}

.keeper{border-left:solid 0px #c0ecf7;border-right:solid 1px #00b6db;border-bottom:solid 1px #00b6db;background-color:#00b6db;padding-top:0px;padding-bottom:4px;}

.keyHead{font-family:"Source Sans Pro", Sans-Serif;font-size:12pt;font-weight:normal;color:#000000;border-bottom:solid 0px #E8A901;padding-left:0px;}

.lblcounted{font-family:"Source Sans Pro", Sans-Serif;font-size:12pt;color:#ffffff;font-weight:bold;}

.legend{font-family:"Arial Rounded MT Bold";font-size:15pt;color:#2e3a2c;}

.list_carousel {background-color:#f8f8f8;margin:0 0 0px 0px;width:1230px;height:192px;border:dotted 0px lime;}

.list_carousel li {font-size:36px;color:#999;text-align:center;background-color:#f8f8f8;border:5px solid #999;width:377px;height:192px;padding:0;margin:0px;display:block;float:left;}

.list_carousel ul {margin:0;padding:0;list-style:none;display:block;}

.list_carousel.responsive {width:auto;margin-left:0;}

.macbg {text-align:center;font-weight:normal;background-image:url(/phcr/images/detailheaderback1.png);background-size:100% 100%;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;font-family:"Arial Rounded MT Bold", "Lucida Grande", Arial;font-size:10pt;}

.magicDDL {background-color:Transparent; color:#000000; padding-left:2px; text-align:left; font-family:"Source Sans Pro", Sans-Serif; font-size:10pt; font-weight:normal;}

.malbg {text-align:left;font-weight:normal;background-image:url(/phcr/images/detailheaderback1.png);background-size:100% 100%;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;font-family:"Arial Rounded MT Bold", "Lucida Grande", Arial;font-size:10pt;}

.malbgx {text-align:left;font-weight:normal;background-image:url(/phcr/images/detailheaderback1.png);border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;font-family:"Arial Rounded MT Bold", "Lucida Grande", Arial;font-size:10pt;}

.marbg {text-align:right;font-weight:normal;background-image:url(/phcr/images/detailheaderback1.png);background-size:100% 100%;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;font-family:"Arial Rounded MT Bold", "Lucida Grande", Arial;font-size:10pt;}

.menutint {position:absolute;left:0px;top:0px;width:100%;height:100%;display:block;background-color:#010101;z-index:998;opacity:0.01;filter:alpha(opacity=1);vertical-align:middle;text-align:center;}

.money-phcr{color:#445741;font-weight:bold;font-size:11pt;font-family:"Source Sans Pro", Sans-Serif;}

.money-wdp{color:#445741;font-weight:bold;font-size:11pt;font-family:"Source Sans Pro", Sans-Serif;}

.money{background-color:#ffffff;border-left:solid 0px #9EBFD9;border-bottom:solid 0px #00b6db;color:#006600;font-family:Monospace;font-size:13pt;text-align:right;vertical-align:top;padding-top:2px;padding-right:2px;}

.msg1{background-color:#eeebd8;padding-left:4px;padding-top:8px;padding-bottom:12px;width:710px;color:#ff0000;}

.msg2{background-color:#dddac7;padding-left:4px;padding-top:8px;padding-bottom:4px;width:710px;color:#ff0000;}

.mtrx1{background-color:Black;color:Lime;font-family:"andale mono", Monospace;font-size:10pt;text-align:right;}

.myDDL {background-color:#ffffff; color:#000000; padding-left:2px; text-align:left; font-family:"Source Sans Pro", Sans-Serif; font-size:10pt; font-weight:normal; }

.myDDL10 {background-color:#ffffff; color:#000000; padding-left:2px; text-align:left; font-family:"Source Sans Pro", Sans-Serif; font-size:10pt; font-weight:normal; height:24px; }

.myDDL10y {background-color:#ffffee; color:#000000; padding-left:2px; text-align:left; font-family:"Source Sans Pro", Sans-Serif; font-size:10pt; font-weight:normal; height:24px; }

.myDDL11b {background-color:#e9f6c8; color:#000000; padding-left:2px; text-align:left; font-family:"Source Sans Pro", Sans-Serif; font-size:10pt; font-weight:bold; height:28px; }

.myDDL13 {background-color:#ffffff; color:#000000; padding-left:2px; text-align:left; font-family:"Source Sans Pro", Sans-Serif; font-size:11pt; font-weight:normal; height:24px; }

.myglmenuitem {background-color:Transparent;border:none;}

.myglmenuitem:hover {background-color:#f9f7f8;border-bottom:solid 1px #807748;}

.newsdiv {background-color:#f8f8f8;padding:8px;border-bottom:solid 2px #dce0df;}

.newsdiv:hover {background-color:#dce0df;padding:8px;border-bottom:solid 2px #959e9c;}

.next {float:right;margin-right:10px;}

.overlay{ background:transparent url(/images/overlay.png) repeat top left; position:fixed; top:0px; bottom:0px; left:0px; right:0px;}

.pagehdr1{position:relative;left:-2px;background-image:url(/phcr/images/detailheaderback1.png);background-color:#bfcfd6;font-family:"Source Sans Pro", Sans-Serif;font-size:21pt;font-weight:normal;color:#022951;text-transform:uppercase;line-height:23pt;width:1008px;height:24px;float:left;white-space:normal;padding:4px 4px 4px 8px;border:solid 1px #6994a7;border-top:none;margin-bottom:8px;}

.pager {float:left;width:300px;text-align:center;}

.pager a {margin:0 5px;text-decoration:none;}

.pager a.selected {text-decoration:underline;}

.paybutton1 {font-size:13pt;font-family:"Source Sans Pro", Sans-Serif;color:#006600;font-weight:bold;background-color:Lime;}

.paybutton1phcr {font-size:11pt;font-family:"Source Sans Pro", Sans-Serif;color:#006600;font-weight:bold;}

.paybutton2{font-size:13pt;font-family:"Source Sans Pro", Sans-Serif;font-weight:bold;color:#006600;background-color:#ffFF66;}

.paybutton2phcr{font-size:11pt;font-family:"Source Sans Pro", Sans-Serif;font-weight:bold;color:#006600;background-color:#ffFF66;}

.PayForm{font-family:"Source Sans Pro", Sans-Serif;font-size:12pt;background-color:#FFFFCC;height:18px;}

.pbold {font-weight:bold;font-style:italic;}

.phcrDate {font-family:Monospace;color:#425d86;font-size:10pt;}

.phcreditbox{font-size:10pt;font-family:"Source Sans Pro", Sans-Serif;font-weight:bold;vertical-align:middle;text-align:right;padding-left:4px;border:solid 1px #999999;background-color:#e9f6c8;}

.phcreditbox{font-size:10pt;font-family:"Source Sans Pro", Sans-Serif;font-weight:bold;vertical-align:middle;text-align:right;padding-left:4px;border:solid 1px #999999;background-color:#e9f6c8;}

.phcreditbox22{width:196px;height:22px;font-size:8pt;font-family:"Source Sans Pro", Sans-Serif;font-weight:bold;vertical-align:middle;text-align:left;padding-left:4px;border:solid 1px #999999;background-color:#e9f6c8;}

.phcreditbox22ro{width:196px;height:22px;font-size:8pt;font-family:"Source Sans Pro", Sans-Serif;font-weight:bold;vertical-align:middle;text-align:left;padding-left:4px;border:solid 1px #d8e5b7;background-color:#f8f8f8;color:#595728}

.phcreditboxl{font-size:10pt;font-family:"Source Sans Pro", Sans-Serif;font-weight:bold;vertical-align:middle;text-align:left;padding-left:4px;border:solid 1px #999999;background-color:#e9f6c8;}

.phcreditboxlblu{font-size:10pt;font-family:"Source Sans Pro", Sans-Serif;font-weight:bold;vertical-align:middle;text-align:left;padding-left:4px;border:solid 1px #999999;background-color:#ddf3fd;}

.phcrtxtbox{font-size:10pt;font-family:"Source Sans Pro", Sans-Serif;font-weight:bold;vertical-align:middle;text-align:left;padding-left:4px;}

.plaincontent{padding:48px 24px 24px 24px;}

.pnlEdu {width:1600px;min-height:421px;background:url(/phcr/images/phcr-background1.png) no-repeat;border:solid 0px red;text-align:center;margin-left:auto;margin-right:auto;}

.pnlLrn {width:1600px;min-height:421px;background:url(/phcr/images/phcr-background1.png) no-repeat;border:solid 0px red;text-align:center;margin-left:auto;margin-right:auto;}

.pnlTour {position:absolute;left:500px;top:333px;width:258px;min-height:127px;border:solid 0px red;margin-left:auto;margin-right:auto;}

.prev {float:left;margin-left:10px;}

.prod1{background-color:#eeebd8;padding-left:4px;width:542px;}

.prod2{background-color:#dddac7;padding-left:4px;width:542px;}

.prodline {float:right;width:666px;border-top:solid 0px #a8cce2;text-align:right;margin-top:5px;}

.qmenu{font-family:"Lucida Grande";color:White;font-size:12pt;}

.quant {background-color:#ffffff;text-align:right;padding-top:2px;padding-right:8px;font-family:Monospace;font-weight:normal;font-size:12pt;color:black;height:12px;width:16px;}

.quantp {background-color:#f8f8f8;text-align:right;padding-top:2px;padding-right:2px;font-family:Monospace;font-weight:normal;font-size:10pt;color:black;height:12px;width:16px;}

.quantpx{background-color:#e5e9e8;text-align:right;padding-top:2px;padding-right:2px;font-family:Monospace;font-weight:normal;font-size:10pt;color:black;height:12px;width:16px;}

.quantx{background-color:#eeeeee;text-align:right;padding-top:2px;padding-right:8px;font-family:Monospace;font-weight:normal;font-size:12pt;color:black;height:12px;width:16px;}

.rb2{font-family:"Source Sans Pro", Sans-Serif;text-align:right;font-weight:bold;font-size:14pt;color:#022951;background-color:#fefefe;border-bottom:#aaaaaa 0px solid;border-right:#bbbbbb 0px solid;}

.rb2phcr{text-align:right;font-weight:bold;font-size:10pt;color:#022951;background-color:#e0e0e0;border-bottom:#aaaaaa 0px solid;border-right:#bbbbbb 0px solid;}

.rb3{font-family:"Source Sans Pro", Sans-Serif;text-align:right;font-weight:bold;font-family:"Source Sans Pro", Sans-Serif;font-size:11pt;color:#022951;background-color:#dddddd;border-bottom:#aaaaaa 0px solid;border-right:#bbbbbb 0px solid;padding:4px;vertical-align:top;border-bottom:solid 1px #cccccc;}

.rb3{text-align:right;font-weight:bold;font-size:10pt;color:#022951;background-color:#e0e0e0;border-bottom:#aaaaaa 0px solid;border-left:#aaaaaa 1px dotted;border-right:#bbbbbb 0px solid;}

.rb3a{text-align:right;font-weight:bold;font-size:10pt;color:#022951;background-color:Transparent;border-bottom:#aaaaaa 0px solid;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 0px solid;}

.rb3x{text-align:right;font-weight:bold;font-size:10pt;color:#022951;background-color:Transparent;border-bottom:#aaaaaa 0px solid;border-left:#aaaaaa 1px dotted;border-right:#bbbbbb 0px solid;}

.rb3z{text-align:right;font-weight:bold;font-size:10pt;color:#022951;background-color:#dce0df;border-bottom:#aaaaaa 0px solid;border-top:#aaaaaa 1px dotted;border-right:#bbbbbb 0px solid;height:4px;padding:0px;}

.rbgr2 {text-align:right;font-weight:bold;font-family:"Source Sans Pro", Sans-Serif;font-size:11pt;color:White;background-image:url(/skins/1/images/iph-gr.png);padding:4px;}

.rbgr3 {text-align:right;font-weight:bold;font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;color:White;background-color:#445741;background-image:none;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;padding:4px;}

.rbgray2 {text-align:right;font-weight:bold;font-family:"Source Sans Pro", Sans-Serif;font-size:11pt;color:White;background-image:url(/skins/1/images/iph-gray.png);padding:4px;}

.rbgray3 {text-align:right;font-weight:bold;font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;color:White;background-color:#a6c3d0;border-bottom:#aaaaaa 1px solid;border-left:#aaaaaa 1px solid;padding:4px;}

.rbgrx3 {text-align:right;font-weight:bold;font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;color:White;background-color:#a1aba0;background-image:none;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;padding:4px;}

.rbgrx4 {text-align:right;font-weight:bold;font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;color:White;background-color:#7fb4d4;background-image:none;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;padding:4px;}

.rbgrx5 {text-align:right;font-weight:bold;font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;color:White;background-color:#cc6600;background-image:none;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;padding:4px;}

.rblu2 {text-align:right;font-weight:bold;font-family:"Source Sans Pro", Sans-Serif;font-size:11pt;color:White;background-image:url(/skins/1/images/iph-blu.png);padding:4px;}

.rblu3 {text-align:right;font-weight:bold;font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;color:White;background-image:none;padding:4px;}

.rblud3 {text-align:right;font-weight:bold;font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;color:White;background-color:#024c6b;padding:4px;}

.rbor2 {text-align:right;font-weight:bold;font-family:"Source Sans Pro", Sans-Serif;font-size:11pt;color:White;background-image:url(/skins/1/images/iph-or.png);border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;padding:4px;}

.rbor3 {text-align:right;font-weight:bold;font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;color:White;background-image:none;border-bottom:#777777 1px solid;border-right:#999999 1px solid;padding:4px;}

.rbyl {text-align:right;font-weight:bold;font-size:9pt;color:#333366;background-color:#ecd184;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;}

.rbyl {text-align:right;font-weight:bold;font-size:9pt;color:#333366;background-color:#ecd184;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;}

.rbyl2 {text-align:right;font-weight:bold;font-family:"Source Sans Pro", Sans-Serif;font-size:12pt;color:#333366;background-image:url(/skins/1/images/iph-yl.png);border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;padding:4px;}

.rbyl3 {text-align:right;font-weight:bold;font-family:"Source Sans Pro", Sans-Serif;font-size:8pt;color:#333366;background-image:none;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;padding:4px;}

.relList1{font-family:"Source Sans Pro", Sans-Serif;font-size:11pt;font-weight:normal;color:#017b94;text-align:left;}

.relList2{font-family:"Source Sans Pro", Sans-Serif;font-size:11pt;font-weight:normal;color:#006600;text-align:left;}

.rpayphcr {text-align:right;font-weight:bold;font-size:11pt;background-color:#cdd7cc;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;}

.rptAuthor {text-align:left;font-weight:normal;font-family:"Source Sans Pro", Sans-Serif;font-size:9pt;color:#000000;padding-left:2px;}

.rptAuthors {text-align:left;font-weight:normal;font-family:"Source Sans Pro", Sans-Serif;font-size:9pt;color:#000000;padding-left:2px;}

.rptAuthorUIB {text-align:left;font-weight:normal;font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;color:#000099;padding-left:2px;}

.rptbluhead{text-align:right;font-weight:bold;font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;color:White;background-color:#00b6db;padding:4px;}

.rptCaseID0 {text-align:left;font-weight:normal;font-family:"Source Sans Pro", Sans-Serif;color:#582005;background-color:#ffffff;font-size:12pt;padding-right:4px;vertical-align:baseline;text-align:right;}

.rptCaseID1 {text-align:left;font-weight:normal;font-family:"Source Sans Pro", Sans-Serif;color:#582005;background-color:#e3e9eb;font-size:12pt;padding-right:4px;vertical-align:baseline;text-align:right;}

.rptDate {text-align:left;font-weight:normal;font-family:"Source Sans Pro", Sans-Serif;font-size:9pt;color:#000000;margin-right:4px;padding-left:2px;}

.rptDesc {text-align:left;font-weight:normal;font-family:"Source Sans Pro", Sans-Serif;font-size:10pt;line-height:12pt;color:#333333;margin-right:4px;border:solid 0px #ffffff;background-color:Transparent;}

.rptDescB {text-align:left;font-weight:normal;font-family:"Source Sans Pro", Sans-Serif;font-size:12pt;color:#cccccc;margin-right:4px;border:solid 0px #ffffff;background-color:Transparent;}

.rptDescT {text-align:left;font-weight:normal;font-family:"Source Sans Pro", Sans-Serif;font-size:10pt;line-height:10.5pt;color:#333333;margin-right:4px;border:solid 0px #ffffff;background-color:Transparent;}

.rptDIRT {text-align:left;font-weight:normal;font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;color:#000000;padding-left:2px;vertical-align:top;}

.rptDIRT2 {text-align:left;font-weight:normal;font-family:tahoma, Verdana, "Lucida Grande", Arial;background-color:White;color:#000000;font-size:12pt;padding-left:2px;padding-top:0px;vertical-align:top;}

.rptGeneric {text-align:left;font-weight:normal;font-family:"Source Sans Pro", Sans-Serif;font-size:12pt;color:#000000;padding-left:0px;padding-top:0px;}

.rptKey {text-align:left;font-weight:normal;font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;color:#000000;padding-left:2px;text-transform:capitalize;}

.rptLength {text-align:left;font-weight:normal;font-family:"Source Sans Pro", Sans-Serif;font-size:9pt;color:#000000;margin-right:4px;padding-left:2px;}

.rptProductType {text-align:left;font-weight:normal;font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;color:#000000;margin-right:4px;padding-left:2px;}

.rptProfessor {text-align:left;font-weight:normal;font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;color:#000000;padding-left:2px;}

.rptSubTitle {text-align:left;font-style:normal;font-weight:normal;font-family:"Source Sans Pro", Sans-Serif;font-size:11pt;padding-left:0px;color:#999999;}

.rptSubTitleSmall {text-align:left;font-style:normal;font-weight:normal;font-family:"Source Sans Pro", Sans-Serif;font-size:11pt;line-height:12pt;padding-left:0px;color:#666666;}

.rptSubTitleUIB {text-align:left;font-weight:normal;font-style:italic;font-family:serif;font-size:12pt;padding-left:0px;color:#000000;}

.rptSyllabusID0 {text-align:left;font-weight:normal;font-family:"Source Sans Pro", Sans-Serif;color:#582005;background-color:#ffffff;font-size:12pt;padding-right:4px;vertical-align:baseline;text-align:right;}

.rptSyllabusID1 {text-align:left;font-weight:normal;font-family:"Source Sans Pro", Sans-Serif;color:#582005;background-image:url(/skins/1/images/listback2.gif);font-size:12pt;padding-right:4px;vertical-align:baseline;text-align:right;}

.rptTitle {text-align:left;font-weight:bold;font-family:"Source Sans Pro", Sans-Serif;font-size:14pt;padding-left:0px;color:#000000;}

.rptTitleSmall {text-align:left;font-weight:bold;font-family:"Source Sans Pro", Sans-Serif;font-size:12pt;line-height:13pt;padding-left:0px;color:#405a6a;}

.rptTitleUIB {text-align:left;font-weight:bold;font-family:"Source Sans Pro", Sans-Serif;font-size:12pt;padding-left:0px;color:#000000;}

.schdphcr1 {background-color:#dce0df;border-bottom:solid 1px #9EBFD9;font-family:"Source Sans Pro", Sans-Serif;font-weight:bold;font-size:10pt;text-transform:uppercase;color:#022951;text-align:center;vertical-align:middle;padding-top:0px;padding-bottom:0px;height:24px;}

.scPrice {font-family:"Source Sans Pro", Sans-Serif;font-size:12pt;color:#006600;text-align:right;}

.scTotal{font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;font-weight:bold;color:#006600;text-align:right;border:solid 0px #62bb46;}

.scTotal2{font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;font-weight:bold;color:#006600;background-color:#FFFFCC;text-align:right;border:solid 0px #62bb46;}

.scTotal2l{font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;font-weight:bold;color:#006600;background-color:#FFFFCC;text-align:left;border:solid 0px #62bb46;}

.scTotalx{font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;font-weight:bold;color:#006600;text-align:right;background-color:#FFFFCC;border:solid 0px #62bb46;}

.searchdiv {background-color:#f8f8f8;border:solid 1px #dce0df;}

.searchdiv:hover {background-color:#fff9d9;border:solid 1px #807748;}

.sqlout {font-family:"andale mono", "Courier New", Monospace;color:#AECAAA;font-size:9pt;}

.SrcDocTitle{text-align:left;font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;font-weight:normal;padding-left:16px;color:white;}

.srchHist1{border-left:solid 1px #00b6db;border-right:solid 1px #00b6db;border-bottom:solid 1px #00b6db;background-color:#00b6db;padding-top:0px;padding-bottom:4px;}

.srchHist1x{border-left:solid 1px #00b6db;border-right:solid 1px #00b6db;border-bottom:solid 1px #00b6db;padding-top:0px;padding-bottom:4px;background-color:00b6db;text-align:center;}

.srchmenuitem {background-color:Transparent;border:none;}

.srchmenuitem:hover {background-color:#f1fbff;border-bottom:solid 1px #807748;}

.submoney{background-color:#ffffcc;border-left:solid 0px #9EBFD9;border-top:solid 1px #006600;color:#006600;font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;font-weight:bold;text-align:right;vertical-align:top;padding-top:2px;padding-right:2px;}

.sylClickGo {background-image:url(/skins/1/images/blackdrop.gif);background-color:white;padding:24px;border-left:#99cc66 0px solid;border-right:#aaaaaa 0px solid;border-bottom:#aaaaaa 0px solid;font-family:"times new roman", Serif;font-size:13pt;color:#000000;text-align:justify;}

.syllHist1{border-left:solid 1px #508116;border-right:solid 1px #508116;border-bottom:solid 1px #508116;padding-top:0px;padding-bottom:4px;}

.sylLineItem{padding:0px;font-family:"times new roman", Serif;font-size:13pt;color:#333333;}

.sylPreview {background-image:url(/skins/1/images/blackdrop.gif);background-color:white;padding:24px;border-left:#aaaaaa 0px solid;border-right:#aaaaaa 0px solid;border-bottom:#aaaaaa 0px solid;font-family:"times new roman", Serif;font-size:13pt;color:#000000;}

.TargDocTitle{text-align:right;font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;font-weight:normal;padding-right:16px;color:white;}

.tasktext {font-family:"Source Sans Pro", Sans-Serif;font-size:12pt;color:#444840;line-height:12pt;border-bottom:solid 1px #dce0df}

.tasktextc {font-family:"Source Sans Pro", Sans-Serif;font-size:12pt;color:#444840;line-height:12pt;text-align:center;border-bottom:solid 1px #dce0df}

.tasktextg{font-family:"Source Sans Pro", Sans-Serif;font-size:12pt;color:Lime;border-bottom:solid 1px #dce0df}

.tasktextlite{font-family:"Source Sans Pro", Sans-Serif;font-size:12pt;color:#cccccc;border-bottom:solid 1px #dce0df}

.tasktextr {font-family:"Source Sans Pro", Sans-Serif;font-size:12pt;color:#444840;line-height:12pt;text-align:right;border-bottom:solid 1px #dce0df}

.tasktextx{font-family:"Source Sans Pro", Sans-Serif;font-size:12pt;color:#444840;background-color:#ddeedd;border-bottom:solid 1px #dce0df}

.teachmenuitem {background-color:Transparent;border:none;overflow:hidden;}

.teachmenuitem:hover {background-color:#f3f1e8;border-bottom:solid 1px #512e1c;}

.teamblurb {font-family:"Source Sans Pro", Sans-Serif;color:#000000;font-size:13pt;}

.textfalse {color:#660000;background-color:#FFCCCC;font-weight:bold; }

.texttrue {color:#006600;background-color:#FFCC00; }

.timer {background-color:#999;height:6px;width:0px;}

.tintXXX {position:absolute;left:0px;top:0px;width:100%;height:100%;display:block;background-color:#111111;background-image:url(/phcr/hatchback187x-2.33.png);z-index:9998;opacity:0.98;filter:alpha(opacity=98);vertical-align:middle;text-align:center;}

.tinybutton {font-size:9pt;font-family:"Source Sans Pro", Sans-Serif;color:#000666;}

.tinyddl {font-family:"Source Sans Pro", Sans-Serif;font-size:11pt;color:#000066;background-color:#ffffcc;}

.tinylinkw {color:White;font-size:10pt;font-weight:bold;}

.tinylinkw{color:#ede1a2;font-family:"Source Sans Pro", Sans-Serif;font-size:8pt;}

.tinyMsg {font-family:"andale mono", "Courier New";color:#006600;font-size:9pt;}

.tinyMsgB {font-family:"andale mono", "Courier New";color:#00ff00;font-size:9pt;}

.tinyMsgc {font-family:"andale mono", "Courier New";color:#006600;font-size:9pt;text-align:center;}

.tinyMsgW {font-family:"andale mono", "Courier New";color:#ffffff;font-size:9pt;}

.tinyMsgx{font-family:"andale mono", "Courier New";color:#006600;font-size:9pt;background-color:#ddeedd;}

.tinytext {font-family:"Source Sans Pro", Sans-Serif;font-size:8pt;color:Gray;line-height:8pt;}

.tinytextc {font-family:"Source Sans Pro", Sans-Serif;font-size:8pt;color:Gray;line-height:8pt;text-align:center;}

.tinytextg{font-family:"Source Sans Pro", Sans-Serif;font-size:9pt;color:Lime;}

.tinytextlite{font-family:"Source Sans Pro", Sans-Serif;font-size:8pt;color:#cccccc;}

.tinytextr {font-family:"Source Sans Pro", Sans-Serif;font-size:11pt;color:Gray;line-height:11pt;text-align:right;}

.tinytextx{font-family:"Source Sans Pro", Sans-Serif;font-size:9pt;color:Gray;background-color:#ddeedd;}

.tinytime {font-family:"andale mono", "Courier New";background-color:Black;color:#ff6600;font-size:9pt;vertical-align:bottom;text-align:right;}

.title {font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;color:#990033;border-left:solid 1px #992400;border-top:solid 1px #992400;}

.TitleCell {border-right:solid 1px #cccccc;}

.titlehead {text-align:left;font-weight:bold;font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;padding-left:0px;color:#343535;text-decoration:none;}

.txbx0r {font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;height:16px;text-align:right;padding-right:2px;border:none;background-color:White;}

.txbx1 {background-color:#ffffee;color:#000066;font-family:"Source Sans Pro", Sans-Serif;font-size:11pt;height:13px;border-top:solid 1px #999999;border-left:solid 1px #999999;border-bottom:solid 1px #aaaaaa;border-right:solid 1px #cccccc;}

.txbx1r {background-color:#ffffee;color:#000066;font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;height:13px;text-align:right;padding-right:2px;border-top:solid 1px #aaaaaa;border-left:solid 1px #cccccc;border-bottom:solid 2px #999999;border-right:solid 2px #999999;}

.txbx2lbl {font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;height:16px;text-align:right;padding-right:2px;border:none;background-color:White;}

.txbx2lbll {font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;height:18px;text-align:left;padding-right: 2px;border:none;background-color:White;}

.txbxbl {background-color:#fefefe;color:#000000;font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;height:16px;border-top:solid 1px #eeeeee;border-left:solid 1px #eeeeee;border-bottom:solid 1px #dddddd;border-right:solid 1px #dddddd;padding-left:4px;padding-top:2px;}

.txglx1 {font-family:"Courier New", Monspace;font-size: 14px;text-align:left;padding:4px;border:none;color:#006600;font-weight:bold;} {font-family:"Courier New", Sans-Serif;font-size:17pt;text-align:left;padding:4px;border:none;background-color:#022951;color:#ffcf01;}

.txtQty{height:12px;width:16px;background-color:#cccccc;}

.txttcp11{background-color:Transparent;font-weight:bold;font-size:8pt;border:solid 0px #e8e2bc;padding-top:0px;}

.txttcp12{background-color:Transparent;font-weight:bold;font-size:10pt;border:solid 0px #e8e2bc;padding-top:0px;}

.txttcp13{background-color:Transparent;font-weight:bold;font-size:10pt;border:solid 0px #e8e2bc;padding-top:0px;}

.txttcp14{background-color:Transparent;font-weight:bold;font-size:11pt;border:solid 0px #e8e2bc;padding-top:0px;}

.valMsg1 {font-family:"Source Sans Pro", Sans-Serif;background-color:white;font-size:11pt;font-weight:bold;}

.valMsg2 {font-family:"andale mono", "Courier New";background-color:#ffffcc;font-size:11pt;font-weight:bold;}

.valMsg3 {font-family:"andale mono", "Courier New";background-color:#ff9933;font-size:11pt;font-weight:bold;}

.wdph1 {font-family:"Source Sans Pro", Sans-Serif;font-size:19pt;font-weight:bold;color:#003a71;text-transform:uppercase;line-height:23pt;background-color:Transparent;margin-top:0px;}

.wdph2 {font-family:"Source Sans Pro", Sans-Serif;font-size:17pt;font-weight:bold;color:#aba060;}

.wdph3 {font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;font-weight:bold;color:#022951;}

.wdph4 {font-family:"Source Sans Pro", Sans-Serif;font-size:12pt;font-style:italic;font-weight:bold;color:#022951;}

.wizard {font-family:Georgia, "times new roman", Serif; font-size:13pt; color:#3f7a34; margin-bottom:8px; }

.wrapper {background-color:#ff0000;width:480px;margin:40px auto;padding:10px;box-shadow:0 0 5px #999;}

*.cpbc {font-family:"Source Sans Pro", Sans-Serif;font-size:19pt;color:White;font-weight:bold;vertical-align:top;}*

#box2 {clear:both;background-image: none;background-repeat: no-repeat;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;margin-left: 0px;padding: 0 0 0 16px;height: 100px;width: 242px;float: left;}

#box3 {clear:both;background-image: none;background-repeat: no-repeat;margin-top: 0px;margin-right: 0px;margin-bottom: 16px;margin-left: 0px;padding: 0px;height: 100px;width: 250px;float: left;clear: none;}

#box4 {background-image: none;background-repeat: no-repeat;margin-top: 0px;margin-right: 20px;margin-bottom: 0px;margin-left: 0px;padding: 0px;height: 100px;width: 250px;float: left;clear: none;}

#end {background-image: none;background-repeat: no-repeat;margin-top: 0px;margin-right: 20px;margin-bottom: 0px;margin-left: 20px;padding: 0px;float: none;clear: both;}

#intro {width:580px;margin:0 auto;}

a {color:#017b94;text-decoration:none;}

a:hover {color:#ff6600;text-decoration:underline;}

a.anav {color:#017b94;text-decoration:none;}

a.anav:hover {color:#ff6600;text-decoration:underline;}

a.anavh {color:#017b94;text-decoration:none;}

a.anavh:hover {color:#ff6600;text-decoration:underline;}

a.caselink {color:#000000;text-indent:24px;}

a.caselink:hover {color:#ee8853;text-decoration:none;}

a.CGLinkFalse {color:#333333;}

a.CGLinkFalse:hover {color:#000066; text-decoration:none; background-color:#ffcc00;}

a.CGLinkTrue {color:#333333;}

a.CGLinkTrue:hover {color:#006633; text-decoration:none; background-color:#ccffff;}

a.errallow:hover{font-family:"andale mono", "Courier New";font-size:11pt;color:#FF0000;text-decoration:underline;}

a.errallow{font-family:"andale mono", "Courier New";font-size:11pt;color:#cc9900;text-decoration:none;}

a.errcanx {font-family:"andale mono", "Courier New";font-size:11pt;color:#339900;text-decoration:none;}

a.errcanx:hover{font-family:"andale mono", "Courier New";font-size:11pt;color:#00FF00;text-decoration:underline;}

a.GLleftnav:hover{position:absolute;left:0px;color:White;text-decoration:none;background-color:#8f7648;}

a.GLleftnav{position:absolute;left:0px;font-family:"Source Sans Pro", Sans-Serif;font-size:17pt;color:#022951;text-decoration:none;background:Transparent;display:block;padding-left:8px;line-height:19pt;width:248px;padding-top:4px;padding-bottom:4px;}

a.gllink {font-family:"Source Sans Pro", Sans-Serif; color:#017b94;}

a.gllink:hover {text-decoration:none; color:#97c40f;}

a.gllinkblack:hover {text-decoration:none; color:#97c40f;}

a.gllinkblack{font-family:"Source Sans Pro", Sans-Serif; color:black;}

a.gltype1 {font-family:"Source Sans Pro", Sans-Serif;text-align:right;font-size:17pt;color:#017b94;text-decoration:none;}

a.gltype1:hover {font-family:"Source Sans Pro", Sans-Serif;text-align:right;font-size:17pt;color:#660066;text-decoration:none;}

a.gltype2 {font-family:"Source Sans Pro", Sans-Serif;text-align:right;font-size:17pt;color:#7CBD70;}

a.gltype2:hover {font-family:"Source Sans Pro", Sans-Serif;text-align:right;font-size:17pt;color:#660066;text-decoration:none;}

a.gltype3 {font-family:"Source Sans Pro", Sans-Serif;text-align:right;font-size:17pt;color:#AE3225;}

a.gltype3:hover {font-family:"Source Sans Pro", Sans-Serif;text-align:right;font-size:17pt;color:#660066;text-decoration:none;}

a.gvlink {font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;color:#017b94;}

a.gvlink:hover {text-decoration:none; color:#97c40f;}

a.inline {font-family:"Source Sans Pro", Sans-Serif;color:#017b94;text-decoration:none;}

a.inline:hover {font-family:"Source Sans Pro", Sans-Serif;color:#97c40f;text-decoration:none;}a.prodlink {font-family:"Source Sans Pro", Sans-Serif;font-size:12pt;color:#724f10;font-weight:bold;}

a.linkbn {font-size:10pt;line-height:11pt;padding-left:16px;color:#f8f8f8;}

a.linkbn:hover {font-size:10pt;line-height:11pt;padding-left:16px;color:#ee8853;text-decoration:none;}

a.linkbnr {font-size:10pt;line-height:11pt;padding-right:16px;color:#f8f8f8;}

a.linkbnr:hover {font-size:10pt;line-height:11pt;padding-right:16px;color:#ee8853;text-decoration:none;}

a.prodlink2 {font-family:"Source Sans Pro", Sans-Serif;font-size:12pt;color:#8f7648;font-weight:normal;}

a.qlinksxe:hover{color:White;text-decoration:none;background-color:#ad9c7a;}

a.qlinksxe{font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;color:White;text-decoration:none;background:Transparent;display:block;padding-left:8px;padding-top:4px;padding-bottom:4px;width:180px;}

a.qmenu:hover{text-decoration:underline;color:#ffcc33;background-color:#adb8c4;}

a.qmenu{font-family:"Source Sans Pro", Sans-Serif;font-size:12pt;line-height:12pt;text-decoration:none;display:block;}

a.recvu {font-family:"Source Sans Pro", Sans-Serif;font-size:11pt;line-height:11pt;color:#666666;text-decoration:none;}

a.recvu:hover {font-family:"Source Sans Pro", Sans-Serif;font-size:11pt;line-height:11pt;color:#000000;text-decoration:none;}

a.teenylink {font-family:"Source Sans Pro", Sans-Serif;font-size:8pt;color:#333333;text-decoration:none;}

a.teenylink:hover{font-family:"Source Sans Pro", Sans-Serif;font-size:8pt;color:#FF0000;text-decoration:underline;}

a.tinylink {font-family:"Source Sans Pro", Sans-Serif;font-size:12pt;color:#000000;text-decoration:none;}

a.tinylink:hover{font-family:"Source Sans Pro", Sans-Serif;font-size:12pt;color:#FF0000;text-decoration:underline;}

a.Top10Vu {color:#000000;text-decoration:none;}

a.Top10Vu:hover {color:#ff6600;text-decoration:underline;}

b.bn {color:#bde8fb;font-size:10pt;line-height:13pt;padding-top:8px;}

b.bot {color:#aabbaa;font-weight:bold;}

b.CaseBold {color:#00687d;font-weight:bold;}

b.ddlTag{color:white;font-weight:bold;background-color:#B4DDE7;}

b.FalseMsg{font-family:"andale mono", "Courier New";color:#660000;background-color:#ffff99;font-weight:bold;font-size:9pt;}

b.Firefox {color:Orange;font-weight:bold;}

b.hotresult {color:Maroon;font-weight:bold;}

b.hotresult2 {color:Maroon;font-weight:bold;background-color:#ffff66;padding:0 4px 0 4px;}

b.MSIE {color:#0F527B;font-weight:bold;}

b.notresult{color:#333333;font-weight:bold;background-color:#eeeeee;}

b.qstart{font-family:Georgia, Serif;font-size:13pt;line-height:15pt;color:#ffffff;}

b.Right {text-align:right;}

b.Safari {color:#3BADD9;font-weight:bold;}

b.TrueMsg{font-family:"andale mono", "Courier New";color:#006600;background-color:#ccffcc;font-weight:bold;font-size:9pt;}

body {overflow:visible;font-family:"Source Sans Pro", Sans-Serif;font-size:11pt;color:#000000;background-color:White;height:100%;}

body.admin1 {overflow:auto;margin:0px 0px 0px 0px;background-image:url(/skins/1/images/blackdrop2.jpg);}

body.admin2 {overflow:auto;margin:0px 0px 0px 0px;background-image:url(/skins/1/images/blackdrop2c.jpg);}

body.cases1 {background-color:white;background-image:url(/skins/1/images/fakeback1.gif);background-attachment:fixed;margin-top:8px;overflow:visible;}

body.cdev {margin-top:0px;margin-left:0px;margin-right:0px;overflow:hidden;}

body.community1 {background-image:url(/skins/1/images/blackdrop.jpg);background-attachment:fixed;overflow:visible; margin-top:8px;}

body.courses1 {background-image:url(/skins/1/images/blackdrop.jpg);background-color:white;background-attachment:fixed;margin-top:8px;overflow:visible;}

body.framed1 {background-color:#abcdef;background-image:url(/skins/1/images/blackdropi.jpg);background-attachment:fixed;margin-left:0px;padding-left:48px;overflow:visible;}

body.iphone {background-color:white;background-image:url(/skins/1/images/blackdropi.jpg);background-attachment:fixed;margin-top:0px;overflow:visible;}

body.lineitem0 {background-color:White;margin-top:4px;margin-left:0px;margin-right:0px;overflow:auto;}

body.login1 {overflow:hidden;margin:0px 0px 0px 0px;background-color:white;background-image:url(/skins/1/images/blackdrop2.jpg);}

body.mystuff {background-image:url(/skins/1/images/blackdrop.jpg);background-attachment:fixed;overflow:visible; margin-top:8px;}

body.nada {overflow:hidden;margin:0px 0px 0px 0px;}

body.syllab0 {margin-top:4px;margin-left:0px;margin-right:0px;overflow:auto;}

body.syllab1 {margin-top:4px;margin-left:0px;margin-right:0px;overflow:auto;background-color:Transparent;}

body.ticker{overflow:hidden;background-color:Black;margin-left:0px;margin-top:0px;}

body.ticker2{background-color:Black;margin-left:0px;margin-top:0px;}

div {font-family:"Source Sans Pro", Sans-Serif;font-size:11pt;color:#000000;}

div {text-align:left;} Without this, IE8 assumes CENTER!!!

div.t11 {font-family:"Source Sans Pro", Sans-Serif;font-size:11pt;color:#000000;}

div.t12 {font-family:"Source Sans Pro", Sans-Serif;font-size:12pt;color:#000000;}

div.tophead {padding:8px;width:auto;height:28px;background-color:#026590;font-family:"Arial Rounded MT Bold", Arial;font-size:15pt;color:#ffee8f;}

h1.del { font-family: Arial, Helvetica, sans-serif; font-size: 36px; font-style: normal;}

h2 {font-family:"Source Sans Pro", Sans-Serif;color:#3b6188;font-weight:bold;font-size:17pt;}

h2.del { font-family: Arial, Helvetica, sans-serif; font-size: 20px; line-height: 20px; color: #000; font-style: normal; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-bottom: 16px;}

h3 {font-family:"Source Sans Pro", Sans-Serif;color:#8f7648;font-weight:bold;font-size:13pt;}

h3.del { font-family: Arial, Helvetica, sans-serif; font-size: 18px; color: #3b6188; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 14px; margin: 0px;}

h4.del { font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 18px;margin: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 14px; font-style: normal;}

img {border:none;}

img.box1 {float:left;background-image: url(/images/NVC_3.jpg);background-repeat: no-repeat;margin-top: 0px;margin-right: 20px;margin-bottom: 0px;margin-left: 20px;padding: 0px;width:250px;height: 250px;}

img.glnav{float:left;height:47px;margin:0px;}

img.ilicon {vertical-align:middle;}

input.phcremail {font-family:"Source Sans Pro", Sans-Serif;font-size:10pt;color:#333366;text-align:left;-webkit-border-radius:7px 7px 7px 7px;-moz-border-radius:7px 7px 7px 7px;border-radius:7px 7px 7px 7px;-moz-box-shadow:2px 2px 2px 2px #ccc;-webkit-box-shadow:2px 2px 2px #ccc;box-shadow:2px 2px 2px #666666; text-shadow:0 1px 0 rgba(255,255,255,.7);border:solid 1px #666666;background-color:#eeeeee;padding-left:8px;vertical-align:middle;}

input.phcrlogin {margin-left:8px;}

input.phcrlogout {margin-left:8px;}

input.phcrPW {font-family:"Source Sans Pro", Sans-Serif;font-size:10pt;color:#333366;text-align:left;-webkit-border-radius:7px 7px 7px 7px;-moz-border-radius:7px 7px 7px 7px;border-radius:7px 7px 7px 7px;-moz-box-shadow:2px 2px 2px 2px #ccc;-webkit-box-shadow:2px 2px 2px #ccc;box-shadow:2px 2px 2px #666666; text-shadow:0 1px 0 rgba(255,255,255,.7);border:solid 1px #ee8853;background-color:#eeeeee;padding-left:8px;vertical-align:middle;}

input.phcrSignup {font-family:"Source Sans Pro", Sans-Serif;font-size:10pt;color:#333366;text-align:left;-webkit-border-radius:5px 5px 5px 5px;-moz-border-radius:5px 5px 5px 5px;border-radius:5px 5px 5px 5px;-moz-box-shadow:2px 2px 2px 2px #ccc;-webkit-box-shadow:2px 2px 2px #ccc;box-shadow:2px 2px 2px #666666; text-shadow:0 1px 0 rgba(255,255,255,.7);border:solid 1px #a05b38;}

input.phcrUID {font-family:"Source Sans Pro", Sans-Serif;font-size:8pt;color:#be4920;font-weight:bold;text-align:left;-webkit-border-radius:7px 7px 7px 7px;-moz-border-radius:7px 7px 7px 7px;border-radius:7px 7px 7px 7px;-moz-box-shadow:2px 2px 2px 2px #ccc;-webkit-box-shadow:2px 2px 2px #ccc;box-shadow:2px 2px 2px #666666; text-shadow:0 1px 0 rgba(255,255,255,.7);border:solid 1px #666666;background-color:#fff9d9;padding-left:8px;vertical-align:middle;}

lh{font-size:13pt;padding-bottom:18px;text-align:justify;color:#022951;line-height:17pt;}

li {}

li.cpk{list-style-type:square;color:#333333;font-family:"Source Sans Pro", Sans-Serif;font-size:12pt;font-weight:bold;line-height:11pt;margin-bottom:6px;text-indent:12px;list-style-position: inside;}

li.phcrtiny{font-size:10pt;line-height:11pt;margin-left:-24px;margin-top:8px;list-style-position: inside;}

li.qstart{color:#cccccc;font-family:"Source Sans Pro", Sans-Serif;font-size:12pt;line-height:12pt;margin-bottom:16px;list-style-position: inside;}

li.sidebar{list-style-type:lower-latin;list-style-position: inside;}

li.tps{list-style-type:circle;color:#333333;font-family:"Source Sans Pro", Sans-Serif;font-size:10pt;line-height:11pt;margin-left:24px;margin-bottom:6px;list-style-position: outside;padding-left:0px;}

li.vuRpt{list-style-type:square;color:#333333;font-family:"Source Sans Pro", Sans-Serif;font-size:10pt;line-height:10pt;margin-bottom:8px;list-style-position: inside;}

ol {font-family:"Source Sans Pro", Sans-Serif;font-size:10pt;color:#000000;margin-bottom:0px;margin-top:6px;}

p {font-family:"Source Sans Pro", Sans-Serif;font-size:11pt;color:#000000;margin-bottom:0px;margin-top:13px;}

p.cfp{font-family:Calibri;font-size:12pt;padding-bottom:0px;text-align:justify;color:#022951;line-height:17pt;}

p.gvp{font-size:13pt;padding-bottom:18px;text-align:justify;color:#022951;line-height:17pt;}

select {font-size:10pt;height:18px;font-family:"Source Sans Pro", Sans-Serif;background-color:#eeeeee;color:#000033;}

select.dllHist1 {font-size:10pt;font-family:"Source Sans Pro", Sans-Serif;background-color:#F0E2BC;}

select.multi {font-size:10pt;font-family:"Source Sans Pro", Sans-Serif;background-color:#F0E2BC;color:#990033;}

table.carel{border-top:solid 1px #8fddf3;border-left:solid 1px #8fddf3;border-right:solid 1px #4aa1b9;border-bottom:solid 1px #4aa1b9;background-image:url(/skins/1/images/carelback.jpg);}

table.tblRemote{border-top:solid 1px #00b6db;border-left:solid 1px #00b6db;border-right:solid 1px #00b6db;border-bottom:solid 1px #00b6db;background-color:#00b6db;background-image:url(/skins/1/images/pageback1x.jpg);}

table.tblRemote2{border-top:solid 1px #62bb46;border-left:solid 1px #62bb46;border-right:solid 1px #62bb46;border-bottom:solid 1px #62bb46;background-color:#62bb46;}

table.tblRemote3{border-top:solid 0px #00b6db;border-left:solid 0px #00b6db;border-right:solid 0px #00b6db;border-bottom:solid 0px #00b6db;background-color:#f79239;}

td {text-align:left;vertical-align:top;font-family:"Source Sans Pro", Sans-Serif;font-size:11pt;color:#000066;}

td.a2cRow0{background-color:#ffffff;border-left:solid 0px #9EBFD9;border-bottom:solid 0px #00b6db;color:#000000;text-align:left;vertical-align:top;padding-top:2px;padding-left:4px;}

td.a2cRow1 {background-color:#eeeeee;border-left:solid 1px #9EBFD9;border-bottom:solid 1px #00b6db;color:#000000;text-align:left;vertical-align:top;padding-top:2px;padding-left:4px;}

td.a2cText0 {background-color:#ffffff;border-left:solid 0px #00b6db;border-bottom:solid 0px #00b6db;color:#cccccc;text-align:center;vertical-align:middle;padding-left :4px;padding-top:4px;padding-bottom:4px;}

td.a2cText1 {background-color:#eeeeee;border-left:solid 1px #00b6db;border-bottom:solid 1px #00b6db;color:#000000;text-align:center;vertical-align:middle;padding-top:4px;padding-bottom:4px;}

td.acpcbg {height:16px;text-align:center;font-family:"Source Sans Pro", Sans-Serif;font-size:9pt;font-weight:bold;background-color:#dddddd;border-bottom:#555555 1px solid;border-right:#7e7e7e 1px solid;}

td.bktaboff{text-align:center;vertical-align:middle;font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;background-color:#000000;background-image:url(/skins/1/images/tab-richtext-back.jpg);}

td.bktabon{text-align:center;vertical-align:middle;font-family:"Lucida Sans black";color:White;font-size:13pt;background-color:#000000;background-image:url(/skins/1/images/tab-richtext-back.jpg);}

td.blutaboff{text-align:center;vertical-align:middle;font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;background-color:#000000;border-top:#999933 0px solid;border-left:#999966 0px solid;border-right:#aaaaaa 0px solid;border-bottom:#669933 0px solid;}

td.blutabon{text-align:center;vertical-align:middle;font-family:"Lucida Sans black";font-size:13pt;background-color:#000000;border-left:#9966cc 0px solid;border-top:#663399 0px solid;border-right:#6666aa 0px solid;}

td.cases0 {border-left:#77cce8 2px solid;border-bottom:#77cce8 2px solid;padding-left:32px;padding-right:32px;padding-bottom:32px;text-align:left;}

td.cases0n {padding-top:8px;padding-left:24px;padding-right:16px;padding-bottom:8px;background-color:White;background-image:url(/skins/1/images/r2c1-3.jpg);text-align:left;border-bottom:solid 1px #aaaaab;border-right:solid 1px #aaaaab;}

td.cb {text-align:center;font-weight:bold;}

td.cbh1 {text-align:center;font-weight:bold;font-size:10pt;background-color:#EAD5AC;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;}

td.community0 {padding-left:32px;padding-right:32px;padding-bottom:32px;text-align:left;}

td.community0n {padding-top:8px;padding-left:24px;padding-right:16px;padding-bottom:8px;background-color:White;background-image:url(/skins/1/images/r2c1-3.jpg);text-align:left;border-bottom:solid 1px #aaaaab;border-right:solid 1px #aaaaab;}

td.community0p {border-left:#9F2EA0 2px solid;border-bottom:#9F2EA0 2px solid;padding-left:32px;padding-right:32px;padding-bottom:32px;text-align:left;}

td.courses0 {border-left:#7CBD70 2px solid;border-bottom:#7CBD70 2px solid;padding-left:32px;padding-right:32px;padding-bottom:32px;text-align:left;}

td.courses0n {padding-top:8px;padding-left:24px;padding-right:16px;padding-bottom:8px;background-color:White;background-image:url(/skins/1/images/r2c1-3.jpg);text-align:left;border-bottom:solid 1px #aaaaab;border-right:solid 1px #aaaaab;}

td.cw {text-align:center;background-color:#ffffff;}

td.cwx {text-align:center;background-color:#ffffff;}

td.dtlbutton{text-align:right;vertical-align:bottom;padding-bottom:4px;padding-right:4px;border-left:solid 0px #aaaaaa;}

td.erztxt {background-color:#fefefe;color:#660000;font-family:"andale mono", "Courier New";font-size:10pt;padding-left:4px;padding-top:0px;}

td.gdot {text-align:right;vertical-align:middle;width:20px;padding-left:16px;}

td.goldtaboff{text-align:center;vertical-align:middle;font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;background-color:Transparent;border-top:#999999 0px solid;border-left:#666666 0px solid;border-right:#aaaaaa 0px solid;border-bottom:#555555 0px solid;}

td.goldtabon{text-align:center;vertical-align:middle;font-family:"Lucida Sans black";font-size:13pt;background-color:#ffefcc;border-left:#aaaaaa 0px solid;border-top:#999999 0px solid;border-right:#666666 0px solid;}

td.graphdata{background-image:url(/skins/1/images/graphback.gif);vertical-align:bottom;}

td.ifw{text-align:right;background-image:url(/skins/1/images/wood3.jpg);background-attachment:fixed;background-color:white;padding-top:12px;padding-left:12px;}

td.ifwlb{text-align:right;border-left:inset 3px #6d2d0c;border-top:inset 2px #6d2d0c;background-image:url(/skins/1/images/wood3.jpg);background-attachment:fixed;background-color:white;padding-top:12px;padding-left:12px;}

td.lb {text-align:left;font-weight:bold;padding-left:4px;}

td.lbg {text-align:left;font-weight:bold;padding-left:4px;background-color:#cccccc;}

td.lbgr {text-align:left;font-weight:bold;font-size:10pt;color:White;background-color:#62bb46;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;}

td.lbgray {text-align:left;font-weight:bold;font-size:10pt;color:White;background-color:#999999;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;}

td.lbgW {text-align:left;font-weight:bold;padding-left:4px;background-color:Transparent;border-bottom:solid 4px White;border-right:solid 4px White;}

td.lblu {text-align:left;font-weight:bold;font-size:10pt;color:White;background-color:#00b6db;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;}

td.lbor {text-align:left;font-weight:bold;font-size:10pt;color:White;background-color:#f79239;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;}

td.listspace0 {border-left:solid 1px #0167a9;background-color:#ffffff;}

td.listspace1 {border-left:solid 1px #0167a9;background-image:url(/skins/1/images/listback1.gif);}

td.listspace2 {border-left:solid 1px #119948;background-image:url(/skins/1/images/listback2.gif);}

td.loginbox{text-align:right; height:64px; width:128px; background-color:White; margin-right:2px;}

td.lp {font-size:10pt;text-align:left;font-weight:normal;}

td.lpw{font-size:12pt;text-align:left;font-weight:normal;background-color:White;}

td.lpx{font-size:12pt;text-align:left;font-weight:normal;background-color:#ddeedd;}

td.lpx2{font-size:12pt;text-align:left;font-weight:normal;background-color:#e2f0f4;}

td.money{background-color:#ffffff;border-left:solid 0px #9EBFD9;border-bottom:solid 0px #00b6db;color:#006600;font-family:Monospace;font-size:13pt;text-align:right;vertical-align:top;padding-top:2px;padding-right:2px;}

td.money0{background-color:#ffffff;border-left:solid 0px #9EBFD9;border-bottom:solid 0px #00b6db;color:#006600;font-family:Monospace;text-align:right;vertical-align:top;padding-top:2px;padding-right:2px;}

td.money1{background-color:#ffffff;border-left:solid 0px #9EBFD9;border-bottom:solid 0px #00b6db;color:#006600;font-family:Monospace;text-align:right;vertical-align:top;padding-top:2px;padding-right:2px;}

td.money2{background-color:#ffffff;border-left:solid 0px #9EBFD9;border-bottom:solid 0px #00b6db;color:#006600;font-family:Monospace;text-align:right;font-weight:bold;font-style:italic;vertical-align:top;padding-top:2px;padding-right:2px;}

td.money3{background-color:#ffffff;border-left:solid 0px #9EBFD9;border-bottom:solid 0px #00b6db;color:#006600;font-family:Monospace;text-align:right;font-weight:bold;font-style:italic;vertical-align:top;padding-top:2px;padding-right:2px;}

td.moneyx{background-color:#eeeeee;border-left:solid 0px #9EBFD9;border-bottom:solid 0px #00b6db;color:#006600;font-family:Monospace;font-size:13pt;text-align:right;vertical-align:top;padding-top:2px;padding-right:2px;}

td.moneyx0{background-color:#eeeeee;border-left:solid 0px #9EBFD9;border-bottom:solid 0px #00b6db;color:#006600;font-family:Monospace;font-weight:bold;text-align:right;vertical-align:top;padding-top:2px;padding-right:2px;}

td.moneyx1{background-color:#eeeeee;border-left:solid 0px #9EBFD9;border-bottom:solid 0px #00b6db;color:#006600;font-family:Monospace;font-weight:bold;text-align:right;vertical-align:top;padding-top:2px;padding-right:2px;}

td.moneyx2{background-color:#eeeeee;border-left:solid 0px #9EBFD9;border-bottom:solid 0px #00b6db;color:#006600;font-family:Monospace;font-weight:bold;font-style:italic;text-align:right;vertical-align:top;padding-top:2px;padding-right:2px;}

td.moneyx3{background-color:#eeeeee;border-left:solid 0px #9EBFD9;border-bottom:solid 0px #00b6db;color:#006600;font-family:Monospace;font-weight:bold;font-style:italic;text-align:right;vertical-align:top;padding-top:2px;padding-right:2px;}

td.msg0{background-color:white;text-align:justify;color:#cccccc;vertical-align:middle;padding-top:0px;padding-left:32px;padding-right:36px;padding-bottom:16px;}

td.msg0x{background-image:url(/skins/1/images/msg0back.jpg);text-align:center;vertical-align:middle;color:#cccccc;padding-top:0px;padding-left:32px;padding-right:36px;padding-bottom:16px;}

td.mtick1{background-color:Transparent;text-align:right;vertical-align:top;font-family:"Helvetica Neue", Helvetica;color:#336600;font-size:15pt;font-weight:normal;}

td.mtick2{background-color:Transparent;text-align:right;font-family:"Source Sans Pro", Sans-Serif;color:#807748;font-size:9pt;font-weight:bold;height:10px;}

td.mtick3{background-color:Transparent;text-align:right;font-family:"Source Sans Pro", Sans-Serif;color:#495d46;font-size:9pt;font-weight:normal;height:10px;}

td.mtick4{background-color:Transparent;text-align:left;font-family:"Source Sans Pro", Sans-Serif;color:#4e6e7d;font-size:9pt;font-weight:normal;height:10px;}

td.mtrx0{background-color:Black;color:#33FFCC;font-family:"andale mono", Monospace;font-size:10pt;text-align:right;}

td.mtrx2{background-color:white;color:#cccccc;font-family:"andale mono", Monospace;font-size:8pt;text-align:left;}

td.mtrx3{background-color:Black;color:#FFEE66;font-family:"andale mono", Monospace;font-size:10pt;text-align:right;}

td.myspace0{background-color:white;background-image:url(/skins/1/images/blackdrop128.jpg);}

td.myspace0d{background-color:white;background-image:url(/skins/1/images/blackdrop512.jpg);}

td.myStuff{padding-top:4px;padding-left:0px;padding-right:0px;font-family:"times new roman", Serif;font-size:13pt;color:#333333;background-color:white;background-image:url(/skins/1/images/blackdrop.jpg);}

td.myStuffx{padding-left:24px;padding-top:24px;padding-right:24px;}

td.navitem {text-align:center;vertical-align:top;font-family:"Source Sans Pro", Sans-Serif;font-size:12pt;font-weight:bold;border-left:#bbbbbb 1px solid;padding-right:4px;padding-left:4px;}

td.navitem2 {text-align:center;vertical-align:top;font-family:"Source Sans Pro", Sans-Serif;font-size:12pt;font-weight:normal;padding-right:4px;padding-left:4px;}

td.navitemr {text-align:center;vertical-align:top;font-family:"Source Sans Pro", Sans-Serif;font-size:12pt;font-weight:bold;border-left:#bbbbbb 0px solid;padding-right:4px;padding-left:4px;}

td.note {text-align:left;background-color:#FFFFDD;font-family:"Source Sans Pro", Sans-Serif;font-size:11pt;}

td.pb {text-align:left;vertical-align:bottom;}

td.ptxt {text-align:left;font-weight:normal;font-size:9pt;font-family:"times new roman", serif;background-color:White;}

td.purpletaboff{text-align:center;vertical-align:middle;font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;background-color:#000000;border-top:#999933 0px solid;border-left:#999966 0px solid;border-right:#aaaaaa 0px solid;border-bottom:#669933 0px solid;}

td.purpletabon{text-align:center;vertical-align:middle;font-family:"Lucida Sans black";font-size:13pt;background-color:#000000;border-left:#9966cc 0px solid;border-top:#663399 0px solid;border-right:#6666aa 0px solid;}

td.rb {text-align:right;font-weight:bold;font-size:10pt;line-height:11pt;background-color:#dddddd;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;}

td.rba {text-align:right;font-weight:bold;font-size:10pt;background-color:#e5d9c8;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;}

td.rbd {disabled cellstext-align:right;font-family:"Source Sans Pro", Sans-Serif;font-size:11pt;color:#eeeeee;background-color:#bbbbbb;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;}

td.rbgr {text-align:right;font-weight:bold;font-size:10pt;color:White;background-color:#62bb46;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;}

td.rbgr4 {text-align:right;font-weight:bold;font-size:10pt;color:Black;background-color:#96bb8a;border-bottom:#aaaaaa 0px solid;border-right:#bbbbbb 1px solid;}

td.rbgray {text-align:right;font-weight:bold;font-size:10pt;color:White;background-color:#999999;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;}

td.rbgray4 {text-align:right;font-weight:bold;font-size:10pt;color:White;background-color:#999999;border-bottom:#aaaaaa 0px solid;border-right:#bbbbbb 1px solid;}

td.rbl {text-align:right;font-weight:bold;font-size:10pt;vertical-align:middle;padding-right:4px;}

td.rblu {text-align:right;font-weight:bold;font-size:10pt;color:White;background-color:#00b6db;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;}

td.rblu4 {text-align:right;font-weight:bold;font-size:10pt;color:Black;background-color:#9ecdd7;border-bottom:#cccccc 0px solid;border-right:#bbbbbb 1px solid;}

td.rbm {text-align:right;font-weight:bold;font-size:9pt;line-height:11pt;background-color:#dddddd;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;font-family:Monospace;padding:4px 4px;}

td.rbor {text-align:right;font-weight:bold;font-size:10pt;color:White;background-color:#f79239;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;}

td.rbor4 {text-align:right;font-weight:bold;font-size:10pt;color:Black;background-color:#d7af8c;border-bottom:#aaaaaa 0px solid;border-right:#bbbbbb 1px solid;}

td.rbpurple {text-align:right;font-weight:bold;font-size:10pt;color:White;background-color:#5c4961;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;}

td.rbpurple2 {text-align:right;font-weight:bold;font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;color:White;background-color:#5c4961;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;padding:4px;}

td.rbq {text-align:right;font-family:"Source Sans Pro", Sans-Serif;color:#990033;font-size:12pt;background-color:#dddddd;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;}

td.rbred2 {text-align:right;font-weight:bold;font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;color:White;background-color:#a50202;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;padding:4px;}

td.rbtr {text-align:right;font-weight:bold;font-size:10pt;border-bottom:#aaaaaa 1px none;border-right:#bbbbbb 1px none;}

td.rbx {text-align:right;font-weight:bold;font-size:10pt;color:#cccccc;background-color:#222222;border-bottom:#222222 1px solid;border-right:#111111 1px solid;}

td.rbye2 {text-align:right;font-weight:bold;font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;color:Black;background-color:#eacc02;padding:4px;}

td.rbz {text-align:right;font-weight:bold;font-size:10pt;color:#336633;background-color:#9fa7b4;border-right:#bbbbbb 1px solid;padding-right:4px;padding-left:2px;}

td.rbza {text-align:right;font-weight:bold;font-size:10pt;color:#003300;background-color:#b3b6bd;border-right:#bbbbbb 1px solid;padding-right:4px;padding-left:2px;}

td.rdirt {text-align:left;font-weight:bold;font-size:10pt;vertical-align:top;padding-top:0px;background-color:#ffffff#D8EDED;}

td.rdirt1 {text-align:left;font-weight:bold;font-size:10pt;vertical-align:top;padding-top:0px;background-color:#ffffff#D8EDED;}

td.rdirt2 {text-align:left;font-weight:bold;font-size:10pt;vertical-align:top;padding-top:0px;background-color:#ffffff#D8EDED;}

td.rdirt3 {text-align:left;font-weight:bold;font-size:10pt;vertical-align:top;padding-top:0px;background-color:#ffffff#D8EDED;}

td.rdirt4 {text-align:left;font-weight:bold;font-size:10pt;vertical-align:top;padding-top:0px;background-color:#ffffff#D8EDED;}

td.rp {text-align:right;font-weight:normal;font-size:11pt;background-color:White;}

td.rpay {text-align:right;font-weight:bold;font-size:13pt;background-color:#d8eebd;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;}

td.rpay2 {text-align:right;font-weight:bold;font-size:13pt;background-color:#bccfa4;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;}

td.rpay2 {text-align:right;font-weight:bold;font-size:13pt;background-color:#d8e7c7;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;}

td.rpay3 {text-align:right;font-weight:bold;font-size:13pt;background-color:#f9d6c4;border-bottom:#aaaaaa 1px solid;border-right:#bbbbbb 1px solid;}

td.rptDesc0{background-color:#ffffff;padding-left:0px;font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;color:#333333; }

td.rptDesc1{background-image:url(/skins/1/images/listback1.gif);padding-left:0px;font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;color:#000033;}

td.rptDesc2{padding-left:4px;font-family:"Source Sans Pro", Sans-Serif;background-image:url(/skins/1/images/listback2.gif);font-size:13pt;color:#000033;}

td.rptDesc2x{padding-left:8px;border-left:solid 1px #62bb46;font-family:"Source Sans Pro", Sans-Serif;background-color:white;font-size:13pt;color:#000033;}

td.rptMain0{background-color:#ffffff;padding-left:4px;padding-right:4px;border-left:solid 0px #aaaaaa;color:#000000;}

td.rptMain0i{background-color:#ffffff;padding-left:24px;padding-right:4px;border-left:solid 0px #aaaaaa;}

td.rptMain0XPS{font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;background-color:#ffffff;padding-left:4px;padding-right:4px;border-left:solid 0px #aaaaaa;color:#000000;}

td.rptMain1{background-image:url(/skins/1/images/listback1.gif);padding-left:4px;padding-right:4px;border-left:solid 0px #99999a;}

td.rptMain1i{background-image:url(/skins/1/images/listback1.gif);padding-left:24px;padding-right:4px;border-left:solid 0px #99999a;}

td.rptMain2{background-image:url(/skins/1/images/listback2.gif);padding-left:4px;padding-right:4px;border-left:solid 0px #99999a;}

td.rptMain2i{background-image:url(/skins/1/images/listback2.gif);padding-left:24px;padding-right:4px;border-left:solid 0px #99999a;}

td.rpx {text-align:right;font-weight:normal;font-size:11pt;background-color:#ffffff;}

td.rt {text-align:right;background-color:Transparent;}

td.scheader0{font-family:"Source Sans Pro", Sans-Serif;font-weight:bold;border-bottom:solid 1px #9EBFD9;font-size:12pt;text-transform:uppercase;color:#022951;text-align:center;vertical-align:middle;padding-top:2px;padding-bottom:0px;}

td.scheader0y{font-family:"Source Sans Pro", Sans-Serif;font-weight:bold;font-size:13pt;color:#022951;text-align:center;vertical-align:middle;padding-top:0px;padding-bottom:0px;height:24px;}

td.scheader1 {background-color:#dddddd;border-bottom:solid 1px #9EBFD9;font-family:"Source Sans Pro", Sans-Serif;font-weight:bold;font-size:11pt;text-transform:uppercase;color:#022951;text-align:center;vertical-align:middle;padding-top:0px;padding-bottom:0px;height:24px;}

td.scheader1l{background-color:#dddddd;border-bottom:solid 1px #9EBFD9;font-family:"Source Sans Pro", Sans-Serif;font-weight:bold;font-size:11pt;text-transform:uppercase;color:#022951;text-align:left;vertical-align:middle;padding-top:2px;padding-bottom:0px;padding-left:2px;}

td.scheader1r{background-color:#dddddd;border-bottom:solid 1px #9EBFD9;font-family:"Source Sans Pro", Sans-Serif;font-weight:bold;font-size:11pt;text-transform:uppercase;color:#022951;text-align:right;vertical-align:middle;padding-top:2px;padding-bottom:0px;padding-right:4px;}

td.sepa{padding:0px;background-color:#eeeeff;}

td.shcart0c{background-color:#ffffff;border-left:solid 0px #9EBFD9;border-bottom:solid 0px #00b6db;color:#022951;text-align:center;vertical-align:top;padding-top:2px;padding-right:0px;}

td.shcart0cx{background-color:#eeeeee;border-left:solid 0px #9EBFD9;border-top:solid 1px #eeeeee;border-bottom:solid 1px #eeeeee;color:#022951;text-align:center;vertical-align:top;padding-top:2px;padding-right:0px;}

td.shcart0l{background-color:#ffffff;border-left:solid 0px #9EBFD9;border-bottom:solid 0px #00b6db;color:#022951;text-align:left;vertical-align:top;padding-top:2px;padding-right:8px;}

td.shcart0lp{background-color:#f8f8f8;border-left:solid 0px #9EBFD9;border-bottom:solid 0px #00b6db;color:#022951;text-align:left;vertical-align:top;padding-top:2px;padding-right:8px;}

td.shcart0lpx{background-color:#e5e9e8;border-left:solid 0px #9EBFD9;border-bottom:solid 0px #00b6db;color:#022951;text-align:left;vertical-align:top;padding-top:2px;padding-right:8px;}

td.shcart0lx{background-color:#eeeeee;border-left:solid 0px #9EBFD9;border-bottom:solid 0px #00b6db;color:#022951;text-align:left;vertical-align:top;padding-top:2px;padding-right:8px;}

td.shcart0r{background-color:#ffffff;border-left:solid 0px #9EBFD9;border-bottom:solid 0px #00b6db;color:#022951;text-align:right;vertical-align:top;padding-top:2px;padding-right:8px;}

td.shcart0rp{background-color:#f8f8f8;border-left:solid 0px #9EBFD9;border-bottom:solid 0px #00b6db;color:#022951;text-align:right;vertical-align:top;padding-top:2px;padding-right:8px;}

td.shcart0rpx{background-color:#e5e9e8;border-left:solid 0px #9EBFD9;border-bottom:solid 0px #00b6db;color:#022951;text-align:right;vertical-align:top;padding-top:2px;padding-right:8px;}

td.shcart0rx{background-color:#eeeeee;border-left:solid 0px #9EBFD9;border-bottom:solid 0px #00b6db;color:#022951;text-align:right;vertical-align:top;padding-top:2px;padding-right:8px;}

td.speedbump{background-color:White;text-align:center;vertical-align:middle;color:#333333;font-family:"Source Sans Pro", Sans-Serif;color:maroon;font-size:13pt;padding-top:0px;padding-left:32px;padding-right:36px;padding-bottom:16px;}

td.srcsylname{background-color:Transparent;text-align:left;vertical-align:middle;font-family:"Source Sans Pro", Sans-Serif;font-weight:bold;font-size:12pt;border-top:solid 1px #000000;padding-left:16px;}

td.statgrid{font-family:"andale mono", "Courier New";color:#006600;font-size:9pt;border-right:solid 1px #99aa99;border-bottom:solid 1px #999999;padding-left:4px;padding-right:4px;padding-top:1px;padding-bottom:1px;}

td.sylItem{vertical-align:top;font-family:"times new roman";font-size:8pt;}

td.taboff{text-align:center;vertical-align:middle;font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;background-color:Transparent;border-top:#999933 0px solid;border-left:#999966 0px solid;border-right:#aaaaaa 0px solid;border-bottom:#669933 0px solid;}

td.taboffl{text-align:left;vertical-align:middle;background-color:Transparent;background-image:url(/skins/1/images/tab-source-back.jpg);}

td.taboffr{text-align:right;vertical-align:middle;background-color:Transparent;background-image:url(/skins/1/images/tab-target-back.jpg);}

td.tabon{text-align:center;vertical-align:middle;font-family:"Lucida Sans black";color:White;font-size:13pt;background-color:#ccffcc;border-left:#99cc66 0px solid;border-top:#669933 0px solid;border-right:#66aa66 0px solid;}

td.targsylname{background-color:Transparent;text-align:right;vertical-align:middle;font-family:"Source Sans Pro", Sans-Serif;font-weight:bold;font-size:12pt;border-top:solid 1px #000000;padding-right:18px;}

td.theader1 {background-color:#00b6db;border-left:solid 1px #00b6db;border-right:solid 1px #00b6db;font-family:"Source Sans Pro", Sans-Serif;font-weight:bold;font-size:13pt;color:white;vertical-align:middle;text-align:left;padding-left:3px;padding-top:3px;padding-bottom:3px;}

td.theader1a{background-color:#00b6db;border-left:solid 1px #00b6db;border-right:solid 1px #00b6db;font-family:"Source Sans Pro", Sans-Serif;font-weight:bold;font-size:13pt;color:#feebb7;vertical-align:middle;text-align:left;padding-left:3px;padding-top:3px;padding-bottom:3px;}

td.theader1axx{font-family:"Source Sans Pro", Sans-Serif;font-weight:bold;font-size:13pt;color:#00b6db;vertical-align:middle;text-align:left;padding-left:3px;padding-top:3px;padding-bottom:3px;}

td.theader1b{background-color:#00b6db;border-left:solid 1px #00b6db;border-right:solid 1px #00b6db;font-family:"Source Sans Pro", Sans-Serif;font-weight:bold;font-size:13pt;color:#000000;vertical-align:middle;text-align:left;padding-left:3px;padding-top:3px;padding-bottom:3px;}

td.theader1bx{font-family:"Source Sans Pro", Sans-Serif;font-weight:bold;font-size:13pt;color:#00b6db;vertical-align:middle;text-align:left;padding-left:3px;padding-top:3px;padding-bottom:3px;}

td.theader1x{font-family:"Source Sans Pro", Sans-Serif;font-weight:bold;font-size:13pt;color:#000000;text-align:left;vertical-align:middle;padding-right:3px;padding-top:3px;padding-bottom:3px;}

td.theader2 {background-color:Transparent;border-left:solid 0px #526e26;border-right:solid 0px #526e26;font-family:"Source Sans Pro", Sans-Serif;font-weight:bold;font-size:13pt;color:#ffffff;vertical-align:middle;text-align:left;padding-left:3px;padding-top:3px;padding-bottom:3px; }

td.theader2axx{font-family:"Source Sans Pro", Sans-Serif;font-weight:bold;font-size:13pt;color:#526e26;vertical-align:middle;text-align:left;padding-left:3px;padding-top:3px;padding-bottom:3px;}

td.theader2bx{font-family:"Source Sans Pro", Sans-Serif;font-weight:bold;font-size:13pt;color:#526e26;vertical-align:middle;text-align:left;padding-left:3px;padding-top:3px;padding-bottom:3px;}

td.theader3 {background-color:Transparent;border-left:solid 0px #526e26;border-right:solid 0px #526e26;font-family:"Source Sans Pro", Sans-Serif;font-weight:bold;font-size:13pt;color:#ffffff;vertical-align:middle;text-align:left;padding-left:3px;padding-top:3px;padding-bottom:3px; }

td.theader3axx{font-family:"Source Sans Pro", Sans-Serif;font-weight:bold;font-size:13pt;color:#BB8F2D;vertical-align:middle;text-align:left;padding-left:3px;padding-top:3px;padding-bottom:3px;}

td.theader3bx{font-family:"Source Sans Pro", Sans-Serif;font-weight:bold;font-size:13pt;color:#BB8F2D;vertical-align:middle;text-align:left;padding-left:3px;padding-top:3px;padding-bottom:3px;}

td.thumb {vertical-align:top;font-family:"times new roman";font-size:6pt;}

td.tick0{background-color:Transparent;text-align:right;vertical-align:top;font-weight:normal;color:Teal;font-size:36px;font-weight:normal;}

td.tick1{background-color:Transparent;text-align:right;vertical-align:top;font-family:"Arial Rounded MT Bold", "Lucida Sans";color:#336600;font-size:72pt;font-weight:normal;}

td.tick1x{background-color:Transparent;text-align:right;vertical-align:top;font-family:"Arial Rounded MT Bold", "Lucida Sans";color:#a1aba0;font-size:72pt;font-weight:normal;}

td.tick2{background-color:Transparent;text-align:right;font-family:"Arial Rounded MT Bold", "Lucida Grande", Arial;color:#807748;font-size:23pt;font-weight:normal;height:36px;}

td.tick2x{background-color:Transparent;text-align:right;font-family:"Arial Rounded MT Bold", "Lucida Grande", Arial;color:#a1aba0;font-size:23pt;font-weight:normal;height:36px;}

td.tick3{background-color:Transparent;text-align:right;font-family:"Arial Rounded MT Bold", "Lucida Grande", Arial;color:#495d46;font-size:23pt;font-weight:normal;}

td.tick3x{background-color:Transparent;text-align:right;font-family:"Arial Rounded MT Bold", "Lucida Grande", Arial;color:#a1aba0;font-size:23pt;font-weight:normal;}

td.tick4{background-color:Transparent;text-align:left;font-family:"Arial Rounded MT Bold", "Lucida Grande", Arial;color:#4e6e7d;font-size:23pt;font-weight:normal;}

td.tick4x{background-color:Transparent;text-align:left;font-family:"Arial Rounded MT Bold", "Lucida Grande", Arial;color:#a1aba0;font-size:23pt;font-weight:normal;}

td.ticker0{background-color:#666666;text-align:right;vertical-align:top;font-family:"Source Sans Pro", Sans-Serif;color:Teal;font-size:23pt;font-weight:bold;}

td.ticker0w{background-color:#666666;text-align:right;vertical-align:top;font-family:"Source Sans Pro", Sans-Serif;color:cyan;font-size:10pt;font-weight:bold;}

td.ticker1{background-color:#000000;text-align:right;vertical-align:top;font-family:"Source Sans Pro", Sans-Serif;color:#CCFF00;font-size:72pt;font-weight:bold;}

td.ticker1w{background-color:#000000;text-align:right;vertical-align:top;font-family:"Source Sans Pro", Sans-Serif;color:#CCFF00;font-size:23pt;font-weight:bold;}

td.ticker2{background-color:#000000;text-align:right;font-family:"Source Sans Pro", Sans-Serif;color:Lime;font-size:15pt;font-weight:bold;}

td.ticker2w{background-color:#000000;text-align:right;font-family:"Source Sans Pro", Sans-Serif;color:Lime;font-size:11pt;font-weight:bold;}

td.ticker3{background-color:#000000;text-align:right;font-family:"Source Sans Pro", Sans-Serif;color:#FFFF00;font-size:15pt;font-weight:bold;}

td.ticker3w{background-color:#000000;text-align:right;font-family:"Source Sans Pro", Sans-Serif;color:#FFFF00;font-size:12pt;font-weight:bold;}

td.ticker4{background-color:#000000;text-align:left;font-family:"Source Sans Pro", Sans-Serif;color:#FFFF00;font-size:15pt;font-weight:bold;}

td.tickerhead{background-color:#003333;text-align:center;font-family:"Source Sans Pro", Sans-Serif;color:Lime;font-size:12pt;font-weight:bold;}

td.tickerheadw{background-color:#003333;text-align:center;font-family:"Source Sans Pro", Sans-Serif;color:Lime;font-size:13pt;font-weight:bold;}

td.titlebar{background-color:#00b6db;font-family:"Source Sans Pro", Sans-Serif;font-size:13pt;font-weight:bold;font-style:italic;color:White;}

td.top10cell{font-family:"Source Sans Pro", Sans-Serif;font-size:11pt;color:red;text-align:left;padding-bottom:3px;}

td.urlogged {text-align:right;vertical-align:top;font-family:"Source Sans Pro", Sans-Serif;font-size:10pt;font-weight:bold;padding-right:4px;padding-left:4px;border-left:#bbbbbb 1px solid;}

td.vbw {vertical-align:bottom;background-color:#ffffff;}

textarea.acp {font-family:"Source Sans Pro", Sans-Serif;font-size:10pt;color:#000666;background-color:#ffffcc;border:#ffffff 1px solid ;width:256px;}

th {text-align:left;vertical-align:top;font-family:"Source Sans Pro", Sans-Serif;font-size:11pt;color:#006666;}

ul {font-family:"Source Sans Pro", Sans-Serif;font-size:10pt;color:#000000;margin-bottom:0px;margin-top:6px;}

ul.phcrtiny{font-size:10pt;line-height:10pt;margin-top:-6px;}

ul.tps{list-style-type:circle;color:#333333;font-family:"Source Sans Pro", Sans-Serif;font-size:10pt;line-height:11pt;margin-bottom:4px;margin-left:0px;list-style-position: inside;}

ul.vuRpt{list-style-type:square;color:#333333;font-family:"Source Sans Pro", Sans-Serif;font-size:10pt;line-height:10pt;margin-bottom:16px;list-style-position: inside;}

What I do — MSSQL DBA
What I do — MS IIS Admin
What I do — Python
#### Scrape Amazon Book Rank from a URL list
#### Christopher P. Simmons 4/18/2014
# -*- coding: utf-8 -*-
# 001 from __future__ import print_function
# 002 import os
# 003 import random
# 004 import urllib2
# 005 import datetime
# 006
# 007 mynow = datetime.datetime.now().strftime("%m/%d/%Y %H:%M:%S")
# 008
# 009
# 010 os.system('clear')
# 011 print('Scrape Amazon Rankings from list of (JCX) URLs')
# 012 print (mynow)
# 013 p = 'JCXurls.txt'#raw_input('Enter filename for word list: ')
# 014 listfile = open(p, 'r')
# 015 u='a'
# 016 myhead=''
# 017 q = "topagents.txt"
# 018 n=0
# 019 rnum = random.randrange(1,358)
# 020 with open(q) as openfileobject:
# 021 for line in openfileobject:
# 022 # 023 # 024 # 025 # 026 # 027 # 028 openfileobject.close()
# 029 tout ='\r'+mynow+','
# 030 for n in range(0,1000):
# 031 u=listfile.readline()
# 032 u=u.replace(chr(13),'')
# 033 u=u.replace(chr(10),'')
# 034 if u=='':
# 035 # 036 urlname=u
# 037 opener = urllib2.build_opener()
# 038 opener.addheaders = [('User-agent', myhead)]
# 039 response = opener.open(urlname)
# 040 s = response.read()
# 041 s=s.replace('\t','')
# 042 s=s.replace('\r','\n')
# 043 for n in range(0,100):
# 044 # 045 for n in range(0,128):
# 046 # 047 for n in range(0,128):
# 048 # 049
# 050 ####//******** Amazon Page Rank
# 051 iStr=''<br /> # 052 jStr = ''
# 053 i=s.find(iStr)
# 054 j=s.find(jStr)
# 055 tit=s[i+len(iStr):j]
# 056 tit=tit.replace('Amazon.com: ','')
# 057
# 058 s=s.replace(' in Kindle Store ',' in Books ')
# 059 iStr='Amazon Best Sellers Rank: '
# 060 jStr = ' in Books '
# 061 i=s.find(iStr)
# 062 j=s.find(jStr)
# 063 s=s[i+len(iStr):j]
# 064 s=s.replace(',','')
# 065 if s.find('Free')!=-1: s='-'+s
# 066 s=s.replace(' Paid','')
# 067 s=s.replace(' Free','')
# 068 s=s.replace('#','')
# 069 s=s.replace('\n','')
# 070 tout += s+','
# 071 print (tit, s.replace('\n',''), sep=': ')
# 072 print
# 073
# 074 outfile = open('jcxtrax.csv', 'a')
# 075 outfile.write(tout)
# 076 outfile.close()
# 077
# 078 print ('\n\n\n\nDone! Results written to jcxtrax.csv')
# 079 print ('Bye!\n\n\n')
What I do — Image Creation
What I Think I do
What I've Done — Rocket Scientist
Where I Am
Samples
Samples
A Glimpse into My World
What I do — Author/Publisher
Twitter
Facebook
Child Processes: Josiah
Child Processes: Ian
Child Processes: Glen Tyler
Child Processes: Aerielle
Just as planned...
Future Books
> I welcome emails from humans.















If you can read this, please email me:

cps@cpsimmons.com_