
﻿$(document).ready(function serviceModules(){var soapEnv="<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'> \
 <soapenv:Body> \
      <GetListItems xmlns='http://schemas.microsoft.com/sharepoint/soap/'> \
         <listName>Service_Modules</listName> \
         <viewFields> \
             <ViewFields> \
                <FieldRef Name='Image' /> \
                <FieldRef Name='Link' /> \
                <FieldRef Name='Title' /> \
                <FieldRef Name='Synopsis' /> \
            </ViewFields> \
         </viewFields> \
     </GetListItems> \
 </soapenv:Body> \
 </soapenv:Envelope>";$.ajax({url:"../../../_vti_bin/lists.asmx",type:"POST",dataType:"xml",data:soapEnv,complete:processSResult,contentType:"text/xml; charset=\"utf-8\""});});function processSResult(xData,status){var browser2=navigator.appName;if(browser2=="Microsoft Internet Explorer"){$(xData.responseXML).find("z\\:row").each(function(){var serviceName=$(this).attr("ows_Title");var serviceImages=$(this).attr("ows_Image");var serviceSummary=$(this).attr("ows_Synopsis");Position3=serviceImages.indexOf(',');function Left2(str,n){if(n<=0)
return"";else if(n>String(str).length)
return str;else
return String(str).substring(0,n);}
serviceImagesRC=Left2(serviceImages,Position3);var urlStuff=$(this).attr("ows_Link")
Position4=urlStuff.indexOf(',');serviceLinky=Left2(urlStuff,Position4);var sStuff="<div><div class='security-box' style='background:url("+serviceImagesRC+") -81px 0px no-repeat'><h4>"+serviceName+"</h4><p>"+serviceSummary+"</p><p class='more'><a href='"+serviceLinky+"'>more</a></p></div></div>";$("#s2").append(sStuff);});$('#s2').cycle({fx:'fade',speed:3000,timeout:8000,random:1,cleartype:1});}
else{$(xData.responseText).find("z\\:row").each(function(){var serviceName=$(this).attr("ows_Title");var serviceImages=$(this).attr("ows_Image");var serviceSummary=$(this).attr("ows_Synopsis");Position3=serviceImages.indexOf(',');function Left2(str,n){if(n<=0)
return"";else if(n>String(str).length)
return str;else
return String(str).substring(0,n);}
serviceImagesRC=Left2(serviceImages,Position3);var urlStuff=$(this).attr("ows_Link")
Position4=urlStuff.indexOf(',');serviceLinky=Left2(urlStuff,Position4);var sStuff="<div><div class='security-box' style='background:url("+serviceImagesRC+") -81px 0px no-repeat'><h4>"+serviceName+"</h4><p>"+serviceSummary+"</p><p class='more'><a href='"+serviceLinky+"'>more</a></p></div></div>";$("#s2").append(sStuff);});$('#s2').cycle({fx:'fade',speed:3000,timeout:8000,random:1,cleartype:1});}}
