var regex = /(?:<(style)[^>]*>([\s\S]*?)<\/style>|<link ([^>]*rel=['"]?stylesheet['"]?[^>]*)>)/i; var match, attr; while(match = regex.exec(cont)){ if(match[1] && match[1].toLowerCase() == "style"){ styles.push(adjustCssPaths(cssUrl, match[2])); }else if(attr = match[3].match(/href=(['"]?)([^'">]*)\1/i)){ styles.push("@import '" + attr[2] + "';"); 
  styles.attributes = [];  return cont.replace(/(?:<style([^>]*)>([\s\S]*?)<\/style>|<link\s+(?=[^>]*rel=['"]?stylesheet)([^>]*?href=(['"])([^>]*?)\4[^>\/]*)\/?>)/gi, function(ignore, styleAttr, cssText, linkAttr, delim, href){  var i, attr = (styleAttr||linkAttr||"").replace(/^\s*([\s\S]*?)\s*$/i, "$1"); if(cssText){ i = styles.push(cssUrl ? adjustCssPaths(cssUrl, cssText) : cssText); }else{ i = styles.push('@import "' + href + '";') attr = attr.replace(/\s*(?:rel|href)=(['"])?[^\s]*\1\s*/gi, ""); } if(attr){ attr = attr.split(/\s+/); var atObj = {}, tmp; for(var j = 0, e = attr.length; j < e; j++){ tmp = attr[j].split('=') atObj[tmp[0]] = tmp[1].replace(/^\s*['"]?([\s\S]*?)['"]?\s*$/, "$1"); } styles.attributes[i - 1] = atObj; } return ""; 
	function snarfStyles(/*String*/cssUrl, /*String*/cont, /*Array*/styles){		/****************  cut out all <style> and <link rel="stylesheet" href=".."> **************/		var regex = /(?:<(style)[^>]*>([\s\S]*?)<\/style>|<link ([^>]*rel=['"]?stylesheet['"]?[^>]*)>)/i;		var match, attr;		while(match = regex.exec(cont)){			if(match[1] && match[1].toLowerCase() == "style"){				styles.push(adjustCssPaths(cssUrl, match[2]));			}else if(attr = match[3].match(/href=(['"]?)([^'">]*)\1/i)){				styles.push("@import '" + attr[2] + "';");			}			cont = cont.substring(0, match.index) + cont.substr(match.index + match[0].length);		};		return cont;	}
5168	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5168/3c9b3c65a235c4134dceb120b2a28c62017baf1b/ContentPane.js/clean/layout/ContentPane.js