// JavaScript Document

//var globalHandler = {
// onCreate:function() {
//  //Element.show('loading');
//  evalPosition('bg_gray','loading', '');
// },
// onComplete:function() {
//  if(Ajax.activeRequestCount === 0){
//	Effect.Fade('bg_gray');
//	Effect.Fade('loading');
//	return false;
//  }
// }
//};
//Ajax.Responders.register(globalHandler);

function loadURL(url, title, cFun ) {
 if(!cFun) cFun = function(){};
 new Ajax.Updater("content", url, {method:"get", parameters:"timestamp=" + new Date().getTime(), onComplete:cFun});
 document.getElementById("title").innerHTML=title;
}





//function evalPosition(backLayer, upLayer, className){
//	var bType = navigator.userAgent.toLowerCase();
//	var obj = document.getElementById(upLayer);
//	var element = document.documentElement;
//	
//	
//	if( bType.indexOf("msie") != -1 ) {
//		var bsv = parseFloat(navigator.appVersion.split(" ")[3]);//obtain the ie'version your are using
//		//eval(bsv <= 6.0 ? "":"new Draggable(" + upLayer + ",{scroll:window,handle:\"" + className + "\"})");
//		_setPosition(obj, "msie", -(obj.scrollWidth/2) + window.screen.width/2, -80 + (-(obj.scrollHeight/2)) + window.screen.height/2 + element.scrollTop);
//	} else if( bType.indexOf("firefox") != -1 ){
//		//new Draggable(upLayer,{scroll:window,handle:className});
//		_setPosition(obj, "firefox", -(obj.scrollWidth/2) + window.screen.width/2, -80 + (-(obj.scrollHeight/2)) + window.screen.height/2 + element.scrollTop);
//	}
//	document.getElementById(backLayer).style.height=document.getElementsByTagName("body")[0].scrollHeight+"px";
//	Effect.Appear(backLayer);
//	Effect.Appear(upLayer);
//	return false;
//	
//}
//
//function _setPosition(obj, bType, pleft, ptop) {
//	if(ptop < 0) ptop = 50;
//	obj.style.left = "0px" ;//must be evaluted
//	obj.style.top = "0px";//must be evaluted
//	//alert("pleft " + pleft);
//	eval("obj.style." + (bType == "msie"?"pixelLeft":"marginLeft") + "='" + pleft + "';");
//	eval("obj.style." + (bType == "msie"?"pixelTop":"marginTop") + "='" + ptop + "';");
//}
//
var Contab = Class.create();
Contab.prototype = {
 initialize:function() {
  this.elem = null;
 },
 changeCss:function(element, className) {
  if(this.celem) $(this.celem).className = "";
  this.celem = element;
  $(element).className = className;

  if($('ct2').className=='slted'){
	$('ct1').className=="slted";
  }else{
	$('ct1').className=="";
  }
 }
}
var Ctab = new Contab();






//function show(){
//	document.getElementById("widgetShowModul").style.height=document.getElementsByTagName("body")[0].scrollHeight+15+"px";
//}

//
//  new Draggable('widgetShowModulWindow',{scroll:window,handle:'boxTitle'});
// Sortable.create('productRightList');
//
//
//new Draggable('widgetShowModulWindow',{scroll:window,handle:'boxTitle'});
//
//new Ajax.InPlaceEditor($('fcdomain'), '_ajax_inplaceeditor_result.html', {
//    externalControl: 'fcdomainEditControl',
//    paramName: 'foobar',
//    ajaxOptions: {method: 'get'} //override so we can use a static for the result
//    });
