function load_div(url_page, change_div)
{
show_loading_div(change_div);
xmlHttp = GetXmlHttpObject();if(xmlHttp == null){alert("Browser does not support HTTP Request");return;}
xmlHttp.onreadystatechange = function()
{
if(xmlHttp.readyState == 4)
{
var results_to_show = xmlHttp.responseText;
document.getElementById(change_div).innerHTML = results_to_show;
evalScripts(change_div);
}
}
xmlHttp.open("POST",url_page,true);
xmlHttp.send(null);
setTimeout("tinymce_load()",3000);
}
function enable_history()
{
// set onlick event for buttons
$("a[rel='history']").click(function(){
//
var hash = this.href;
hash = hash.replace(/^.*#/, '');
// moves to a new page.
// pageload is called at once.
// hash don't contain "#", "?"
$.historyLoad(hash);
return false;
});
}
function content_call(url,change_div,parameters,callback)
{
$('#'+change_div).html('
Loading.

');
//$('#'+change_div).css({'display':'none'});
//$('#'+change_div).fadeOut('fast');
$.post(url, parameters,
function(data)
{
$('#'+change_div).fadeOut('fast');
$('#'+change_div).html('');
$('#'+change_div).append(data);
evalScripts(change_div);
$('#'+change_div).fadeIn('fast');
if($(".tinymce_advanced").length > 0)
{
$.ajax({
type: "GET",
url: "assets/tiny_mce/loadmce_advanced.js",
dataType: "script"
});
}
tinymce_load();
enable_history();
//$('#'+change_div).css({'display':'block'});
}, "html");
if(callback){eval(callback);}
}
function delete_confirm(url,change_div,parameters,message,callback)
{
jConfirm(message, 'Confirmation Dialog', function(r){if(r){content_call(url,change_div,parameters,callback)}});
}
function evalScripts(change_div)
{
var scripts = document.getElementById(change_div).getElementsByTagName("script");
for(var i=0;i 0)
{
tinyMCE.execCommand('mceAddControl', false,$(".tinymce_simple").attr('id'));
}
if($(".tinymce_advanced").length > 0)
{
tinyMCE.execCommand('mceAddControl', false,$(".tinymce_advanced").attr('id'));
}
}
// No Framing ///////////////////////////////////////////////////////////////////////
if (self != top)top.location = self.location
// End No Framing ///////////////////////////////////////////////////////////////////////
// set up the Get XML http object. needed for all AJAX functions.
function GetXmlHttpObject(){var xmlHttp=null;try{ xmlHttp=new XMLHttpRequest();}catch (e){ try{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e){xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}}return xmlHttp;}
// SWF OBJECT ///////////////////////////////////////////////////////////////////////
/**
* 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="