// SECTION 2 : Call back
           callback = function(){ document.scapiForm.searchButton.disabled = false; }
           runSearch = function(){
           document.scapiForm.searchButton.disabled = true;
           var varSearchObj = new searchObj();
           varSearchObj.setSearch(document.scapiForm.searchString.value);
           scapi.search(varSearchObj);
           }
// SECTION 4 : Setting defaults
           scapi.setDeveloperID("wUrUF2KGdG0SinbWldMZr3KrGeEgpw");
           scapi.setCallback(callback);

// Ajax Loader

function ajaxphpLoader(page,id,flag)
	{
var xmlhttp=false; //Clear our fetching variable
        try {
                xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); //Try the first kind of active x object…
        } catch (e) {
                try {
                        xmlhttp = new
                        ActiveXObject('Microsoft.XMLHTTP'); //Try the second kind of active x object
            } catch (E) {
                xmlhttp = false;
                        }
        }
        if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
                xmlhttp = new XMLHttpRequest(); //If we were able to get a working active x object, start an XMLHttpRequest
        }
        var file = '../Scripts/ajax_'+flag+'.php?page='+page+'&flag='+flag; 
    xmlhttp.open('GET',file, true);
    xmlhttp.onreadystatechange=function() {
        if (xmlhttp.readyState==4) { //Check if it is ready to recieve data
                var content = xmlhttp.responseText; 
                if( content ){ 
                      document.getElementById(id).innerHTML = content; 
                }
        }
        }
        xmlhttp.send(null) //Nullify the XMLHttpRequest
return;
}

function ajaxLoader(fil,id,flag) { 
               if (document.getElementById) { 
                    var x = (window.ActiveXObject) ? new ActiveXObject("Msxml2.XMLHTTP") : new XMLHttpRequest(); 
               } 
               if (x) { 
                    x.onreadystatechange = function() { 
                         if (x.readyState == 4 && x.status == 200) { 
                              el = document.getElementById(id); 
                              el.innerHTML = x.responseText; 
                         } 
                    } 
					var url = '../Scripts/ajax_'+fil+'.php?flag='+flag;
                    x.open("GET", url, true); 
                    x.send(null); 
               } 
} 

function Loader(fil,id,text,id2) { 
               if (document.getElementById) { 
                    var x = (window.ActiveXObject) ? new ActiveXObject("Msxml2.XMLHTTP") : new XMLHttpRequest(); 
               } 
               if (x) { 
                    x.onreadystatechange = function() { 
                         if (x.readyState == 4 && x.status == 200) { 
                              el = document.getElementById(id); 
                              el.innerHTML = x.responseText; 
                         } 
                    } 
					var url = '../Scripts/ajax_'+fil+'.php?text='+text+'&id2='+id2;
                    x.open("GET", url, true); 
                    x.send(null); 
               } 
} 

function Ev_Loader(flag) { 
               if (document.getElementById) { 
                    var x = (window.ActiveXObject) ? new ActiveXObject("Msxml2.XMLHTTP") : new XMLHttpRequest(); 
               } 
               if (x) { 
                    x.onreadystatechange = function() { 
                         if (x.readyState == 4 && x.status == 200) { 
                              el = document.getElementById('news'); 
                              el.innerHTML = x.responseText; 
                         } 
                    } 
					var url = '../Scripts/ajax_events.php?flag='+flag;
                    x.open("GET", url, true); 
                    x.send(null); 
               } 
} 

function newpage(url) { 
var set = '../biografika/index.php?name='+url;
popupWindow = window.open(set,'popUpWindow','height=700,width=1000,left=10,top=10,resizable=yes,scrollbars=no,toolbar=no,menubar=no,location=no,directories=no,status=yes')
}

function changelanguagegr(){
document.getElementById('scrlag').innerHTML = 'Eργαστήριο Γνώσης & Ευφυούς Πληροφορικής (ΓΕΠ)'; 
document.getElementById('t_news').innerHTML = 'Τελευταία Νέα'; 
}
function changelanguageen(){
document.getElementById('scrlag').innerHTML = 'Laboratory of Knowledge & Intelligent Computing (KIC)'; 
document.getElementById('t_news').innerHTML = 'Latest News'; 
}

function changebutton(a) {
document.getElementById(a).style.cssText='background:url(../images/buttone.jpg); border:0px; width:159px; height:37px; color:white;font-weight:bold;';
}
function restorebutton(b) {
document.getElementById(b).style.cssText='background:url(../images/button.jpg); border:0px; width:159px; height:37px; color:white;font-weight:bold;';
}

function storepage(a)
{
var page=a;
}


hs.graphicsDir = 'highslide/graphics/';
hs.outlineType = 'rounded-white';

// Ajax Show/Hide DIV

var state = 'none';
function showhide(layer_ref) {
if (state == 'block') {
state = 'none';
}
else {
state = 'block';
}
if (document.all) {
eval( "document.all." + layer_ref + ".style.display = state");
}
if (document.layers) {
document.layers[layer_ref].display = state;
}
if (document.getElementById &&!document.all) {
hza = document.getElementById(layer_ref);
hza.style.display = state;
}
}