var debugON = 0;


function debug(txt){
if (debugON){
	if (!document.getElementById('debugWindow')) {
	var debugW = document.createElement('DIV');
	debugW.setAttribute('id', 'debugWindow');
	debugW.style.position = 'absolute';
	debugW.style.top = '10px';
	debugW.style.right = '10px';
	debugW.style.background= '#ffffff';
	debugW.style.border= '2px solid #000000';
	debugW.style.color= '#000';
	debugW.style.padding= '5px';
	document.body.appendChild(debugW);
	
	fadeMe(document.getElementById('debugWindow'),70);
	document.getElementById('debugWindow').innerHTML = '<b>DEBUG WINDOW</b> <a href="javascript:hideMe(\'debugWindow\')">X</a><br />';
	}
	document.getElementById('debugWindow').style.display= 'block';
	document.getElementById('debugWindow').innerHTML += txt+'<br />'; 
}
}
function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
			oldonload();
			func;
		}
	}
}
/* document.getElementsBySelector(selector)
   - returns an array of element objects from the current document
     matching the CSS selector. Selectors can contain element names, 
     class names and ids and can be nested. For example:
     
       elements = document.getElementsBySelect('div#main p a.external')
     
     Will return an array of all 'a' elements with 'external' in their 
     class attribute that are contained inside 'p' elements that are 
     contained inside the 'div' element which has id="main"

   New in version 0.4: Support for CSS2 and CSS3 attribute selectors:
   See http://www.w3.org/TR/css3-selectors/#attribute-selectors

   Version 0.4 - Simon Willison, March 25th 2003
   -- Works in Phoenix 0.5, Mozilla 1.3, Opera 7, Internet Explorer 6, Internet Explorer 5 on Windows
   -- Opera 7 fails 
*/

function getAllChildren(e) {
  // Returns all children of element. Workaround required for IE5/Windows. Ugh.
  return e.all ? e.all : e.getElementsByTagName('*');
}

