// JavaScript Document
var bc_allobjs=new Array();
var bc_isdsgn=false;
function bc_isAllObj(p_obj){	
	for(var i=0;i<bc_allobjs.length;i++){
		if(bc_allobjs[i][0]==p_obj){
			return i;
		}
	}
	return -1;
}
function bc_remObj(p_obj){
	if(p_obj.childNodes){
		for(var i=0;i<p_obj.childNodes.length;i++){
			bc_remObj(p_obj.childNodes[i]);
		}
	}
	bc_allobjs=bc_remElmnt(bc_isAllObj(p_obj),bc_allobjs);	
}
function bc_addDublObj(p_obj,p_fobj){
	var indx=bc_isAllObj(p_fobj);
	if(indx==-1){
		return false;
	}else{
		var tmpstyles=new Array();
		for(var i=0;i<bc_allobjs[indx][1].length;i++){
			if(bc_allobjs[indx][1][i][2]==null){
				bc_setStyle(p_obj,String(bc_allobjs[indx][1][i][0]),String(bc_allobjs[indx][1][i][1]));
			}else{
				bc_setStyle(p_obj,String(bc_allobjs[indx][1][i][0]),String(bc_allobjs[indx][1][i][1])+String(bc_allobjs[indx][1][i][2]));
			}
			tmpstyles.push(new Array(bc_allobjs[indx][1][i][0],bc_allobjs[indx][1][i][1],bc_allobjs[indx][1][i][2],bc_allobjs[indx][1][i][3]));
		}
	}
	if(bc_isAllObj(p_obj)==-1){
		bc_allobjs.push(new Array(p_obj,tmpstyles));
	}
}
function bc_getObjStyle(p_obj,p_style){
	var indx=bc_isAllObj(p_obj);
	if(indx!=-1){
		for(var i=0;i<bc_allobjs[indx][1].length;i++){
			if(String(bc_allobjs[indx][1][i][0])==p_style){
				if(bc_allobjs[indx][1][i][2]!=null){
					return String(bc_allobjs[indx][1][i][1])+String(bc_allobjs[indx][1][i][2]);
				}else{
					return bc_allobjs[indx][1][i][1];
				}
			}
		}
	}else{
		return null;
	}
}
function bc_addRsObj(p_obj){
	var indxs=new Array();
	indxs.push(bc_allobjs.length-1);
	bc_addObj(p_obj);
	for(var i=indxs[0]+1;i<bc_allobjs.length;i++){
		indxs.push(i);
	}
	rs_rsObjs(indxs);
}
function bc_addObj(p_obj){
	if(p_obj.childNodes){
		for(var i=0;i<p_obj.childNodes.length;i++){
			bc_addObj(p_obj.childNodes[i]);
		}
	}
	if(bc_isAllObj(p_obj)!=-1){
		return true;   
	}else if(p_obj.tagName){
		if(p_obj.tagName=="!"){
			return false;
		}
	}
	if(p_obj.style){
		if(bc_isdsgn==true){
			bc_allobjs.push(new Array(p_obj,bc_getAllStyle(p_obj)));
		}else{
			bc_allobjs.push(new Array(p_obj,bc_getAllSizeStyle(p_obj)));
		}
	}
}
function cvrtinJSStle(p_style){
	if(p_style.indexOf("-")>-1){
		var res="";
		for(var i=0;i<p_style.length;i++){
			if(p_style.substr(i,1)=="-"){
				i++;
				res=res+p_style.substr(i,1).toUpperCase();
			}else{
				res=res+p_style.substr(i,1);
			}
		}
		return res;
	}else{
		return p_style;	
	}
}
function bc_getAllSizeStyle(p_obj){
	var alsstyls=new Array("border-bottom-width","border-left-width","border-right-width","border-top-width","border-width","bottom","font-size","height","left","letter-spacing","line-height","margin","margin-bottom","margin-left","margin-right","margin-top","max-height","max-width","min-height","min-width","padding","padding-bottom","padding-left","padding-right","padding-top","right","text-indent","top","width","word-spacing");
	var res=new Array();
	for(var i=0;i<alsstyls.length;i++){
		var tmp=null;
		tmp=bc_getSzStyle(p_obj,String(alsstyls[i]));
		if(tmp!=null){
			if(tmp[2]!=null){
				if((String(alsstyls[i])=="bottom")||(String(alsstyls[i])=="left")||(String(alsstyls[i])=="margin")||(String(alsstyls[i])=="margin-bottom")||(String(alsstyls[i])=="margin-left")||(String(alsstyls[i])=="margin-right")||(String(alsstyls[i])=="margin-top")||(String(alsstyls[i])=="padding")||(String(alsstyls[i])=="padding-bottom")||(String(alsstyls[i])=="padding-left")||(String(alsstyls[i])=="padding-right")||(String(alsstyls[i])=="padding-top")||(String(alsstyls[i])=="right")||(String(alsstyls[i])=="top")){
					res.push(tmp);
				}else{
					if(Number(tmp[1])>0){
						res.push(tmp);
					}
				}
			}
		}
	}
	return res;
}
function bc_getAllStyle(p_obj){	
	var allstyle=new Array("background-attachment","background-color","background-image","background-position","background-repeat","border","border-bottom","border-bottom-color","border-bottom-color","border-bottom-color","border-bottom-style","border-color","border-left","border-left-color","border-left-style","border-right","border-right-color","border-right-style","border-style","border-top","border-top-color","border-top-style","caption-side","clear","clip","color","cursor","direction","display","empty-cells","css-float","font","font-family","font-style","font-variant","font-weight","list-style","list-style-image","list-style-position","list-style-type","overflow","page-break-after","page-break-before","position","scrollbar3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","table-layout","text-align","text-decoration","text-transform","vertical-align","visibility","z-index");
	var res=bc_getAllSizeStyle(p_obj);
	for(var i=0;i<allstyle.length;i++){
		var tmp=bc_getStyle(p_obj,String(allstyle[i]));
		if(tmp!=null){
			res.push(tmp);	
		}
	}
	return res;
}
function bc_spltStyle(p_style){
	if(p_style.substring(p_style.length-1)=="%"){
		var tmp=p_style.substring(0,p_style.length-1);
		if(isNaN(tmp)==true){
			return 	new Array(p_style,null);
		}else{
			return new Array(Number(tmp),"%");
		}
	}else if(p_style.substring(p_style.length-2)=="px"){
		var tmp=p_style.substring(0,p_style.length-2);
		if(isNaN(tmp)==true){
			return 	new Array(p_style,null);
		}else{
			return new Array(Number(tmp),"px");
		}
	}else if(p_style.substring(p_style.length-2)=="pt"){
		var tmp=p_style.substring(0,p_style.length-2);
		if(isNaN(tmp)==true){
			return 	new Array(p_style,null);
		}else{
			return new Array(Number(tmp),"pt");
		}
	}else if(p_style.substring(p_style.length-2)=="cm"){
		var tmp=p_style.substring(0,p_style.length-2);
		if(isNaN(tmp)==true){
			return 	new Array(p_style,null);
		}else{
			return new Array(Number(tmp),"cm");
		}
	}else if(p_style.substring(p_style.length-2)=="em"){
		var tmp=p_style.substring(0,p_style.length-2);
		if(isNaN(tmp)==true){
			return 	new Array(p_style,null);
		}else{
			return new Array(Number(tmp),"em");
		}
	}else if(p_style.substring(p_style.length-2)=="ex"){
		var tmp=p_style.substring(0,p_style.length-2);
		if(isNaN(tmp)==true){
			return 	new Array(p_style,null);
		}else{
			return new Array(Number(tmp),"ex");
		}
	}else if(p_style.substring(p_style.length-2)=="in"){
		var tmp=p_style.substring(0,p_style.length-2);
		if(isNaN(tmp)==true){
			return 	new Array(p_style,null);
		}else{
			return new Array(Number(tmp),"in");
		}
	}else if(p_style.substring(p_style.length-2)=="mm"){
		var tmp=p_style.substring(0,p_style.length-2);
		if(isNaN(tmp)==true){
			return 	new Array(p_style,null);
		}else{
			return new Array(Number(tmp),"mm");
		}
	}else if(p_style.substring(p_style.length-2)=="pc"){
		var tmp=p_style.substring(0,p_style.length-2);
		if(isNaN(tmp)==true){
			return 	new Array(p_style,null);
		}else{
			return new Array(Number(tmp),"pc");
		}
	}else{
		return new Array(p_style,null);
	}
}
function bc_getSzStyle(p_obj,p_style){
	if(p_obj.style){
		try{
			switch(p_style){
				case "border-bottom-width":
					if(p_obj.style.borderBottomWidth!=""){
						var tmp=bc_spltStyle(p_obj.style.borderBottomWidth);
						return new Array(p_style,tmp[0],tmp[1],true);
					}
					break;
				case "border-left-width":
					if(p_obj.style.borderLeftWidth!=""){
						var tmp=bc_spltStyle(p_obj.style.borderLeftWidth);
						return new Array(p_style,tmp[0],tmp[1],true);
					}
					break;
				case "border-right-width":
					if(p_obj.style.borderRightWidth!=""){
						var tmp=bc_spltStyle(p_obj.style.borderRightWidth);
						return new Array(p_style,tmp[0],tmp[1],true);
					}
					break;
				case "border-top-width":
					if(p_obj.style.borderTopWidth!=""){
						var tmp=bc_spltStyle(p_obj.style.borderTopWidth);
						return new Array(p_style,tmp[0],tmp[1],true);
					}
					break;
				case "border-width":
					if(p_obj.style.borderWidth!=""){
						var tmp=bc_spltStyle(p_obj.style.borderWidth);
						return new Array(p_style,tmp[0],tmp[1],true);
					}
					break;
				case "bottom":
					if(p_obj.style.bottom!=""){
						var tmp=bc_spltStyle(p_obj.style.bottom);
						return new Array(p_style,tmp[0],tmp[1],true);
					}
					break;
				case "font-size":
					if(p_obj.style.fontSize!=""){
						var tmp=bc_spltStyle(p_obj.style.fontSize);
						return new Array(p_style,tmp[0],tmp[1],true);
					}
					break;
				case "height":
					if(p_obj.style.height!=""){
						var tmp=bc_spltStyle(p_obj.style.height);
						return new Array(p_style,tmp[0],tmp[1],true);
					}
					break;
				case "left":
					if(p_obj.style.left!=""){
						var tmp=bc_spltStyle(p_obj.style.left);
						return new Array(p_style,tmp[0],tmp[1],true);
					}
					break;
				case "letter-spacing":
					if(p_obj.style.letterSpacing!=""){
						var tmp=bc_spltStyle(p_obj.style.letterSpacing);
						return new Array(p_style,tmp[0],tmp[1],true);
					}
					break;
				case "line-height":
					if(p_obj.style.lineHeight!=""){
						var tmp=bc_spltStyle(p_obj.style.lineHeight);
						return new Array(p_style,tmp[0],tmp[1],true);
					}
					break;
				case "margin":
					if(p_obj.style.margin!=""){
						var tmp=bc_spltStyle(p_obj.style.margin);
						return new Array(p_style,tmp[0],tmp[1],true);
					}
					break;
				case "margin-bottom":
					if(p_obj.style.marginBottom!=""){
						var tmp=bc_spltStyle(p_obj.style.marginBottom);
						return new Array(p_style,tmp[0],tmp[1],true);
					}
					break;
				case "margin-left":
					if(p_obj.style.marginLeft!=""){
						var tmp=bc_spltStyle(p_obj.style.marginLeft);
						return new Array(p_style,tmp[0],tmp[1],true);
					}
					break;
				case "margin-right":
					if(p_obj.style.marginRight!=""){
						var tmp=bc_spltStyle(p_obj.style.marginRight);
						return new Array(p_style,tmp[0],tmp[1],true);
					}
					break;
				case "margin-top":
					if(p_obj.style.marginTop!=""){
						var tmp=bc_spltStyle(p_obj.style.marginTop);
						return new Array(p_style,tmp[0],tmp[1],true);
					}
					break;
				case "max-height":
					if(p_obj.style.maxHeight!=""){
						var tmp=bc_spltStyle(p_obj.style.maxHeight);
						return new Array(p_style,tmp[0],tmp[1],true);
					}
					break;
				case "max-width":
					if(p_obj.style.maxWidth!=""){
						var tmp=bc_spltStyle(p_obj.style.maxWidth);
						return new Array(p_style,tmp[0],tmp[1],true);
					}
					break;
				case "min-height":
					if(p_obj.style.minHeight!=""){
						var tmp=bc_spltStyle(p_obj.style.minHeight);
						return new Array(p_style,tmp[0],tmp[1],true);
					}
					break;
				case "min-width":
					if(p_obj.style.minWidth!=""){
						var tmp=bc_spltStyle(p_obj.style.minWidth);
						return new Array(p_style,tmp[0],tmp[1],true);
					}
					break;
				case "padding":
					if(p_obj.style.padding!=""){
						var tmp=bc_spltStyle(p_obj.style.padding);
						return new Array(p_style,tmp[0],tmp[1],true);
					}
					break;
				case "padding-bottom":
					if(p_obj.style.paddingBottom!=""){
						var tmp=bc_spltStyle(p_obj.style.paddingBottom);
						return new Array(p_style,tmp[0],tmp[1],true);
					}
					break;
				case "padding-left":
					if(p_obj.style.paddingLeft!=""){
						var tmp=bc_spltStyle(p_obj.style.paddingLeft);
						return new Array(p_style,tmp[0],tmp[1],true);
					}
					break;
				case "padding-right":
					if(p_obj.style.paddingRight!=""){
						var tmp=bc_spltStyle(p_obj.style.paddingRight);
						return new Array(p_style,tmp[0],tmp[1],true);
					}
					break;
				case "padding-top":
					if(p_obj.style.paddingTop!=""){
						var tmp=bc_spltStyle(p_obj.style.paddingTop);
						return new Array(p_style,tmp[0],tmp[1],true);
					}
					break;
				case "right":
					if(p_obj.style.right!=""){
						var tmp=bc_spltStyle(p_obj.style.right);
						return new Array(p_style,tmp[0],tmp[1],true);
					}
					break;
				case "text-indent":
					if(p_obj.style.textIndent!=""){
						var tmp=bc_spltStyle(p_obj.style.textIndent);
						return new Array(p_style,tmp[0],tmp[1],true);
					}
					break;
				case "top":
					if(p_obj.style.top!=""){
						var tmp=bc_spltStyle(p_obj.style.top);
						return new Array(p_style,tmp[0],tmp[1],true);
					}
					break;
				case "width":
					if(p_obj.style.width!=""){
						var tmp=bc_spltStyle(p_obj.style.width);
						return new Array(p_style,tmp[0],tmp[1],true);
					}
					break;
				case "word-spacing":
					if(p_obj.style.wordSpacing!=""){
						var tmp=bc_spltStyle(p_obj.style.wordSpacing);
						return new Array(p_style,tmp[0],tmp[1],true);
					}
					break;
			}
			if(window.getComputedStyle){
				var tmp=bc_spltStyle(window.getComputedStyle(p_obj,null)[cvrtinJSStle(p_style)]);	
				if((tmp[0]!=null)&&(tmp[0]!="")){
					return new Array(p_style,tmp[0],tmp[1],false);
				}else{
					return null;	
				}
			}else if(p_obj.currentStyle){
				var tmp=bc_spltStyle(p_obj.currentStyle[cvrtinJSStle(p_style)]);	
				if((tmp[0]!=null)&&(tmp[0]!="")){
					return new Array(p_style,tmp[0],tmp[1],false);
				}else{
					return null;	
				}
			}
		}catch(e){	
			return null;	
		}
		return null;
	}
	return null;
}function bc_getStyle(p_obj,p_style){
	if(p_obj.style){
		try{
			switch(p_style){
				case "background-attachment":
					if((p_obj.style.backgroundAttachment!=null)&&(p_obj.style.backgroundAttachment!="")){
						return new Array(p_style,p_obj.style.backgroundAttachment,null,true);
					}
					break;
				case "background-color":
					if((p_obj.style.backgroundColor!=null)&&(p_obj.style.backgroundColor!="")&&(p_obj.style.backgroundColor.indexOf("#")>-1)){
						return new Array(p_style,p_obj.style.backgroundColor,null,true);
					}
					break;
				case "background-image":
					if((p_obj.style.backgroundImage!=null)&&(p_obj.style.backgroundImage!="")){
						return new Array(p_style,p_obj.style.backgroundImage,null,true);
					}
					break;
				case "background-position":
					if((p_obj.style.backgroundPosition!=null)&&(p_obj.style.backgroundPosition!="")){
						return new Array(p_style,p_obj.style.backgroundPosition,null,true);
					}
					break;
				case "background-repeat":
					if((p_obj.style.backgroundRepeat!=null)&&(p_obj.style.backgroundRepeat!="")){
						return new Array(p_style,p_obj.style.backgroundRepeat,null,true);
					}
					break;
				case "border":
					if((p_obj.style.border!=null)&&(p_obj.style.border!="")&&(p_obj.style.border.indexOf("#")>-1)&&(p_obj.style.border.indexOf("none")==-1)){
						return new Array(p_style,p_obj.style.border,null,true);
					}
					break;
				case "border-bottom":
					if((p_obj.style.borderBottom!=null)&&(p_obj.style.borderBottom!="")&&(p_obj.style.borderBottom.indexOf("#")>-1)&&(p_obj.style.borderBottom.indexOf("none")==-1)){
						return new Array(p_style,p_obj.style.borderBottom,null,true);
					}
					break;
				case "border-bottom-color":
					if((p_obj.style.borderBottomColor!=null)&&(p_obj.style.borderBottomColor!="")&&(p_obj.style.borderBottomColor.indexOf("#")>-1)){
						return new Array(p_style,p_obj.style.borderBottomColor,null,true);
					}
					break;
				case "border-bottom-style":
					if((p_obj.style.borderBottomStyle!=null)&&(p_obj.style.borderBottomStyle!="")){
						return new Array(p_style,p_obj.style.borderBottomStyle,null,true);
					}
					break;
				case "border-color":
					if((p_obj.style.borderColor!=null)&&(p_obj.style.borderColor!="")&&(p_obj.style.borderColor.indexOf("#")>-1)){
						return new Array(p_style,p_obj.style.borderColor,null,true);
					}
					break;
				case "border-left":
					if((p_obj.style.borderLeft!=null)&&(p_obj.style.borderLeft!="")&&(p_obj.style.borderLeft.indexOf("#")>-1)&&(p_obj.style.borderLeft.indexOf("none")==-1)){
						return new Array(p_style,p_obj.style.borderLeft,null,true);
					}
					break;
				case "border-left-color":
					if((p_obj.style.borderLeftColor!=null)&&(p_obj.style.borderLeftColor!="")&&(p_obj.style.borderLeftColor.indexOf("#")>-1)){
						return new Array(p_style,p_obj.style.borderLeftColor,null,true);
					}
					break;
				case "border-left-style":
					if((p_obj.style.borderLeftStyle!=null)&&(p_obj.style.borderLeftStyle!="")){
						return new Array(p_style,p_obj.style.borderLeftStyle,null,true);
					}
					break;
				case "border-right":
					if((p_obj.style.borderRight!=null)&&(p_obj.style.borderRight!="")&&(p_obj.style.borderRight.indexOf("#")>-1)&&(p_obj.style.borderRight.indexOf("none")==-1)){
						return new Array(p_style,p_obj.style.borderRight,null,true);
					}
					break;
				case "border-right-color":
					if((p_obj.style.borderRightColor!=null)&&(p_obj.style.borderRightColor!="")&&(p_obj.style.borderRightColor.indexOf("#")>-1)){
						return new Array(p_style,p_obj.style.borderRightColor,null,true);
					}
					break;
				case "border-right-style":
					if((p_obj.style.borderRightStyle!=null)&&(p_obj.style.borderRightStyle!="")){
						return new Array(p_style,p_obj.style.borderRightStyle,null,true);
					}
					break;
				case "border-style":
					if((p_obj.style.borderStyle!=null)&&(p_obj.style.borderStyle!="")){
						return new Array(p_style,p_obj.style.borderStyle,null,true);
					}
					break;
				case "border-top":
					if((p_obj.style.borderTop!=null)&&(p_obj.style.borderTop!="")&&(p_obj.style.borderTop.indexOf("#")>-1)&&(p_obj.style.borderTop.indexOf("none")==-1)){
						return new Array(p_style,p_obj.style.borderTop,null,true);
					}
					break;
				case "border-top-color":
					if((p_obj.style.borderTopColor!=null)&&(p_obj.style.borderTopColor!="")&&(p_obj.style.borderTopColor.indexOf("#")>-1)){
						return new Array(p_style,p_obj.style.borderTopColor,null,true);
					}
					break;
				case "border-top-style":
					if((p_obj.style.borderTopStyle!=null)&&(p_obj.style.borderTopStyle!="")){
						return new Array(p_style,p_obj.style.borderTopStyle,null,true);
					}
					break;
				case "caption-side":
					if((p_obj.style.captionSide!=null)&&(p_obj.style.captionSide!="")){
						return new Array(p_style,p_obj.style.captionSide,null,true);
					}
					break;
				case "clear":
					if((p_obj.style.clear!=null)&&(p_obj.style.clear!="")){
						return new Array(p_style,p_obj.style.clear,null,true);
					}
					break;
				case "clip":
					if((p_obj.style.clip!=null)&&(p_obj.style.clip!="")){
						return new Array(p_style,p_obj.style.clip,null,true);
					}
					break;
				case "color":
					if((p_obj.style.color!=null)&&(p_obj.style.color!="")&&(p_obj.style.color.indexOf("#")>-1)){
						return new Array(p_style,p_obj.style.color,null,true);
					}
					break;
				case "cursor":
					if((p_obj.style.cursor!=null)&&(p_obj.style.cursor!="")){
						return new Array(p_style,p_obj.style.cursor,null,true);
					}
					break;
				case "direction":
					if((p_obj.style.direction!=null)&&(p_obj.style.direction!="")){
						return new Array(p_style,p_obj.style.direction,null,true);
					}
					break;
				case "display":
					if((p_obj.style.display!=null)&&(p_obj.style.display!="")){
						return new Array(p_style,p_obj.style.display,null,true);
					}
					break;
				case "empty-cells":
					if((p_obj.style.emptyCells!=null)&&(p_obj.style.emptyCells!="")){
						return new Array(p_style,p_obj.style.emptyCells,null,true);
					}
					break;
				case "css-float":
					if((p_obj.style.cssFloat!=null)&&(p_obj.style.cssFloat!="")){
						return new Array(p_style,p_obj.style.cssFloat,null,true);
					}
					break;
				case "font":
					if((p_obj.style.font!=null)&&(p_obj.style.font!="")){
						return new Array(p_style,p_obj.style.font,null,true);
					}
					break;
				case "font-family":
					if((p_obj.style.fontFamily!=null)&&(p_obj.style.fontFamily!="")){
						return new Array(p_style,p_obj.style.fontFamily,null,true);
					}
					break;
				case "font-style":
					if((p_obj.style.fontStyle!=null)&&(p_obj.style.fontStyle!="")){
						return new Array(p_style,p_obj.style.fontStyle,null,true);
					}
					break;
				case "font-variant":
					if((p_obj.style.fontVariant!=null)&&(p_obj.style.fontVariant!="")){
						return new Array(p_style,p_obj.style.fontVariant,null,true);
					}
					break;
				case "font-weight":
					if((p_obj.style.fontWeight!=null)&&(p_obj.style.fontWeight!="")){
						return new Array(p_style,p_obj.style.fontWeight,null,true);
					}
					break;
				case "list-style":
					if((p_obj.style.listStyle!=null)&&(p_obj.style.listStyle!="")){
						return new Array(p_style,p_obj.style.listStyle,null,true);
					}
					break;
				case "list-style-image":
					if((p_obj.style.listStyleImage!=null)&&(p_obj.style.listStyleImage!="")){
						return new Array(p_style,p_obj.style.listStyleImage,null,true);
					}
					break;
				case "list-style-position":
					if((p_obj.style.listStylePosition!=null)&&(p_obj.style.listStylePosition!="")){
						return new Array(p_style,p_obj.style.listStylePosition,null,true);
					}
					break;
				case "list-style-type":
					if((p_obj.style.listStyleType!=null)&&(p_obj.style.listStyleType!="")){
						return new Array(p_style,p_obj.style.listStyleType,null,true);
					}
					break;
				case "overflow":
					if((p_obj.style.overflow!=null)&&(p_obj.style.overflow!="")){
						return new Array(p_style,p_obj.style.overflow,null,true);
					}
					break;
				case "page-break-after":
					if((p_obj.style.pageBreakAfter!=null)&&(p_obj.style.pageBreakAfter!="")){
						return new Array(p_style,p_obj.style.pageBreakAfter,null,true);
					}
					break;
				case "page-break-before":
					if((p_obj.style.pageBreakBefore!=null)&&(p_obj.style.pageBreakBefore!="")){
						return new Array(p_style,p_obj.style.pageBreakBefore,null,true);
					}
					break;
				case "position":
					if((p_obj.style.position!=null)&&(p_obj.style.position!="")){
						return new Array(p_style,p_obj.style.position,null,true);
					}
					break;
				case "scrollbar3d-light-color":
					if((p_obj.style.scrollbar3dLightColor!=null)&&(p_obj.style.scrollbar3dLightColor!="")&&(p_obj.style.scrollbar3dLightColor.indexOf("#")>-1)){
						return new Array(p_style,p_obj.style.scrollbar3dLightColor,null,true);
					}
					break;
				case "scrollbar-arrow-color":
					if((p_obj.style.scrollbarArrowColor!=null)&&(p_obj.style.scrollbarArrowColor!="")&&(p_obj.style.scrollbarArrowColor.indexOf("#")>-1)){
						return new Array(p_style,p_obj.style.scrollbarArrowColor,null,true);
					}
					break;
				case "scrollbar-base-color":
					if((p_obj.style.scrollbarBaseColor!=null)&&(p_obj.style.scrollbarBaseColor!="")&&(p_obj.style.scrollbarBaseColor.indexOf("#")>-1)){
						return new Array(p_style,p_obj.style.scrollbarBaseColor,null,true);
					}
					break;
				case "scrollbar-darkshadow-color":
					if((p_obj.style.scrollbarDarkshadowColor!=null)&&(p_obj.style.scrollbarDarkshadowColor!="")&&(p_obj.style.scrollbarDarkshadowColor.indexOf("#")>-1)){
						return new Array(p_style,p_obj.style.scrollbarDarkshadowColor,null,true);
					}
					break;
				case "scrollbar-face-color":
					if((p_obj.style.scrollbarFaceColor!=null)&&(p_obj.style.scrollbarFaceColor!="")&&(p_obj.style.scrollbarFaceColor.indexOf("#")>-1)){
						return new Array(p_style,p_obj.style.scrollbarFaceColor,null,true);
					}
					break;
				case "scrollbar-highlight-color":
					if((p_obj.style.scrollbarHighlightColor!=null)&&(p_obj.style.scrollbarHighlightColor!="")&&(p_obj.style.scrollbarHighlightColor.indexOf("#")>-1)){
						return new Array(p_style,p_obj.style.scrollbarHighlightColor,null,true);
					}
					break;
				case "scrollbar-shadow-color":
					if((p_obj.style.scrollbarShadowColor!=null)&&(p_obj.style.scrollbarShadowColor!="")&&(p_obj.style.scrollbarShadowColor.indexOf("#")>-1)){
						return new Array(p_style,p_obj.style.scrollbarShadowColor,null,true);
					}
					break;
				case "scrollbar-track-color":
					if((p_obj.style.scrollbarTrackColor!=null)&&(p_obj.style.scrollbarTrackColor!="")&&(p_obj.style.scrollbarTrackColor.indexOf("#")>-1)){
						return new Array(p_style,p_obj.style.scrollbarTrackColor,null,true);
					}
					break;
				case "table-layout":
					if((p_obj.style.tableLayout!=null)&&(p_obj.style.tableLayout!="")){
						return new Array(p_style,p_obj.style.tableLayout,null,true);
					}
					break;
				case "text-align":
					if((p_obj.style.textAlign!=null)&&(p_obj.style.textAlign!="")){
						return new Array(p_style,p_obj.style.textAlign,null,true);
					}
					break;
				case "text-decoration":
					if((p_obj.style.textDecoration!=null)&&(p_obj.style.textDecoration!="")){
						return new Array(p_style,p_obj.style.textDecoration,null,true);
					}
					break;
				case "text-transform":
					if((p_obj.style.textTransform!=null)&&(p_obj.style.textTransform!="")){
						return new Array(p_style,p_obj.style.textTransform,null,true);
					}
					break;
				case "vertical-align":
					if((p_obj.style.verticalAlign!=null)&&(p_obj.style.verticalAlign!="")){
						return new Array(p_style,p_obj.style.verticalAlign,null,true);
					}
					break;
				case "visibility":
					if((p_obj.style.visibility!=null)&&(p_obj.style.visibility!="")){
						return new Array(p_style,p_obj.style.visibility,null,true);
					}
					break;
				case "z-index":
					if((p_obj.style.zIndex!=null)&&(p_obj.style.zIndex!="")){
						return new Array(p_style,p_obj.style.zIndex,null,true);
					}
			}
			if(window.getComputedStyle){
				var tmp=window.getComputedStyle(p_obj,null)[cvrtinJSStle(p_style)];			
				if(tmp!=""){
					return new Array(p_style,tmp,false);
				}else{
					return null;	
				}
			}else if(p_obj.currentStyle){
				var tmp=p_obj.currentStyle[cvrtinJSStle(p_style)];
				if(tmp!=""){
					return new Array(p_style,tmp,false);
				}else{
					return null;	
				}
			}
		}catch(e){
			//nothing	
		}
	}
	return null;
}
function bc_setStyle(p_obj,p_style,p_value){
	//alert(p_style+" : "+p_value);
	if(p_obj.style){
		if(p_style=="background-attachment"){
			try{
				p_obj.style.backgroundAttachment=p_value;
			}catch(e){				
			}
		}else if(p_style=="background-color"){
			try{
				p_obj.style.backgroundColor=p_value;
			}catch(e){				
			}
		}else if(p_style=="background-image"){
			try{
				p_obj.style.backgroundImage=p_value;
			}catch(e){				
			}
		}else if(p_style=="background-position"){
			try{
				p_obj.style.backgroundPosition=p_value;
			}catch(e){				
			}
		}else if(p_style=="background-repeat"){
			try{
				p_obj.style.backgroundRepeat=p_value;
			}catch(e){				
			}
		}else if(p_style=="border"){
			try{
				p_obj.style.border=p_value;
			}catch(e){				
			}
		}else if(p_style=="border-bottom"){
			try{
				p_obj.style.borderBottom=p_value;
			}catch(e){				
			}
		}else if(p_style=="border-bottom-color"){
			try{
				p_obj.style.borderBottomColor=p_value;
			}catch(e){				
			}
		}else if(p_style=="border-bottom-style"){
			try{
				p_obj.style.borderBottomStyle=p_value;
			}catch(e){				
			}
		}else if(p_style=="border-bottom-width"){
			try{
				p_obj.style.borderBottomWidth=p_value;
			}catch(e){				
			}
		}else if(p_style=="border-color"){
			try{
				p_obj.style.borderColor=p_value;
			}catch(e){				
			}
		}else if(p_style=="border-left"){
			try{
				p_obj.style.borderLeft=p_value;
			}catch(e){				
			}
		}else if(p_style=="border-left-color"){
			try{
				p_obj.style.borderLeftColor=p_value;
			}catch(e){				
			}
		}else if(p_style=="border-left-style"){
			try{
				p_obj.style.borderLeftStyle=p_value;
			}catch(e){				
			}
		}else if(p_style=="border-left-width"){
			try{
				p_obj.style.borderLeftWidth=p_value;
			}catch(e){				
			}
		}else if(p_style=="border-right"){
			try{
				p_obj.style.borderRight=p_value;
			}catch(e){				
			}
		}else if(p_style=="border-right-color"){
			try{
				p_obj.style.borderRightColor=p_value;
			}catch(e){				
			}
		}else if(p_style=="border-right-style"){
			try{
				p_obj.style.borderRightStyle=p_value;
			}catch(e){				
			}
		}else if(p_style=="border-right-width"){
			try{
				p_obj.style.borderRightWidth=p_value;
			}catch(e){				
			}
		}else if(p_style=="border-style"){
			try{
				p_obj.style.borderStyle=p_value;
			}catch(e){				
			}
		}else if(p_style=="border-top"){
			try{
				p_obj.style.borderTop=p_value;
			}catch(e){				
			}
		}else if(p_style=="border-top-color"){
			try{
				p_obj.style.borderTopColor=p_value;
			}catch(e){				
			}
		}else if(p_style=="border-top-style"){
			try{
				p_obj.style.borderTopStyle=p_value;
			}catch(e){				
			}
		}else if(p_style=="border-top-width"){
			try{
				p_obj.style.borderTopWidth=p_value;
			}catch(e){				
			}
		}else if(p_style=="border-width"){
			try{
				p_obj.style.borderWidth=p_value;
			}catch(e){				
			}
		}else if(p_style=="bottom"){
			try{
				p_obj.style.bottom=p_value;
			}catch(e){				
			}
		}else if(p_style=="caption-side"){
			try{
				p_obj.style.captionSide=p_value;
			}catch(e){				
			}
		}else if(p_style=="clear"){
			try{
				p_obj.style.clear=p_value;
			}catch(e){				
			}
		}else if(p_style=="clip"){
			try{
				p_obj.style.clip=p_value;
			}catch(e){				
			}
		}else if(p_style=="color"){
			try{
				p_obj.style.color=p_value;
			}catch(e){				
			}
		}else if(p_style=="cursor"){
			try{
				p_obj.style.cursor=p_value;
			}catch(e){				
			}
		}else if(p_style=="direction"){
			try{
				p_obj.style.direction=p_value;
			}catch(e){				
			}
		}else if(p_style=="display"){
			try{
				p_obj.style.display=p_value;
			}catch(e){				
			}
		}else if(p_style=="empty-cells"){
			try{
				p_obj.style.emptyCells=p_value;
			}catch(e){				
			}
		}else if(p_style=="css-float"){
			try{
				bj.style.cssFloat=p_value;
			}catch(e){				
			}
		}else if(p_style=="font"){
			try{
				p_obj.style.font=p_value;
			}catch(e){				
			}
		}else if(p_style=="font-family"){
			try{
				p_obj.style.fontFamily=p_value;
			}catch(e){				
			}
		}else if(p_style=="font-size"){
			try{
				p_obj.style.fontSize=p_value;
			}catch(e){				
			}
		}else if(p_style=="font-style"){
			try{
				p_obj.style.fontStyle=p_value;
			}catch(e){				
			}
		}else if(p_style=="font-variant"){
			try{
				p_obj.style.fontVariant=p_value;
			}catch(e){				
			}
		}else if(p_style=="font-weight"){
			try{
				p_obj.style.fontWeight=p_value;
			}catch(e){				
			}
		}else if(p_style=="height"){
			try{
				p_obj.style.height=p_value;
			}catch(e){				
			}
		}else if(p_style=="left"){
			try{
				p_obj.style.left=p_value;
			}catch(e){				
			}
		}else if(p_style=="letter-spacing"){
			try{
				p_obj.style.letterSpacing=p_value;
			}catch(e){				
			}
		}else if(p_style=="line-height"){
			try{
				p_obj.style.lineHeight=p_value;
			}catch(e){				
			}
		}else if(p_style=="list-style"){
			try{
				p_obj.style.listStyle=p_value;
			}catch(e){				
			}
		}else if(p_style=="list-style-image"){
			try{
				p_obj.style.listStyleImage=p_value;
			}catch(e){				
			}
		}else if(p_style=="list-style-position"){
			try{
				p_obj.style.listStylePosition=p_value;
			}catch(e){				
			}
		}else if(p_style=="list-style-type"){
			try{
				p_obj.style.listStyleType=p_value;
			}catch(e){				
			}
		}else if(p_style=="margin"){
			try{
				p_obj.style.margin=p_value;
			}catch(e){				
			}
		}else if(p_style=="margin-bottom"){
			try{
				p_obj.style.marginBottom=p_value;
			}catch(e){				
			}
		}else if(p_style=="margin-left"){
			try{
				p_obj.style.marginLeft=p_value;
			}catch(e){				
			}
		}else if(p_style=="margin-right"){
			try{
				p_obj.style.marginRight=p_value;
			}catch(e){				
			}
		}else if(p_style=="margin-top"){
			try{
				p_obj.style.marginTop=p_value;
			}catch(e){				
			}
		}else if(p_style=="max-height"){
			try{
				p_obj.style.maxHeight=p_value;
			}catch(e){				
			}
		}else if(p_style=="max-width"){
			try{
				p_obj.style.maxWidth=p_value;
			}catch(e){				
			}
		}else if(p_style=="min-height"){
			try{
				p_obj.style.minHeight=p_value;
			}catch(e){				
			}
		}else if(p_style=="min-width"){
			try{
				_obj.style.minWidth=p_value;
			}catch(e){				
			}
		}else if(p_style=="overflow"){
			try{
				p_obj.style.overflow=p_value;
			}catch(e){				
			}
		}else if(p_style=="padding"){
			try{
				p_obj.style.padding=p_value;
			}catch(e){				
			}
		}else if(p_style=="padding-bottom"){
			try{
				p_obj.style.paddingBottom=p_value;
			}catch(e){				
			}
		}else if(p_style=="padding-left"){
			try{
				p_obj.style.paddingLeft=p_value;
			}catch(e){				
			}
		}else if(p_style=="padding-right"){
			try{
				p_obj.style.paddingRight=p_value;
			}catch(e){				
			}
		}else if(p_style=="padding-top"){
			try{
				p_obj.style.paddingTop=p_value;
			}catch(e){				
			}
		}else if(p_style=="page-break-after"){
			try{
				p_obj.style.pageBreakAfter=p_value;
			}catch(e){				
			}
		}else if(p_style=="page-breakBefore"){
			try{
				p_obj.style.pageBreakBefore=p_value;
			}catch(e){				
			}
		}else if(p_style=="position"){
			try{
				p_obj.style.position=p_value;
			}catch(e){				
			}
		}else if(p_style=="right"){
			try{
				p_obj.style.right=p_value;
			}catch(e){				
			}
		}else if(p_style=="scrollbar3d-light-color"){
			try{
				p_obj.style.scrollbar3dLightColor=p_value;
			}catch(e){				
			}
		}else if(p_style=="scrollbar-arrow-color"){
			try{
				p_obj.style.scrollbarArrowColor=p_value;
			}catch(e){				
			}
		}else if(p_style=="scrollbar-base-color"){
			try{
				p_obj.style.scrollbarBaseColor=p_value;
			}catch(e){				
			}
		}else if(p_style=="scrollbar-darkshadow-color"){
			try{
				p_obj.style.scrollbarDarkshadowColor=p_value;
			}catch(e){				
			}
		}else if(p_style=="scrollbar-face-color"){
			try{
				p_obj.style.scrollbarFaceColor=p_value;
			}catch(e){				
			}
		}else if(p_style=="scrollbar-highlight-color"){
			try{
				p_obj.style.scrollbarHighlightColor=p_value;
			}catch(e){				
			}
		}else if(p_style=="scrollbar-shadow-color"){
			try{
				p_obj.style.scrollbarShadowColor=p_value;
			}catch(e){				
			}
		}else if(p_style=="scrollbar-track-color"){
			try{
				p_obj.style.scrollbarTrackColor=p_value;
			}catch(e){				
			}
		}else if(p_style=="table-layout"){
			try{
				p_obj.style.tableLayout=p_value;
			}catch(e){				
			}
		}else if(p_style=="text-align"){
			try{
				p_obj.style.textAlign=p_value;
			}catch(e){				
			}
		}else if(p_style=="text-decoration"){
			try{
				p_obj.style.textDecoration=p_value;
			}catch(e){				
			}
		}else if(p_style=="text-indent"){
			try{
				p_obj.style.textIndent=p_value;
			}catch(e){				
			}
		}else if(p_style=="text-transform"){
			try{
				p_obj.style.textTransform=p_value;
			}catch(e){				
			}
		}else if(p_style=="top"){
			try{
				p_obj.style.top=p_value;
			}catch(e){				
			}
		}else if(p_style=="vertical-align"){
			try{
				p_obj.style.verticalAlign=p_value;
			}catch(e){				
			}
		}else if(p_style=="visibility"){
			try{
				p_obj.style.visibility=p_value;
			}catch(e){				
			}
		}else if(p_style=="width"){
			try{
				p_obj.style.width=p_value;
			}catch(e){				
			}
		}else if(p_style=="word-spacing"){
			try{
				p_obj.style.wordSpacing=p_value;
			}catch(e){				
			}
		}else if(p_style=="z-index"){
			try{
				p_obj.style.zIndex=p_value;
			}catch(e){				
			}
		}
	}
	return false;
}
function bc_remElmnt(p_index,p_array){
	if((p_index>-1)&&(p_index<p_array.length)){
		var res=new Array();
		for(var i=0;i<p_array.length;i++){
			if(i!=p_index){
				res.push(p_array[i]);
			}
		}
		return res;
	}else{
		return p_array;	
	}
}
function lstZI(){
	var count=0;
	var counter=function(p_obj){
		count++;
		for(var j=0;j<p_obj.childNodes.length;j++){
			counter(p_obj.childNodes[j]);	
		}
	};
	for(var i=0;i<document.getElementsByTagName("body")[0].childNodes.length;i++){
		count++;
		counter(document.getElementsByTagName("body")[0].childNodes[i]);
	}
	return count;
}