<!--

// vars
var ie6 = false;
var search_string='';

// functions
function setText(a, b) {
x = document.getElementById(a); // getElementById
if (x)
x.innerHTML = b.options[b.selectedIndex].innerHTML;
}


jQuery(function($){ 
$(document).ready(function() {


//alert("Hello World");

// Webkit Search Input Attributes
/*
$("#searchbox").replaceWith("<input id='searchbox' name='search' type='search' autosave='freedomclothing' placeholder='search products...' results='5' value='"+search_string+"' />");
//*/


// end

//*
var searchboxFocus = false;
$("input#searchbox").focus(function () {
  $(this).css("background","url( 'images/front/ui/searchbox.png' ) 0 100% no-repeat");
  searchboxFocus = true;
});
$("input#searchbox").blur(function () {
  $(this).css("background","url( 'images/front/ui/searchbox.png' ) 0 0 no-repeat");
  searchboxFocus = false;
});
// hover
$("input#searchbox").hover(function() {
  $(this).css("background","url( 'images/front/ui/searchbox.png' ) 0 100% no-repeat");
}, function() {  
  if (!searchboxFocus){
    $(this).css("background","url( 'images/front/ui/searchbox.png' ) 0 0 no-repeat");
  }
});
//*/


// image hover rollover (.jq_rollover)
$(".window img").hover(function() {
  $(this).parent().next('div').children('a').addClass('rollover');
}, function() {  
  $(this).parent().next('div').children('a').removeClass('rollover');
});


// external links
$(".ext").attr("target","_blank");

});
});
-->