function domIt() {
	if (!document.getElementsByTagName) return;
		var anchors = document.getElementsByTagName("a");
		for (var i=0; i<anchors .length; i++) {
		var anchor = anchors[i];
		if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") {
		anchor.target = "_blank";
		anchor.title = (anchor.title != "") ? anchor.title+" (opens in a new window)" : "opens in a new window";
		anchor.className = (anchor.className != '') ? anchor.className+' external' : 'external';
		}
		if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "popup") {
			anchor.onclick = function() {
				var pictitle = escape(this.title.replace(" (opens in a popup window)",""));
				//url = escape(this.getAttribute("href"));
				url = this.getAttribute("href");
				window.open(url,'popup','width=760,height=480,resizable=yes,scrollbars=yes');
				return false;
			  }
			anchor.title = (anchor.title != "") ? anchor.title+" (opens in a popup window)" : "opens in a popup window";
		}
	}
	//End anchors
	var hr = document.getElementsByTagName("hr");
	for (var i=0; i<hr.length; i++) {
		var newhr = hr[i];
		var wrapdiv = document.createElement('div');
		wrapdiv.className = 'hr';
		newhr.parentNode.replaceChild(wrapdiv, newhr);
		wrapdiv.appendChild(newhr);
	}
}

/*	dynamicCSS.js v1.0 <http://www.bobbyvandersluis.com/articles/dynamicCSS.php>
	Copyright 2005 Bobby van der Sluis
	This software is licensed under the CC-GNU LGPL <http://creativecommons.org/licenses/LGPL/2.1/>
*/

//fake scripts for mapload and unload
function mapload() {
	return true;
}
function GUnload() {
	return true;
}
//end fake

function createStyleRule(selector, declaration) {
	if (!document.getElementsByTagName || !(document.createElement || document.createElementNS)) return;
	var agt = navigator.userAgent.toLowerCase();
	var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
	var is_iewin = (is_ie && (agt.indexOf("win") != -1));
	var is_iemac = (is_ie && (agt.indexOf("mac") != -1));
	if (is_iemac) return; // script doesn't work properly in IE/Mac
	var head = document.getElementsByTagName("head")[0]; 
	var style = (typeof document.createElementNS != "undefined") ?  document.createElementNS("http://www.w3.org/1999/xhtml", "style") : document.createElement("style");
	if (!is_iewin) {
		var styleRule = document.createTextNode(selector + " {" + declaration + "}");
		style.appendChild(styleRule); // bugs in IE/Win
	}
	style.setAttribute("type", "text/css");
	style.setAttribute("media", "screen"); 
	head.appendChild(style);
	if (is_iewin && document.styleSheets && document.styleSheets.length > 0) {
		var lastStyle = document.styleSheets[document.styleSheets.length - 1];
		if (typeof lastStyle.addRule == "object") { // bugs in IE/Mac and Safari
			lastStyle.addRule(selector, declaration);
		}
	}
}

function thumbWin(galType, iVal, eleId) {
	setDir = false;
	var args = thumbWin.arguments.length;
	if (args > 3) {setDir = true;}
	if (window.showModalDialog) {
		window.showModalDialog("/cms/htedit/editor/plugins/ibrowser/thmbrowser.php?galType="+galType+"&iVal="+iVal+"&eleId="+eleId+"&setDir="+setDir,self,"dialogWidth:600px;dialogHeight:400px");
	} else {
		iWindow = window.open('/cms/htedit/editor/plugins/ibrowser/thmbrowser.php?galType='+galType+'&iVal='+iVal+"&eleId="+eleId+"&setDir="+setDir,'name','height=400,width=600,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,modal=yes');
	}
} 

function cnt(w,x,sep){
	var y=w.value;
	var r = 0;
	a=y.replace(/\s/g,' ');
	a=a.split(sep);
	for (z=0; z<a.length; z++) {if (a[z].length > 0) r++;}
	x.value=r;
}

function findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function changeProp(objName,x,theProp,theValue) { //v6.0
  var obj = findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)){
    if (theValue == true || theValue == false)
      eval("obj."+theProp+"="+theValue);
    else eval("obj."+theProp+"='"+theValue+"'");
  }
}
function setElementStyleByClassName(cl, propertyName, propertyValue) {
	if (!document.getElementsByTagName) return;
	var re = new RegExp("(^| )" + cl + "( |$)");
	var el = document.all ? document.all : document.getElementsByTagName("body")[0].getElementsByTagName("*"); // fix for IE5.x
	for (var i = 0; i < el.length; i++) {
		if (el[i].className && el[i].className.match(re)) {
			el[i].style[propertyName] = propertyValue;
		}
	}
}