document.getElementsBySelector = function(selector) {
  // Attempt to fail gracefully in lesser browsers
  if (!document.getElementsByTagName) {
    return new Array();
  }
  // Split selector in to tokens
  var tokens = selector.split(' ');
  var currentContext = new Array(document);
  for (var i = 0; i < tokens.length; i++) {
    token = tokens[i].replace(/^\s+/,'').replace(/\s+$/,'');;
    if (token.indexOf('#') > -1) {
      // Token is an ID selector
      var bits = token.split('#');
      var tagName = bits[0];
      var id = bits[1];
      var element = document.getElementById(id);
      if (tagName && element.nodeName.toLowerCase() != tagName) {
        // tag with that ID not found, return false
        return new Array();
      }
      // Set currentContext to contain just this element
      currentContext = new Array(element);
      continue; // Skip to next token
    }
    if (token.indexOf('.') > -1) {
      // Token contains a class selector
      var bits = token.split('.');
      var tagName = bits[0];
      var className = bits[1];
      if (!tagName) {
        tagName = '*';
      }
      // Get elements matching tag, filter them for class selector
      var found = new Array;
      var foundCount = 0;
      for (var h = 0; h < currentContext.length; h++) {
        var elements;
        if (tagName == '*') {
            elements = getAllChildren(currentContext[h]);
        } else {
            elements = currentContext[h].getElementsByTagName(tagName);
        }
        for (var j = 0; j < elements.length; j++) {
          found[foundCount++] = elements[j];
        }
      }
      currentContext = new Array;
      var currentContextIndex = 0;
      for (var k = 0; k < found.length; k++) {
        if (found[k].className && found[k].className.match(new RegExp('\\b'+className+'\\b'))) {
          currentContext[currentContextIndex++] = found[k];
        }
      }
      continue; // Skip to next token
    }
    // Code to deal with attribute selectors
    if (token.match(/^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/)) {
      var tagName = RegExp.$1;
      var attrName = RegExp.$2;
      var attrOperator = RegExp.$3;
      var attrValue = RegExp.$4;
      if (!tagName) {
        tagName = '*';
      }
      // Grab all of the tagName elements within current context
      var found = new Array;
      var foundCount = 0;
      for (var h = 0; h < currentContext.length; h++) {
        var elements;
        if (tagName == '*') {
            elements = getAllChildren(currentContext[h]);
        } else {
            elements = currentContext[h].getElementsByTagName(tagName);
        }
        for (var j = 0; j < elements.length; j++) {
          found[foundCount++] = elements[j];
        }
      }
      currentContext = new Array;
      var currentContextIndex = 0;
      var checkFunction; // This function will be used to filter the elements
      switch (attrOperator) {
        case '=': // Equality
          checkFunction = function(e) { return (e.getAttribute(attrName) == attrValue); };
          break;
        case '~': // Match one of space seperated words 
          checkFunction = function(e) { return (e.getAttribute(attrName).match(new RegExp('\\b'+attrValue+'\\b'))); };
          break;
        case '|': // Match start with value followed by optional hyphen
          checkFunction = function(e) { return (e.getAttribute(attrName).match(new RegExp('^'+attrValue+'-?'))); };
          break;
        case '^': // Match starts with value
          checkFunction = function(e) { return (e.getAttribute(attrName).indexOf(attrValue) == 0); };
          break;
        case '$': // Match ends with value - fails with "Warning" in Opera 7
          checkFunction = function(e) { return (e.getAttribute(attrName).lastIndexOf(attrValue) == e.getAttribute(attrName).length - attrValue.length); };
          break;
        case '*': // Match ends with value
          checkFunction = function(e) { return (e.getAttribute(attrName).indexOf(attrValue) > -1); };
          break;
        default :
          // Just test for existence of attribute
          checkFunction = function(e) { return e.getAttribute(attrName); };
      }
      currentContext = new Array;
      var currentContextIndex = 0;
      for (var k = 0; k < found.length; k++) {
        if (checkFunction(found[k])) {
          currentContext[currentContextIndex++] = found[k];
        }
      }
      // alert('Attribute Selector: '+tagName+' '+attrName+' '+attrOperator+' '+attrValue);
      continue; // Skip to next token
    }
    // If we get here, token is JUST an element (not a class or ID selector)
    tagName = token;
    var found = new Array;
    var foundCount = 0;
    for (var h = 0; h < currentContext.length; h++) {
      var elements = currentContext[h].getElementsByTagName(tagName);
      for (var j = 0; j < elements.length; j++) {
        found[foundCount++] = elements[j];
      }
    }
    currentContext = found;
  }
  return currentContext;
}

/* That revolting regular expression explained 
/^(\w+)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/
  \---/  \---/\-------------/    \-------/
    |      |         |               |
    |      |         |           The value
    |      |    ~,|,^,$,* or =
    |   Attribute 
   Tag
*/
/************************************************************************************************************
CENTERED ULTIMATE TOOLTIP
************************************************************************************************************/
function fadeMe(obj,value){
obj.style.filter='Alpha(Opacity='+value+')';
obj.style.MozOpacity=(value/100);
obj.style.filter = 'progid:DXImageTransform.Microsoft.Alpha(opacity='+value+')';
}

function fadeIn(paragraphId,couleur){ 
	if(couleur<255) { //If color is not white yet
		couleur+=11; // increase color darkness
		document.getElementById(paragraphId).style.color="rgb("+couleur+","+couleur+","+couleur+")";
		setTimeout("fadeIn(\'"+paragraphId+"\', "+couleur+")",10); 
	}
	else {
	couleur=0; //reset couleurTitre value
	}
}
var FunkytooltipstoppedFading = 0;
function fadeOut(paragraphId,couleur){ 
	if(couleur>0) { //If color is not black yet
		couleur-=11; // increase color darkness
		document.getElementById(paragraphId).style.color="rgb("+couleur+","+couleur+","+couleur+")";
		setTimeout("fadeOut(\'"+paragraphId+"\', "+couleur+")",10); 
		FunkytooltipstoppedFading = 0;
	}
	else {
	couleur=255; //reset couleurTitre value
	document.getElementById(paragraphId).style.top=-500+"px";
	FunkytooltipstoppedFading = 1;
	}
}
var FunkytooltipI;
function showAbsoluteTooltipText (DivID){
	DivIDWidth = document.getElementById(DivID).style.width.substr(0, (document.getElementById(DivID).style.width.length-2));
	document.getElementById(DivID).style.left=(getWindowWidth()/2)-(DivIDWidth/2)+"px";
	FunkytooltipstoppedFading = 0;
	FunkytooltipI = setInterval("keepCentered(\'"+DivID+"\')",400); 
	setTimeout("fadeOut(\'"+DivID+"\', 255)",4500); 
}

