compare airline prices - Online Search Resource
var high = "1";
jQuery(document).ready(function(){
// clear form when initially clicked
$('.search_field').click(function() {
if(jQuery(this).val() == 'SEARCH'){
jQuery(this).attr('value', '');
}
});
// on hover, invert number color
$("#resultsList li").hover(
function () {
if(hoverInterval){
clearInterval(hoverInterval);
$(".hoveredWrap").removeClass('hoveredWrap').find('.resultNumber').removeClass('numberHover').addClass('color_gradient');
};
$(this).find('.resultNumber').removeClass('color_gradient').addClass('numberHover');
},
function () {
$(this).find('.resultNumber').removeClass('numberHover').addClass('color_gradient');
}
);
// image hover
$(".image_wrap tr td img").hover(
function () {
$(this).css({'height':'98px','width':'98px'});
},
function () {
$(this).css({'height':'92px','width':'92px'});
}
);
$(".overlay_ad_image_wrap tr td img").hover(
function () {
$(this).css({'height':'58px','width':'58px'});
},
function () {
$(this).css({'height':'52px','width':'52px'});
}
);
// more button hover
$(".resultMoreButton").hover(
function () {
$(this).addClass('buttons_gradient_hover').css({'font-size':'20px','padding':'7px 18px','top':'12px','right':'10px'});
},
function () {
$(this).removeClass('buttons_gradient_hover').css({'font-size':'18px','padding':'5px 16px','top':'14px','right':'14px'});
}
);
// result title hover
$("#resultsList li a strong").hover(
function () {
$(this).css({'text-decoration':'underline'});
},
function () {
$(this).css({'text-decoration':'none'});
}
);
// result link hover
$("#resultsList li .resultLink").hover(
function () {
$(this).css({'font-size':'14px','margin-top':'6px','text-decoration':'underline'});
},
function () {
$(this).css({'font-size':'12px','margin-top':'6px','text-decoration':'none'});
}
);
if(high != '0')
{
function defaultHover(){
$(".hoveredWrap").removeClass('hoveredWrap').find('.resultNumber').removeClass('numberHover').addClass('color_gradient');
$('#resultsList').find('li').eq(hoverIndex).toggleClass('hoveredWrap').find('.resultNumber').removeClass('color_gradient').addClass('numberHover');
hoverIndex += 1;
if (hoverIndex == 5){
hoverIndex = 0;
}
}
hoverInterval = setInterval ( defaultHover, 2000 );
hoverIndex = 0;
}
});
/***Combo Menu Load Ajax snippet**/
function ajaxcombo(selectobjID, loadarea){
var selectobj=document.getElementById? document.getElementById(selectobjID) : ""
if (selectobj!="" && selectobj.options[selectobj.selectedIndex].value!="")
ajaxpage(selectobj.options[selectobj.selectedIndex].value, loadarea)
}
function postSearchForm(search)
{
document.rstop.search.value = search;
document.rstop.submit();
}
//ajaxpage('topix.php?uid=14811&pid=0&search=compare+airline+prices&city=&state=', 'related_articles')
//ajaxpage('twitter.php?search=compare+airline+prices', 'swickiRecentComments')
//ajaxpage('topix_headlines.php?uid=14811&pid=0&search=compare+airline+prices&city=&state=', 'topix')
//ajaxpage('ybf.php?uid=14811&pid=0&search=compare+airline+prices&place=%2C+', 'relatedSearches')
function ajaxCalls()
{
ajaxpage('ybfLocal.php?search=compare+airline+prices&place=%2C+&city=&state=', 'localResultsListing')
ajaximage('getflickrImg.php?search=compare+airline+prices', 'flickrImg')
}
//ajaxpage('ybf_horiz.php?uid=14811&pid=0&search=compare+airline+prices&place=%2C+', 'relKeywords')
_uacct = "UA-1914544-3";
urchinTracker();
x server