function NewsPod(){
this.temp=Pod;
this.temp();
delete this.temp;
this.xsl="rss2";
this.feed="";
this.numItems=5;
this.sProps.push("numItems");
this.sProps.push("feed");
this.setFeed=function(){
var _1=window.document.getElementById("feeds"+this.eID);
var _2=_1.selectedIndex;
var _3=window.document.getElementById("numItems"+this.eID);
var _4=_3.selectedIndex;
this.numItems=_3.options[_4].value;
this.feed=_1.options[_2].value;
this.tID=this.feed;
this.set("edit",false,true);
};
this.getContentUrl=function(){
if(this.feed==""){
this.feed=this.tID;
}
return this.baseUrl+"t=f&r=proxy&s="+this.feed+"&c="+this.numItems;
};
}
NewsPod.prototype=new Pod();
function HistoryPod(){
this.temp=Pod;
this.temp();
delete this.temp;
this.tID=17;
this.baseUrl="/dp/startpage?";
this.xsl="searchHistory";
this.getContentUrl=function(){
return this.baseUrl+"t=f&r=searchHistory";
};
this.init=function(){
this.content.setDocument(this.getContentUrl());
this.logAction("req");
this.insert("loadingDiv");
this.showContent();
this.queue("checkPod");
};
this.checkPodCheck=function(){
if(!this.dom.idle()){
return false;
}
if(this.content.document.getElementsByTagName("item").length<1){
document.getElementById(this.eID).style.display="none";
}
return true;
};
this.clear=function(){
this.logAction("cl:clear");
try{
document.getElementById(this.eID).style.display="none";
this.content.setDocument(this.getContentUrl()+"&clear=1");
this.showContent();
this.manager.save();
}
catch(e){
throw new Error("Failed clearing search history; DOM error: "+e.message);
}
};
}
HistoryPod.prototype=new Pod();
function WeatherPod(){
this.temp=Pod;
this.temp();
delete this.temp;
this.tID=1;
this.xsl="weather";
this.locations=new Array("02210");
this.tUnit="f";
this.sProps.push("locations","tUnit");
this.getContentUrl=function(){
var _5="";
for(var i=0;i<this.locations.length;i++){
if(this.locations[i]!=""){
_5+=this.locations[i]+";";
}
}
return this.baseUrl+"t=f&r=weather&l="+_5;
};
this.setValues=function(){
try{
var _7=document.getElementById(this.eID);
}
catch(e){
throw new Error("Could not access edit fields.");
}
var _8=_7.getElementsByTagName("input");
var _9=_7.getElementsByTagName("select").item(0);
for(var i=0;i<_8.length;i++){
if(_8[i].type=="text"){
this.locations[i]=_8[i].value;
}
}
this.tUnit=_9.value;
this.set("edit",false,true);
this.queue("updateGlobalLocation");
};
this.updateGlobalLocation=function(){
var _b=this.content.document.getElementsByTagName("loc");
if(_b.length>0){
var _c=_b.item(0).getElementsByTagName("desc");
if(_c.length>0){
this.manager.sProps["location"]=_c.item(0).firstChild.nodeValue;
}
}else{
if(this.locations[0]!=undefined){
this.manager.sProps["location"]=this.locations[0];
}
}
this.manager.save();
};
}
WeatherPod.prototype=new Pod();
function WOTDPod(){
this.temp=Pod;
this.temp();
delete this.temp;
this.tID=15;
this.xsl="wotd";
this.getContentUrl=function(){
return this.baseUrl+"t=f&r=proxy&s=1";
};
}
WOTDPod.prototype=new Pod();
function CareersPod(){
this.temp=Pod;
this.temp();
delete this.temp;
this.tID=16;
this.xsl="careers";
this.location="";
this.query="";
this.sProps.push("location","query");
this.getContentUrl=function(){
if(this.query!=""){
return this.baseUrl+"t=f&r=careers&q="+this.query+"&l="+this.location;
}else{
return this.baseUrl+"t=f&r=careers";
}
};
this.setFields=function(id){
this.logAction("nav:search");
this.query=document.getElementById("query").value;
this.location=document.getElementById("location").value;
this.manager.sProps["location"]=this.location;
this.reload();
this.manager.save();
};
}
CareersPod.prototype=new Pod();
function SudokuPod(){
this.temp=Pod;
this.temp();
delete this.temp;
this.tID=7;
this.xsl="sudoku";
this.getContentUrl=function(){
return this.baseUrl+"t=f&r=sudoku";
};
}
SudokuPod.prototype=new Pod();
function HotSpotsPod(){
this.temp=Pod;
this.temp();
delete this.temp;
this.tID=13;
this.xsl="hotspots";
this.getContentUrl=function(){
return this.baseUrl+"t=f&r=hotspots";
};
}
HotSpotsPod.prototype=new Pod();
function SpillPod(){
this.temp=Pod;
this.temp();
delete this.temp;
this.tID=19;
this.xsl="spill";
this.getContentUrl=function(){
return this.baseUrl+"t=f&r=proxy&s=10";
};
}
SpillPod.prototype=new Pod();
function TravelPod(){
this.temp=Pod;
this.temp();
delete this.temp;
this.tID=2;
this.xsl="travel";
this.fields=new Array;
this.tab="";
this.sProps.push("fields","tab");
this.getContentUrl=function(){
return this.baseUrl+"t=f&r=travel";
};
this.setFields=function(_e){
this.logAction("nav:search");
var _f=document.getElementById(_e).getElementsByTagName("form").item(0);
this.fields[_f.id]=new Array;
var _10=_f.getElementsByTagName("input");
for(var i=0;i<_10.length;i++){
if(_10[i].type=="text"){
this.fields[_f.id][_10[i].name]=_10[i].value;
switch(_10[i].name){
case "FrAirport":
this.manager.sProps["location"]=_10[i].value;
}
}
}
this.manager.save();
};
this.setTab=function(tab,id){
this.logAction("cl:tab");
this.tab=tab;
for(i=1;i<=4;i++){
document.getElementById("tb:"+this.eID+":"+i).className="";
}
document.getElementById(tab).className="s";
for(i=1;i<=4;i++){
document.getElementById("tf:"+this.eID+":"+i).style.display="none";
}
document.getElementById(id).style.display="block";
switch(tab){
case "tb:"+this.eID+":1":
document.flights.FrAirport.focus();
break;
case "tb:"+this.eID+":2":
document.hotels.CityName.focus();
break;
case "tb:"+this.eID+":3":
document.cars.PickUpLoc.focus();
break;
case "tb:"+this.eID+":4":
document.packages.FrAirport.focus();
break;
}
this.manager.save();
};
}
TravelPod.prototype=new Pod();
function ShoppingPod(){
this.temp=Pod;
this.temp();
delete this.temp;
this.refreshInt=30;
this.tID=5;
this.baseUrl="/dp/startpage?";
this.xsl="shopping";
this.count=0;
this.baseEbayLink=null;
setInterval("SOBS["+this.id+"].updateMR()",60*1000);
this.getContentUrl=function(){
return this.baseUrl+"t=f&r=shopping";
};
this.doSearch=function(){
var _14=document.getElementById("shopping");
var _15=_14.baseUrl.value;
var qry=_14.qry.value;
if(this.count<1||qry==""){
window.open(_15+"&mpre=http%3A//listings.ebay.com/");
}else{
window.open(_15+"&mpre=http%3A//search.ebay.com/"+encodeURI(qry));
}
};
this.clearInput=function(){
if(this.count<1){
var _17=document.getElementById("shopping");
_17.qry.value="";
this.count++;
}
};
this.updateMR=function(){
try{
var _18=document.getElementById(this.eID).getElementsByTagName("b");
for(var i=0;i<_18.length;i++){
var _1a=_18.item(i);
if(_1a.className=="mr"&&_1a.innerHTML>0){
_1a.innerHTML=_1a.innerHTML-1;
}
}
}
catch(e){
}
};
this.navToEbay=function(url){
var _1c=document.getElementById("shopping");
var _1d=_1c.baseUrl.value;
window.open(_1d+"&mpre="+encodeURIComponent(url));
};
}
ShoppingPod.prototype=new Pod();
function WelcomePod(){
this.temp=Pod;
this.temp();
delete this.temp;
this.tID=18;
this.xsl="welcome";
this.theme=smcookie.get("sp_theme");
this.brand=smcookie.get("sp_brand");
this.sProps.push("theme","brand");
this.getContentUrl=function(){
return this.baseUrl+"t=f&r=welcome&b="+this.brand;
};
this.setTheme=function(){
this.logAction("ch:theme");
try{
var _1e=document.getElementById(this.eID);
}
catch(e){
throw new Error("Could not access edit fields.");
}
var _1f=_1e.getElementsByTagName("select").item(0);
this.theme=_1f.value;
if(sniffer.isIE()){
this.set("edit",false);
window.document.getElementById("default").setAttribute("href","/dp_content/"+this.brand+"/startpage/themes/"+this.theme+"/"+this.theme+".css");
}else{
this.queue("setCSS");
this.queue("setCSSCheck");
this.queue("reDraw");
}
smcookie.set("sp_theme",this.theme);
smcookie.send();
};
this.setCSS=function(){
window.document.getElementById("e").style.display="none";
window.document.getElementById("loadingStyle").style.display="block";
window.document.getElementById("loadingStyle").innerHTML="Loading...";
window.document.getElementById("default").setAttribute("href","/dp_content/"+this.brand+"/startpage/themes/"+this.theme+"/"+this.theme+".css");
};
this.setCSSCheck=function(){
try{
if(!document.styleSheets[0].cssRules.length>0){
return false;
}
}
catch(e){
return false;
}
return true;
};
this.reDraw=function(){
window.document.getElementById("loadingStyle").style.display="none";
window.document.getElementById("e").style.display="block";
this.set("edit",false);
};
}
WelcomePod.prototype=new Pod();
function HoroscopePod(){
this.temp=Pod;
this.temp();
delete this.temp;
this.tID=3;
this.xsl="horoscope";
this.sProps.push("signs");
this.sign_names=new Array("","aries","taurus","gemini","cancer","leo","virgo","libra","scorpio","sagittarius","capricorn","aquarius","pisces");
this.getContentUrl=function(){
return this.baseUrl+"t=f&r=horoscope&l="+this.signs.join(";");
};
this.setSign=function(num,_21){
this.signs[num]=_21;
};
this.setSigns=function(){
try{
var _22=document.getElementById(this.eID);
}
catch(e){
throw new Error("Could not access edit fields.");
}
var _23=_22.getElementsByTagName("select");
this.setSign(0,_23.item(0).options[_23[0].selectedIndex].value);
this.setSign(1,"");
this.set("edit",false,true);
};
this.setSignAndLeave=function(){
var _24=document.getElementById("hor_month");
if(_24.value==""){
alert("Please select a month");
return false;
}
var day=document.getElementById("hor_day");
if(day.value==""){
alert("Please select a day");
return false;
}
var sgn=this.getSignByDate(_24.value,day.value);
window.open("http://www.superhoroscopes.com/index.php?sign="+this.sign_names[sgn]);
return false;
};
this.getSignByDate=function(_27,day){
if(_27==4){
if(day>=20){
return 2;
}else{
return 1;
}
}
if(_27==5){
if(day>=21){
return 3;
}else{
return 2;
}
}
if(_27==6){
if(day>=22){
return 4;
}else{
return 3;
}
}
if(_27==7){
if(day>=23){
return 5;
}else{
return 4;
}
}
if(_27==8){
if(day>=23){
return 6;
}else{
return 5;
}
}
if(_27==9){
if(day>=23){
return 7;
}else{
return 6;
}
}
if(_27==10){
if(day>=23){
return 8;
}else{
return 7;
}
}
if(_27==11){
if(day>=22){
return 9;
}else{
return 8;
}
}
if(_27==12){
if(day>=21){
return 10;
}else{
return 9;
}
}
if(_27==1){
if(day>=20){
return 11;
}else{
return 10;
}
}
if(_27==2){
if(day>=19){
return 12;
}else{
return 11;
}
}
if(_27==3){
if(day>=20){
return 1;
}else{
return 12;
}
}
return 0;
};
this.initialize=function(){
this.currentTime=new Date();
this.month=this.currentTime.getMonth()+1;
this.day=this.currentTime.getDate();
this.signs=new Array();
this.signs[0]=this.getSignByDate(this.month,this.day);
};
this.log=function(){
this.logAction("nav:readings");
};
this.initialize();
}
HoroscopePod.prototype=new Pod();
function PitchPod(){
this.temp=Pod;
this.temp();
delete this.temp;
this.tID=21;
this.xsl="pitch";
this.pDate=0;
this.fLoad=true;
this.sProps.push("pDate","fLoad");
this.init=function(){
if(sniffer.isIE()){
this.queue("attachHPBehavior");
}
this.queue("insertPod");
this.queue("log");
this.queue("logToHitbox");
this.queue("recordFirstLoad");
};
this.attachHPBehaviorCheck=function(){
var _29=document.getElementsByTagName("body");
if(_29.length<1){
return false;
}
_29.item(0).addBehavior("#default#homePage");
return true;
};
this.insertPod=function(){
if(this.isHomePage()){
return;
}
this.content.setDocument(this.getContentUrl());
this.insert("loadingDiv");
this.showContent();
};
this.isHomePage=function(){
if(sniffer.isIE()){
return (document.getElementsByTagName("body").item(0).isHomePage(window.location.href));
}else{
return (document.referrer=="");
}
};
this.log=function(){
this.pVal1=(this.isHomePage()&&!this.fLoad)?702:701;
this.logAction("hb");
};
this.logToHitbox=function(){
var i=new Image();
if(this.isHomePage()&&!this.fLoad){
i.src="http://h.starware.com/HG?hc=we44&cd=1&hv=6&ce=u&hb=DM550528P6AD58EN3&n=Startpage+Conversion&vcon=/startpage/"+this.manager.lp["sID"]+"&seg=++2";
}else{
i.src="http://h.starware.com/HG?hc=we44&cd=1&hv=6&ce=u&hb=DM550528P6AD58EN3&n=Startpage+Pitch&vcon=/startpage/"+this.manager.lp["sID"];
}
this.manager.images.push(i);
};
this.recordFirstLoad=function(){
this.fLoad=false;
this.manager.save();
};
this.getContentUrl=function(){
return this.baseUrl+"t=f&r=pitch";
};
this.pitchIsScheduled=function(){
return (new Date().getTime()-this.pDate)>86400000;
};
this.pitch=function(){
if(!sniffer.isIE()){
return;
}
if(this.isHomePage()){
return;
}
if(!this.pitchIsScheduled()){
return;
}
this.pDate=new Date().getTime();
this.manager.save();
};
this.makeHomePage=function(){
var pod=document.getElementById(this.eID);
pod.style.behavior="url(#default#homepage)";
pod.setHomePage(window.location.href);
pod.style.display="none";
};
}
PitchPod.prototype=new Pod();
function FeedbackPod(){
this.temp=Pod;
this.temp();
delete this.temp;
this.tID=99;
this.xsl="feedback";
this.getContentUrl=function(){
return this.baseUrl+"t=f&r=feedback";
};
}
FeedbackPod.prototype=new Pod();

