Index: extensions/gally/gally-cuise/js/crossbrowser.js
===================================================================
--- extensions/gally/gally-cuise/js/crossbrowser.js	(revision 7194)
+++ extensions/gally/gally-cuise/js/crossbrowser.js	(revision 7459)
@@ -1,556 +1,33 @@
 ; (function (jQuery) {
- 
- 
- var Prefix='Vml';
- var Obj_init= "";
-
-var style_match =[];
-style_match=('transform,text-shadow,box-shadow,border-radius,star,opacity'.split(","));
-
-var style_prefix =[];
-//  Firefox (Gecko) -moz-
-//  Opera
-//  Safari (WebKit) -webkit- 
-style_prefix =('webkit,khtml,o,moz,icab ,'.split(","));
-
-var browsers = {linux:'-khtml-', webkit:'-webkit-',safari:'-webkit-',opera:'',mozilla:"-moz-",iph:'-icab-',msie:'',opacity:"" };  
-var Init_fig;
-var tmp = navigator.appName == 'Microsoft Internet Explorer' && navigator.userAgent.indexOf('Opera') < 1 ? 1 : 0;
-if(tmp) var isIE = document.namespaces ? 1 : 0;   
-//================================================================================
-var marge_body ;
-var IDS="";
-var Attr;
-var Object;
-var   Attr_val;
-var Unique_id=0;
-var uniqueId=0;
-var Nom_classe ;
-//================================================================================
-var Window={ width:jQuery(window).width(),height:jQuery(window).height()
-};
-var Fill_Color  ;
-var Fill_Src   ;
-var Fill_Type ;
-var box_shadow  ;
-var text_shadow ;
-    //==================================
-var rexclude = /z-?index|font-?weight|opacity|zoom|line-?height/i,
-	ralpha = /alpha\([^)]*\)/,
-	ropacity = /opacity=([^)]*)/,
-	rfloat = /float/i,
-	rdashAlpha = /-([a-z])/ig,
-	rupper = /([A-Z])/g,
-	rnumpx = /^-?\d+(?:px)?$/i,
-	rnum = /^-?\d/,
-    fcamelCase = function (all, letter) {
-	    return letter.toUpperCase();
-	};
-
- var classes ;
-// Add namespaces and stylesheet at startup. 
-function AddNameSpace(doc, prefix, urn) {
-	if(document.namespaces[prefix]==null) {
-		var e=["shape",
-                "shapetype",
-                "group",
-                "background",
-                "path",
-                "formulas",
-                "handles",
-                "fill",
-                "stroke",
-                "shadow",
-                "textbox",
-                "textpath",
-                "imagedata",
-                "line",
-                "polyline",
-                "curve",
-                "roundrect",
-                 "oval",
-                "rect",
-                "arc",
-                "image","textShadow","boxShadow","opacity"],Css = document.createStyleSheet(); 
-
-		for(var i=0; i<e.length; i++) {
-            Css.addRule(prefix +"\\:"+e[i],"behavior: url(#default#VML);");
-        } 
-        
-        document.namespaces.add(prefix, urn, '#default#VML');
-
-
-
-	} 
- 
-}
-
-     function addNamespace(doc, prefix, urn) {
-         if (!doc.namespaces[prefix]) {
-             doc.namespaces.add(prefix, urn, '#default#VML');
-         }
-     }
-
-     function addNamespacesAndStylesheet(doc,classid) {
-         AddNameSpace(doc, Prefix + "_" + classid , 'urn:schemas-microsoft-com:vml');
-       //  AddNameSpace(doc, "v"   , 'urn:schemas-microsoft-com:vml');
-      
-     }
-
-  
-   
-
-
+			 
+ if (!document.namespaces.v) { document.namespaces.add("v", "urn:schemas-microsoft-com:vml"); }
     var mode = document.documentMode || 0;
     var noBottomFold = jQuery.browser.msie && ((jQuery.browser.version < 8 && !mode) || mode < 8);
     var init = false;
     var angle = 0;
-
-var strokeWeight ={
-                    Bottom:0,
-                    Left:0,
-                    Top:0,
-                    Right:0
-                   }
-    ;
-var strokeColor ={
-                    Bottom:'black',
-                    Left:'black',
-                    Top:'black',
-                    Right:'black'
-                   };
-var strokeStyle ={
-                    Bottom:'solid',
-                    Left:'solid',
-                    Top:'solid',
-                    Right:'solid'
-                   };
-//===================================================
-	  var stroked = false;
-     var Curwidth = 0;
-     var Curheight = 0;
-  
-     var rect_init;
-     var css_init;
-     var fill_init;
-     //==============================================================
-
-     // precompute "00" to "FF" 
-    var decToHex = [];
-    var  alpha = 1;
-    var  init_x = 0;
-    var  init_y = 0;
-    var  init_x0 =0;
-    var  init_y0 = 0;
-    //====================================
-    var Dimension = {};
-    var origine = {x:0,y:0,Left:0,Top:0,Width:100,Height:100,w:100,h:100};
-   
-//============================================================
-var Options={
-
-};
-
-
-//=========================================
-function Set_textbox(prefix,Options){
-//<textbox string="VML text" layout-flow="vertical"/>
-Str=[];
-if (Options.textbox) {
-            Str.push('<'+prefix+':textbox ');
-            for (i in Options.textbox)
-            { 
-            Str.push( i + '=' +  Options.textbox[i] );  
-            
-            }
-             Str.push('style="font:normal normal normal 36pt Arial"');
-            Str.push('/>');
-   }
-  return  Str.join(' ');
-
-}
-function Set_Shadow( prefix,Options ){
-Str=[];
-if (Options.shadow) {
-            Str.push('<'+prefix+':shadow ');
-            for (i in Options.shadow)
-            { Str.push( i + '=' +  Options.shadow[i] );  }
-            Str.push('/>');
-   }
-  return  Str.join(' ');
-
-}
-//============================================================
-function Set_Value_to_str(Valeurs,op,sep)
-{
-    n=""
-    for (i in Valeurs) 
-    {
-     Val=Valeurs[i ];
-     if (/;/.test( Val))
-     {
-      sous_val=Valeurs[i ].split(";") ;
-      for (j in sous_val) 
-      {
-            val1=sous_val[j].split(":");
-            n += val1[0] + op + val1[1]+ sep;
-            }
-
-        }else{
-            n += i + op + Val + sep;
-        }
-
-    }
-    return n;
-}
-//=============================================================
-
-function Set_Shape(prefix,Options){
-ShapeStr=[];
-if (Options.shape) {
-
-     ShapeStr.push('<'+ prefix +':'+ Options.element + ' ');
-     for (i in Options.shape)
-       {  
-       Val=Options.shape[i];
-       if (Val)
-       ShapeStr.push( i+'="' +  Val + '"' );  
-       else
-       n=i ;
-
-       }
-     ShapeStr.push('>');
- }
- ret=ShapeStr.join(' ');
- return ret;
-}
-//-----------------------------------------------------
-function Set_end_Shape(prefix,Options){
-if (Options.shape) {
-  
-return '</'+prefix+':'+ Options.element  +' > ';
-}else return '</'+prefix+' > ';
-
-
-}
-//============================================================
-function Set_Stroke(prefix,Options){
-StrokeStr=[];
-if (Options.stroke) {
-            StrokeStr.push('<'+prefix+':stroke ');
-            for (i in Options.stroke)
-            { StrokeStr.push( i + '=' +  Options.stroke[i] );  }
-            StrokeStr.push('/>');
-   }
-  return  StrokeStr.join(' ');
-
-}
-//=======================================================================================
-
-function Set_Group(prefix,Options)
-{
-
-GroupStr=[];
-if (Options.group) {
-            GroupStr.push('<'+prefix+':group');
-                for (i in Options.group)
-            {
-             GroupStr.push( i + '=' +  Options.group[i] ); 
-            }
-            GroupStr.push('>');
-   }
-           return  GroupStr.join(' ');
-
-}
-
-//-----------------------------------------------------
-function Set_end_Group(prefix,Options){
-if (Options.group) {
-return '</'+prefix+':'+ 'group'  +' > ';
-}else return '</'+prefix+' > ';
-
-
-}
-
-
-//=======================================================================================
-function Set_Fill(prefix,Options){
-
-FillStr=[];
-if (Options.fill) {
-            FillStr.push('<'+prefix+':fill');
-            for (i in Options.fill)
-            {
-    
-            FillStr.push( i+'=' +  Options.fill[i] ); 
-            }
-
-      
-            FillStr.push('/>');
-          
-            
-  }
-return FillStr.join(' ');
-}
-
-
-
-//============================================================
-function Get_angle(obj)
-{
-if (typeof obj =='string') obj=jQuery("#"+ obj).get(0) ; 
- 
-if (!obj) return ;
-  var  m1 ="transform,-o-transform,-moz-transform,-webkit-transform";  
-    m1 =  m1.split(",") ;
-     s =  obj.currentStyle;
-    if (!s)  s = obj.style;
-  if (!s) return ;
-
-    for (i in m1)
- if (s[m1[i]]!=undefined) 
- { 
-  
-  var rotation=s[m1[i]] ;
- break; }
-
- var Angle=0;
-
-         if (typeof rotation != "undefined") {
-             
-             var angle1 = rotation.split("rotate(");
-             angle1 = angle1[1].split("deg)");
-             Angle = angle1[0];
-         }
-         return Angle ;
-}
-//===========================================================
-function removeExtraSpace(str)
-{
- if (!str) return "" ;
-    str = str.replace(/[\s]{2,}/g," "); // Enlève les espaces doubles, triples, etc.
-    str = str.replace(/^[\s]/, ""); // Enlève les espaces au début
-    str = str.replace(/[\s]$/,""); // Enlève les espaces à la fin
-    return str;    
-}
-
-
-function trim(str, chars) {
-	return ltrim(rtrim(str, chars), chars);
-}
- 
-function ltrim(str, chars) {
-	chars = chars || "\\s";
-	return str.replace(new RegExp("^[" + chars + "]+", "g"), "");
-}
- 
-function rtrim(str, chars) {
-	chars = chars || "\\s";
-	return str.replace(new RegExp("[" + chars + "]+$", "g"), "");
-}
-//====================================================================
-function Get_Tableau(Val_src) {
-Val_src=removeExtraSpace(Val_src)
-
-  var tableau = Val_src.split(" ");  
-      tableau = Val_src + " " + Val_src + " " +tableau[0] +" " + tableau[0]  ; 
-        
-      tableau = tableau.split(" ");  
-
-return {Top:tableau[0] ,Right: tableau[1],Bottom: tableau[2],Left:tableau[3] };
-}
-//============================================================
-function Get_radius(obj)
-{
-/*
-   1 La valeur spécifiée est appliquée aux quatre coins. 
-   2 La première valeur est appliquée aux coins supérieur gauche et inférieur droit, et la seconde, aux coins supérieur droit et inférieur gauche  
-   3 La première valeur est appliquée au coin supérieur gauche, la deuxième aux coins supérieur droit et inférieur gauche, et la troisième, au coin inférieur droit  
-   4 Les angles supérieur gauche, supérieur droit, inférieur droit et inférieur gauche sont respectivement définis  
-*/
-
-  var  m1 ="border-radius,-o-border-radius,-moz-border-radius,-webkit-border-radius,star";  
-    m1 +=",borderRadius,OBorderRadius,MozBorderRadius,WebkitBorderRadius,star";  
-
-    $e=jQuery(obj);
-    m1 =  m1.split(",") ;
-    s=obj.currentStyle;
-   // s = obj.style.cssText.split(";");
-
-    Attribut = false;
- type="";
- for (i in m1)
- if (s[m1[i]]!=undefined) 
- { 
-  Attribut = true;
-  radius=s[m1[i]] ;
-  type=m1[i];
- break; }
-  if (typeof radius == "undefined") { radius = "0" }
-      var reg=new RegExp("\ \ ","g");
-      nr = radius;
-     while(radius.match("\/")){
-         radius=radius.replace("\/"," ");
-     }
-
-          while(radius.match("\ \ ")){
-             radius=radius.replace(reg," ");
-          }
- 
- if (type.match("star") ) {
-  var radius = (radius + " " + 1)
-  var tableau = radius.split(" "); 
-           return { r:tableau[0] ,
-                   type:type
-                  }
-       }
-            
- 
-      v1=Get_Tableau(radius);
-
-
-      
-      top_left = parseInt(s['border-top-left-radius']||v1.Top) ;
-      top_right =  parseInt(s['border-top-right-radius']||v1.Right);
-      bottom_right =  parseInt(s['border-bottom-right-radius']||v1.Bottom);
-      bottom_left =  parseInt(s['border-bottom-left-radius']||v1.Left);  
-
-
-       
-      type=(nr.match("\/")) ? "oval" : (parseInt(v1.Left)==0) ? "rect" : "shape" ;
-              
-	return { r:v1.Left,
-             top_left:top_left ,
-             top_right:top_right ,
-             bottom_right:bottom_right ,
-             bottom_left:bottom_left,
-             type:type};
-
-}
-//=======================================================================================
-/*
-Single (default) 
-ThinThin 
-ThinThick 
-ThickThin 
-ThickBetweenThin
-*/
-function Get_style(borderStyle_src){
- 
-   v1=Get_Tableau(borderStyle_src) ;
-
-for ( i1 in v1)
-{
-borderStyle=v1[i1] ;
-
-
-         switch(borderStyle)
-         {
-         case 'solid':
-         strokeStyle[i1]="Single";
-            break;
-        case 'double':
-        strokeStyle[i1]="thinThin";
-            break;
-        case 'none':
-         strokeStyle[i1]="Single";
-        stroked =false
-            break;
-         default:
-          strokeStyle[i1]="Single";
-
-             break;
-         }
-   
-}   
-      return  strokeStyle;
-}
-
-//=============================================================
-function Get_Color(Color_src){
- 
- v1= Get_Tableau(Color_src) ;
-  for ( i1 in v1)
-{
-   strokeColor[i1] = ( translateColor(v1[i1])=="transparent") ? "none" : translateColor(v1[i1]) ;
-
-  }
-
-return  strokeColor;
-}
-
-//=============================================================
-function Get_stokeWeight(Weight_src){
- 
-   v1=Get_Tableau(Weight_src) ;
-   stroked=false ;
-for ( i1 in v1)
-{
-Weight=v1[i1] ;
-p1=Weight.match("%")
-
-         switch(Weight)
-         {
-         case  p1:
-          strokeWeight[i1]=10;
-          break;
-        case 'thin':
-          strokeWeight[i1]=0.5;
-          break;
-		case 'medium':
-          strokeWeight[i1]=0.75;
-		  break;
-		case 'thick':
-          strokeWeight[i1]=2;
-		  break;
-		case 'inherit':
-		if(Obj.parentElement)
-          strokeWeight[i1]=Get_stokeWeight(Obj.parentElement.currentStyle.borderWidth);
-		  else
-		  strokeWeight[i1]=0 ;
-		  
-		  break; 
-		  
-         default:
-		 
-         strokeWeight[i1]= Weight ;
-             break;
-         }
- strokeWeight[i1]=parseInt(strokeWeight[i1]) ;
-         if (isNaN( strokeWeight[i1] )) {
-             strokeWeight[i1] = 0;
-         } 
-
-         stroked =  ( strokeWeight[i1] > 0) ?  ( strokeWeight[i1] > 0) :stroked;
-}
-		 return   strokeWeight   ;
-		 
-	}
+    var strokeWeight =0;
+
 //=======================================================================================
 //Filter: Alpha(Opacity=100, FinishOpacity=0, Style=2, StartX=20, StartY=40, FinishX=0, FinishY=0);
 //filter:progid:DXImageTransform.Microsoft.Alpha(opacity=20)"