function myUnobtrusiveBehavior() {
	setElementStyleByClassName("toggle", "display", "none"); // fallback for IE5/Mac
	setElementStyleByClassName("toggle", "display", "block");
}

function openCentWindow(theURL,scrollb,winWidth,winHeight) { //v2.0
	
	if (winWidth>screen.width){winWidth = screen.width;}
	if (winHeight>screen.height){winHeight = screen.height;}
	if (winWidth <= 0){winWidth = screen.width;}
	if (winHeight <= 0){winHeight = screen.height;}

	leftPos = 0; leftPos = screen.width/2 - winWidth/2; // centres window
	topPos = 0; topPos = screen.height/2 - winHeight/2;  // centres window
	
	modWindow = window.open(theURL,'modWin','toolbar=no,location=no,scrollbars='+scrollb+',resizable=yes,width='+winWidth+',height='+winHeight+',left='+leftPos+',top='+topPos+'');
	modWindow.focus();
}

modalwin = null;

function modWin(obj) {
	if (!document.getElementById) return;
	var items = modWin.arguments.length;
	var params = '?pcount='+items;
	var ele = false;
	for (i = 0;i < items;i++) {
		ele = document.getElementById(modWin.arguments[i]);
		if (ele && ele.nodeName.toLowerCase() == 'input') {
			params = params+'&'+modWin.arguments[i]+'='+ele.value;
		} else if(ele && ele.nodeName.toLowerCase() == 'select') {
			params = params+'&'+modWin.arguments[i]+'='+ele.options[ele.selectedIndex].value;
		}
   }
   if(document.getElementById(obj) == null) {
	   url = obj;
   } else if(obj.nodeName.toLowerCase() == 'a') {
		url = obj.getAttribute("href");
	} else {
		url = obj;
	}
	/*if (window.showModalDialog) {
		window.showModalDialog(url+params,"modWindow","dialogWidth:760px;dialogHeight:480px;resizable:yes;status:no");
	} else {
		//openCentWindow(url+params,'yes',760,480);
		window.open(url+params,'modWindow','width=760,height=480,resizable=yes,scrollbars=yes,location=yes');
	}*/
	modalwin = window.open(url+params,'modWindow','width=760,height=480,resizable=yes,scrollbars=yes');
}

function confirmSubmit() {
var agree=confirm("Are you sure you wish to continue?");
if (agree)
	return true ;
else
	return false ;
}

function confirmDelete(modName) {
var agree=confirm("Are you sure you want to delete this "+modName+"?");
if (agree)
	return true ;
else
	return false ;
}

function submitform(theform) {
  if (!document.getElementById) return;
  var myform = document.getElementById(theform);
  myform.submit();
}

function swapTabs(tabOn) {
	if (!document.getElementsByTagName) return;
		activeTab = "panel-"+tabOn;
		var panelGroup = document.getElementById("panels");
		var panels = panelGroup.getElementsByTagName("fieldset");
		for (var i=0; i<panels .length; i++) {
			var panel = panels[i];
			var pNo = i+1;
			if (panel.id == activeTab) {
				changeProp('panel-'+pNo,'','style.display','block','DIV');
				changeProp('tab-'+pNo,'','className','active','a');
			} else {
				changeProp('panel-'+pNo,'','style.display','none','DIV');
				changeProp('tab-'+pNo,'','className','off','a');
			}
		}
}

function createCookie(name, value, days)
{
  if (days) {
    var date = new Date();
    date.setTime(date.getTime()+(days*24*60*60*1000));
    var expires = "; expires="+date.toGMTString();
    }
  else var expires = "";
  document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name)
{
  var ca = document.cookie.split(';');
  var nameEQ = name + "=";
  for(var i=0; i < ca.length; i++) {
    var c = ca[i];
    while (c.charAt(0)==' ') c = c.substring(1, c.length); //delete spaces
    if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
    }
  return null;
}

function eraseCookie(name)
{
  createCookie(name, "", -1);
}