function keepCentered(stuff){
if (FunkytooltipstoppedFading==0) {
	DivIDHeight = document.getElementById(stuff).style.height.substr(0, (document.getElementById(stuff).style.height.length-2));
	document.getElementById(stuff).style.top=(getWindowHeight()/2)-(DivIDHeight/2)+document.documentElement.scrollTop+"px";
} else {
clearInterval(FunkytooltipI);
}
}
/************************************************************************************************************
GET WINDOW HEIGHT & WIDTH
************************************************************************************************************/
function getWindowWidth() {
	var windowWidth=0;
	if (typeof(window.innerWidth)=="number") {
		windowWidth=window.innerWidth;
	}
	else {
		if (document.documentElement&&
		document.documentElement.clientWidth) {
			windowWidth = document.documentElement.clientWidth;
		}
		else {
			if (document.body&&document.body.clientWidth) {
				windowWidth=document.body.clientWidth;
			}
		}
	}
	return windowWidth;
}
function getWindowHeight() {
	var windowHeight=0;
	if (typeof(window.innerHeight)=="number") {
		windowHeight=window.innerHeight;
	}
	else {
		if (document.documentElement&&
		document.documentElement.clientHeight) {
			windowHeight = document.documentElement.clientHeight;
		}
		else {
			if (document.body&&document.body.clientHeight) {
				windowHeight=document.body.clientHeight;
			}
		}
	}
	return windowHeight;
}
/************************************************************************************************************
START BLAJAX (c) 2007 Baudouin LAMOURERE - BLWORKS.NET
************************************************************************************************************/
//close function//
function hideMe(who){
	document.getElementById(who).style.display = "none";
}
var blajax_xmlhttp;
var div2fill;
var myCallBack;
function blajax(aj_method,url,datas,div2update,callbackFunction,showLoading) {
	div2fill = div2update;
	myCallBack=callbackFunction;
	if (showLoading == undefined || showLoading == ''){
		if (div2fill == "fullscreen"){
	          dragObject = document.createElement("DIV");
	          document.body.appendChild(dragObject);
	          dragObject.setAttribute('id','fullscreen');
			document.getElementById(div2fill).style.height = getWindowHeight()+"px";
			//-20px to avoid horizontal scrollbar !
			document.getElementById(div2fill).style.width = (getWindowWidth()-20)+"px";
			document.getElementById(div2fill).style.color = "#000000";
			document.getElementById(div2fill).style.zIndex = "100000";
			document.getElementById(div2fill).style.display = "block";
			document.getElementById(div2fill).style.top = "0px";
			document.getElementById(div2fill).style.left = "0px";
	                document.getElementById(div2fill).style.position = "absolute";
			document.getElementById(div2fill).innerHTML = "<table style=\"height:100%;width:100%;\"><tr><td style=\"vertical-align:middle;text-align:center;\"><div style=\"text-align:center;background:#ffffff;border:1px solid #000000;width:550px;margin:auto;padding:5px;\"><img src=\".\/includes/loading.gif\" alt=\"loading\" title=\"loading\" style=\"vertical-align:middle;\" \/> loading...<\/div><\/td><\/tr><\/table>";
		} else {
			document.getElementById(div2fill).innerHTML = "<img src=\".\/includes/loading.gif\" alt=\"loading\" title=\"loading\" style=\"vertical-align:middle;\" \/> loading...";
		}
	}
	//if(window.XMLHttpRequest) blajax_xmlhttp = new XMLHttpRequest();
	//else if(window.ActiveXObject) blajax_xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	if (typeof(blajax_xmlhttp)!='undefined')blajax_xmlhttp.close;
blajax_xmlhttp = GetXmlHttpObject()
if (blajax_xmlhttp==null) {
alert ("Browser does not support HTTP Request")
return
}	
	//if(blajax_xmlhttp && blajax_xmlhttp.readyState < 4) blajax_xmlhttp.abort();
	if ( callInProgress(blajax_xmlhttp) ) {
	blajax_xmlhttp.abort();
	reportTimeout();
	debug('callInProgress => clearing ajax datas : '+datas);
	}
	blajax_xmlhttp.onreadystatechange = processjax;
	if (aj_method=="GET"){
		urlToGo = url +"?"+ datas + "&linkjax="+(Math.random()*99999);// random for IE to stop caching...stupid ie
		blajax_xmlhttp.open(aj_method, urlToGo, true);
		blajax_xmlhttp.send(null);
	} else {
		urlToGo = url + "?linkjax="+(Math.random()*99999);// random for IE to stop caching...stupid ie
		blajax_xmlhttp.open("POST", urlToGo, true);
		blajax_xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
		blajax_xmlhttp.setRequestHeader("Content-length", datas.length);
		blajax_xmlhttp.setRequestHeader("Connection", "close");		
		blajax_xmlhttp.send(datas);
	}
	return false; // AJAX called, tell browser to stop the follow through on the link
}
function reportTimeout() {
// Fairly inexact but still something
alert("A request was timed out. Taking too long");
}
function callInProgress(blajax_xmlhttp) {
switch ( blajax_xmlhttp.readyState ) {
case 1: case 2: case 3:
return true;
break;

// Case 4 and 0
default:
return false;
break;
}
}
function GetXmlHttpObject() {
var xmlHttp=null;
try {
// Firefox, Opera 8.0+, Safari
xmlHttp=new XMLHttpRequest();
} catch (e) {
//Internet Explorer
try {
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return xmlHttp;
} 
function processjax() {
	if(blajax_xmlhttp.readyState == 4 && blajax_xmlhttp.status == 200) {
	debug ('readyState : '+blajax_xmlhttp.readyState + ' // status :'+blajax_xmlhttp.status+' // responseText : '+blajax_xmlhttp.responseText + ' // statusText ' +blajax_xmlhttp.statusText );
        if (myCallBack=="reload") window.location.reload();
		if (div2fill == "fullscreen"){
			document.getElementById(div2fill).innerHTML = "<table style=\"height:100%;width:100%;\"><tr><td style=\"vertical-align:middle;text-align:center;\"><div id=\"floatingForm\" style=\"position:relative;text-align:left;background:#ffffff;border:1px solid #000000;width:550px;margin:auto;padding:5px;overflow-x:hidden;height:"+(400)+"px;overflow-y:scroll;\"><div style=\"position:absolute;right:5px;\"><a href=\"javascript:hideMe(\'"+div2fill+"\');\">close<\/a><\/div>" + blajax_xmlhttp.responseText + "<\/div><\/td><\/tr><\/table>";
		} else {
			document.getElementById(div2fill).innerHTML = blajax_xmlhttp.responseText;
		}
		if (typeof(myCallBack)== "function") myCallBack;
	}
	if(blajax_xmlhttp.readyState == 4 && blajax_xmlhttp.status != 200) {
		debug ('ERROR readyState : '+blajax_xmlhttp.readyState + ' // status :'+blajax_xmlhttp.status );
		document.getElementById(div2fill).innerHTML = "<table style=\"height:100%;width:100%;\"><tr><td style=\"vertical-align:middle;text-align:center;\"><div id=\"floatingForm\" style=\"position:relative;text-align:left;background:#ffffff;border:1px solid #000000;width:550px;margin:auto;padding:5px;overflow-x:hidden;height:"+(getWindowHeight()-50)+"px;overflow-y:scroll;\"><div style=\"position:absolute;right:5px;\"><a href=\"javascript:hideMe(\'"+div2fill+"\');\">close<\/a><\/div>error<\/div><\/td><\/tr><\/table>";
	}
}

function only_number(input) {
         var num = input.value.replace(/\./g,'');
         input.value = input.value.replace(/[^\d]*/g,'');
}
function isValidEmail(str)
{
	var x = str;
	var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if (filter.test(x)) {
	  //alert('YES! Correct email address');
          return true;
        } else {
                 alert('Incorrect email address');
        return false;
        }
}
/************************************************************************************************************
CSS CLASS TABS SWITCHER
************************************************************************************************************/
	function tabCSSswitch(prefix,id,total,newclassname){
		for(i=1;i<(total+1);i++)
		{
			document.getElementById(prefix+i).className="";
		}
		document.getElementById(prefix+id).className=newclassname;
         }
function print_date(){
	Stamp = new Date();
	theDay = Stamp.getDate();
	theMonth = Stamp.getMonth()+ 1;
        if (theDay <10){
	     theDay ="0" + theDay;
        }
        if (theMonth <10){
	     theMonth ="0" + theMonth;
        }

	//document.write();
	var Hours;
	var Mins;
	Hours = Stamp.getHours();
	Mins = Stamp.getMinutes();
	if (Hours < 10) {
		Hours = "0" + Hours;
	}
	if (Mins < 10) {
		Mins = "0" + Mins;
	}
	
	document.write(theDay +"/"+ theMonth + "/"+ Stamp.getFullYear() + ' - ' + Hours + ":" + Mins + '');
}

///////////////////////////////////////////////////////////////////////////////////////////////////////////////
//TOOLTIP !!!!
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
function ToolTip(e,text,TTwidth){
	if(document.all)e = event;
	if (!TTwidth) TTwidth=147;
	var obj = document.getElementById('bubble_tooltip');
	var obj2 = document.getElementById('bubble_tooltip_content');

	obj2.innerHTML = text;
	obj.style.width = TTwidth + "px";
        //obj.style.width = 'auto';
        //newWidth = obj.offsetWidth;
        obj.style.display = 'block';
	
	var leftPos = e.clientX +20;//TTwidth ;
	if(leftPos<0)leftPos = 0;
	obj.style.left = leftPos + 'px';
	

	//var st = Math.max(document.body.scrollTop,document.documentElement.scrollTop);
	var st = document.documentElement.scrollTop;
	if(navigator.userAgent.toLowerCase().indexOf('safari')>=0) st=document.body.scrollTop; 

	topPos = e.clientY + st;
	//alert(getWindowHeight()+"/"+obj.offsetHeight+"/"+e.clientY+"/"+document.body.scrollTop+"/"+document.documentElement.scrollTop);
	if(topPos+obj.offsetHeight>getWindowHeight()+ st) topPos -= obj.offsetHeight;
	obj.style.top =  topPos + 'px';
	//obj.style.top = (e.clientY+3)+'px';
	//obj.style.left = (e.clientX+3)+'px';
}

function hideToolTip(){
	document.getElementById('bubble_tooltip').style.display = 'none';
}

/************************************************************************************************************
DIV VISIBLE/HIDE
************************************************************************************************************/
function toggle(id) {
			if (document.getElementById(id).style.display == '' || document.getElementById(id).style.display == 'block'){
				document.getElementById(id).style.display = 'none';
			} else {
				document.getElementById(id).style.display = '';
			}
}
function toggleTD(id) {
			if (document.getElementById(id).style.display == ''){
				document.getElementById(id).style.display = 'none';
			} else {
				document.getElementById(id).style.display = '';
			}
}
/************************************************************************************************************
REPLACE LINKS WITH IMAGES
************************************************************************************************************/
function scanforlinks() {
    // securing against really old DOMs
    if (! document.getElementsByTagName){return false};
    if (! document.getElementById){return false};
    // Quick utility function by Geir Bækholt
    // Scan all links in the document and set classes on them dependant on
    // whether they point to the current site or are external links

    //contentarea = getContentArea()
    //if (! contentarea){return false}

    links = document.getElementsByTagName('A');
    for (i=0; i < links.length; i++) {
        if ((links[i].getAttribute('href')) && (links[i].className.indexOf('link-plain')==-1 )) {
            var linkval = links[i].getAttribute('href');
            // check if the link href is a relative link, or an absolute link to the current host.
			//alert(linkval);
            if (linkval.toLowerCase().indexOf(window.location.protocol+'//'+window.location.host)==0) {
                // we are here because the link is an absolute pointer internal to our host
                // vps - show pdf icon if filename has .pdf in it

                if (linkval.toLowerCase().substring((linkval.length-4), linkval.length).indexOf('.pdf') == 0) {
                    //pdf file, add the pdf class
                    wrapNode(links[i], 'span', 'link-pdf')
                }
                else if (linkval.toLowerCase().substring((linkval.length-5), linkval.length).indexOf('.html') == 0) {
                    //pdf file, add the pdf class
                    wrapNode(links[i], 'span', 'link-html')
                }				
            } else if (linkval.indexOf('http:') != 0 && (linkval.toLowerCase().substring((linkval.length-5), linkval.length).indexOf('.html') == 0)) {
                // not a http-link. Possibly an internal relative link, but also possibly a mailto ot other snacks
                // add tests for all relevant protocols as you like.
                        wrapNode(links[i], 'span', 'link-internal','int')
            } else if (linkval.indexOf('http:') != 0) {
                // not a http-link. Possibly an internal relative link, but also possibly a mailto ot other snacks
                // add tests for all relevant protocols as you like.

                
				if (linkval.toLowerCase().substring((linkval.length-4), linkval.length).indexOf('.pdf') == 0) {
						//pdf file, add the pdf class
						wrapNode(links[i], 'span', 'link-pdf')
				}
				protocols = ['mailto', 'ftp', 'news', 'irc', 'h323', 'sip', 'callto', 'https']
                // h323, sip and callto are internet telephony VoIP protocols				
                for (p=0; p < protocols.length; p++) {
                    if (linkval.indexOf(protocols[p]+':') == 0) {
                        // this link matches the protocol . add a classname protocol+link
                        //links[i].className = 'link-'+protocols[p]
                        wrapNode(links[i], 'span', 'link-'+protocols[p])
                        break;
                    }
                }
            } else {
                // we are in here if the link points to somewhere else than our site.
                if ( links[i].getElementsByTagName('img').length == 0 ) {
                    // vps - in my case all my PDF files were internal to my site only.
                    // If you want to add an icon for external links also, add code similar to above here also
                    // we do not want to mess with those links that already have images in them
                    //links[i].className = 'link-external'
                    wrapNode(links[i], 'span', 'link-external','ext')
                    //links[i].setAttribute('target','_blank')
                }
            }
        }
    }
}
//addLoadEvent(scanforlinks);

/* vps - Display text '[PDF]' next to a pdf document link. Alternative to using
   PDF icon image (copyright issues with modifying size
*/
function wrapNode(node, wrappertype, wrapperclass,addText) {
    // utility function to wrap a node "node" in an arbitrary element of type
    // "wrappertype" , with a class of "wrapperclass"
    wrapper = document.createElement(wrappertype)
    wrapper.className = wrapperclass;
    innerNode = node.parentNode.replaceChild(wrapper,node);
    wrapper.appendChild(innerNode);
    wrapper.innerHTML = wrapper.innerHTML + ((addText!="" && addText!=undefined)?(' ['+addText+']'):(''));
	document.styleSheets[0].insertRule('.link-internal {background: transparent url(../img/links/internal.gif) right no-repeat;padding: 1px 17px 1px 0px;}	',0); //add a new rule at the start
	document.styleSheets[0].insertRule('.link-external {background: transparent url(../img/links/external.png) right no-repeat;padding: 1px 17px 1px 0px;}	',0); //add a new rule at the start
	document.styleSheets[0].insertRule('.link-pdf {background: transparent url(../img/links/pdf.png) right no-repeat;padding: 1px 17px 1px 0px;}	',0); //add a new rule at the start
		
}
function fadeLangFlags(){
for (p=0; p < document.getElementsBySelector('.fadeMe').length; p++)  fadeMe(document.getElementsBySelector('.fadeMe')[p],70);
						
}
//addLoadEvent(fadeLangFlags);
function roundAll (){
var all2Round = document.getElementsBySelector('.roundMe');
                for (i=0; i < all2Round.length; i++) {
					settings = {
					          tl: { radius: 10 },
					          tr: { radius: 10 },
					          bl: { radius: 10 },
					          br: { radius: 10 },
					          antiAlias: true,
					          autoPad: false,
					          validTags: ["div"]
					}
					all2Round[i].innerHTML ='<div class="innerRound">'+all2Round[i].innerHTML+'</div>';
					var myBoxObject = new curvyCorners(settings,all2Round[i] ).applyCornersToAll();					
                }
}

//addLoadEvent(roundAll);

