// affects the display of pages - where CSS is not enough
//$(document).ready(function() {
//if ($.browser.msie) { // for IE6 as CSS attr selector are not supported
//$('input[@type$="checkbox"]').each(function() {
//$(this).addClass('checkbox');
//});
//$('input[@type$="radio"]').each(function() {
//$(this).addClass('radio');
//});
//}
//});
function ajax_loader(type) {
if (type == "start") {
$('body').prepend('<div class="loading"><span>Loading</span></div>');
} else {
$('div.loading').slideDown('slow').remove();
};
}$(document).ready(function(){
var form = document.getElementById("scart");
if (form == null) return;
form.onsubmit = function()  {
var f='';
var o={};
$(form).find("input, textarea, select").each(function() {
o[this.name]=$(this).val();
});
$.post(form.getAttribute("action") +'ajax/', o, function() {
if ($.browser.msie) {
var $url = '/shopping_carts/minicart/' +'?' + new Date().getTime();
} else {
var $url = '/shopping_carts/minicart/';
}
$('#right').load($url);
});
$('#right').empty();
$('#right').prepend('<div id="temp-cart1"><div id="temp-cart2">Loading</div></div>');
$("#temp-cart2").height(200);
return false;
}
});
/* ----------------------------------
jQuery killIE v0.3
very basic plugin to help kill Internet Explorer 6 and/or 7
tested with jQuery v1.2+
©2008 CSSLab.cl
free for any use, of course... :D
instructions: http://www.csslab.cl/2008/09/24/muerte-a-ie-nuevo-plugin/
---------------------------------- */
var firefox = "<a href='http://www.getfirefox.com/' title='Link to download Firefox browser'>Firefox</a>";
var opera = "<a href='http://www.opera.com/download/' title='Link to download Opera Browser'>Opera</a>";
var safari = "<a href='http://www.apple.com/safari/download/' title='Link to download Apple Safari browser'>Safari</a>";
var chrome = "<a href='http://www.google.com/chrome' title='Link to download Google Chrome browser'>Chrome</a>";
var ie6 = "6.0";
var ie7 = "7.0";
jQuery.fn.killIE = function(settings){
settings = jQuery.extend({
text: "You're using Internet Explorer 6, which is a terrible browser. Why don't you try",
style: "background: yellow; padding: 3px 10px; text-align: center; font-weight: bold; color: #333; font-family: Arial, sans-serif;",
browser: firefox,
version: ie6
}, settings);
return this.each(function(){
    alert(this);
  });
/*return this.each(function(){
alert('d');
//var ie6to8 = jQuery.support.leadingWhitespace;
//    var ie7to8 = jQuery.support.objectAll;
//    if((ie6to8 && !ie7to8) || (!ie6to8 && ie7to8)) { //simulating a XOR
//       // is ie6
//       alert('b');
//    }
    alert('c');
//alert(jQuery.support.boxModel);
//if ($.browser.msie && $.browser.version.substr(0,1)<7) {
//alert('a');
//}
    jQuery.each(jQuery.browser, function(i, val) {
if(i=="msie" && jQuery.browser.version.substr(0,3)==settings.version)
$("body").prepend(
"<p style='"+settings.style+"'>"+settings.text+" "+settings.browser+"?</p>"
);
});
});*/
};
$(document).ready(function(){
     $().killIE();
});