﻿var addthis_pub = "1011web";
var addthis_brand = "Martinous Rugs";
var addthis_options = 'favorites, email, facebook, twitter, google, buzz, digg, myspace, linkedin, more';

jQuery.noConflict();
jQuery(document).ready(function() {
jQuery("input[type='text'], input[type='password'], select, textarea").blur(function() {
        jQuery(this).css("border-color", "#777");
        jQuery(this).css("background-color", "#eee");
    });
    jQuery("input[type='text'], input[type='password'], select,textarea").focus(function() {
    jQuery(this).css("border-color", "#460013");
    jQuery(this).css("background-color", "#ddd");
    });
    jQuery("input[type='submit']").hover(
      function() {
    jQuery(this).css("background-color", "#460013");
      },
      function() {
      jQuery(this).css("background-color", "#69001d");
      }
    );

});


var NewWin = null
function OpenWin(iWidth, iHeight, sURL) {
    iWidth = iWidth + 50; iHeight = iHeight + 100;
    if (navigator.appVersion.indexOf('MSIE 3') > -1 || parseInt(navigator.appVersion.substring(0, 1)) <= 2) { window.open(sURL); }
    else {
        if (NewWin == null) { NewWin = window.open(sURL, 'NewWindow', 'width=' + iWidth + ',height=' + iHeight + ',resizable,scrollbars'); }
        else { if (NewWin.closed) { NewWin = window.open(sURL, 'NewWindow', 'width=' + iWidth + ',height=' + iHeight + ',resizable,scrollbars'); } else { NewWin.location = sURL; NewWin.focus(); } } 
    }
}