function setMenu() {
	setClass = readCookie("menu");
	if (setClass == null) {
		createCookie("menu", "mShow", 14)
		setClass = readCookie("menu");
	}
	if (setClass.length < 1) {
		return false;
	} else {
		var menu = document.getElementById("cmsHolder");
		menu.className = setClass;
	}
}
function showMenu() {
	if (!document.getElementsByTagName) return;
		var menu = document.getElementById("cmsHolder");
		if (menu) {
			if (menu.className != 'mShow') {
				menu.className = 'mShow';
				createCookie("menu", "mShow", 14)
			} else {
				menu.className = 'mHide';
				createCookie("menu", "mHide", 14)
			}
		} else {
			return false;
		}
}
function showe(eleId) {
	if (!document.getElementById) return;
		var ele = document.getElementById(eleId);
		if (ele) {
			if (ele.style.display != 'block') {
				ele.style.display = 'block';
			} else {
				ele.style.display = 'none';
			}
		} else {
			return false;
		}
}

function hibox(objId, status) {
	obj = document.getElementById(objId);
	if (status == 'on') {
		obj.className = 'hiBox';
	} else {
		obj.className = 'editBox';
	}
}

function setOrder(sList) {
	var msg = "";
	for ( var i=0, len=sList.length; i<len; ++i ){
		//script.aculo.us function
		//changeProp(sList[i]+'Order','','value',Sortable.sequence(sList[i]),'INPUT/HIDDEN');
		changeProp(sList[i]+'Order','','value',Sortable.serialize(sList[i]),'INPUT/HIDDEN');
	}
	/*Sortable.serialize('pagemenu'));return false*/
	/*Sortable.sequence('pagelinks');
	changeProp('sortArray','','value',sOrder,'INPUT/HIDDEN');*/
	return false ;
}
function setOrderStd(sList) {
	var msg = "";
	for ( var i=0, len=sList.length; i<len; ++i ){
		//script.aculo.us function
		changeProp(sList[i]+'Order','','value',Sortable.sequence(sList[i]),'INPUT/HIDDEN');
	}
	return false ;
}

function updateList(container) {
	var url = '/cms/process/arrange.php';
	var params = Sortable.serialize(container.id);
	//var params = 'slotnum='+container.id+'&order='+Sortable.serialize(container.id);
	var ajax = new Ajax.Request(url,{
		method: 'post',
		parameters: params,
		onLoading: function(){$('msgBox').show()},
		onLoaded: function(){$('msgBox').hide()}
	});
}
function prepDup(att_id,att_type,att_name,att_Ref) {
	parent.opener.fetchDup(att_id,att_type,att_name,att_Ref);
	//window.setTimeout('parent.close()', 300);
}
function fetchDup(att_id,att_type,att_name,att_Ref) {
	var url    = '/cms/process/dupshow.php';
	var rand   = Math.random(9999);
	var pars   = '?att_id=' + att_id + '&att_type=' + att_type + '&att_name=' + att_name + '&rand=' + rand + '&att_Ref=' + att_Ref;
	var myAjax = new Ajax.Request( url, {method: 'get', parameters: pars, onLoading: function(){modalwin.$('msgBox').show()}, onComplete: dupResponse} );
	//var myAjax = new Ajax.Request( url, {method: 'get', parameters: pars, onComplete: showResponse} );
}
function dupResponse (originalRequest) {
	//$('msgBox').hide();
	$('respMsg').innerHTML = originalRequest.responseText;
	if (!modalwin.closed) {modalwin.window.close();}
}

function getMediaData() {
	var mediaFile = $('mediaFile').value;
	var mControls = $('mControls').checked;
	var url    = '/cms/process/mediadata.php';
	/*var params = '{mediaFile:'+mediaFile+'}';
	var ajax = new Ajax.Request(url,{
		method: 'post',
		parameters: params,
		onLoading: function(){$('msgBox').show()},
		onLoaded: function(){$('msgBox').hide()},
		onComplete: medResponse
	});*/
	var rand   = Math.random(9999);
	var pars   = '?mediaFile=' + mediaFile + '&mControls=' + mControls + '&rand=' + rand;
	var myAjax = new Ajax.Request( url, {method: 'get', parameters: pars, onLoading: function(){$('msgBox').show()}, onComplete: medResponse} );
}
function medResponse (originalRequest) {
	//$('msgBox').hide();
	$('respData').innerHTML = originalRequest.responseText;
	if (!modalwin.closed) {modalwin.window.close();}
}

