PK e4N2( ( install.rdf
{1f030c40-8b57-11da-a72b-0800200c9a66}
Flyyy Image Bar
1.0.0
Flyyy Postcards Toolbar
content/
skin/
{ec8030f7-c20a-464f-9b0e-13a3a9e97384}
1.0
1.6
PK e4J U U chrome/flyyybar.jarPK e4L]! content/flyyybar.jsfunction search() {
var description=document.getElementById("searchbox").value;
if (description.length > 0) {
var url="http://www.flyyy.com/list.pl?cr=descriptions&val="+description+"&st=key&x=0&y=0";
// tabExt = getBrowser().addTab(url);
// getBrowser().selectedTab = tabExt;
getBrowser().contentWindow.document.location=url;
var tempItem = null;
tempItem = document.createElement("menuitem");
tempItem.setAttribute("label", description);
// Add the item to our menu
var popup=document.getElementById("searchpopup");
popup.appendChild(tempItem);
var searchList=document.getElementById("searchlist");
searchList.value=searchList.value+"||"+description;
}
}
function searchLocation() {
var description=document.getElementById("searchbox").value;
if (description.length > 0) {
var url="http://www.flyyy.com/list.pl?cr=locations&val="+description+"&st=key&x=0&y=0";
//tabExt = getBrowser().addTab(url);
//getBrowser().selectedTab = tabExt;
getBrowser().contentWindow.document.location=url;
var tempItem = null;
tempItem = document.createElement("menuitem");
tempItem.setAttribute("label", description);
// Add the item to our menu
var popup=document.getElementById("searchpopup");
popup.appendChild(tempItem);
var searchList=document.getElementById("searchlist");
searchList.value=searchList.value+"||"+description;
}
}
function searchAuthor() {
var description=document.getElementById("searchbox").value;
if (description.length > 0) {
var url="http://www.flyyy.com/list.pl?cr=authors&val="+description+"&st=key&x=0&y=0";
//tabExt = getBrowser().addTab(url);
//getBrowser().selectedTab = tabExt;
getBrowser().contentWindow.document.location=url;
var tempItem = null;
tempItem = document.createElement("menuitem");
tempItem.setAttribute("label", description);
// Add the item to our menu
var popup=document.getElementById("searchpopup");
popup.appendChild(tempItem);
var searchList=document.getElementById("searchlist");
searchList.value=searchList.value+"||"+description;
}
}
function clear_search_history() {
var menuList=document.getElementById("searchbox");
menuList.value="";
var popup=document.getElementById("searchpopup");
var nodeList=popup.childNodes;
var i;
/*for (i=0;i=0; i--) {
popup.removeChild(popup.childNodes.item(i));
}
var searchList=document.getElementById("searchlist");
searchList.value='';
}
function popup() {
var url="http://www.flyyy.com/public/English/send.pl?st=daypost";
//tabExt = getBrowser().addTab(url);
//getBrowser().selectedTab = tabExt;
getBrowser().contentWindow.document.location=url;
}
function about() {
alert("Flyyy Image Bar - by Fabrizio Giammatteo - (C) Flyyy ltd 2006 - http://www.flyyy.com");
}
function makeRequest(url, parameters) {
http_request = false;
http_request = new XMLHttpRequest();
if (http_request.overrideMimeType) {
http_request.overrideMimeType('text/xml');
}
if (!http_request) {
alert('Cannot create XMLHTTP instance');
return false;
}
http_request.onreadystatechange = alertContents;
http_request.open('GET', url + parameters, true);
http_request.send(null);
return true;
}
function alertContents() {
if (http_request.readyState == 4) {
if (http_request.status == 200) {
var images=http_request.responseText.split(",");
//document.getElementById('mypanel').label = "Flyyy";
document.getElementById('imageofthedaybar').src=images[0];
document.getElementById('tooltipimagebar').src=images[1];
//document.getElementById('sendthis').src=images[1];
} else {
alert('There was a problem with the request.');
}
}
}
function updateflyyy() {
makeRequest("http://www.flyyy.com/admin/getpday.pl?check=2", '');
self.setTimeout('updateflyyy()', 900000);
}
function setItalian() {
var language=document.getElementById("language");
language.value="it";
localizeApp();
}
function setEnglish() {
var language=document.getElementById("language");
language.value="en";
localizeApp();
}
function updateSearchList() {
var popup=document.getElementById("searchpopup");
var searchList=document.getElementById("searchlist").value;
var termArray = new Array();
termArray = searchList.split("||");
// Load the search terms into our menu
for(var i=0; i