//Menu object creation
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

//Menu properties   
oCMenu.pxBetween=0
//Using the cm_page object to place the menu ----
oCMenu.fromLeft=0
oCMenu.fromTop=0
oCMenu.rows=1
oCMenu.menuPlacement=0
                                                             
oCMenu.offlineRoot="" 
oCMenu.onlineRoot="" 
oCMenu.resizeCheck=1 
oCMenu.wait=500 
oCMenu.fillImg="/_layouts/itn/images/1ptrans.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=0

//Level properties - ALL properties have to be spesified in level 0
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu.level[0].width="160"
oCMenu.level[0].height=20
oCMenu.level[0].regClass="mainNav"
oCMenu.level[0].overClass="mainNavOver"
oCMenu.level[0].borderX=0
oCMenu.level[0].borderY=0
oCMenu.level[0].borderClass=""
oCMenu.level[0].offsetX=0
oCMenu.level[0].offsetY=0
oCMenu.level[0].rows=0
oCMenu.level[0].arrow=0
oCMenu.level[0].arrowWidth=0
oCMenu.level[0].arrowHeight=0
oCMenu.level[0].align="bottom"

function sublevelcontent(myStr) {
	var tmpStr = '<table cellspacing="0" cellpadding="0" border="0" width="100%"><tr><td class="topNavigationItem" onmouseover="this.className=\'topNavigationItemOver\';" onmouseout="this.className=\'topNavigationItem\'"><table cellspacing="0" cellpadding="0" border="0" width="100%" class="topNavigationLinkBackground" onmouseover="this.className=\'topNavigationLinkBackgroundOver\';" onmouseout="this.className=\'topNavigationLinkBackground\';"><tr><td><img src="/images/1ptrans.gif" height="14" width="18" border="0"/></td><td width="100%" class="topNavigationLink" onmouseover="this.className=\'topNavigationLinkOver\'" onmouseout="this.className=\'topNavigationLink\'">' + myStr + '</td></tr></table></td></tr></table>';
	return tmpStr;
}

function openTour() {
	window.open('/_layouts/itn/tour.html', '_blank', 'toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=750,height=500,top=' + ((window.screen.height/2) - 250)+ ',left=' + ((window.screen.width/2) - 375));
}

searchChanged = false;

function search_onchange(searchBox) {
	if (!searchChanged) {
		searchBox.value = "";
		searchChanged = true;
	}
}

//OnResultView('sch', 'vbc');
	function search_onchange1(myword, e){
		
		var keynum;
		var keychar;
		var numcheck;
		
		//return noenter();
		
		if(window.event) // IE
		  {
		  keynum = e.keyCode;
		  }
		else if(e.which) // Netscape/Firefox/Opera
		  {
		  keynum = e.which;
		  }
		keychar = String.fromCharCode(keynum);
		
		//alert(keynum);
		
		if (keynum==13) {
		//alert("hello");
		//alert(myword);
		
		//window.location="http://www.e-yliko.search.aspx";
		
		//window.location = "http://www.e-yliko.gr/Search.aspx";
		//window.refresh;
		//alert(window.location);
		
	    //location.replace = "http://www.e-yliko.gr/Search.aspx?k=" + myword		
		
		//location.replace('http://www.e-yliko.gr/Search.aspx?k=' + myword);		
		
		//location.replace('http://www.e-yliko.gr/Search.aspx?k=' + myword);
		
		
		
		//window.open ("http://www.e-yliko.gr/Search.aspx?k=" + myword + "&s=all","mywindow"); 
		
		setCookie('mytimes','f', '', '', '', '');
		open ("http://www.e-yliko.gr/Search.aspx?k=" + myword + "&s=e-yliko","_self"); 
		//alert("http://www.e-yliko.gr/Search.aspx?k=" + myword + "&s=all");		
              //window.parent = true;
              //self.close();
		
		
		
		}
		    
			
		}
		

	function search_onclick(myword){
		

		//alert("hello");
		//alert(myword);
		
		//window.location="http://www.e-yliko.search.aspx";
		
		//window.location = "http://www.e-yliko.gr/Search.aspx";
		//window.refresh;
		//alert(window.location);
		
	    //location.replace = "http://www.e-yliko.gr/Search.aspx?k=" + myword		
		
		//location.replace('http://www.e-yliko.gr/Search.aspx?k=' + myword);		
		
		//location.replace('http://www.e-yliko.gr/Search.aspx?k=' + myword);
		
		
		
		//window.open ("http://www.e-yliko.gr/Search.aspx?k=" + myword + "&s=all","mywindow"); 
		
		setCookie('mytimes','f', '', '', '', '');
		open ("http://www.e-yliko.gr/Search.aspx?k=" + myword + "&s=e-yliko","_self"); 
		//alert("http://www.e-yliko.gr/Search.aspx?k=" + myword + "&s=all");		
              //window.parent = true;
              //self.close();
		
		

		    
			
		}		
		
	