function ym2GetCSS(elID,styleProp)
{
	var x = document.getElementById(elID);
	if (x.currentStyle)
		var y = x.currentStyle[styleProp];
	else if (window.getComputedStyle)
		var y = document.defaultView.getComputedStyle(x,null).getPropertyValue(styleProp);
	return y;
};
function ym2SetCSS(arrselector,arrproperties){
	var objCSS = document.createElement('style');
	objCSS.type = 'text/css';
	document.getElementsByTagName('head').item(0).appendChild(objCSS);
	if (document.styleSheets) {
		var lastSheet = document.styleSheets[document.styleSheets.length - 1];
		if (lastSheet && typeof lastSheet.addRule != 'undefined') 
		{
			for(i=0;i<arrselector.length;i++){
				lastSheet.addRule(arrselector[i], arrproperties[i]);
			}
		}
		else {
			for(i=0;i<arrselector.length;i++){
				objCSS.appendChild(document.createTextNode(arrselector[i] + ' { ' +arrproperties[i] + ' }\r\n'));
			}
			
		}
	}
	else {
		for(i=0;i<arrselector.length;i++){
			objCSS.appendChild(document.createTextNode(arrselector[i] + ' { ' +properties[i] + ' }'));
		}
		
	}
}
