var StartUp = new Object();

StartUp.onload = function(e) {
	if (!e) {
		var e = window.event;
	}
	
	StartUp.applyRoundedCorners();
}

StartUp.applyRoundedCorners = function() {
	var rRadius = { radius : 10};
	var fRadius = { radius : 5};
	var validTagList = ["div", "img", "ul", "li", "a", "h1", "h2", "h3"];
	var roundedSettings = {
          tl: rRadius,
          tr: rRadius,
          bl: rRadius,
          br: rRadius,
          antiAlias: true,
          autoPad: true,
          validTags: validTagList
      };
	  
	  var roundedBottomSettings = {
	  	  tl: false,
          tr: false,
          bl: fRadius,
          br: fRadius,
          antiAlias: true,
          autoPad: false,
          validTags: validTagList
	  }	
	  
	  var roundedTopSettings = {
	  	tl: fRadius,
		tr: fRadius,
		bl : false,
		br : false,
		antiAlias : true,
		autoPad : true,
		validTags: validTagList
	  }
	  
	  var roundedRightSettings = {
		tl: false,
		tr : rRadius,
		bl : false,
		br : rRadius,
		antiAlias : true,
		autoPad : false,
		validTags : validTagList
	  }
	  
	  var roundedLeftSettings = {
		tl: rRadius,
		tr : false,
		bl : rRadius,
		br : false,
		antiAlias : true,
		autoPad : false,
		validTags : validTagList
	  }
	  
	  var topCorners = new curvyCorners(roundedTopSettings, "roundedTop");
	  topCorners.applyCornersToAll();
	  
	  var allCorners = new curvyCorners(roundedSettings, "rounded");
	  allCorners.applyCornersToAll();
	  
	  var rightCorners = new curvyCorners(roundedRightSettings, "roundedRight");
	  rightCorners.applyCornersToAll();
	  
	  var bottomCorners = new curvyCorners(roundedBottomSettings, "roundedBottom");
	  bottomCorners.applyCornersToAll();
	  
	  var leftCorners = new curvyCorners(roundedLeftSettings, "roundedLeft");
	  leftCorners.applyCornersToAll();
	  
	  
}

function $(id) {
	return document.getElementById(id);
}

// Attach onload event handlers


if (window.attachEvent && !window.opera) {
	window.attachEvent("onload", StartUp.onload);
} else if (window.addEventListener) {
	window.addEventListener("load", StartUp.onload, false);
} else if (document.addEventListener) {
	document.addEventListener("load", StartUp.onload, false);
}

// masking function for emails

function mask(end,middle,start,subject){
var one ='mai';
var two='lto:';
var three='?Subject=';
//start,middle,end,subject;
var putogether= one+two+start+middle+end+three+subject;
document.location.href=eval('"'+putogether+'"');
window.status=putogether;
}