jQuery(document).ready(function() {   
	jQuery("#logo_slider").easySlider({
		auto: false,
		continuous: true 
	});
});
jQuery(document).ready(function() {

if ( typeof jQuery().overlay == "function" ) {

	jQuery("a.overlay").overlay({top:140, closeOnClick: true});
}

});

/*

jQuery("#menu > li").bind("mouseenter",
			function(e) {
				jQuery(this).children("ul").stop( {gotoEnd:true} );
				jQuery(this).children("ul").css("height","auto");
				jQuery(this).children("ul").slideDown(200);
			}
		);
		jQuery("#menu > li").bind("mouseleave",
			function(e) {
				//jQuery(this).children("ul").stop( {gotoEnd:true} );
				jQuery(this).children("ul").slideUp(200);
			}
		);
});

*/

function qrToggle(object) {

	if( object.options[object.selectedIndex].value == "Yes" ){
		document.getElementById("subapp").disabled = false;
	}
	else {
		document.getElementById("subapp").disabled = true;
	}
}

function hideAndShow(hideIds, showIds) {

	for (var hideId in hideIds)
	{
		document.getElementById(hideIds[hideId]).style.display="none";
		document.getElementById(hideIds[hideId]+'_tab').className="";
	}
	for (var showId in showIds)
	{		
		if(showIds[showId] == 'techspecs') {
			$('#content').css('position','relative');
			$('#content div.product_options').css('display', 'none');
			$('#content div.product_options_techspecs').css('display', 'block');			
			$('#techspecs').css('width', '800px');
		} else {
			$('#content').css('position','static');
			$('#content div.product_options_techspecs').css('display', 'none');
			$('#content div.product_options').css('display', 'block');
		}
		document.getElementById(showIds[showId]).style.display="block";
		document.getElementById(showIds[showId]+'_tab').className="selected";
	}
	return false;
}

function highlight(element) {
	element.focus();
	element.select();
}





function clearSearchInput(search) {
	if(search.value == "Product Search") {search.value="";}
}