function resetThumbs(data) {
	var ele = $(data);
	var dir = false;
	if (ele && ele.nodeName.toLowerCase() == 'input') {
		dir = ele.value;
	} else if(ele && ele.nodeName.toLowerCase() == 'select') {
		dir = ele.options[ele.selectedIndex].value;
	}
	if(dir) {
		var url    = '/cms/process/galclear.php';
		var rand   = Math.random(9999);
		var pars   = '?galdir=' + dir + '&rand=' + rand;
		var myAjax = new Ajax.Request( url, {method: 'get', parameters: pars, onLoading: function(){$('msgBox').show()}, onComplete: resetThumbsResponse} );
	}
}
function resetThumbsResponse (originalRequest) {
	//$('msgBox').hide();
	$('clearMsg').innerHTML = originalRequest.responseText;
	if (!modalwin.closed) {modalwin.window.close();}
}


function BrowseFiles() {
	// You can use the "CKFinder" class to render CKFinder in a page:
	var finder = new CKFinder() ;
	finder.BasePath = '/ckfinder/' ;	// The path for the installation of CKFinder (default = "/ckfinder/").
	//finder.SelectFunction = SetFileField ;
	finder.Popup() ;

	// It can also be done in a single line, calling the "static"
	// Popup( basePath, width, height, selectFunction ) function:
	// CKFinder.Popup( '../../', null, null, SetFileField ) ;
}
function BrowseMedia() {
	var finder = new CKFinder() ;
	finder.resType = 'Media';
	finder.BasePath = '/ckfinder/' ;	// The path for the installation of CKFinder (default = "/ckfinder/").
	finder.SelectFunction = SetMediaField ;
	finder.Popup() ;
}
function SetMediaField( fileUrl ) {
	$('mediaFile').value = fileUrl ;
}
// Title: Tigra Calendar
// URL: http://www.softcomplex.com/products/tigra_calendar/
// Version: 3.3 (European date format)
// Date: 09/01/2005 (mm/dd/yyyy)
// Note: Permission given to use this script in ANY kind of applications if
//    header lines are left unchanged.
// Note: Script consists of two files: calendar?.js and calendar.html

// if two digit year input dates after this year considered 20 century.
var NUM_CENTYEAR = 30;
// is time input control required by default
var BUL_TIMECOMPONENT = false;
// are year scrolling buttons required by default
var BUL_YEARSCROLL = true;

var calendars = [];
var RE_NUM = /^\-?\d+$/;

function calendar1(obj_target) {

	// assigning methods
	this.gen_date = cal_gen_date1;
	this.gen_time = cal_gen_time1;
	this.gen_tsmp = cal_gen_tsmp1;
	this.prs_date = cal_prs_date1;
	this.prs_time = cal_prs_time1;
	this.prs_tsmp = cal_prs_tsmp1;
	this.popup    = cal_popup1;

	// validate input parameters
	if (!obj_target)
		return cal_error("Error calling the calendar: no target control specified");
	if (obj_target.value == null)
		return cal_error("Error calling the calendar: parameter specified is not valid target control");
	this.target = obj_target;
	this.time_comp = BUL_TIMECOMPONENT;
	this.year_scroll = BUL_YEARSCROLL;
	
	// register in global collections
	this.id = calendars.length;
	calendars[this.id] = this;
}

function cal_popup1 (str_datetime) {
	if (str_datetime) {
		this.dt_current = this.prs_tsmp(str_datetime);
	}
	else {
		this.dt_current = this.prs_tsmp(this.target.value);
		this.dt_selected = this.dt_current;
	}
	if (!this.dt_current) return;

	var obj_calwindow = window.open(
		'/funcs/calendar.html?datetime=' + this.dt_current.valueOf()+ '&id=' + this.id,
		'Calendar', 'width=200,height='+(this.time_comp ? 215 : 190)+
		',status=no,resizable=no,top=200,left=200,dependent=yes,alwaysRaised=yes'
	);
	obj_calwindow.opener = window;
	obj_calwindow.focus();
}

// timestamp generating function
function cal_gen_tsmp1 (dt_datetime) {
	return(this.gen_date(dt_datetime) + ' ' + this.gen_time(dt_datetime));
}

// date generating function
function cal_gen_date1 (dt_datetime) {
	return (
		(dt_datetime.getDate() < 10 ? '0' : '') + dt_datetime.getDate() + "-"
		+ (dt_datetime.getMonth() < 9 ? '0' : '') + (dt_datetime.getMonth() + 1) + "-"
		+ dt_datetime.getFullYear()
	);
}
// time generating function
function cal_gen_time1 (dt_datetime) {
	return (
		(dt_datetime.getHours() < 10 ? '0' : '') + dt_datetime.getHours() + ":"
		+ (dt_datetime.getMinutes() < 10 ? '0' : '') + (dt_datetime.getMinutes()) + ":"
		+ (dt_datetime.getSeconds() < 10 ? '0' : '') + (dt_datetime.getSeconds())
	);
}

