var swfversion = deconcept.SWFObjectUtil.getPlayerVersion();
var noflash = deconcept.util.getRequestParameter("noflash");
var printerfriendly = deconcept.util.getRequestParameter("printerfriendly");
var gofilters = false;
//alert("You have Flash player "+ swfversion['major'] +"."+ swfversion['minor'] +"."+ swfversion['rev'] +" installed.");
if (document.getElementById && (swfversion['major'] > 0) && noflash=='' && printerfriendly=='') {
	document.writeln("<STYLE>.divFlash{display:block;}.divHtml{display:none;}</"+"STYLE>");
}

function init() {
	// Find add links to outside pages and add urladd var
	if (urladd != "") {
		var l = "";
		var nodes = document.getElementsByTagName("a");
		for (var i = 0; i<nodes.length; i++) {
			try {
				l = nodes[i].attributes.getNamedItem("href").value;
				if (l.substr(0,4) == "http") {
					if (l.indexOf(document.domain) == -1 && l.indexOf(urladd) == -1) {
						nodes[i].attributes.getNamedItem("href").value = addurl(l);
					}
				}
			} catch (err) {
			}
		}
	}
}

function addurl(l) {
	var n="", p = 0;
	if (urladd != "") {
		if ((p=l.indexOf('#')) > -1) { n = l.substr(p,999); l = l.substr(0,p); }
		if (l.indexOf("?")>-1) { l += "&" + urladd; } else { l += "?" + urladd; }
	}
	return l + n;
}

function lunchwin(obj,width) {
	var url = obj.href;
	var myWidth = 0, myHeight = 0;
	if (urladd != "") {
		url += "?" + urladd;
	}
	if (width>0) {
		myWidth = width;
		myHeight = '';
	} else {
		if ( typeof( window.innerWidth ) == 'number' ) {
			//Non-IE
			myWidth = window.innerWidth;
			myHeight = window.innerHeight;
		} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
			//IE 6+ in 'standards compliant mode'
			myWidth = document.documentElement.clientWidth;
			myHeight = document.documentElement.clientHeight;
		} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
			//IE 4 compatible
			myWidth = document.body.clientWidth;
			myHeight = document.body.clientHeight;
		}
		myWidth = myWidth-100;
		myHeight = myHeight-100;
		if (myWidth < 790) myWidth=790;
	}
	var status = "status,toolbar,location,menubar,directories,resizable,scrollbars";
	if (myWidth>0) status += ",width="+myWidth;
	if (myHeight>0) status += ",height="+myHeight;
	centerwindow = window.open(url, "mywindow", status);
	return false;
}