-function Set_opacity(obj) {
- filtres=obj.style.filter;
- 
- if (parseInt( alpha  )  + "" !== "NaN" ) {
-   if (  (alpha > 1) ) alpha /= 100 ;
-
- }
-
-sProperties = "opacity = "+  alpha*100 + ", FinishOpacity=100, Style=2, StartX=20, StartY=40, FinishX=0, FinishY=0"; 
-sProperties = "opacity = "+  alpha*100 ;
-
-if (!filtres.match("progid:DXImageTransform.Microsoft.Alpha")) 
-   filtres += "  progid:DXImageTransform.Microsoft.Alpha("+sProperties+") ";
-  
-   obj.style.filter = filtres ;
-
+function opacity(obj) {
+        alpha_css=jQuery(obj).css("opacity");
+        fils=     $(obj).children() ;
+        if (fils.length>1) { 
+                jQuery( fils).css("opacity",alpha_css);
+            }
 }
- 
      //======================================================================================
-function Rotate(_Obj,angle,offset_Vertical,offset_Horizontal)
-         {  
-         if (!_Obj) return ;
-         name=_Obj.id ;
+function transform(obj) {
+     if (!obj) return ;
+         if (typeof obj == "string") var s = document.getElementById(obj).style;
+         else var s = obj.style;
+        
+         if (typeof s.transform != "undefined") {
+             var angle1 = s.transform.split("rotate(");
+             angle1 = angle1[1].split("deg)");
+             angle = angle1[0];
+         }
+         //==================================================================================   
          var deg2radians = Math.PI * 2 / 360;
          var rad = angle * deg2radians;
@@ -558,156 +35,100 @@
          var sintheta = Math.sin(rad);
 
-         Horizontal=0 ;
-        Vertical=0 ;
+         if (!obj.style.filter.match("progid:DXImageTransform.Microsoft.Matrix")) obj.style.filter += "  progid:DXImageTransform.Microsoft.Matrix() ";
+
+
+         centered = true;
+         try{
+         obj.filters.item("DXImageTransform.Microsoft.Matrix").M11 = costheta;
+         obj.filters.item("DXImageTransform.Microsoft.Matrix").M12 = -sintheta;
+         obj.filters.item("DXImageTransform.Microsoft.Matrix").M21 = sintheta;
+         obj.filters.item("DXImageTransform.Microsoft.Matrix").M22 = costheta;
+         obj.filters.item("DXImageTransform.Microsoft.Matrix").sizingMethod = 'auto expand'; //'clip to original' ; //
+         }  catch (_) { 
+         centered = true;
+         }
+
+  height = obj.clientHeight;
+  width = obj.clientWidth;
+  xleft= obj.offsetLeft;
+  ytop= obj.offsetTop;     
+  ntop = ((height - obj.offsetHeight) / 2);
+  nleft = ((width - obj.offsetWidth) / 2); 
+
+
+    if (obj.vml) {
+          if (!init) {
+            jQuery(obj).css("position", "absolute");
+          pos_img=jQuery(obj).findPos();
+           pos_vml=jQuery(obj.vml).findPos();
+                  nleft=-strokeWeight;
+                  ntop =-strokeWeight;
+
+                   var mode = document.documentMode || 0;
+                  if (obj.currentStyle.position!="absolute"){
+
+                    init_x0=init_x - (0.5*strokeWeight) ;
+                   if (mode==8) init_y0=init_y + (0.5*strokeWeight) ;
+                   else init_y0=init_y + (1.5*strokeWeight) ;
+                    init_y=strokeWeight;
+                    init_x=strokeWeight;
+
+
+                  }else{
+                   init_y=parseInt(pos_img.x)+strokeWeight;
+                   init_x=parseInt(pos_img.y)+strokeWeight;
+                   init_x0=init_x+(0.5*strokeWeight);
+                    init_y0=init_y+(0.5*strokeWeight);
+
+                  }
+
+                   jQuery(obj).css("position", "absolute");
+                  init=true;
+                   
+                 }
+
+                        x = init_x+  nleft ;
+                        y = init_y+  ntop ;
+
+
+                 jQuery(obj).css("left",  x +  "px");
+                 jQuery(obj).css("top",  y +  "px");
+ 
+                 jQuery(obj.vml).css("left",   init_x0 +  nleft+  "px");
+                 jQuery(obj.vml).css("top",  init_y0 +  ntop+  "px");
+       
+
+                 transform(obj.vml);
+                       
+                } 
+var name_id=obj.id ;  
+ jQuery(obj).css("opacity",alpha);
+ if (alpha!=1) {
+     opacity(obj);
+ 
+ }
+ 
+          return ;
+
+ 
+    
+
+
+
+
      
- filtres=_Obj.style.filter;
-//Dx ="+ Horizontal +",Dy ="+ Vertical +",
-
-sProperties = "M11 ="+ costheta+",M12 ="+ -sintheta+",M21 ="+ sintheta +",M22 ="+ costheta +", sizingMethod =" + "'auto expand'" + ""; //'clip to original' ; //
-if (!filtres.match("progid:DXImageTransform.Microsoft.Matrix")) 
-   filtres += "  progid:DXImageTransform.Microsoft.Matrix("+sProperties+") ";
-
- _Obj.style.filter=filtres ;
- return _Obj;
-
-}
-//============================================================================
-function Transform(obj) {
-     	if (!obj) return ;
-    	obj=jQuery(obj).get(0);
-    	if (!obj) return ;
-		s = obj.style;
-      	angle= angle || Get_angle(obj);
-        if (!init) {
-             init=true ;
- 			//=================================================================
-            ntop = 0;
-            nleft = 0; 
-        Parent=obj.id.replace("_Ombre","");
-        Obj_parent=jQuery("#"+Parent).get(0);
-         
-            if (typeof (Obj_parent)!="undefined") {
-
-                   Left=Dimension[Obj_init.id].Left;
-                   Top=Dimension[Obj_init.id].Top;
-                   if (/Texte/.test(obj.id) ){
- 
-
-                   Top =   (( obj.clientHeight - obj.offsetHeight) / 2);
-  	                Left=   ((obj.clientWidth - obj.offsetWidth) / 2); 
-
-                   }
-
-         		}
-
-
-            jQuery(obj).width( Dimension[Obj_init.id].w  );   
-            jQuery(obj).height( Dimension[Obj_init.id].h );  
-
-
-            init_x=  Left  +   (strokeWeight.Left/2)    ;
-            init_y=  Top +   (strokeWeight.Top/2)   ;
-
-            }
-	//===========================================
- //obj.style.position="absolute";
-  	jQuery(obj).rotate(angle);
-   
-
-  	ntop = (( obj.clientHeight - obj.offsetHeight) / 2);
-  	nleft = ((obj.clientWidth - obj.offsetWidth) / 2); 
-     if (/Texte/.test(obj.id) ){
- 
-
-                  ntop =0;
-  	              nleft = 0;
-
-                   }
-
-  	jQuery(obj).css("left",  init_x +  nleft+  "px");
-  	jQuery(obj).css("top", init_y +  ntop+  "px");
-
-
- }
-
+
+     }
 //===========================================
 function onPropertyChange(e) {
-   var el = e.srcElement;
-       ID=  el.id;
-       Prop=e.propertyName.split(".") ;
-       Property=Prop[1];
-
-       Valeur=el.currentStyle[Property] ;
-      return ;
-
-       if ( !ID.match("Vml") )
-       {
-      
-       el=jQuery("#Vml_" + ID ).get(0);
-       if (!el) 
-            return ;
-      if(!Property) return ;
-      if (Property=="filter")
-      h1= jQuery("#Vml_" + ID ).css(Property);
-      else
-      el=jQuery("#Vml_" + ID ).get(0);
-     
-        
-       }else{
-            return ;
-       }
-
- 		switch (e.propertyName) {
-
-            case "style.position":
-             init=false ;
-                 transform(el);
+         var el = e.srcElement;
+
+         switch (e.propertyName) {
+            case "opacity":
+                 opacity(el);
+
                  break;
-
-            case "style.filter":
-             init=false ;
-        alpha=Valeur;
-            if (! el.style.filter.match(Valeur))
-                           Set_opacity(el);
-
-
-                 break;
-            case "style.opacity" :
-             init=false ;
-           new_alpha=jQuery("#"+el.id).css("opacity") ;
-            if ( el.style.opacity != jQuery("#"+el.id).css("opacity"))
-                           Set_opacity(el);
-
-
-                 break;
-
-            case  "style.borderWidth" :
-                  init=false ;
-                
-                     el.strokeWeight = Valeur;
-
-                  if (el.style.borderLeftWidth != strokeWeight.Left +"px"  ) 
-                  {
-                       strokeWeight = Get_stokeWeight(el.style.borderWidth) ;
-
-                   transform(el);
-                   jQuery("#"+el.id).css("borderWidth",el.style.borderWidth );
-
-                   }
-                 break;		
-                 
-            case "style.borderStyle":
-            transform(el);
-         
-                 break;		
-
-            case "style.borderColor":
- 
-                     el.strokeColor =  translateColor(Valeur);
-                     transform(el);
-                 break;		    
-                                               		 
              case "style.transform":
-                init=false ;
+             // init=false;
                  transform(el);
 
@@ -722,881 +143,500 @@
                  new_color = translateColor(el.style.color);
                  el.style.color = new_color;
-                  transform(el);
                  break;
-             case 'style.width':
-
-                 //el.style.width = el.attributes.width.nodeValue + 'px';
+             case 'width':
+
+                 el.style.width = el.attributes.width.nodeValue + 'px';
                  // In IE8 this does not trigger onresize. 
-              //   el.firstChild.style.width = el.clientWidth + 'px';
-              if (el.vml)     el.vml.style.width = el.clientWidth  + 'px';
+                 el.firstChild.style.width = el.clientWidth + 'px';
                  break;
-             case 'style.height':
-
-                 //el.style.height = el.attributes.height.nodeValue + 'px';
-              //   el.firstChild.style.height = el.clientHeight + 'px';
-                if (el.vml)   el.vml.style.height = el.clientHeight   + 'px';
+             case 'height':
+
+                 el.style.height = el.attributes.height.nodeValue + 'px';
+                 el.firstChild.style.height = el.clientHeight + 'px';
                  break;
          }
-}
-
-//===============================================================================
-function Set_Path(r,_Width,_Height)
-{
-   Path="";
-   radius=parseInt(r.r) ;
-   CoordOrigin="0 0";
-    switch (r.type)
-    {
-        case "oval":
-             typeelement="oval";
-             var CoordSize="";
-
-
-
-        break ;
-
-        case "shape":
-             typeelement="shape";
-             CoordSize= _Width+","+_Height;
-
-            TL =parseInt(r.top_left )    ; 
-            TR =parseInt (r.top_right  )  ; 
-            BR = parseInt (r.bottom_right )   ; 
-            BL = parseInt (r.bottom_left )   ; 
-
-            var shape_Origine ={ x: _Width - TR, y:0} ;
-
-            var TR_  ={ x: _Width , y : 0 + TR} ;
-            var L1 ={ x: _Width , y:_Height-BR} ;
-            var BR_ ={ x: _Width - BR, y:_Height} ;
-            var L2 ={ x:BL, y:_Height} ;
-            var BL_ ={ x:0 , y:_Height-BL} ;
-            var L3 ={ x:0 , y:TL} ;
-            var TL_ ={ x:TL, y:0} ;
-            var L4 ={ x: _Width - TR, y:0} ;
-
-             Path=" m "+ shape_Origine.x +","+  shape_Origine.y + 
-            " qx " + TR_.x + "," + TR_.y +
-            " l  " + L1.x + "," + L1.y +
-            " qy " + BR_.x + "," + BR_.y +
-            " l " + L2.x + "," + L2.y +
-            " qx "+ BL_.x + "," + BL_.y +
-            " l " + L3.x + "," + L3.y +
-            " qy "+ TL_.x + "," + TL_.y +
-            " l " + L4.x + "," + L4.y +
-            " x e";   
- 
-        break;
-        case "star":
-            typeelement="shape";
-             CoordSize=_Width/radius + "," + _Height/radius ; //zoom
-             shape_Origine ={ x:8 , y:65} ;
-            CoordOrigin="10 20";
-            Path="m "+shape_Origine.x+","+shape_Origine.y+" l 72,"+shape_Origine.y+",92,11,112,"+shape_Origine.y+",174,"+shape_Origine.y+",122,100,142,155,92,121,42,155,60,100 x e";
-         break;
-
-        default: 
-            typeelement="rect";
-            CoordSize= _Width+","+_Height;
-            shape_Origine ={ x:0 , y:0} ;
-
-             L1 ={ x:0      , y:_Height } ;
-             L2 ={ x:_Width , y:_Height} ;
-             L3 ={ x:_Width  , y:0 } ;
-             Path=" m "+ shape_Origine.x +","+  shape_Origine.y + 
-            " l  " + L1.x + "," + L1.y + ","+
-             L2.x + "," + L2.y + ","+
-             L3.x + "," + L3.y +           
-            " x e";   
-           break;
-
-    }
-    return { Path:Path,typeelement:typeelement,CoordSize:CoordSize, CoordOrigin: CoordOrigin}
-}
- 
-
+     }
+//==================================================
+function findSize(obj) {
+         var cur_height = obj.offsetHeight;
+         var cur_width = obj.offsetWidth;
+
+      
+
+         return ({
+             'x': cur_width,
+             'y': cur_height
+         });
+     }
+//==================================================
+function roundWebkit(e, s) {
+    var radius = '' + s.sizex + 'px ' + s.sizey + 'px';
+    var $e = jQuery(e);
+    if (s.tl) $e.css('WebkitBorderTopLeftRadius', radius);
+    if (s.tr) $e.css('WebkitBorderTopRightRadius', radius);
+    if (s.bl) $e.css('WebkitBorderBottomLeftRadius', radius);
+    if (s.br) $e.css('WebkitBorderBottomRightRadius', radius);
+  }
+//==================================================  
+  function roundMozilla(e, s)
+  {  
+    var radius = '' + s.sizex + 'px';
+    var $e = jQuery(e);
+    if (s.tl) $e.css('-moz-border-radius-topleft', radius);
+    if (s.tr) $e.css('-moz-border-radius-topright', radius);
+    if (s.bl) $e.css('-moz-border-radius-bottomleft', radius);
+    if (s.br) $e.css('-moz-border-radius-bottomright', radius);  
+  }
 //=================================================================
+     var rect_init;
+     var css_init;
+     var fill_init;
+     //==============================================================
+
+     // precompute "00" to "FF" 
+    var decToHex = [];
+    var alpha = 1;
+    var      init_x = 0;
+    var init_y = 0;
+    var  init_x0 =0;
+    var  init_y0 = 0;
+//==============================================================
 function oncontentready(Obj) {
-	
-var reg=new RegExp('wrap', "gi");
-  if (reg.test(Obj.className)) { return ;} 
-  reg=new RegExp(Prefix, "gi");
-  if (reg.test(Obj.className)) { return ;} 
-  //======== test si classe existe =============================
-  classID= Obj.uniqueID;
-  Nom_classe =  Prefix + "_" + classID ;
-  reg=new RegExp(Nom_classe, "gi");
-  if (!reg.test(Obj.className)) { 
-        if(document.namespaces.length==0) 
-        addNamespacesAndStylesheet(document,classID);
-
-         if ( !document.namespaces[Nom_classe]) {
-          //document.namespaces.add("v"+classID, "urn:schemas-microsoft-com:vml"); 
-            addNamespacesAndStylesheet(document,classID);
+         //======== test si classe existe =============================
+         classID= Obj.uniqueID;
+         if (Obj.className.match(classID)) { return (false); }
+         if (!document.namespaces.v+classID) { document.namespaces.add("v"+classID, "urn:schemas-microsoft-com:vml"); }
+         Obj.className = Obj.className.concat(' ', classID);
+         // Find which element provides position:relative for the target element (default to BODY) 
+ 
+        pos=jQuery(Obj).findPos();
+        Left=pos.x;
+        Top=pos.y;
+        pos_src=jQuery(Obj.parentElement).findPos();
+
+    var limit = 100, i = 0;
+    var el = Obj; //(this)  
+           style= el.currentStyle ;
+         zindex = 3;
+         var El_src = el.element;
+
+         while ((typeof (El_src) != 'undefined') && (El_src.currentStyle.position != 'relative') && (El_src.tagName != 'BODY')) {
+             El_src = El_src.parentElement;
+             
+             if (El_src.style.zIndex> zindex) zindex++;
+             i++;
+             if (i >= limit) { return (false); }
+         }
+        
+
+         var el_zindex = parseInt(el.currentStyle.zIndex);
+         if (isNaN(el_zindex)) { el_zindex = 3; }
+         var m = el.children;
+         for (i = 0; i < m.length; i++) {
+             echild = m.item(i);
+            echild.style.zIndex = el_zindex + 1  ;
+         }
+
+          Obj.style.zIndex = el_zindex+3 ;
+      
+
+         //=============================================================================	
+
+   
+         switch(Obj.currentStyle.borderWidth)
+         {
+         case 'solid':
+            break;
+         default:
+         strokeWeight=parseInt(Obj.currentStyle.borderWidth);
+             break;
+         }
+            
+         switch(Obj.currentStyle.borderStyle)
+         {
+         case 'solid':
+         strokeStyle=Obj.currentStyle.borderStyle;
+            break;
+        case 'double':
+        strokeStyle=Obj.currentStyle.borderStyle;
+            break;
+
+         default:
+         strokeStyle=Obj.currentStyle.borderStyle;
+
+             break;
+         }
+
+         if (isNaN(strokeWeight)) {
+             strokeWeight = 0;
+             
+         } 
+         stroked =( strokeWeight> 0);
+          
+
+         //================================================================================
+         for (var i = 0; i < 16; i++) {
+             for (var j = 0; j < 16; j++) {
+                 decToHex[i * 16 + j] = i.toString(16) + j.toString(16);
+             }
+         }
+         //==================================
+         var fillColor = translateColor(Obj.currentStyle.backgroundColor);
+         var strokeColor =  translateColor(Obj.currentStyle.borderColor);
+ 
+
+         width=jQuery(Obj).width();
+         height=jQuery(Obj).height();
+              Width=(width+strokeWeight );
+     Height=(height+strokeWeight);
+
+         Left=parseInt(jQuery(Obj).css("left"));
+         if (isNaN(Left)) Left=0 ;
+         Top=parseInt(jQuery(Obj).css("top"));
+           if (isNaN(Top)) Top=0 ;
+   //=================================================================
+           s = Obj.currentStyle;
+
+         if (typeof s.transform != "undefined") {
+             rotation = s['transform'];
+             var angle1 = s.transform.split("rotate(");
+             angle1 = angle1[1].split("deg)");
+             angle = angle1[0];
+         }
+         //=================================================================
+
+
+         var VgFillType = new Array("solid", "gradient", "gradientradial", "tile", "pattern", "frame");
+         var VgFillmethod = new Array("none", "linear", "sigma", "any");
+         var VgFillaspect = new Array("atless", "atmost")
+
+
+         alpha = Obj.currentStyle['opacity'] || 1;
+
+
+         var fillSrc = Obj.currentStyle.backgroundImage.replace(/^url\("(.+)"\)$/, '$1');
+
+         if (fillSrc) var filltype = (Obj.currentStyle['type']) || "tile";
+         else var filltype = (Obj.currentStyle['type']) || "gradientRadial";
+  /*
+         var fillopacity = alpha;
+       
+         var fillmethod = "none";
+         var fillfocus = "100%";
+
+         var fillcolor2 = "#00FF00";
+         var fillcolors = "0,#ff0000, 0.5#00ff00, 0.6 #0000ff, 0.8 #ff0000, 0.9 #ff0000";
+
+         var fillopacity2 = "1.0";
+         var fillangle = "0";
+         var fillfocusposition = "0.5,0.5";
+         */
+       
+
+         //==================================================================================	
+         radius = s['-moz-border-radius'];
+
+
+         if (typeof radius == "undefined") { radius = "0" }
+         if (typeof radius == undefined) { radius = "" }
+		 
+         if (radius.match("\/")) {
+             //=============================================================
+
+             var tableau = radius.split("/");
+             var rect = document.createElement('v:oval');
+             var typeelement="oval";
+
+         } else {
+                   if (radius.match("\ ")) { 
+          var tableau = radius.split(" "); 
+
           }
-          Obj.className = Obj.className.concat(" " + Nom_classe);
-         // Find which element provides position:relative for the target element (default to BODY) 
-
-
-  }else{
-  return ;
-  }
-
-//=============================================================================	
-Obj_init= Obj;
-//jQuery(Obj).wrap("<div class='wrap' id='wrap_" + Obj.id + "' style='position:"+Obj.currentStyle.position+";margin:auto'></div>");
-Init_fig= Obj.id ;
-//cssText=Obj.style.cssText.split(";");
-
-//Obj.style.position="static";
-s = Obj.currentStyle;
-if (!s) return ;
-    strokeWeight = Get_stokeWeight(s.borderWidth);
-    strokeStyle  = Get_style(s.borderStyle);
-    strokeColor  = Get_Color(s.borderColor);
-
-
-    angle        = Get_angle(Obj);
-    r            = Get_radius(Obj);
-    radius=parseInt(r.r);
-    top_left = parseInt(r.top_left) ;
-    top_right = parseInt(r.top_right);
-    bottom_right = parseInt(r.bottom_right);
-    bottom_left =  parseInt(r.bottom_left);    
-    alpha = s.opacity || 1;
-
-  Dimension[Obj.id] =  jQuery(Obj).findPos(); //
-
-init = false;
-
-/*=============================================================================*/ 
-Fill_Src = "";
-
-    Fill_Color = translateColor(s.backgroundColor);
-    Fill_Color = (Fill_Color=="transparent") ? "none" : Fill_Color ;
-    if (Obj.tagName=="IMG")
-    {
-           Fill_Src = Obj.src.replace(/^url\("(.+)"\)$/, '$1');;
-           Fill_Type="frame" ;
-    }else{
-            Fill_Src =s.backgroundImage.replace(/^url\("(.+)"\)$/, '$1');
-
-            if (Fill_Src)  Fill_Type= (s['type']) || "tile";
-            else   Fill_Type = (s['type']) || "solid";
-    }
-//==============================================
-    box_shadow = s['boxShadow'] || false ;
-    text_shadow =s['textShadow'] || false ;
-    S = Obj.innerHTML;
-    texte=S ;
- 
- reg=new RegExp('<img', "gi");
-
-if (Fill_Src=="none") 
- if (reg.test(texte)) {
-  
-	var children = Obj.children ; 
-	var images = new Array(); 
-    var i = 0;
-	var child;
-    var j = 0;
-
-	for (i=0;i<children.length;i++) {
-		child = children[i];
-        reg=new RegExp('img', "gi");
-		if ( reg.test(child.tagName))
-			{
-                Fill_W  =  child.width  ;
-                Fill_H  =  child.height;
-                id_img=Obj.id+"_img";
-  
-                Fill_Src=child.src;
- 
-                Obj.style.backgroundImage='url(' +Fill_Src+')';
-                Obj.style.backgroundRepeat= 'repeat';
-                Obj.style.backgroundPosition= child.currentStyle.left;
-
-                Obj.removeChild(child);
-
-
-                jQuery(Obj).width(Fill_W );
-                jQuery(Obj).height(Fill_H );
-                s = Obj.currentStyle;
-                break;
-         } 
-
-    } 
-}
-       if (Obj.tagName=="IMG")
-       {
-
+
+  var tableau = radius.split(" ");  
+      tableau = radius + " " + radius + " " +tableau[0] +" " + tableau[0] + " " + tableau[0];   
+      tableau = tableau.split(" ");  
+      top_left = parseInt(s['-moz-border-top-left-radius']||tableau[0]) ;
+      top_right =  parseInt(s['-moz-border-top-right-radius']||tableau[1]);
+      bottom_right =  parseInt(s['-moz-border-radius-radius']||tableau[2]);
+      bottom_left =  parseInt(s['-moz-border-bottom-left-radius']||tableau[3]);       
+
+
+     radius=tableau[0];
+//=============================================================
+if (parseInt(radius) != "0") {
+    if (top_left!=top_right) {
+          var typeelement="shape";
+          var rect = document.createElement('v'+classID+':shape');      
+
+       with(rect){
+            fillColor = 'none'; 
+            fillStroked = 'true';
+             //   coordsize  = "100 , 100";
+             //    coordSize  = "100 , 100";
+               }
+      
+        rect.setAttribute("coordSize",Width + "," + Height); //mode7
+ TL =top_left ;
+ TR = top_right  ;
+ BR = bottom_right ;
+ BL =bottom_left ;
+
+
+
+ var Origine ={ x: Width - TR, y:0} ;
+ var TR_  ={ x: Width , y : 0 + TR} ;
+ var L1 ={ x: Width , y:Height-BR} ;
+ var BR_ ={ x: Width - BR, y:Height} ;
+ var L2 ={ x:BL, y:Height} ;
+ var BL_ ={ x:0 , y:Height-BL} ;
+ var L3 ={ x:0 , y:TL} ;
+ var TL_ ={ x:TL, y:0} ;
+ var L4 ={ x: Width - TR, y:0} ;
+
+ var path=" m "+ Origine.x +","+ Origine.y + 
+        " qx " + TR_.x + "," + TR_.y +
+        " l  " + L1.x + "," + L1.y +
+        " qy " + BR_.x + "," + BR_.y +
+        " l " + L2.x + "," + L2.y +
+        " qx "+ BL_.x + "," + BL_.y +
+        " l " + L3.x + "," + L3.y +
+        " qy "+ TL_.x + "," + TL_.y +
+        " l " + L4.x + "," + L4.y +
+        " x e";
+    rect.path=path ;
+
+ 
+    }	else {        
+        var typeelement="roundrect";
+        var rect = document.createElement('v'+classID+':roundrect');
+        var arcSize = Math.min(parseInt(radius) / Math.min(Obj.offsetWidth, Obj.offsetHeight), 1);     
+        rect.arcsize = arcSize + 'px';
+	}
+  } else {
+                 var rect = document.createElement('v'+classID+':rect');
+                 var typeelement="rect";
+             }
+
+         }
+
+
+         /*===================================================================================*/
+         var text_shadow = Obj.currentStyle['text-shadow'];
+
+         var box_shadow = Obj.currentStyle['-moz-box-shadow'] ||
+	           Obj.currentStyle['box-shadow'] ||
+	           Obj.currentStyle['-webkit-box-shadow'] ||
+	           Obj.currentStyle['-khtml-box-shadow'];
+
+
+
+         if (text_shadow || box_shadow) {
+             if (text_shadow) {
+                 var sizeShadow = text_shadow.split(" ");
+                 aff_filter(Obj, sizeShadow);
+
+             }
+
+
+             if (box_shadow) {
+                 var sizeShadow = box_shadow.split(" ");
+                 aff_filter(rect, sizeShadow)
+             }
+
+         }
+         /*===================================================================================*/
+
+         var fill = document.createElement('v'+classID+':fill');
+
+         fill.src = fillSrc;
+         fill.color = fillColor;
+         fill.type = filltype;
+     
+
+/*
+         var fillopacity = alpha;
+if(fillopacity)      fill.opacity = fillopacity;
+
+         var fillmethod = "none";
+if (fillmethod) fill.method = fillmethod;
+
+         var fillfocus = "100%";
+         var fillcolor2 = "#00FF00";
+         var fillcolors = "0,#ff0000, 0.5#00ff00, 0.6 #0000ff, 0.8 #ff0000, 0.9 #ff0000";
+            if (fillfocus) fill.focus = fillfocus;
+            if (fillcolor2) fill.color2 = fillcolor2;
+            if (fillcolors) fill.colors = fillcolors;
+
+         var fillopacity2 = "1.0";
+         var fillangle = "0";
+         var fillfocusposition = "0.5,0.5";
+            if (fillopacity2) fill.opacity2 = fillopacity2;
+            if (fillangle) fill.angle = fillangle;
+            if (fillfocusposition) fill.focusposition = fillfocusposition;
+
+*/
+              jQuery(rect).width(Width  );
+              jQuery(rect).height(Height );
+                
+         rect.appendChild(fill);
+//================================================================
+         with(rect.style){
+                left=Left+(0.5*strokeWeight);
+                top=Top+(0.5*strokeWeight);
+                position="absolute"
+                display = 'block';
+                antialias = true;
+                zindex = el_zindex+3;
+
+             }
+//<v:stroke on="True" filltype="solid"
+ //   color="#9094C9" weight="8pt" /> 
+//   filltype="pattern" src="rond.gif" /> 
+
+if (stroked) {
+                    rect.strokecolor = strokeColor;
+                    rect.strokeWeight = strokeWeight + 'px';
+                    rect.stroked = stroked;
+   }
+        //================================================================
+document.body.appendChild(rect);
+  var css =  document.createStyleSheet();  
+  var styleSheet = (document.styleSheets.length > 0) ? document.styleSheets[0] :  document.createStyleSheet();
+        //  css = styleSheet;
+//if (stroked)  css.addRule('v'+classID+"\\:stroke" , "behavior: url(#default#VML)");
+         css.addRule('v'+classID+"\\:"+typeelement, "behavior: url(#default#VML)");
+         css.addRule('v'+classID+"\\:fill", "behavior: url(#default#VML)");
+       //  css.addRule("v\\:*", "behavior: url(#default#VML)");
+         //=================================================================	
+    
        
-       }else{
-         Fill_Src =s.backgroundImage.replace(/^url\("(.+)"\)$/, '$1');
-            if (Fill_Src)  Fill_Type= (s['type']) || "tile";
-                    else   Fill_Type = (s['type']) || "solid";
-       }
-        S = Obj.innerHTML;
-        texte=S ;
-          var argShadow = jQuery( Obj).getVariables(box_shadow);
-            argShadow.gradientType= -1;
-            argShadow.boxShadow= (argShadow.offset_h !=0) || (argShadow.offset_v !=0) ;
-            argShadow.texteShadow=false;
-            argShadow.texteRotation=false;
-            argShadow.boxRotation= (argShadow.deg !=angle) ;
-            argShadow.deg=angle;
-          //  argShadow.offset_h +=200;
-
-   
-          if (/import/.test(Obj.outerHTML)) return ;
-
-
-       vmls = jQuery(Obj).aff_path(Obj,s,r) ;
-      // Obj.innerHTML ="";
- 
-            if (Obj.tagName=="IMG")
-       {
-       var image=Obj ;
- object = image.parentNode; 
-
-      var vml = document.createElement(['<div style="overflow:hidden;display:' + 'block' +
- ';width:' + Fill_W + 'px;height:' + Fill_H + 'px;padding:0;">'].join(''));
-
- 	//vml.innerHTML = start + soft + head + fill + shadow + foot + right + bottom + top + left + lt + end;
-  	vml.innerHTML = vmls.Shape ;
-     //   if (vmls.Shape)    Obj.innerHTML +=vmls.Shape;
-
-
-		//vml.className = newClasses;
-        vml.id="Clone";
-		vml.style.cssText = image.style.cssText;
-		vml.style.height = image.height+'px';
-		vml.style.width = image.width+'px';
-		vml.height = image.height;
-		vml.width = image.width;
-		vml.src = image.src; 
-        vml.alt = image.alt;
-      
-
-             daynight="n";
-
-          var html = vmls.Shape ;
-          html +=  '<div  class="' + daynight + '"';
-        var img_src = "http://l.yimg.com/a/i/us/nws/weather/gr/" + 10 + daynight + ".png";
-
-        html += '>';
-        html += '<img src=' + img_src + ' />';
-        html += '<span class="weatherTemp' + daynight + '" >Temp: ' + 30 + ' ' + "c" + '</span>';
-
-        html += '</div>';
-       ;
-        $(object).append(html);
-
-//  object.append(vml);
-
-  //   object.removeChild(image);
-
-
- return ;
- }  
-      if (!vmls) return ;
-     //  Obj.innerHTML="";
-     
-    if (vmls.Ombre)  Obj.innerHTML   +=  vmls.Ombre  ;
-
-    if (vmls.Shape)  {    Obj.innerHTML  +=vmls.Shape ; }
-
-   //  if (vmls.Texte)   Obj.innerHTML +=  vmls.Texte ;
-   
-       t1=jQuery("#"+Obj.id+"_Ombre").get(0);
-
-   //  jQuery( Obj).affFiltres( argShadow); 
-  return ;
-
- 	
-  Obj.innerHTML +=vmls.Shape;
-   
- //NewObj=   Create_Obj(Obj);
-            return;  
-              
- if ( NewObj) 
- jQuery(  NewObj).affFiltres( argShadow);
-              return;  
-          
- 
-              jQuery(Obj).aff_path(Obj,s,r) ;
-        
-return ;     
-
-
-/*
-
-
-
-//==============================================
-Obj_Src = jQuery(Obj).get(0);
-Obj_Src.innerHTML = vmls.Shape ; 
-Obj_Src= jQuery('#'+ Init_fig).get(0);
-Init[Init_fig] = jQuery(Obj_Src).position();
-*/
-
-
-  $(Obj_Src).clone().insertBefore(".smallBox").attr("id",Obj.id+"_ombre"); 
- var Ombre= jQuery("#"+Obj.id+"_ombre");
- Ombre.css("left",Dimension[Obj.id].Left+200);
- Ombre.css("top",Dimension[Obj.id].Top);
- Ombre.get(0).innerHTML = vmls.ombre ; 
-
-//==========================================================
-if (text_shadow || box_shadow) {
-  
-
-   return ;
-  // var Ombre= jQuery(Obj).clone(false).insertBefore(Obj).addClass("Ombre").attr("id",Obj.id+"_ombre").get(0);
-jQuery(Obj_Src).insertBefore(Obj_Src).addClass("Ombre").attr("id",Obj.id+"_ombre").get(0);
-    Ombre=jQuery('#'+ Init_fig+"_ombre").get(0);
-    
-  
-   ;
-      Ombre.innerHTML  = vmls.ombre;
-
-  Init[Ombre.id] = jQuery(Ombre).position();
-
-
- if (text_shadow && Obj ) {  
-             nameId="" +  Obj.id  + "_Texte_Ombre";  
-            obj_src=jQuery("#" +  nameId).get(0);
-            if (obj_src)
-                  aff_filter(obj_src, text_shadow, "text-shadow");  
-   
-   }
- 
- 
-  if (box_shadow && Obj) {   
-      Ombre=jQuery("#" +  Obj.id  + "_ombre").get(0);
-      if ( Ombre)
-      {
-         
-
-
-            argShadow = jQuery(Obj).getVariables(box_shadow);
-            argShadow.alpha= alpha || 0.9;
-            argShadow.gradientType= 1;
-            argShadow.startColorStr= '#0000ff';
-            argShadow.endColorStr= '#ffe4e1';
-            argShadow.deg = 0  ;
-
-       jQuery(Obj).affFiltres( argShadow); //  aff_filter(obj_src,box_shadow, "box-shadow");  
-         }
-  
-  }
-
-}  
-init=false ;
-
-texte_ombre=jQuery("#"+Init_fig+"_Texte" ).get(0);
- 
-
-if (mode==8)
-{ 
- // transform(texte_ombre);
- }else{
- angle_1=angle;
- angle=0;
-// transform(texte_ombre);
-  angle=angle_1;
- }
-init=false ;
- Vml=jQuery("#Vml_"+Init_fig ).get(0);
-// transform(Vml);
-
-//================================================================================
-/*
- Obj=jQuery("#"+Init_fig).get(0);
- Set_opacity(Obj);
-  Ombre=jQuery("#"+Init_fig+"_Ombre" ).get(0);
-  texte_ombre=jQuery("#"+Init_fig+"_Texte" ).get(0);
-  if (mode==8)
-  {
- 
-   transform(  texte_ombre);
-   }
-  transform(Ombre);
- transform(Vml);
-
-  
-   transform(Obj_init); 
-   
-
-   jQuery(Obj_init).css("borderWidth",2);
-   
-     */
-//==========================================================================
+
+          Obj.style.background =    'transparent';
+          Obj.style.borderColor = 'transparent';
+
          isIE6 = /msie|MSIE 6/.test(navigator.userAgent);
          // IE6 doesn't support transparent borders, use padding to offset original element
-         if (isIE6 && (strokeWeight.Top > 0)) {
+         if (isIE6 && (strokeWeight > 0)) {
              Obj.style.borderStyle = 'none';
-             Obj.style.paddingTop = parseInt(Obj.currentStyle.paddingTop || 0) + strokeWeight.Top;
-             Obj.style.paddingBottom = parseInt(Obj.currentStyle.paddingBottom || 0) + strokeWeight.Bottom;
-         }
-//======================================================================================
- if (typeof (window.rounded_elements) == 'undefined') {
-      window.rounded_elements = new Array();
-      if (typeof (window.onresize) == 'function') { window.previous_onresize = window.onresize; }
-        window.onresize = window_resize;
-
- }
- 
-        if (typeof Vml!="undefined" ) {
-           window.rounded_elements.push(Vml);
-           Vml.attachEvent('onpropertychange', onPropertyChange);
-        }
-        if (Obj) {
-                window.rounded_elements.push(Obj);
-                Obj.attachEvent('onpropertychange', onPropertyChange);
-                }
-}
-//==================================================================
-function onResize(obj) {
-//transform(obj);
+             Obj.style.paddingTop = parseInt(Obj.currentStyle.paddingTop || 0) + strokeWeight;
+             Obj.style.paddingBottom = parseInt(Obj.currentStyle.paddingBottom || 0) + strokeWeight;
+         }
+
+
+   init_x = Left;
+   init_y = Top;
+   init_x0 = Left;
+   init_y0 = Top;
+
+        init_x  =parseInt(init_x)+strokeWeight;
+        init_y = parseInt(init_y)+strokeWeight;
+
+        init_x0  =parseInt(init_x);
+        init_y0 = parseInt(init_y);
+
+         Obj.vml = rect;
+
+//===============================================================================================
+         if (typeof (window.rounded_elements) == 'undefined') {
+             window.rounded_elements = new Array();
+
+             if (typeof (window.onresize) == 'function') { window.previous_onresize = window.onresize; }
+             window.onresize = window_resize;
+         }
+         window.rounded_elements[i]
+         window.rounded_elements.push(Obj);
+
+        // Resize(Obj.element);
+         obj = Obj;
+         init = false;
+    transform(obj)
+
+         Obj.attachEvent('onpropertychange', onPropertyChange);
+     }
+     //=====================================================================================
+     var Curwidth = 0;
+     var Curheight = 0;
+
+     function Resize(obj) {
      return ;
-}
-//==================================================================
-function Resize(obj) {
-	
-//transform(obj);
-//jQuery(obj).width("100%");
-		Window.width = jQuery(window).width();
-		Window.height =  jQuery(window).height();
-
-          winit=jQuery(obj).width(); //  valeur interieur (auto,"",%)
-          hinit=jQuery(obj).height(); //  valeur interieur
-          if (winit==0) jQuery(obj).width(Window.width);
-          if (hinit==0) jQuery(obj).width(Window.height);
-     return ;
-}
-//==================================================================================
-function window_resize() {
-   if (typeof (window.rounded_elements) == 'undefined') { return (false); }
-   // return ;
-   //  rotate(0, true)
-   Curwidth = 0;
-   for (var i in window.rounded_elements) {
+
+         var h0 = 0;
+         var strokeWeight = parseInt(obj.currentStyle.borderWidth);
+         if (isNaN(strokeWeight)) { strokeWeight = 0; }
+
+
+         Size = findSize(obj);
+         //	obj.style.backgroundColor="green";
+
+         pos = findPos(obj);
+         var parent_pos = findPos(obj.vml.parentNode);
+         //var position = $(obj).position();
+         pos.y = pos.y + (0.5 * strokeWeight) - parent_pos.y;
+         pos.x = pos.x + (0.5 * strokeWeight) - parent_pos.x;
+         objvml = obj.vml;
+         objvml.style.top = pos.y + 'px';
+         objvml.style.left = pos.x + 'px';
+
+         //===================================================
+         if (Curwidth == 0) {
+             OldWidth =  objvml.offsetWidth;
+
+             OldHeight = objvml.offsetHeight;
+             Curwidth = obj.offsetWidth - strokeWeight;
+             Curheight =   obj.offsetHeight - strokeWeight;
+ 
+         }
+
+         objvml.style.width= Curwidth ;
+         objvml.style.height=Curheight ;
+
+     }
+     //==================================================================================
+     function window_resize() {
+         if (typeof (window.rounded_elements) == 'undefined') { return (false); }
+         if (typeof (handle) == 'undefined') { return (false); }
+         old_handle = handle;
+         old_angle = nangle;
+         rotate(0, true)
+         Curwidth = 0;
+         for (var i in window.rounded_elements) {
              Resize(window.rounded_elements[i]);
-      }
-   if (typeof (window.previous_onresize) == 'function') { window.previous_onresize(); }
-    return ;
-}
-	 
-//=======================================================================================
-function aff_filter(Obj, size_Shadow,type_element) {
-     if (!Obj) return ;
-    
-        argShadow=jQuery(Obj).getVariables(size_Shadow);
-        Blur =   argShadow.flou ;
-        ShadowColor =argShadow.couleur;
-        Horizontal = argShadow.offset_h  ;
-        Vertical =  argShadow.offset_v  ;
-
-       if ( Vertical==0) Vertical=1;
-        direction =  180 - Math.atan(Horizontal  / Vertical ) * 180 / Math.PI ;
-        Strength = parseInt(Blur);
-         
-        Obj_src=jQuery(Obj).get(0);
-
- init=false ;
-      
-
-if (type_element=="text-shadow")  {
-
-if (mode==8){ 
-Obj_src.style.position="absolute";
-transform(Obj_src);    
-
-
-}
-
-Obj_src.style.color=  ShadowColor  ;
-}else {
-  transform(Obj_src);   
-}
-    name= Obj.tagName+ " " + Obj.id;
-    filtres=Obj_src.style.filter;
-
-//======================================================================================
-  sProperties =   "color="+ ShadowColor +", Direction="+direction+",Strength="+Strength/2 +" "  ;
- if (!filtres.match("progid:DXImageTransform.Microsoft.Glow")) 
-  filtres +=" progid:DXImageTransform.Microsoft.Glow("+sProperties+")" ; /**/
- //====================================================================================== 
-
-  sProperties ="pixelradius="+Strength/2+" ,MakeShadow:"+'false'+",ShadowOpacity:"+'0.5' +"";
- if (!filtres.match("progid:DXImageTransform.Microsoft.Blur")) 
-      filtres += "  progid:DXImageTransform.Microsoft.Blur("+sProperties+") ";
-
- 
- 
-//============================================================
- Obj_src.style.filter=filtres ;
-
- return Obj_src;
-}
-//====================================================================================
-function Extract_Value(String,Start_Match,End_Match){
-	
-   var reg=new RegExp(Start_Match  , "gi");
- var  string = String.toLowerCase() ;
-
-    if( reg.test(string)){
-        string=string.split(Start_Match);
-        string=string[1].split(End_Match)[0];
-        return Start_Match + string + End_Match ;
-    }
-     return String;
-}
-//====================================================================================
-function Sup_Bloc(String,Start_Match,End_Mach)
-{
-var n1=String;
- var string=n1.toLowerCase();
- var startmatch=Start_Match.toLowerCase();
- var endmatch=End_Mach.toLowerCase();
-
- while (p1 = string.indexOf(startmatch,0) >= 0 )
-                 {
-                   p1=string.indexOf(startmatch,0);
-                   p2=string.indexOf(endmatch,p1);
-                   p3=string.substring(p1,p2+endmatch.length);
-                   string=string.replace(p3,"");
-
-                   p3=n1.substring(p1,p2+endmatch.length);
-                   n1=n1.replace(p3,"");
-
-                }
-                n1=n1.replace("; ",";");
-                 n1=n1.replace("/t","");
-                n1=removeExtraSpace(n1) ;
-
-return n1;
-
-}
-
-
-//====================================================================================
-function Remplace_Value(String,Match,remplace){
-	
-
-if (typeof String!="string") csstext = String.style.cssText ;
- else csstext = String ;
-
-//  HEIGHT: 50px; COLOR: red; text-shadow: blue 20px 20px 18px
-temp="";
-
-// removeExtraSpace
-csstext=removeExtraSpace( csstext);
-csstext = csstext.toLowerCase();
-reg=new RegExp(Match , "gi");
-string=csstext.split(Match);
-if (string.length>1 ) {
-    if (remplace) {
-        temp=string[1]+";" ;
-        string=temp.split(";");
-        string=Match+string[0];
-        temp=csstext.replace(string,remplace+" " );
-        }else{
-        temp=string.join(" ");
-
-        }
-   
-}else{
-  if (remplace)  temp = remplace + "; " + csstext;
-  else temp=  csstext;
-}
-
- temp=removeExtraSpace(temp.replace(";;",";"));
-
-return temp;
-}
-//====================================================================================
-function Get_Value(String,Start_Match, Sep_Match,End_Mach){
-	
-
-if (typeof String!="string") csstext = String.style.cssText  
-else csstext = String  
-//  HEIGHT: 50px; COLOR: red; text-shadow: blue 20px 20px 18px
-
-var reg=new RegExp('"'  , "g");
-csstext=csstext.replace(reg,'') ;
-string=csstext.split(Start_Match + Sep_Match);
-
-reg=new RegExp(  End_Mach , "gi");
-
-ends=End_Mach.split('');
-string=string[1] ;
-valeur = "";
-for (t0 in ends)
-{
-reg = new RegExp(ends[t0] , "gi");
-    if (reg.test(string) ) {
-     valeur = string.split(ends[t0])[0];
-    break;
-    }
-}
-
- 
-
-return  removeExtraSpace( valeur +" "); ;
-}
-//====================================================================================
-function getClassValue(Obj,string){
-	
-	var temp = ""; var pos = string.length;
-      id=jQuery(Obj).attr("id") ; 
-
-    if (!jQuery("#"+id).hasClass) return ;
-       var reg = new RegExp(id+"({)", "g");
-    	temp=classes[id];
-     	temp=classes["."+id];
-      	temp=classes["#"+id];
-       
-	for (var j=0;j<classes.length;j++) {
-        p1=classes[j].indexOf(id );
-        if (classes[j].match(reg) ) {
-		   if (classes[j].indexOf(string)!= 0) {
-     
-			temp = classes[j].split("{");
-            temp[1]=temp[1].replace("}","");
-          
-			break;  
-            }
-		   } 
-		}
-    
-	return temp;
-}
-
-function getClassAttribute(classes,string){
-	
-	var temp = 0; var pos = string.length;
-	for (var j=0;j<classes.length;j++) {
-		if (classes[j].indexOf(string) == 0) {
-			temp = 1; break;
-		}
-	}
-	return temp;
-}
-//========================================
-function Add_Obj(Obj)
-{
-
-vmls = jQuery(Obj).aff_path(Obj,s,r) ;	 
-
-
-	var vml;  var div; var pos; var i; var classes = '';
-	var display = ""; var flt = null; var width = null; var height = null;
-	var start, head, soft, shadow, fill, foot, end;
-	var left, top, bottom, right, lt, br, linear, inset;
-	 
-    i=0;
-   // Nom_classe =  Prefix + "_" + classID ;
-		image = Obj;
-		 object = Obj.parentNode; 
-
-         width =  Dimension[Obj.id].Width;
-         height = Dimension[Obj.id].Height;
-         Left=Dimension[Obj.id].Left;
-         Top=Dimension[Obj.id].Top;
-  //--------------------------------------------------------------------------
-display = (Obj.currentStyle.display.toLowerCase()=='block')?'block':'inline-block';
-vml = document.createElement('<div id="'+ Obj.id +'" '+
-' style="overflow:hidden' + 
-'; position:absolute'+
-'; zoom:1'+
-'; zIndex:1'+
-'; left:'+Left+'px'+
-'; top:'+Top+'px'+
- '; display:' + display +
- '; width:' + width + 'px' +
- '; height:' + height + 'px'+
- '; border:1px solid blue'+
- '; padding:0;">' 
- );
-  
-
-if (/import/.test(Obj.outerHTML)) {
-
-
-}else
-	try{	
-    //vml.className = newClasses;
-	/*	vml.style.cssText = Obj.style.cssText;
-		vml.style.height = height+'px';
-		vml.style.width = width+'px';
-*/
-	
-   
-
-
-        }catch(_){
-        
-        }
-
-
-Obj.innerHTML=vmls.Shape ; 
-  
-
-var id=Obj.id;
-// object.replaceChild( vml,Obj);
- 
-
-   newObj=jQuery("#"+vml.id ).attr("id",id).get(0);
- 
- return newObj ;
-}
-//***************************************************************************************
-if (0){
-	var theimages = getImages('img');// class name
-	var image; var object; var vml;  var div; var pos; var i;  classes = '';
-	var iradius = null; var ishadow = null; var ishade = null; var inverse = null; 
-	var newClasses = ''; var maxdim = null; var offset = null; var radius = null; 
-	var display = ""; var flt = null; var width = null; var height = null;
-	var start, head, soft, shadow, fill, foot, end;
-	var left, top, bottom, right, lt, br, linear, inset;
-	 
-    i=0;
-
-		image = theimages[i];
-		object = image.parentNode; 
-
-        width = image.width; height = image.height;
-  //--------------------------------------------------------------------------
-display = (image.currentStyle.display.toLowerCase()=='block')?'block':'inline-block';
-vml = document.createElement([
-'<var style="overflow:hidden;display:' + display +
- ';width:' + width + 'px;height:' + height + 'px;padding:0;">'].join(''));
-flt = image.currentStyle.styleFloat.toLowerCase();
-
-display = (flt=='left'||flt=='right')?'inline':display;
-start = '<v:group style="zoom:1;'+
-        ' display:' + display + ';'+
-        ' margin:-1px 0 0 -1px;'+
-        ' padding:0;'+
-        ' position:absolute;'+
-        ' width:' + width + 'px;'+
-        ' height:' + height + 'px;'+
-        ' left:' + 300 + 'px;'+
-        ' top:' + 300 + 'px; '+
-        ' "'+
-        ' coordsize="' + width + ',' + height + '">';
-
-
-		fill = '<v:fill src="' + image.src + '" type="frame" />';
-		foot = (iradius>0?'</v:roundrect>':'</v:rect>');
-        end = '</v:group>';
-
-		soft = ''; shadow = ''; lt = ''; left = ''; top = ''; bottom = ''; right = '';
-
-iradius=28;
-ishadow=33 ;
-ishade=75;
-inverse=0;
-
-radius="30%";
-offset=14;
-maxdim = Math.min(_Width,_Height)/2;
-
-if(iradius<=0) {
-	
-	if (ishadow>0) {
-		if(inverse<=0) {
-			ishadow = ishadow/50; offset = 8; inset = 4;
-			soft = '<v:rect strokeweight="0" filled="t" stroked="f" fillcolor="#ffffff" style="position:absolute; margin:-1px 0 0 -1px;padding:0 ;width:' + width + 'px;height:' + height + 'px;"><v:fill color="#ffffff" opacity="0.0" /></v:rect><v:rect strokeweight="0" filled="t" stroked="f" fillcolor="#000000" style="filter:Alpha(opacity=' + (ishadow*64) + '), progid:dxImageTransform.Microsoft.Blur(PixelRadius=' + inset + ', MakeShadow=false); zoom:1;margin:-1px 0 0 -1px;padding: 0;display:block;position:absolute;top:' + inset + 'px;left:' + inset + 'px;width:' + (width-(3*inset)) + 'px;height:' + (height-(3*inset)) + 'px;"><v:fill color="#000000" opacity="1" /></v:rect>';
-					head = '<v:rect strokeweight="0" filled="t" stroked="f" fillcolor="#ffffff" style="position:absolute; margin:-1px 0 0 -1px;padding:0 ;width:' + (width-offset) + 'px;height:' + (height-offset) + 'px;">';
-				}else if(inverse>0) {
-					ishadow = ishadow/50; iradius = 12; linear = "linear";
-					head = '<v:rect filled="t" stroked="t" fillcolor="#ffffff" style="position:absolute; margin:-1px 0 0 -1px;padding:0; width:' + width + 'px;height:' + height + 'px;">';
-					shadow = '<v:stroke weight="0.5" opacity="'+(ishadow/2)+'" color="#000000" />';
-					top = '<v:shape strokeweight="0" filled="t" stroked="f" fillcolor="#000000" coordorigin="0,0" coordsize="' + width + ',' + iradius + '" path="m 0,0 l '+width+',0,'+width+','+iradius+','+iradius+','+iradius+' x e" style="position:absolute; margin: -1px 0 0 -1px; top: 0px; left: 0px; width:' + width + 'px; height:' + iradius + 'px;"><v:fill method="' + linear + '" type="gradient" angle="0" color="#000000" opacity="0" color2="#000000" o:opacity2="' + ishadow + '" /></v:shape>'; 
-					left = '<v:shape strokeweight="0" filled="t" stroked="f" fillcolor="#000000" coordorigin="0,0" coordsize="' + iradius + ',' + height + '" path="m 0,0 l 0,'+height+','+iradius+','+height+','+iradius+','+iradius+' x e" style="position:absolute; margin: -1px 0 0 -1px; top: 0px; left: 0px; width:' + iradius + 'px; height:' + height + 'px;"><v:fill method="' + linear + '" type="gradient" angle="90" color="#000000" opacity="0" color2="#000000" o:opacity2="' + ishadow + '" /></v:shape>';
-				}
-			}else {
-				head = '<v:rect strokeweight="0" filled="t" stroked="f" fillcolor="#ffffff" style="margin:-1px 0 0 -1px;padding:0;display:' + display + ';width:' + width + 'px;height:' + height + 'px;">';
-			}
-			if(ishade>0) {
-				ishade = ishade/50; iradius = 12;
-				top = '<v:shape strokeweight="0" filled="t" stroked="f" fillcolor="#ffffff" coordorigin="0,0" coordsize="' + (width-offset) + ',' + iradius + '" path="m 0,0 l '+(width-offset)+',0,'+(width-offset)+','+iradius+','+iradius+','+iradius+' x e" style="position:absolute; margin: -1px 0 0 -1px; top: 0px; left: 0px; width:' + (width-offset) + 'px; height:' + iradius + 'px;"><v:fill method="linear" type="gradient" angle="0" color="#ffffff" opacity="0" color2="#ffffff" o:opacity2="' + ishade + '" /></v:shape>'; 
-
-				left = '<v:shape strokeweight="0" filled="t" stroked="f" fillcolor="#ffffff" coordorigin="0,0" coordsize="' + iradius + ',' + (height-offset) + '" path="m 0,0 l 0,'+(height-offset)+','+iradius+','+(height-offset)+','+iradius+','+iradius+' x e" style="position:absolute; margin: -1px 0 0 -1px; top: 0px; left: 0px; width:' + iradius + 'px; height:' + (height-offset) + 'px;"><v:fill method="linear" type="gradient" angle="90" color="#ffffff" opacity="0" color2="#ffffff" o:opacity2="' + ishade + '" /></v:shape>';
-
-				bottom = '<v:shape strokeweight="0" filled="t" stroked="f" fillcolor="#000000" coordorigin="0,0" coordsize="' + (width-offset) + ',' + iradius + '" path="m 0,'+iradius+' l '+(width-offset)+','+iradius+','+(width-offset-iradius)+',0,'+iradius+',0 x e" style="position:absolute; margin: 0; top:' + (height-offset-iradius) + 'px; left: 0px; width:' + (width-offset) + 'px; height:' + iradius + 'px;"><v:fill method="linear" type="gradient" angle="180" color="#000000" opacity="0" color2="#000000" o:opacity2="' + ishade + '" /></v:shape>';
-
-				right = '<v:shape strokeweight="0" filled="t" stroked="f" fillcolor="#000000" coordorigin="0,0" coordsize="' + iradius + ',' + (height-offset) + '" path="m '+iradius+',0 l '+iradius+','+(height-offset)+',0,'+(height-offset-iradius)+',0,'+iradius+' x e" style="position:absolute; margin: 0; top: 0px; left:' + (width-offset-iradius) + 'px; width:' + iradius + 'px; height:' + (height-offset) + 'px;"><v:fill method="linear" type="gradient" angle="270" color="#000000" opacity="0" color2="#000000" o:opacity2="' + ishade + '" /></v:shape>';
-
-			}
-		
-		} else {
-			if(ishadow>0) {
-				linear = "linear sigma"; pos = 2;
-				if(inverse<=0) {
-					ishadow = ishadow/50; inset = Math.round(offset*0.5);
-					soft = '<v:rect strokeweight="0" filled="t" stroked="f" fillcolor="#ffffff" style="position:absolute; margin:-1px 0 0 -1px;padding:0 ;width:' + width + 'px;height:' + height + 'px;"><v:fill color="#ffffff" opacity="0.0" /></v:rect><v:roundrect arcsize="' + (radius+inset) + '" strokeweight="0" filled="t" stroked="f" fillcolor="#000000" style="filter:Alpha(opacity=' + (ishadow*64) + '), progid:dxImageTransform.Microsoft.Blur(PixelRadius=' + inset + ', MakeShadow=false); zoom:1;margin:-1px 0 0 -1px;padding: 0;display:block;position:absolute;top:' + inset + 'px;left:' + inset + 'px;width:' + (width-(3*inset)) + 'px;height:' + (height-(3*inset)) + 'px;"><v:fill color="#000000" opacity="1" /></v:roundrect>';
-					head = '<v:roundrect arcsize="' + radius + '" strokeweight="0" filled="t" stroked="f" fillcolor="#ffffff" style="position:absolute; margin:-1px 0 0 -1px;padding:0; width:' + (width-offset) + 'px;height:' + (height-offset) + 'px;">';
-				}else if(inverse>0) {
-					ishadow = ishadow/50;
-					head = '<v:roundrect arcsize="' + radius + '" filled="t" stroked="t" fillcolor="#ffffff" style="position:absolute; margin:-1px 0 0 -1px;padding:0; width:' + width + 'px;height:' + height + 'px;">';
-					shadow = '<v:stroke weight="0.5" opacity="'+(ishadow/2)+'" color="#000000" />';
-					top = '<v:shape strokeweight="0" filled="t" stroked="f" fillcolor="#000000" coordorigin="0,0" coordsize="' + width + ',' + iradius + '" path="m '+iradius+','+iradius+' l '+width+','+iradius+' qy '+(width-iradius)+',0 l '+iradius+',0 x e" style="position:absolute; margin: -1px 0 0 -1px; top: 0px; left: -1px; width:' + (width+1) + 'px; height:' + iradius + 'px;"><v:fill method="' + linear + '" type="gradient" angle="0" color="#000000" opacity="0" color2="#000000" o:opacity2="' + ishadow + '" /></v:shape>'; 
-					left = '<v:shape strokeweight="0" filled="t" stroked="f" fillcolor="#000000" coordorigin="0,0" coordsize="' + iradius + ',' + height + '" path="m 0,'+iradius+' l 0,'+(height-iradius)+' qy '+iradius+','+height+' l '+iradius+','+iradius+' x e" style="position:absolute; margin: -1px 0 0 -1px; top: -1px; left: 0px; width:' + iradius + 'px; height:' + (height+1) + 'px;"><v:fill method="' + linear + '" type="gradient" angle="90" color="#000000" opacity="0" color2="#000000" o:opacity2="' + ishadow + '" /></v:shape>';
-					lt = '<v:shape strokeweight="0" filled="t" stroked="f" fillcolor="#000000" coordorigin="0,0" coordsize="' + iradius + ',' + iradius + '" path="m '+iradius+','+iradius+' l 0,'+iradius+' qy '+iradius+',0 l '+iradius+','+iradius+' x e" style="position:absolute; margin: -1px 0 0 -1px; top: 0px; left: 0px; width:' + iradius + 'px; height:' + iradius + 'px;"><v:fill method="' + linear + '" focus="1" focusposition="1,1" focussize="0.5,0.5" type="gradientradial" color="#000000" opacity="0" color2="#000000" o:opacity2="' + ishadow + '" /></v:shape>';
-				}
-			}else {
-				pos = 1; offset = 0;
-				head = '<v:roundrect arcsize="' + radius + '" strokeweight="0" filled="t" stroked="f" fillcolor="#ffffff" style="position:absolute; margin:-1px 0 0 -1px;padding:0; width:' + width + 'px;height:' + height + 'px;">';
-			}
-			if(ishade>0) {
-				ishade = ishade/50; linear = "linear";
-				top = '<v:shape strokeweight="0" filled="t" stroked="f" fillcolor="#ffffff" coordorigin="0,0" coordsize="' + (width-offset) + ',' + iradius + '" path="m '+iradius+','+iradius+' l '+(width-offset)+','+iradius+' qy '+(width-offset-iradius)+',0 l '+iradius+',0 x e" style="position:absolute; margin: -1px 0 0 -1px; top: 0px; left: -1px; width:' + (width-offset+pos) + 'px; height:' + iradius + 'px;"><v:fill method="' + linear + '" type="gradient" angle="0" color="#ffffff" opacity="0" color2="#ffffff" o:opacity2="' + ishade + '" /></v:shape>'; 
-				left = '<v:shape strokeweight="0" filled="t" stroked="f" fillcolor="#ffffff" coordorigin="0,0" coordsize="' + iradius + ',' + (height-offset) + '" path="m 0,'+iradius+' l 0,'+(height-iradius-offset)+' qy '+iradius+','+(height-offset)+' l '+iradius+','+iradius+' x e" style="position:absolute; margin: -1px 0 0 -1px; top: -1px; left: 0px; width:' + iradius + 'px; height:' + (height-offset+pos) + 'px;"><v:fill method="' + linear + '" type="gradient" angle="90" color="#ffffff" opacity="0" color2="#ffffff" o:opacity2="' + ishade + '" /></v:shape>';
-				lt = '<v:shape strokeweight="0" filled="t" stroked="f" fillcolor="#ffffff" coordorigin="0,0" coordsize="' + iradius + ',' + iradius + '" path="m '+iradius+','+iradius+' l 0,'+iradius+' qy '+iradius+',0 l '+iradius+','+iradius+' x e" style="position:absolute; margin: -1px 0 0 -1px; top: 0px; left: 0px; width:' + iradius + 'px; height:' + iradius + 'px;"><v:fill method="' + linear + '" focus="1" focusposition="1,1" focussize="0.5,0.5" type="gradientradial" color="#ffffff" opacity="0" color2="#ffffff" o:opacity2="' + ishade + '" /></v:shape>';
-			}
-		}
-		
-		vml.innerHTML = start + soft + head + fill + shadow + foot + right + bottom + top + left + lt + end;
-		//vml.className = newClasses;
-		vml.style.cssText = image.style.cssText;
-		vml.style.height = image.height+'px';
-		vml.style.width = image.width+'px';
-		vml.height = image.height;
-		vml.width = image.width;
-		vml.src = image.src; 
-        vml.alt = image.alt;
-
-
-    //    object.replaceChild(vml,image);
-
-//  object.appendChild(vml);
-  
- // object.removeChild(image);
-
-
-}
-
-//====================================================================================
-function getImages(className){
-	var children = document.getElementsByTagName('img'); 
-	var elements = new Array(); var i = 0;
-	var child; var classNames; var j = 0;
-	for (i=0;i<children.length;i++) {
-		child = children[i];
-		classNames = child.className.split(' ');
-		for (  j = 0; j < classNames.length; j++) {
-			if (classNames[j] == className) {
-				elements.push(child);
-				break;
-			}
-		}
-	}
-	return elements;
-}
-//================================ Excanvas ==========================================
+         }
+
+         if (typeof (window.previous_onresize) == 'function') { window.previous_onresize(); }
+         nangle = old_angle
+         if (old_handle) toggleAnimation()
+
+     }
+     //=======================================================================================
+
+     function aff_filter(obj, sizeShadow) {
+     if (!obj) return ;
+
+         if (typeof obj == "string") var s = document.getElementById(obj).style;
+         else var s = obj.style;
+         Blur = 0;
+         ShadowColor = 0;
+         Horizontal = sizeShadow[0];
+         Vertical = sizeShadow[1];
+         if (sizeShadow.length > 2) Blur = sizeShadow[2]; //radius
+         if (sizeShadow.length > 3) ShadowColor = translateColor(sizeShadow[3]);
+
+
+         direction = 180 - Math.atan((parseInt(Horizontal)) / (parseInt(Vertical))) * 180 / Math.PI;
+         Strength = parseInt(Blur);
+         couleur = ShadowColor;
+
+         obj.style.filter = "progid:DXImageTransform.Microsoft.Shadow(color =" + couleur + ",Direction =" + direction + ",Strength = " + Strength + ") ";
+
+
+
+
+
+         return;
+
+     }
+
      function hasSilverlight() {
          try {
@@ -1607,5 +647,5 @@
          }
      }
-     //--------------------------------------------------------------------------
+
      function getRgbHslContent(styleString) {
          var start = styleString.indexOf('(', 3);
@@ -1620,13 +660,13 @@
          return parts;
      }
-     //--------------------------------------------------------------------------
+
      function percent(s) {
          return parseFloat(s) / 100;
      }
-     //--------------------------------------------------------------------------
+
      function clamp(v, min, max) {
          return Math.min(max, Math.max(min, v));
      }
-     //--------------------------------------------------------------------------
+
      function hslToRgb(parts) {
          var r, g, b, h, s, l;
@@ -1650,5 +690,5 @@
          decToHex[Math.floor(b * 255)];
      }
-     //--------------------------------------------------------------------------
+
      function hueToRgb(m1, m2, h) {
          if (h < 0)
@@ -1666,17 +706,22 @@
              return m1;
      }
-     //--------------------------------------------------------------------------
-   
+     function hexToDec(hex) {
+         return parseInt(hex, 16);
+     }
+
+
      function translateColor(styleString) {
          var str;
          var n = 0;
-        var exp = new RegExp(/^#/);
-
-         style_String = jQuery.trim(String(styleString));
-         if (exp.test(style_String)) { 
-                  return style_String;
-             } else if (/^rgb/.test(style_String)) {
-             parts = getRgbHslContent(style_String);
-             str = '', n;
+
+
+         styleString = String(styleString);
+         if (styleString.charAt(0) == '#') {
+             styleString = (styleString + "00000000").substring(0, 7);
+
+             return styleString;
+         } else if (/^rgb/.test(styleString)) {
+             var parts = getRgbHslContent(styleString);
+             var str = '', n;
              for (var i = 0; i < 3; i++) {
                  if (parts[i].indexOf('%') != -1) {
@@ -1689,20 +734,19 @@
 
              alpha = parts[3];
-         } else if (/^hsl/.test(style_String)) {
-            parts = getRgbHslContent(style_String);
+         } else if (/^hsl/.test(styleString)) {
+             var parts = getRgbHslContent(styleString);
              str = hslToRgb(parts);
              alpha = parts[3];
-         } else if (style_String in colorData) {
-          
+         } else if (styleString in colorData) {
+             var exp = new RegExp(/^#/);
 
              return colorData[styleString];
 
-          } else if ( !isNaN(style_String)) {
-
-           return translateColor("#"+style_String);
+
+
          } else {
 
 
-             return style_String;
+             return styleString;
 
 
@@ -1711,7 +755,5 @@
          return '#' + str;
      }  	
-	 
-	 
-    //--------------------------------------------------------------------------
+ 
       var colorData = {
          aliceblue: '#F0F8FF',
@@ -1722,5 +764,4 @@
          bisque: '#FFE4C4',
          black: '#000000',
-         blue:'#0000FF',
          blanchedalmond: '#FFEBCD',
          blueviolet: '#8A2BE2',
@@ -1768,5 +809,4 @@
          grey: '#808080',
          greenyellow: '#ADFF2F',
-         green: '#00FF00',
          honeydew: '#F0FFF0',
          hotpink: '#FF69B4',
@@ -1847,1142 +887,58 @@
          wheat: '#F5DEB3',
          whitesmoke: '#F5F5F5',
-         yellowgreen: '#9ACD32',
-         yellow: '#FFFF00'
+         yellowgreen: '#9ACD32'
      };
-    //--------------------------------------------------------------------------
-
-     function hexToDec(hex) {
-         return parseInt(hex, 16);
-     }	
-    for (i = 0; i < 16; i++) {
-             for (var j = 0; j < 16; j++) {
-                 decToHex[i * 16 + j] = i.toString(16) + j.toString(16);
-             }
-    }   
-   //=====================================================================
-   function copyState(o1, o2) {
-   o2.style=o1.style ;
-         o2.fillStyle = o1.fillStyle;
-         o2.lineCap = o1.lineCap;
-         o2.lineJoin = o1.lineJoin;
-         o2.lineWidth = o1.lineWidth;
-         o2.miterLimit = o1.miterLimit;
-         o2.shadowBlur = o1.shadowBlur;
-         o2.shadowColor = o1.shadowColor;
-         o2.shadowOffsetX = o1.shadowOffsetX;
-         o2.shadowOffsetY = o1.shadowOffsetY;
-         o2.strokeStyle = o1.strokeStyle;
-         o2.globalAlpha = o1.globalAlpha;
-         o2.font = o1.font;
-         o2.textAlign = o1.textAlign;
-         o2.textBaseline = o1.textBaseline;
-         o2.arcScaleX_ = o1.arcScaleX_;
-         o2.arcScaleY_ = o1.arcScaleY_;
-         o2.lineScale_ = o1.lineScale_;
-     }
-//================================================================================
-
-     // alias some functions to make (compiled) code shorter 
-     var m = Math;
-     var mr = m.round;
-     var ms = m.sin;
-     var mc = m.cos;
-     var abs = m.abs;
-     var sqrt = m.sqrt;
-
-     // this is used for sub pixel precision 
-     var Z = 10;
-     var Z2 = Z / 2;
-
-
-function createMatrixIdentity() {
-         return [
-       [1, 0, 0],
-       [0, 1, 0],
-       [0, 0, 1]
-     ];
-     }
-
-function getContext() {
-         return this.context_ ||
-         (this.context_ = new CanvasRenderingContext2D_(this));
-     }
-
-function CanvasRenderingContext2D_(canvasElement) {
-         this.m_ = createMatrixIdentity();
-
-         this.mStack_ = [];
-         this.aStack_ = [];
-         this.currentStringPath_ = [];
-
-         // Canvas context properties 
-         this.strokeStyle = '#000';
-         this.fillStyle = '#000';
-
-         this.lineWidth = 1;
-         this.lineJoin = 'miter';
-         this.lineCap = 'butt';
-         this.miterLimit = Z * 1;
-         this.globalAlpha = 1;
-         this.font = '10px sans-serif';
-         this.textAlign = 'left';
-         this.textBaseline = 'alphabetic';
-         this.canvas = canvasElement;
-
-         var cssText = 'width:' + canvasElement.clientWidth + 'px;height:' +
-         canvasElement.clientHeight + 'px;overflow:hidden;position:absolute';
-
-         var el = canvasElement.ownerDocument.createElement('div');
-
-         el.style.cssText = cssText;
-         canvasElement.appendChild(el);
-
-         var overlayEl = el.cloneNode(false);
-         // Use a non transparent background. 
-         overlayEl.style.backgroundColor = 'red';
-         overlayEl.style.filter = 'alpha(opacity=0)';
-         canvasElement.appendChild(overlayEl);
-
-         this.element_ = el;
-         this.currentPath_ = "";
-         this.arcScaleX_ = 1;
-         this.arcScaleY_ = 1;
-         this.lineScale_ = 1;
-     }
-
-//==================================================================================
-var G_vmlCanvasManager_ = {
-         init: function (opt_doc) {
-             var doc = opt_doc || document;
-             // Create a dummy element so that IE will allow canvas elements to be 
-             // recognized. 
-             doc.createElement('canvas');
-             doc.attachEvent('onreadystatechange', bind(this.init_, this, doc));
-         },
-
-         init_: function (doc) {
-             // find all canvas elements 
-             var els = doc.getElementsByTagName('canvas');
-             for (var i = 0; i < els.length; i++) {
-                 this.initElement(els[i]);
-             }
-         },
-
-         /** 
-         * Public initializes a canvas element so that it can be used as canvas 
-         * element from now on. This is called automatically before the page is 
-         * loaded but if you are creating elements using createElement you need to 
-         * make sure this is called on the element. 
-         * @param {HTMLElement} el The canvas element to initialize. 
-         * @return {HTMLElement} the element that was created. 
-         */
-         initElement: function (el) {
-             if (!el.getContext) {
-                 el.getContext = getContext;
-
-                 // Add namespaces and stylesheet to document of the element. 
-               //  addNamespacesAndStylesheet(el.ownerDocument);
-
-                 // Remove fallback content. There is no way to hide text nodes so we 
-                 // just remove all childNodes. We could hide all elements and remove 
-                 // text nodes but who really cares about the fallback content. 
-           //      el.innerHTML = '';
-
-                 // do not use inline function because that will leak memory 
-                 el.attachEvent('onpropertychange', onPropertyChange);
-                 el.attachEvent('onresize', onResize);
-
-                 var attrs = el.attributes;
-                 if (attrs.width && attrs.width.specified) {
-                     // TODO: use runtimeStyle and coordsize 
-                     // el.getContext().setWidth_(attrs.width.nodeValue); 
-                     el.style.width = attrs.width.nodeValue + 'px';
-                 } else {
-                     el.width = el.clientWidth;
-                 }
-                 if (attrs.height && attrs.height.specified) {
-                     // TODO: use runtimeStyle and coordsize 
-                     // el.getContext().setHeight_(attrs.height.nodeValue); 
-                     el.style.height = attrs.height.nodeValue + 'px';
-                 } else {
-                     el.height = el.clientHeight;
-                 }
-                 //el.getContext().setCoordsize_() 
-             }
-             return el;
-         }
-     };
-
-
+//=====================================================================
+// Ajoute une fonctionnalité jQuery
+jQuery.extend(jQuery.expr[':'], {
+        // Nom du sélecteur personnalisé
+        Radius: function (a) {
+            if (!jQuery.browser.msie) return;
+
+    s= a.currentStyle;
+           var moz = s['-moz-border-radius'] !== undefined   ;
+            var webkit = s['-webkit-border-radius'] !== undefined;
+            var radius = s['border-radius'] !== undefined ||s['border-Radius'] !== undefined || s['Border-Radius'] !== undefined;
+
+            var mode = document.documentMode || 0;
+            var noBottomFold = jQuery.browser.msie && ((jQuery.browser.version < 8 && !mode) || mode < 8);
+
+            // Eléments correspondant
+       Attribut = s[radius ? 'border-radius' : moz ? '-moz-border-radius' : '-webkit-border-radius'];
+            if (Attribut != undefined) {
+                jQuery(a).crossbrowser(a);
+                 
+            }
+            return false;
+
+        }
+    });
  //==============================================================================
 jQuery.fn.extend({
-
-
-aff_path: function (Obj_src,s,r ){
-if (Obj_src.tagName=="BODY")
- return ;
- if (Obj_src.tagName=="A")
- return ;
- //========================================
- s = Obj_src.currentStyle;
-
-
-      if (mode==7)
-      {
-      correct={x:0,y:0};
-      }
-      else
-      {
-        correct={x:0,y:0};
-      }
-
-
-    //==================== width:300px;height:200px; /* interieur */==================================
-        _Width  =   Dimension[Obj_src.id].Width   ;  
-        _Height =   Dimension[Obj_src.id].Height ;  
-        _Left   =   Dimension[Obj_src.id].Left+  (strokeWeight.Left/2  ) ;  ;
-        _Top    =    Dimension[Obj_src.id].Top  + (strokeWeight.Top/2 ) ;;
- 
-    //==========================================================
-    var typeelement="";
-   path=Set_Path(r,_Width,_Height );
-   Path=path.Path;
-   typeelement=path.typeelement;
-  if ( path.typeelement=='no') return ;;
-   CoordSize=path.CoordSize;
- var  coordorigin=path.CoordOrigin;
-
-    font=[];
-    var reg=new RegExp('(")', "g");
- var   background=[];
-
-    for (i in s)
-    {
-  name = i.replace(rupper, "-$1").toLowerCase()
-    if (i.match("font")||i.match("background")) 
-    {
- variable= s[i]  ;
-
-   if (i.match("Color")) { variable = translateColor(variable); }
-   if (i.match("Size"))    variable = jQuery(Obj_src).css(i); 
-
-
-        if (i.match("font"))   font.push(   variable );
-   //  if (i.match("background"))  background.push(  name +  ":" + variable + "; ");
- 
-        }
-
-    } 
-         background = background.join( ' ').replace(reg,"") ;
-         font = font.join( ' ').replace(reg,"") ;
-    filled= (Fill_Color!="none") || (Fill_Src!="none") ; 
-    filtre = Obj_src.style.filter ;
-
-     ;
-    //==================================================================
-    Options.style={};
-    Options.stroke={};
-    Options.fill={};
-    Options.shape={};
-
-
-
-    Options.style={    
-        position:"absolute",
-        width: _Width+'px'   ,
-        height: _Height+'px'  ,
-        font  : font ,
-        display : 'block',
-        antialias: 'true',
-        overflow: 'visible',
-        color:jQuery(Obj_src).css("color"),
-        padding:jQuery(Obj_src).css("padding"), 
-        zoom:'1' 
-    }
-
-
-
-        Options.style.left= _Left+correct.x+"px";
-        Options.style.top=_Top+correct.y+"px";
-
-        Options.element= typeelement;
-
-
-    //====================== STROKE ============================= 
- 
-    stroked = (strokeColor.Top != "none") && (strokeWeight.Top!=0)  ;
-
-    var  fn="none";
-    var tile="frame";
-
-    if (!stroked) { 
-        strokeColor.Left="none" ;
-        strokeColor.Top="none" ;
-        strokeColor.Bottm="none" ;
-        strokeColor.Right="none" ;
-    };
-
-    Options.stroke={   
-    } 
-     opacity= alpha|0.99;
-
-   Fill_Type=Fill_Type || "tile";
-    Options.fill={   
-         //  opacity obligatoire 
-       opacity:alpha-0.01 ,
-       src: Fill_Src,
-       type : Fill_Type  
-    }
-    //================================================================== 
-    Options.shape={
-        id: Obj_src.id+"_Shape" ,
-        path:Path ,
-        stroked : stroked ,
-      
-        strokecolor : strokeColor.Left,
-        strokelinestyle :  strokeStyle.Left ,
-        strokeweight : strokeWeight.Left+'px'  ,
- 
-        coordorigin: coordorigin,
-        coordSize: CoordSize,
-
-
-        FillColor:Fill_Color ,        //  Defines the brush color that fills the closed path of a shape.  
-        filled: (Fill_Color != "none")  || (Fill_Src!="none") ,  //  Determines whether the closed path will be filled.          
-        style:  Set_Value_to_str(Options.style,":",";") 
-    } 
-     
-    //============================================================================
-    //<textbox string="VML text" layout-flow="vertical"/>
-    Options.textbox={   
-        string : texte,
-        'layout-flow':"vertical" 
-    }      
-
-    Options.group={   
-              
-
-    }  
-
-    //====================================================================
-  var  vml_str=[];
- 
-    vml_str.push(  Set_Shape(Nom_classe,Options) );
-    vml_str.push(  Set_Fill( Nom_classe,Options )  );
-    //   vml_str.push(  Set_Stroke( Nom_classe,Options )  );
-     vml_str.push("<div style='line-height:"+Obj_src.currentStyle.lineHeight+"'>" + texte + "</div>"  );
-  //     vml_str.push(Set_textbox( Nom_classe,Options )  );
-  
-//================================================================
-//--- ajout du texte ---
-
-  l0=0  ;
-  t0=0  ;
-  texte= jQuery( Obj_src).text(); ;
-  fils  = Obj_src.childNodes ;
-  texte_couleur_ombre="";
-//==========================================================    
-  vml_texte=[];
- if (texte!="") {
-texte=S;
-    if (text_shadow)  {
-     var argShadow= jQuery(Obj_src).getVariables(text_shadow);
-   jQuery.each(Obj_src.childNodes, function (i, val) { 
-        if (val.nodeType!=3) val.id=val.id+"_"+i ;
-                jQuery.each(val.childNodes, function (i, val) { 
-                 if (val.nodeType!=3) val.id=val.id+"_"+i ;
-                });
-
-            })
-
-
-        l0= argShadow.offset_v -argShadow.flou;
-        t0= argShadow.offset_h -argShadow.flou;
-        l0=0;
-        t0=0;
-  
-        vml_texte.push('<div id="' +  Obj_src.id  + '_Texte_Ombre" style=" '+
-        'padding:' + strokeWeight.Top + 'px ;  '+ ' '+
-        'position:absolute;left:'+ l0 +'px ; top:'+ t0 +'px;  ">'+ texte +"</div>") ;
-   
-//=======================================================================    
-
- vml_texte.push('<div id="' +  Obj_src.id  + '_Texte" style=" '+
-    'padding:' + strokeWeight.Top + 'px ; '+
-     'position:absolute; '+
-    'left:-'+ l0+'px ; top:'+ l0+'px;  ">' + texte +"</div>" );   
-    
-
-    }
-//=======================================================================    
-
-     
-  
-
-    
-  if(argShadow)  texte_couleur_ombre=argShadow.couleur;
-
-  }
-
-//==================================================
- var  vml_Ombre=[];;
- if (box_shadow)  {
-    argShadow= jQuery(Obj_src).getVariables(box_shadow);
-        vml_Ombre=[];
-        Options.shape.id=Obj_src.id + "_Ombre";
-        Options.shape.FillColor=argShadow.couleur;
-        Options.shape.filled=true;
-        Options.stroke.color=argShadow.couleur;
-        Options.fill.src="none";
-        Options.fill.type="solid";
-          /*
-        Options.stroke.weight="0px";  
-        Options.style.padding="0px"; 
-        Options.style.background="transparent";
-        Options.style.position="absolute";
-        Options.style.padding="0px";  
-        Options.style.left="-100px";
-        Options.style.top="0px";
-*/
-  //  Obj_init.style.padding="0px"; 
- 
-  //  Obj_init.style.marginLeft=Dimension[Obj_init.id].Left+argShadow.offset_v|0+"px";
-  //  Obj_init.style.marginTop=Dimension[Obj_init.id].Top+argShadow.offset_h|0+"px";
- 
-    // Options.stroke.weight="0px";  
-    l0=argShadow.flou-argShadow.offset_v ;
-    t0=argShadow.flou-argShadow.offset_h ;
-    Options.shape.coordorigin= l0 + " , " + t0 ;
-    vml_Ombre.push(  Set_Shape(Nom_classe,Options) );
-    vml_Ombre.push(  Set_Fill( Nom_classe,Options )  );
-    vml_Ombre.push(  Set_Stroke( Nom_classe,Options )  );
-   vml_Ombre.push(  Set_end_Shape( Nom_classe,Options) );
-
- 
- }
-    //============================================================
-     
-vml_Ombre= vml_Ombre.join(" ") ; 
-vml_texte=vml_texte.join(" ") ;  
-   vml_str.push(   Set_end_Shape( Nom_classe,Options) );
-vml_str= vml_str.join(" ") ;  
-
- jQuery("#"+Obj_src.id).css("backgroundColor","transparent");
-
-
-/* */
-   if (texte_couleur_ombre)
-  jQuery("#"+Obj_src.id+"_Texte_Ombre").css("color",texte_couleur_ombre);
-  ret={}; 
-
-  return { ombre:vml_Ombre, Shape:vml_str,Texte:vml_texte};
-
-},
-//------------------------------------------------------------------------
-rotate:  function ( deg) {
-
-    obj_str=jQuery(this);
-    obj=obj_str.get(0);
-if (!obj) return ;
-
-
-     if (typeof obj_str != "string") obj = jQuery(obj_str).get(0);
-        else obj = jQuery("#"+obj_str).get(0);
-
-        if (!externe) {
-           angle=deg;
-
-            jQuery(obj).affFiltres( argShadow);
-
-        } else {
-
-            //===========================================================
-            boxShadow = jQuery(obj).css("box-shadow");
-
-
- var argShadow = jQuery(obj).getVariables(boxShadow);
-           
-            argShadow.gradientType= -1;
-            argShadow.boxShadow= (argShadow.offset_h !=0) || (argShadow.offset_v !=0) ;
-
-            argShadow.texteShadow=false;
-            argShadow.texteRotation=false;
-
-             argShadow.boxRotation= (argShadow.deg !=deg) ;
-             argShadow.deg=deg;
-
-          //   argShadow.offset_h +=200;
-
-             jQuery(obj).affFiltres( argShadow);
-
-        }
-   },
- //-----------------------------------------------------------------------------
- affFiltres: function(argShadow)
- {
-obj=this.get(0);
-
-    obj.style.zIndex=1;
-    obj.style.zoom=1;
-    obj.style.position="absolute";
- 
-
- id=obj.id;
-  var  Ombre=jQuery("#"+obj.id+"_ombre").get(0)  ;
-
-  if (obj.style.position!='absolute')    obj.style.position='absolute';
-   if (obj.style.zIndex=='') obj.style.zIndex=1;
-   if (obj.style.zoom=='')  obj.style.zoom=1;
-   if (!argShadow) argShadow = jQuery(obj).getVariables(obj.style['boxShadow']);
-    if (!argShadow) return ;
-if ( argShadow.boxShadow  )  
-        if (!Ombre) { 
-         
-                jQuery(this).clone().insertBefore(obj).addClass("Ombre").attr("id", id + "_ombre1");
-                ombre=jQuery("#"+obj.id+"_ombre1").get(0);
-              
-                ombre.style.backgroundImage="none";
-                ombre.style.backgroundColor="transparent";
-                
-                ombre.filled = "true" ;
-                ombre.fillColor =  argShadow.couleur;
-               
-                ombre.stroked = "true" ;
-                 ombre.strokeweight=0;
-                ombre.strokecolor = argShadow.couleur;
-                childs = jQuery( ombre.childNodes).remove() ;
-
-
-                jQuery(ombre).clone().insertBefore(obj).addClass("Ombre").attr("id", id + "_ombre");
-               jQuery("#"+obj.id+"_ombre1").remove();
-                ombre=jQuery("#"+obj.id+"_ombre");
-                Ombre=jQuery("#"+obj.id+"_ombre").get(0)  ;
-            //    
-                texte=Ombre.outerHTML;
-if (/import namespace/.test(texte))
-{
-    /*
-        Ombre.style.backgroundColor="transparent" ;
-        Ombre.style.backgroundImage="none";
-        Ombre.filled = "true" ;
-        Ombre.fillcolor = argShadow.couleur ;
-        Ombre.stroked = "true" ;
-        Ombre.strokecolor = argShadow.couleur;
-        */
-
-}else{     
-            jQuery( Ombre).css("background-color",argShadow.couleur);
-            jQuery( Ombre).css("border-color", argShadow.couleur);
-            jQuery( Ombre).css("background-image", "none");
-            
-          } 
-
-    }
-
-   
-
-        if (!Init[obj.id]) Init[obj.id]=jQuery("#"+obj.id).position();
-        if ( Ombre)     if (!Init[ Ombre.id]) Init[Ombre.id]=jQuery("#"+ Ombre.id).position();
-     
-         var opacity = parseInt(argShadow.alpha, 10) + "" === "NaN" ? "100" : "" + argShadow.alpha * 100 + "";
-         if (opacity>100) opacity = parseInt(argShadow.alpha, 10);
-
-        var   alpha = opacity;
-        var   Strength = argShadow.flou;
-        var   ShadowColor = argShadow.couleur;
-        var   Horizontal = argShadow.offset_h|1;
-        var   Vertical = argShadow.offset_v|1;
-        var   gradientType = argShadow.gradientType ;
-        var   startColorStr = argShadow.startColorStr ;
-        var   endColorStr = argShadow.endColorStr ;
-        var   deg = argShadow.deg ;
-        if (Vertical == 0) Vertical = 1;
-        var  direction = 180 - Math.atan(Horizontal / Vertical) * 180 / Math.PI;
-
-
-
-        //======================================================================================
-if ( argShadow.boxRotation )  {        
-        var deg2radians = Math.PI * 2 / 360;
-        var rad = deg * deg2radians;
-        var costheta = Math.cos(rad);
-        var sintheta = Math.sin(rad);
-        sProperties = "sizingMethod='auto expand',M11=" + costheta + ",M12=" + (-sintheta) + ",M21=" + sintheta + ",M22=" + costheta;
-
-        obj.style.filter = "progid:DXImageTransform.Microsoft.Matrix(" + sProperties + ")";
-        if ( Ombre)   Ombre.style.filter = "progid:DXImageTransform.Microsoft.Matrix(" + sProperties + ")";
-}
-        //========= gradient ==========================
-if (gradientType >= 0) {
-        sProperties = "gradientType=" + gradientType + ",startColorStr=" + startColorStr + ",endColorStr=" + endColorStr + "";
-        obj.style.filter += "  progid:DXImageTransform.Microsoft.Gradient(" + sProperties + ") ";
-}
-
-        //=========== opacity========================
-        sProperties = "opacity = " +  opacity;
-        if (!obj.style.filter.match("progid:DXImageTransform.Microsoft.Alpha"))
-        {
-        if ( Ombre) Ombre.style.filter += "  progid:DXImageTransform.Microsoft.Alpha(" + sProperties + ") ";
-        obj.style.filter += "  progid:DXImageTransform.Microsoft.Alpha(" + sProperties + ") ";
-        }
-//======================================================================================
-
-if ( Ombre)	{
-        filtres =  Ombre.style.filter;
-
-        //======================================================================================
-        sProperties = "color=" + ShadowColor + ", Direction=" + direction + ",Strength=" + Strength / 2 + " ";
-        if (!filtres.match("progid:DXImageTransform.Microsoft.Glow"))
-            filtres += " progid:DXImageTransform.Microsoft.Glow(" + sProperties + ")"; /**/
-        //====================================================================================== 
-
-        sProperties = "pixelradius=" + Strength / 2 + " ,MakeShadow:" + 'false' + ",ShadowOpacity:" + '0.8' + "";
-        if (!filtres.match("progid:DXImageTransform.Microsoft.Blur"))
-            filtres += "  progid:DXImageTransform.Microsoft.Blur(" + sProperties + ") ";
-
-
-        //========== DRop==========================================
-        sProperties = "OffX=" + Horizontal + ", OffY=" + Vertical + ", Color='" + ShadowColor + "', Positive='true'";
-        //  filtres += "  progid:DXImageTransform.Microsoft.dropshadow(" + sProperties + ") ";
-        //============================================================
-         Ombre.style.filter = filtres;
-
-        var Top = (( Ombre.clientHeight - Ombre.offsetHeight) / 2);
-        var Left = (( Ombre.clientWidth - Ombre.offsetWidth) / 2);
-
-            jQuery( Ombre).css("left", Left + Init[ Ombre.id].left + Vertical + "px");
-            jQuery( Ombre).css("top", Top + Init[ Ombre.id].top + Horizontal + "px");
-
-
-}
-        //================================================================================
-        Top = ((obj.clientHeight - obj.offsetHeight) / 2);
-        Left = ((obj.clientWidth - obj.offsetWidth) / 2);
-        jQuery(obj).css("left", Left + Init[obj.id].left + "px");
-        jQuery(obj).css("top", Top + Init[obj.id].top + "px");
-
-
-
- },
-
-//============================================================
- getVariables: function(Args)
-{
- var argShadow={
-       alpha:0.99,
-       flou:0,
-       couleur:'transparent',
-       offset_h:0,
-       offset_v:0,
-       gradientType:0,
-       startColorStr:'yellow',
-       endColorStr:'blue',
-       deg:0
-
-} 
-
-if (!Args) return argShadow;
-
-                if (Args.length==4)  Args=Args.join(" ");
-                Args =   removeExtraSpace(Args);
-               if (/rgb/.test(Args)) {
-                     var start = Args.indexOf('(', 3);
-                     var end = Args.indexOf(')', start + 1);
-                     var temp = Args.substring(start + 1, end)
-
-                if (/rgba/.test(Args))  temp= "rgba(" +temp  +")";
-               else temp= "rgba(" +temp  +")";
-
-                      var  color_Shadow = temp;
-                        Args=Args.replace(color_Shadow,translateColor(color_Shadow));
-                    }
-
-                   var sizeShadow = Args.split(" ");
-
-                   c=sizeShadow.length-1 ;
-                   a=0 ;
-                   var st_v=false,st_h=false,st_f=false,st_c=false;
-
-                   for (i in sizeShadow)
-                   {
-                        g=sizeShadow[i] ;
-  
-                        if ( /#/.test(g) ) { argShadow.couleur=sizeShadow[i];st_c=true } 
-                        else if ( st_v && /px/.test(g) )   { argShadow.flou=parseInt(g|0);st_f=true }  
-                        else if ( st_h  &&  /px/.test(g) )  {  argShadow.offset_v=parseInt(g );st_v=true } 
-                        else if ( !st_h && /px/.test(g) ) { argShadow.offset_h=parseInt(g  );st_h=true } 
-                        else if (isNaN(g))  { argShadow.couleur=translateColor(sizeShadow[i]);st_c=true } 
-                        else   { argShadow.flou=parseInt(sizeShadow[i]);st_f=true }; 
- 
-                   }
-
-//==========================================================
-argShadow.boxShadow=(argShadow.offset_v != 0)||(argShadow.offset_h != 0);
-            argShadow.gradientType= -1;
-
-            argShadow.texteShadow=false;
-            argShadow.texteRotation=false;
-            argShadow.boxRotation= (argShadow.deg !=angle) ;
-            argShadow.deg=angle;
-
-            return argShadow;
-  },
-   //=======================================================
-     absolutize: function(element) {
-    element = $(element);
-    if (element.getStyle('position') == 'absolute') return;
-    // Position.prepare(); // To be done manually by Scripty when it needs it.
-
-    var offsets = element.positionedOffset();
-    var top     = offsets[1];
-    var left    = offsets[0];
-    var width   = element.clientWidth;
-    var height  = element.clientHeight;
-
-    element._originalLeft   = left - parseFloat(element.style.left  || 0);
-    element._originalTop    = top  - parseFloat(element.style.top || 0);
-    element._originalWidth  = element.style.width;
-    element._originalHeight = element.style.height;
-
-    element.style.position = 'absolute';
-    element.style.top    = top + 'px';
-    element.style.left   = left + 'px';
-    element.style.width  = width + 'px';
-    element.style.height = height + 'px';
-    return element;
-  },
-
-  relativize: function(element) {
-    element = $(element);
-    if (element.getStyle('position') == 'relative') return;
-    // Position.prepare(); // To be done manually by Scripty when it needs it.
-
-    element.style.position = 'relative';
-    var top  = parseFloat(element.style.top  || 0) - (element._originalTop || 0);
-    var left = parseFloat(element.style.left || 0) - (element._originalLeft || 0);
-
-    element.style.top    = top + 'px';
-    element.style.left   = left + 'px';
-    element.style.height = element._originalHeight;
-    element.style.width  = element._originalWidth;
-    return element;
-  },
-
-   //=====================================================
    findPos : function() {
-    obj_ = jQuery(this).get(0);
-    if (typeof (obj_)=="undefined") return ;
-
-    var curleft = obj_.offsetLeft || 0;
-    var curtop = obj_.offsetTop || 0;
-
-
-    s=obj_.currentStyle ;
-    id=obj_.id ;
-      if ( obj_.tagName!='IMG')    
-   { 
-      while (obj_  = obj_.offsetParent) {
-        id=obj_.id ;
-        tag=obj_.tagName ;
-
-        if (obj_.style.position !="absolute") {
-        if (mode==8)
-        if (tag=="BODY") 
-        break ;
-
-        curleft += obj_.offsetLeft;
-        curtop += obj_.offsetTop;
-
-        curleft += obj_.clientLeft;
-        curtop += obj_.clientTop;
-        if (mode==7)
-                if (tag=="BODY") 
-                    break ;
-              
-          }
-        }
-        obj_ = jQuery(this).get(0);
-  var   Origine=jQuery( obj_).position() ;
-        curwidth  = jQuery(obj_ ).width(); //300x200
-        curheight = jQuery(obj_ ).height();    
-        winit=jQuery(obj_ ).css("width") ; //  valeur interieur (auto,"",%)
-        hinit=jQuery(obj_ ).css("height") ; //  valeur interieur
-    }else{
-        tag=obj_.tagName ;
-        winit= obj_.width || "auto" ; //  Dimension Image
-        hinit=obj_.height || "auto"  ; ; //   Dimension Image
-        jQuery(obj_).css("width", winit) ;
-        jQuery(obj_).css("height", hinit) ;
-        jQuery(obj_).css("left", obj_.style.left) ;
-        jQuery(obj_).css("top", obj_.style.top) ;
-        curwidth  = jQuery(obj_ ).css("width"); //300x200
-        curheight = jQuery(obj_ ).css("height");
-        jQuery(obj_ ).width(curwidth);
-        jQuery(obj_ ).height(curheight);
-
-    Origine={left:obj_.style.left,top:obj_.style.top};
-         w =  parseInt(curwidth) +strokeWeight.Left+strokeWeight.Right; //  valeur interieur + left  border+ right border
-         h =  parseInt(curheight)+strokeWeight.Bottom+strokeWeight.Top ; //  valeur interieur + left  border+ right border
-
-       ;
-    }
-         
-            
- 
-
-  
-
-    if (curleft != Origine.left) {
-    if (mode==7) {   
-
-    }
-    }
-    if (curtop != Origine.top) {
-            if (mode==7) {   
-
-    }
-    }
-
-    curleft +=strokeWeight.Left ; 
-    curtop +=strokeWeight.Top ; 
- 
-        if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
-		    largeur = document.documentElement.clientWidth;
-		    hauteur = document.documentElement.clientHeight;
-
-		    } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
-		    largeur = jQuery('body').width();
-		    hauteur =  jQuery('body').height();
-		    }
-
-
-
-
-
-
-
-
-    if (curwidth==0) // init document 
-    {
-    curwidth=largeur ;
-    if (winit.match("%"))
-            curwidth=largeur * percent( winit) ;
-    else if (winit.match("auto"))
-            curwidth=largeur ;
-    
-    jQuery(obj_).width(curwidth);
-    curheight = jQuery(obj_).height();
-
-    }
-    if (!/img/gi.test(tag)){
-    w = this[0].offsetWidth ; //  valeur interieur + left  border+ right border
-    h = this[0].offsetHeight ; //  valeur interieur + left  border+ right border
-    }
-    return {x:curleft,y:curtop,Left:Origine.left,Top:Origine.top,Width:curwidth,Height:curheight,w:w,h:h};
-    }
-,
-				 
-findSize : function() {
-         obj = jQuery(this).get(0);
-
-
-          size={ 
-                 offsetWidth: obj.offsetWidth,
-                 offsetHeight: obj.offsetHeight,
-                 offsetLeft: obj.offsetLeft,
-                 offsetTop: obj.offsetTop,
-
-                 clientWidth: obj.clientWidth,
-                 clientHeight: obj.clientHeight,
-                 clientLeft: obj.clientLeft,
-                 clientTop: obj.clientTop,
-
-                 scrollWidth: obj.scrollWidth,
-                 scrollHeight: obj.scrollHeight,
-                 scrollLeft: obj.scrollLeft,
-                 scrollTop: obj.scrollTop
-                 
-          }
-
-
- if (obj.style.position=="")  obj.style.position= "static"  ;
- var pos_obj = jQuery(obj).findPos();
- //=======================================================================
- var sel = jQuery(obj).position();
-          return  { 'Width': obj.offsetWidth,
-                   'Height': obj.offsetHeight,
-                   'Left':  pos_obj.x ,
-                   'Top':  pos_obj.y  ,
-
-                 clientWidth: obj.clientWidth,
-                 clientHeight: obj.clientHeight,
-                 clientLeft: obj.clientLeft,
-                 clientTop: obj.clientTop,
-
-                 scrollWidth: obj.scrollWidth,
-                 scrollHeight: obj.scrollHeight,
-                 scrollLeft: obj.scrollLeft,
-                 scrollTop: obj.scrollTop,
-
-                 x:sel.left+obj.clientLeft,
-                 y:sel.top+obj.clientTop
-                    } ;
-    },
-				 
-    setStyle : function() { 
-         	tables= jQuery("style").get();
-        	reg=new RegExp("(})", "g");
-            var Styles=[];
-
-
-        	for (table in tables)
-        		{
-            		styl=removeExtraSpace(tables[table].innerHTML);
-            		if (styl !="")  Styles.push( styl.replace(reg,"}|") ) ;
-        		}
-         var tranche=Styles.slice(0,Styles.length);
-
-        classes = removeExtraSpace(Styles.join("")).split("|") ;  
-        classes=classes.slice(0,classes.length>1 ? classes.length-1 : 0);
-        classe_style={};
-		//========== Lecture des Classess ===============
-        jQuery.each(classes, function (i, val) { 
-
-            if (val==" }") return ;
-            n=i;
-            if(classes[i+1]==" }") val +=classes[i+1];
-            cl_str=[];
-            classe_style2={};
-
-            cl_str= (val.replace(reg,'').split("{") );
-            n2=[];
-            n0= cl_str[0];
-            n1= cl_str[1];
-            n0 = Sup_Bloc(n0,"/\*","\*/" );
-            if (n0 !="")
-                {
-
-                   n1 = Sup_Bloc(n1,"/\*","\*/" );
-                   n2=n1.split(";");
-                //  replace(/[\t\n]/g," ")
-                var    del =new RegExp("((-)[a-zA-Z0-9/.]+(-))+","gi");
-                for (n20 in n2)
-                   { 
-                   if ( !isNaN(n20)){
-                     {
-                        adr1=removeExtraSpace(n2[n20].split(":")[0]).replace(del,"");
-                        if (adr1)
-                        {
-                        val1=removeExtraSpace(n2[n20].split(":")[1]);
-                         if (val1.indexOf("/\*",0) >= 0){
-                        
-                        val1 = Sup_Bloc(val1,"/\*","\*/" );
-
-                            }
-
-                        if(val1 ) classe_style2[adr1]=val1 ;
-                        }
-                       }
-                     }
-                   }
-                  classe_style[n0] = classe_style2 ;
-              //================================================
-			           try {
-                			c1=jQuery(n0);
-				 			if (c1.length>0) 
-				 				if ( classe_style2 )   jQuery(n0).css(classe_style2);
-         					} catch (_) {
-             
-         				}
-
-                }
-  		    });
-		//================================================
-   		   IDS=" ";
- }
-
- });
-
-//================================================================================
-var window={cross_elements:[]};
-
-//=========================================================================
-jQuery(window).resize(function () {
-var tmp = navigator.appName == 'Microsoft Internet Explorer' && navigator.userAgent.indexOf('Opera') < 1 ? 1 : 0;
-if(tmp) var isIE = document.namespaces ? 1 : 0;
-
-Window.Width=jQuery(window).width() ;
-Window.Height=jQuery(window).height() ;
-     if (  (window.cross_elements.length>  0)  ) {
-   for (a in window.cross_elements)
-    jQuery().crossbrowser(window.cross_elements[a]);
-     }
- 
-      
-});
-//=========================================================================
- jQuery(window).ready(function () { 
-  externe= (typeof externe!="undefined") ? externe : false ;
-  if (externe)    jQuery().setStyle();
-  else   jQuery(':Radius') ; 
-   
-   var doc =   document;
-           if (  (window.cross_elements.length>  0)  ) {
-    for (a in window.cross_elements)
-   jQuery().crossbrowser( window.cross_elements[a]);
-   
-     }
-
-
-});
-
-
-//=============================================================================================
-// Ajoute une fonctionnalité jQuery
-jQuery.extend( jQuery.expr[':'], {
-    // Nom du sélecteur personnalisé
-    Radius: function (a) {
-        var mode = document.documentMode || 0;  
-        //==========================================================================
-     
-        var reg = new RegExp("body+","gi");
-        if ( reg.test(a.tagName))  {
-       jQuery(a).setStyle();
- 	}
-    
-    if (IDS=="") return ;
-    if (a.tagName=="BR") return ;
-    if (a.tagName=="STYLE") return ;
-    if (a.tagName=="SCRIPT") return ;
-    if (a.tagName=="BODY") return ;
-    if (typeof a.uniqueID=="undefined") {
-       IDS += "op_" + uniqueId + " " + a.tagName + "|";
-      }
-     else{
-    if ( IDS.match(a.uniqueID)) return ;
-    if ( (a.id=="No")) return ;
-      IDS += a.uniqueID + " " + a.tagName +" " +a.id + "|";
-  }
-if (a.tagName=="!") return ;
-  reg = new RegExp("(clone|ombre)","gi") ; // atention a la casse
-    if (reg.test( a.id) ) return ;
-   reg = new RegExp("(src)","gi") ; // atention a la casse
-    if (reg.test( a.id) ) return ;
-  reg = new RegExp("(vml)","gi") ; // atention a la casse
-    if (reg.test( a.id) ) return ;
-
-Unique_id += 1;
-var m1=style_match.join(",").split(",");  
-var   Attribut = false;
-var argus= arguments[3] ;
-var ids=IDS;
-
- Object = a ;
- var  s = a.style;
-  if (typeof  Object.currentStyle!="undefined") s = Object.currentStyle ;
-  var cssText =   a.style.cssText ; // lecture style="....
-    // recupère le style courant 
-  var cle = style_match;
-
-  var Message = a.innerText;
-
-
-   Message   =  a.id + "<br />" ;
-   var name=a.id ;
-    jQuery.each(jQuery.browser, function (i, val) { 
-    Message += i +  " " + val + ", " ;
-     
-    });
-   Message  +=  "<br />" ;
-var sMatch ;
-
-if (!a.id) a.id=a.uniqueID;        
-for(var j in cle) {
-
-  /*
-    name = cle[j].replace(rdashAlpha, fcamelCase); test-shadow -> textShadow ;
-    name = name.replace(rupper, "-$1").toLowerCase();textShadow -> test-shadow ;
-    */
-    //   var camelCase = name.replace(rdashAlpha, fcamelCase);
-  
-if (!isNaN(j))
-{
-  Smatch=cle[j].replace(rupper, "-$1").toLowerCase();
-  sMatch=Smatch.replace(rdashAlpha, fcamelCase);
-
-   var valeur  = s[Smatch] || s[sMatch];
-
-
-if (classe_style["#"+a.id])  if (!valeur) { valeur = classe_style["#"+a.id][Smatch] ; }
-
-         reg = new RegExp(Smatch,"g") ; // atention a la casse
-             if ( cssText.match(reg) ) {   //======= si défini dans le style 
-                                         Message  += "Style(csstext) OK  : " + a.id + " " + Smatch + ":" + valeur;    
-                                         }
-
-  if (!valeur) {
-              for (cl in  classe_style["#"+a.id])
-              {
-               cl0=classe_style["#"+a.id][cl] ;
-               if (reg.test(cl)) { valeur=cl0; }
-               }
-           }
-if ( valeur) {
-        var Nmatch="xxx"; 
-         jQuery.each(jQuery.browser, function (i, val) { 
-         if (val==true){
-                    Nmatch=browsers[i];
-                    return ;
-                    }
-                
-            })
- 
-      Attribut= true   ;
-       jQuery("#"+a.id).css( Nmatch + Smatch,valeur);
-       Window={ width:jQuery(window).width(),height:jQuery(window).height()
-     };
-       
-
-      try{ 
-     Message +="W:" + Window.width + "#"+a.id+ " " + Nmatch + "<br /> "+Nmatch  + Smatch + ":" + valeur + "  --> " + Smatch + ":" + jQuery("#"+a.id).css( Nmatch + Smatch)+ "<br /> "; 
-      jQuery("#debug").get(0).innerHTML=("<pre>"+Message+"<br /></pre>");}catch (_)
-      {            }
-    } 
-
-     }
-  } 
-    if ( Attribut && jQuery.browser.msie) {  
-           if (typeof (window.cross_elements) == 'undefined') {
-             window.cross_elements = new Array();
-            
-         }else{
- 
- }
-        
-         window.cross_elements.push(a);
-          return Attribut;
-           
-      }
- return false;
-        }
+       obj = jQuery(this).get(0);
+       var curleft = obj.offsetLeft || 0;
+       var curtop = obj.offsetTop || 0;
+       while (obj = obj.offsetParent) {
+                curleft += obj.offsetLeft
+                curtop += obj.offsetTop
+       }
+       return {x:curleft,y:curtop};
+   }
 });
  //==============================================================================	
-jQuery.fn.crossbrowser = function (Element) {
-  jQuery(Element).ready(function () {
-  if (Element.readyState=="complete")
-  {
-  //--------------------------------------------------
-  t1=Element.tagName + Element.id;
-	
-      jQuery(Element,"img" ).ready(function () {
-                    oncontentready(Element);
-      });
-
-
-
-   //--------------------------------------------------
-     }
-     });
+jQuery.fn.crossbrowser = function (options) {
+	 oncontentready(options);
  }
-
+ 
 })(jQuery);
+//================================================================================
+ 
+
+
+jQuery(document).ready(function () {
+
+ jQuery(':Radius');
+
+     
+});