// timestamp parsing function
function cal_prs_tsmp1 (str_datetime) {
	// if no parameter specified return current timestamp
	if (!str_datetime) {
		var nd = new Date();
		nd.setHours(00);
		nd.setMinutes(0);
		nd.setSeconds(0);
		return (nd);
	}

	// if positive integer treat as milliseconds from epoch
	if (RE_NUM.exec(str_datetime))
		return new Date(str_datetime);
		
	// else treat as date in string format
	var arr_datetime = str_datetime.split(' ');
	return this.prs_time(arr_datetime[1], this.prs_date(arr_datetime[0]));
}

// date parsing function
function cal_prs_date1 (str_date) {

	var arr_date = str_date.split('-');

	if (arr_date.length != 3) return cal_error ("Invalid date format: '" + str_date + "'.\nFormat accepted is dd-mm-yyyy.");
	if (!arr_date[0]) return cal_error ("Invalid date format: '" + str_date + "'.\nNo day of month value can be found.");
	if (!RE_NUM.exec(arr_date[0])) return cal_error ("Invalid day of month value: '" + arr_date[0] + "'.\nAllowed values are unsigned integers.");
	if (!arr_date[1]) return cal_error ("Invalid date format: '" + str_date + "'.\nNo month value can be found.");
	if (!RE_NUM.exec(arr_date[1])) return cal_error ("Invalid month value: '" + arr_date[1] + "'.\nAllowed values are unsigned integers.");
	if (!arr_date[2]) return cal_error ("Invalid date format: '" + str_date + "'.\nNo year value can be found.");
	if (!RE_NUM.exec(arr_date[2])) return cal_error ("Invalid year value: '" + arr_date[2] + "'.\nAllowed values are unsigned integers.");

	var dt_date = new Date();
	dt_date.setDate(1);

	if (arr_date[1] < 1 || arr_date[1] > 12) return cal_error ("Invalid month value: '" + arr_date[1] + "'.\nAllowed range is 01-12.");
	dt_date.setMonth(arr_date[1]-1);
	 
	if (arr_date[2] < 100) arr_date[2] = Number(arr_date[2]) + (arr_date[2] < NUM_CENTYEAR ? 2000 : 1900);
	dt_date.setFullYear(arr_date[2]);

	var dt_numdays = new Date(arr_date[2], arr_date[1], 0);
	dt_date.setDate(arr_date[0]);
	if (dt_date.getMonth() != (arr_date[1]-1)) return cal_error ("Invalid day of month value: '" + arr_date[0] + "'.\nAllowed range is 01-"+dt_numdays.getDate()+".");

	return (dt_date)
}

// time parsing function
function cal_prs_time1 (str_time, dt_date) {

	if (!dt_date) return null;
	var arr_time = String(str_time ? str_time : '').split(':');

	if (!arr_time[0]) dt_date.setHours(0);
	else if (RE_NUM.exec(arr_time[0]))
		if (arr_time[0] < 24) dt_date.setHours(arr_time[0]);
		else return cal_error ("Invalid hours value: '" + arr_time[0] + "'.\nAllowed range is 00-23.");
	else return cal_error ("Invalid hours value: '" + arr_time[0] + "'.\nAllowed values are unsigned integers.");
	
	if (!arr_time[1]) dt_date.setMinutes(0);
	else if (RE_NUM.exec(arr_time[1]))
		if (arr_time[1] < 60) dt_date.setMinutes(arr_time[1]);
		else return cal_error ("Invalid minutes value: '" + arr_time[1] + "'.\nAllowed range is 00-59.");
	else return cal_error ("Invalid minutes value: '" + arr_time[1] + "'.\nAllowed values are unsigned integers.");

	if (!arr_time[2]) dt_date.setSeconds(0);
	else if (RE_NUM.exec(arr_time[2]))
		if (arr_time[2] < 60) dt_date.setSeconds(arr_time[2]);
		else return cal_error ("Invalid seconds value: '" + arr_time[2] + "'.\nAllowed range is 00-59.");
	else return cal_error ("Invalid seconds value: '" + arr_time[2] + "'.\nAllowed values are unsigned integers.");

	dt_date.setMilliseconds(0);
	return dt_date;
}

function cal_error (str_message) {
	alert (str_message);
	return null;
}

//-->
/**
 * SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
 *
 * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 */
if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;
//-->