// fade opacity of box_hover

$(document).ready(function(){
						   $(".box_hover").fadeTo("slow", 0.95); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $(".box_hover").hover(function(){
						   $(this).fadeTo("fast", 0.0); // This should set the opacity to 100% on hover
						   },function(){
						   $(this).fadeTo("fast", 0.95); // This should set the opacity back to 30% on mouseout
						   });
						   });


// popup

function openNewWindow(URLtoOpen, windowName, windowFeatures) {
    NewWindow = window.open(URLtoOpen, windowName, windowFeatures);
	NewWindow.focus();
};


// e-mail


var e_mail = "datdatdat";
var domain_name = "datdatdat.org";
var domain = ".org";

function print_mail_to_link()
{
   document.write("<a href=\"mailto");
   document.write(":" + e_mail + "@");
   document.write(domain_name + "\">" + e_mail + "@" + domain +"<\/a>");
}


//rounded corners

 window.onload = function()
  {
  
      settings = {
          tl: { radius: 4 },
          tr: { radius: 4 },
          bl: { radius: 4 },
          br: { radius: 4 },
          antiAlias: true,
          autoPad: true,
          validTags: ["div", "li"]
      }


      settings_navlink = {
          tl: { radius: 3 },
          tr: { radius: 3 },
          bl: { radius: 3 },
          br: { radius: 3 },
          antiAlias: true,
          autoPad: true,
          validTags: ["div", "li"]
      }
      
      
      settings_hover = {
          tl: { radius: 2 },
          tr: { radius: 2 },
          bl: { radius: 2 },
          br: { radius: 2 },
          antiAlias: true,
          autoPad: true,
          validTags: ["div", "li"]
      }
      
      
      
      var myBoxObject = new curvyCorners(settings, "box");
      myBoxObject.applyCornersToAll();
      
      var box_hover = new curvyCorners(settings_hover, "box_hover");
      box_hover.applyCornersToAll();
      
      var sidebar = new curvyCorners(settings, "thesidebar");
      sidebar.applyCornersToAll();

	  var navlink = new curvyCorners(settings_navlink, "navlink");
      navlink.applyCornersToAll();
      
        var hdr = new curvyCorners(settings_navlink, "hdr");
      hdr.applyCornersToAll();

      var blog = new curvyCorners(settings, "blogpost");
      blog.applyCornersToAll();

	   var pagediv = new curvyCorners(settings, "pagediv");
      pagediv.applyCornersToAll();


  }
