//fpSelector
function showFPInfo(i){
	if (i==1){
		document.getElementById('newsList_1').style.display='inline'
		document.getElementById('newsList_2').style.display='none'
		document.getElementById('newsList_3').style.display='none'
	} else if (i==2){
		document.getElementById('newsList_1').style.display='none'
		document.getElementById('newsList_2').style.display='inline'
		document.getElementById('newsList_3').style.display='none'
	} else {
		document.getElementById('newsList_1').style.display='none'
		document.getElementById('newsList_2').style.display='none'
		document.getElementById('newsList_3').style.display='inline'
	}
	document.getElementById('fpHeader').style.backgroundImage='url(/v0/fpHeader' + i + '.gif)';
}
function shFPInf(i){
	if (i==1){
		document.getElementById('newsList_1').style.display='inline'
		document.getElementById('newsList_2').style.display='none'
		document.getElementById('newsList_3').style.display='none'
		document.getElementById('newsList_4').style.display='none'
	} else if (i==2){
		document.getElementById('newsList_1').style.display='none'
		document.getElementById('newsList_2').style.display='inline'
		document.getElementById('newsList_3').style.display='none'
		document.getElementById('newsList_4').style.display='none'
	} else if (i==3){
		document.getElementById('newsList_1').style.display='none'
		document.getElementById('newsList_2').style.display='none'
		document.getElementById('newsList_3').style.display='inline'
		document.getElementById('newsList_4').style.display='none'
	} else {
		document.getElementById('newsList_1').style.display='none'
		document.getElementById('newsList_2').style.display='none'
		document.getElementById('newsList_3').style.display='none'
		document.getElementById('newsList_4').style.display='inline'
	}
	document.getElementById('fpHeader').style.backgroundImage='url(/ast/img/fpHdr' + i + '.gif)';
}
function fpsSelectCol(){
	document.getElementById('oFPSel').innerHTML = document.getElementById('oFPSelCol').innerHTML;
}
function fpsSelectTop(){
	if (document.getElementById('oFPSelCol').innerHTML.length<10) {document.getElementById('oFPSelCol').innerHTML = document.getElementById('oFPSel').innerHTML};
	document.getElementById('oFPSel').innerHTML = document.getElementById('oFPSelTop').innerHTML;
}
function fpsSelectFGA(){
	if (document.getElementById('oFPSelCol').innerHTML.length<10) {document.getElementById('oFPSelCol').innerHTML = document.getElementById('oFPSel').innerHTML};
	document.getElementById('oFPSel').innerHTML = document.getElementById('oFPSelFGA').innerHTML;
}
function fpsSelCol(){
	document.getElementById('oFPSel').innerHTML = document.getElementById('oFPSelCol').innerHTML;
}
function fpsSelTop(){
	if (document.getElementById('oFPSelCol').innerHTML.length<10) {document.getElementById('oFPSelCol').innerHTML = document.getElementById('oFPSel').innerHTML};
	document.getElementById('oFPSel').innerHTML = document.getElementById('oFPSelTop').innerHTML;
}
function fpsSelLNS(){
	if (document.getElementById('oFPSelCol').innerHTML.length<10) {document.getElementById('oFPSelCol').innerHTML = document.getElementById('oFPSel').innerHTML};
	document.getElementById('oFPSel').innerHTML = document.getElementById('oFPSelFGA').innerHTML;
}

//SCROLLER
iScrollDEfaultAmount=5;
sScrollDirection='left';
iScrollAmount=iScrollDEfaultAmount;
function scrollerClickLeft(){if (sScrollDirection == 'left') {if (iScrollAmount<15) iScrollAmount = iScrollAmount + 3;} else {iScrollAmount = iScrollAmount - 3;if (iScrollAmount<0){iScrollAmount = 1;sScrollDirection = 'left'}}	scrollerApplyValues();}
function scrollerClickRight(){if (sScrollDirection == 'right') {if (iScrollAmount<15) iScrollAmount = iScrollAmount + 3;} else {iScrollAmount = iScrollAmount - 3;if (iScrollAmount<0){iScrollAmount = 1;	sScrollDirection = 'right'}	}	scrollerApplyValues();}
function scrollerStop(){document.getElementById("scroller").scrollAmount = 0}
function scrollerApplyValues(){document.getElementById("scroller").scrollAmount = iScrollAmount;document.getElementById("scroller").direction = sScrollDirection;}
function scrollerTogle(){if (document.getElementById("scroller").scrollAmount == 0){scrollerApplyValues();} else {document.getElementById("scroller").scrollAmount = 0}}

//VARIOUS
function closePopUpWindow(){try{window.close();} catch (error){}}
function imgLoaded(oImg, iMW, iMH){if (oImg.width>iMW){oImg.width=iMW}; if (oImg.height>iMH){oImg.height=iMH};}
function Trim(strInputString){
	strInputString = strInputString + ' '
	objRegExp = /(^ +)|( +$)/g
	return strInputString.replace(objRegExp, "");
}
function blnValidEmail(strInputString){
	var objRegExp = /(^[^@]+@[^@]+\..+$)/gi
	if (objRegExp.test(strInputString)) {return true;} else {return false;}
}
function blnValidLatinString(strInputString){
	var objRegExp = /(^[a-z0-9]+$)/gi
	if (objRegExp.test(strInputString)) {return true;} else {return false;}
}
function viewHistoryByDay(oSel){document.location.href='?dDaySelector=' + oSel.options[oSel.options.selectedIndex].value;}
function goTo(sURL){document.location.href  = sURL;}
function SelectOption(objMe){document.location.href = '/' + objMe.options[objMe.selectedIndex].value;}
function wsBetoto(){try{window.status='Betoto.com, τo Eλληνικό στοίχημα στο Internet!'; return true;} catch (error){}}
function wsSport24(){try{window.status='Sport24.gr, η αρχική σας σελίδα στην αθλητική ενημέρωση!'; return true;} catch (error){}}
function gotoBetoto(){document.location.href='https://adserver.itsfogo.com/click.aspx?zoneid=8329'}
//ARTICLE FUNCTIONS
function doDubmitSendArticle(){
	document.frmMain.txtFullName.value = Trim(document.frmMain.txtFullName.value)
	document.frmMain.txtEmail.value = Trim(document.frmMain.txtEmail.value)
	document.frmMain.txtMessage.value = Trim(document.frmMain.txtMessage.value)
	
	document.frmMain.txtEmail_1.value = Trim(document.frmMain.txtEmail_1.value)
	document.frmMain.txtEmail_2.value = Trim(document.frmMain.txtEmail_2.value)
	document.frmMain.txtEmail_3.value = Trim(document.frmMain.txtEmail_3.value)
	document.frmMain.txtEmail_4.value = Trim(document.frmMain.txtEmail_4.value)
	
	if (!blnValidEmail(document.frmMain.txtEmail_1.value)) {alert('Το πρώτο e-mail των φίλων σου δεν είναι σωστό.'); document.frmMain.txtEmail_1.focus(); return}
	if (document.frmMain.txtEmail_2.value!='') {if (!blnValidEmail(document.frmMain.txtEmail_2.value)) {alert('Το δεύτερο e-mail των φίλων σου δεν είναι σωστό.'); document.frmMain.txtEmail_2.focus(); return}}
	if (document.frmMain.txtEmail_3.value!='') {if (!blnValidEmail(document.frmMain.txtEmail_3.value)) {alert('Το τρίτο e-mail των φίλων σου δεν είναι σωστό.'); document.frmMain.txtEmail_3.focus(); return}}
	if (document.frmMain.txtEmail_4.value!='') {if (!blnValidEmail(document.frmMain.txtEmail_4.value)) {alert('Το τέταρτο e-mail των φίλων σου δεν είναι σωστό.'); document.frmMain.txtEmail_4.focus(); return}}

	if (document.frmMain.txtFullName.value=='') {alert('Παρακαλούμε συμπληρώστε το όνομά σας.'); document.frmMain.txtFullName.focus();	return;}
	if (!blnValidEmail(document.frmMain.txtEmail.value)) {alert('Το e-mail σας δεν είναι σωστό.'); document.frmMain.txtEmail.focus(); return}
	document.frmMain.btnSubmit.disabled=true;
	document.frmMain.submit()
}
function doPrintArticle(entID){
	var sURL = document.location.href.toLowerCase()
	window.open(sURL.replace('.asp', '.print.asp'))
}
function doSendArticle(entID){
	try {
	document.location.href = '/svc/send/?entID='+entID + '&entTitle=' + document.getElementById('aTit').value
	} catch (error) { alert('Δεν είναι δυνατή η αποστολή της είδησης. Ελέγξτε τις ρυθμίσεις scrpting του browser σας και δοκιμάστε ξανά');}
}
function doSendVideo(iMode, entID, entTitle){
	try {
		if (iMode==1){
			document.location.href = '/svc/sendVideo/?entID='+entID + '&entTitle=' + entTitle
		} else {
			var wSendVideo = window.open('/svc/sendVideo/?entID='+entID + '&entTitle=' + entTitle, '_blank');
			wSendVideo.focus();
		}
	} catch (error) { alert('Δεν είναι δυνατή η αποστολή της είδησης. Ελέγξτε τις ρυθμίσεις scrpting του browser σας και δοκιμάστε ξανά');}
}
function doSuggestVideo(iMode){
	try {
		if (iMode==1){
			document.location.href = '/svc/sendVideo/suggest.asp'
		} else {
			var wSendVideo = window.open('/svc/sendVideo/suggest.asp');
			wSendVideo.focus();
		}
	} catch (error) { alert('Δεν είναι δυνατή η αποστολή της είδησης. Ελέγξτε τις ρυθμίσεις scrpting του browser σας και δοκιμάστε ξανά');}
}

function doSaveArticle(entID, vortalID){
	try {
	document.location.href = '/svc/my/save.asp?entID='+entID + '&vortalID=' + vortalID
	} catch (error) { alert('Δεν είναι δυνατή η αποθήκευση της είδησης. Ελέγξτε τις ρυθμίσεις scrpting του browser σας και δοκιμάστε ξανά');}
}
function doSetFontBigger(){
	var iCurSize = parseInt(document.getElementById("articleBody").style.fontSize)
	if (isNaN(iCurSize)) {iCurSize = 11}
	document.getElementById("articleBody").style.fontSize = iCurSize + 1
}
function doSetFontSmaller(){
	var iCurSize = parseInt(document.getElementById("articleBody").style.fontSize)
	if (isNaN(iCurSize)) {iCurSize = 11}
	document.getElementById("articleBody").style.fontSize = iCurSize - 1
}
function doSetFont(iSize){
	document.getElementById("articleBody").style.fontSize = iSize
}
function fSeeGame(sURL, oElement){
	if (sURL!=''){
		window.open(sURL);
		try{oElement.selectedIndex=0} catch (error){}
	}
}
//SERVICES
function DoVote(){
	for (var j=0;j<frmVote.iChoiseID.length;j++){if (frmVote.iChoiseID[j].checked) {frmVote.action='/ast/inc/manageVote.asp'; frmVote.submit(); return; }}	
	alert('Είναι απαραίτητο να επιλέξετε μία απάντηση από τη λίστα για να μπορέσετε να ψηφίσετε.')
}

function submitContact(iLanguageID){
	document.getElementById('txtFullName').value = Trim(document.getElementById('txtFullName').value)
	document.getElementById('txtEmail').value = Trim(document.getElementById('txtEmail').value)
	document.getElementById('txtAddress').value = Trim(document.getElementById('txtAddress').value)
	document.getElementById('txtPhone').value = Trim(document.getElementById('txtPhone').value)
	document.getElementById('txtMessage').value = Trim(document.getElementById('txtMessage').value)
	if (document.getElementById('selCategory').value=='') { alert('Παρακαλούμε επιλέξτε το θέμα που σας ενδιαφέρει.'); document.getElementById('selCategory').focus(); return}
	if (document.getElementById('txtFullName').value=='') {alert('Παρακαλούμε συμπληρώστε το όνομά σας.'); document.getElementById('txtFullName').focus();	return;}
	if (document.getElementById('txtEmail').value!='') { if (!blnValidEmail(document.getElementById('txtEmail').value)) {alert('Το e-mail σας δεν είναι σωστό.'); document.getElementById('txtEmail').focus(); return}	}
	document.getElementById('btnSubmit').disabled=true;
	document.getElementById('frmMain').submit()
	//alert('Contact is currently not available. Please try again later.')
}

function VirtualReplays(){
	try {
	var iTop = (screen.height-998)/2
	var iLeft = (screen.width-820)/2	
	window.open('/eve/euro2008/VirtualReplay/index.asp', '_blank', 'top=' + iTop + ', left=' + iLeft + ', width=998, height=820, status=no,  scrollbars=yes, resizable=yes, location=no')
	} catch (error) { alert('Δεν είναι δυνατή η εμφάνιση του Virtual Replays. Ελέγξτε τις ρυθμίσεις scrpting του browser σας και δοκιμάστε ξανά');}
}

function wDPGR(){
	try {
	var iTop = (screen.height-500)/2
	var iLeft = (screen.width-800)/2	
	window.open('/svc/photoWall/', '_blank', 'top=' + iTop + ', left=' + iLeft + ', width=800, height=500, status=no,  scrollbars=no, resizable=no, location=no')
	} catch (error) { alert('Δεν είναι δυνατή η εμφάνιση του παράθυρου. Ελέγξτε τις ρυθμίσεις scrpting του browser σας και δοκιμάστε ξανά');}
}
function photoWall(){
	try {
	var iTop = (screen.height-500)/2
	var iLeft = (screen.width-800)/2	
	window.open('/svc/photoWall/', '_blank', 'top=' + iTop + ', left=' + iLeft + ', width=800, height=500, status=no,  scrollbars=no, resizable=no, location=no')
	} catch (error) { alert('Δεν είναι δυνατή η εμφάνιση του παράθυρου. Ελέγξτε τις ρυθμίσεις scrpting του browser σας και δοκιμάστε ξανά');}
}

//PHOTO STORY
function wPhotoStory_prev(sURL){
	try {
	if ( sURL.indexOf('?', 1)<1) {sURL = sURL + '?tp=pu'} else {sURL = sURL + '&tp=pu'}
	var iTop = (screen.height-780)/2
	var iLeft = (screen.width-550)/2	
	window.open(sURL, '_blank', 'top=' + iTop + ', left=' + iLeft + ', width=780, height=550, scrollbars=no, location=no')
	} catch (error) { alert('Δεν είναι δυνατή η εμφάνιση του φωτορεπορτάζ. Ελέγξτε τις ρυθμίσεις scrpting του browser σας και δοκιμάστε ξανά');}
}

function wPhotoStory(sURL){
	try {
	if ( sURL.indexOf('?', 1)<1) {sURL = sURL + '?tp=pu'} else {sURL = sURL + '&tp=pu'}
	var iTop = (screen.height-575)/2
	var iLeft = (screen.width-860)/2	
	window.open(sURL, '_blank', 'top=' + iTop + ', left=' + iLeft + ', width=860, height=575, scrollbars=no, location=no')
	} catch (error) { alert('Δεν είναι δυνατή η εμφάνιση του φωτορεπορτάζ. Ελέγξτε τις ρυθμίσεις scrpting του browser σας και δοκιμάστε ξανά');}
}

function wVIDEO(sURL){
	try {
	var iTop = (screen.height-650)/2
	var iLeft = (screen.width-780)/2	
	window.open(sURL, '_blank', 'top=' + iTop + ', left=' + iLeft + ', width=780, height=650, scrollbars=no, location=no')
	} catch (error) { alert('Δεν είναι δυνατή η εμφάνιση του video. Ελέγξτε τις ρυθμίσεις scrpting του browser σας και δοκιμάστε ξανά');}
}
//NPC
function wCover(dtm, cid){
	try {
	var iWidth	= 820;
		if (iWidth>screen.availWidth) {iWidth	= screen.availWidth-10}
	var iHeight = 1000
		if (iHeight>screen.availHeight) {iHeight	= screen.availHeight-25}
	var iTop	= (screen.availHeight-iHeight)/2
		if (iTop<50) {iTop = 0}
	var iLeft	= (screen.availWidth-iWidth)/2
		if (iLeft<50) {iLeft = 1}
	var wnpCov = window.open('/svc/npc/cover.asp?dtmDate=' + dtm + '&cid=' + cid, 'npCover', 'top=' + iTop + ', left=' + iLeft + ', width=' + iWidth + ', height=' + iHeight + ', location=no, scrollbars=yes')
	wnpCov.focus();
	} catch (error) { 
			window.location.href='/svc/npc/cover.asp?dtmDate=' + dtm + '&cid=' + cid;
			//alert('Δεν είναι δυνατή η εμφάνιση της σελίδας. Ελέγξτε τις ρυθμίσεις scrpting του browser σας και δοκιμάστε ξανά');
	}
}

function wCoverNew(dtm, cid){
	try {
	var iWidth	= 820;
		if (iWidth>screen.availWidth) {iWidth	= screen.availWidth-10}
	var iHeight = 1000
		if (iHeight>screen.availHeight) {iHeight	= screen.availHeight-25}
	var iTop	= (screen.availHeight-iHeight)/2
		if (iTop<50) {iTop = 0}
	var iLeft	= (screen.availWidth-iWidth)/2
		if (iLeft<50) {iLeft = 1}
	var wnpCov = window.open('/svc/npc/coverNew.asp?dtmDate=' + dtm + '&cid=' + cid, 'npCover', 'top=' + iTop + ', left=' + iLeft + ', width=' + iWidth + ', height=' + iHeight + ', location=no, scrollbars=yes')
	wnpCov.focus();
	} catch (error) { 
			window.location.href='/svc/npc/cover.asp?dtmDate=' + dtm + '&cid=' + cid;
			//alert('Δεν είναι δυνατή η εμφάνιση της σελίδας. Ελέγξτε τις ρυθμίσεις scrpting του browser σας και δοκιμάστε ξανά');
	}
}

function zoom(dtm, cid, sid){
	try {
	var iWidth	= 820;
		if (iWidth>screen.availWidth) {iWidth	= screen.availWidth-10}
	var iHeight = 1000
		if (iHeight>screen.availHeight) {iHeight	= screen.availHeight-25}
	var iTop	= (screen.availHeight-iHeight)/2
		if (iTop<50) {iTop = 0}
	var iLeft	= (screen.availWidth-iWidth)/2
		if (iLeft<50) {iLeft = 1}
	var wnpCov = window.open('zoom.asp?dtmDate=' + dtm + '&cid=' + cid + '&sid=' + sid, 'npCover', 'top=' + iTop + ', left=' + iLeft + ', width=' + iWidth + ', height=' + iHeight + ', location=no, scrollbars=yes')
	wnpCov.focus();
	} catch (error) { 
			window.location.href='zoom.asp?dtmDate=' + dtm + '&cid=' + cid + '&sid=' + sid;
	}
}

function npcSetDate(iSetCID){
	var sSetDate = document.getElementById("dtmCstDate").value
	document.location.href='?dtmDate=' + sSetDate + '&cid=' + iSetCID;
}
function npcSetCover(iExistID){
	var iSetCID  = document.getElementById("iSetCID").value;
	if (iExistID==iSetCID){return}
	if (iSetCID.length<1){return}
	var sSetDate = document.getElementById("dtmCstDate").value;
	document.location.href='?dtmDate=' + sSetDate + '&cid=' + iSetCID;
}

	function wLive24Pup(sURL){
	try {
	var iTop = (screen.height-520)/2
	var iLeft = (screen.width-800)/2	
	window.open(sURL, '_blank', 'top=' + iTop + ', left=' + iLeft + ', width=800, height=520, scrollbars=no, location=no')
	} catch (error) { alert('Δεν είναι δυνατή η εμφάνιση του Live24. Ελέγξτε τις ρυθμίσεις scrpting του browser σας και δοκιμάστε ξανά');}
}
function wLive24PupSimple(sDate, iEvent){
	wLive24Pup('/live24.asp?act=eve&ldt=' + sDate + '&eve=' + iEvent + '');
}
function gotoGrTeam(objMe){
	if (objMe.value!=''){
		document.location.href = '/category.asp?catid=' + objMe.options[objMe.selectedIndex].value;
	}
}
function selBlog(i){
	if (i==1){
		document.getElementById('bloggerBOX_1').style.display='inline'
		document.getElementById('bloggerBOX_2').style.display='none'

		document.getElementById('bloggerFooter_1').style.display='inline'
		document.getElementById('bloggerFooter_2').style.display='none'
		
	} else {
		document.getElementById('bloggerBOX_1').style.display='none'
		document.getElementById('bloggerBOX_2').style.display='inline'

		document.getElementById('bloggerFooter_1').style.display='none'
		document.getElementById('bloggerFooter_2').style.display='inline'

	}
	document.getElementById('prmRBotBord').style.backgroundImage='url(/v1/images/blogMenu_' + i + '.gif)';
}
function displayMode(i){
	if (i==1){
		document.getElementById('newsList_1').style.display='inline'
		document.getElementById('newsList_2').style.display='none'
		document.getElementById('newsList_3').style.display='none'
	} else if (i==2){
		document.getElementById('newsList_1').style.display='none'
		document.getElementById('newsList_2').style.display='inline'
		document.getElementById('newsList_3').style.display='none'
	} else {
		document.getElementById('newsList_1').style.display='none'
		document.getElementById('newsList_2').style.display='none'
		document.getElementById('newsList_3').style.display='inline'
	}
	document.getElementById('prmRTopBord').style.backgroundImage='url(/v1/images/menu_' + i + '.gif)';
}
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var enableanchorlink=0 //Enable or disable the anchor link when clicked on? (1=e, 0=d)
var hidemenu_onclick=1 //hide menu when user clicks within menu? (1=yes, 0=no)

/////No further editting needed

var ie5=document.all
var ns6=document.getElementById&&!document.all

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}

function showhide(obj, e, visible, hidden){
if (ie5||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie5 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie5 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie5 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function dropdownmenu(obj, e, dropmenuID){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
if (typeof dropmenuobj!="undefined") //hide previous menu
dropmenuobj.style.visibility="hidden"
clearhidemenu()
if (ie5||ns6){
obj.onmouseout=delayhidemenu
dropmenuobj=document.getElementById(dropmenuID)
if (hidemenu_onclick) dropmenuobj.onclick=function(){dropmenuobj.style.visibility='hidden'}
dropmenuobj.onmouseover=clearhidemenu
dropmenuobj.onmouseout=ie5? function(){ dynamichide(event)} : function(event){ dynamichide(event)}
showhide(dropmenuobj.style, e, "visible", "hidden")
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}
return clickreturnvalue()
}

function clickreturnvalue(){
if ((ie5||ns6) && !enableanchorlink) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie5&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function delayhidemenu(){
delayhide=setTimeout("dropmenuobj.style.visibility='hidden'",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

function doSearchVideos(){
	var sLink = '';
	sLink = '?f=' + document.getElementById('vdDtmFrom').value + '&t=' + document.getElementById('vdDtmTo').value + '&catId=' + document.getElementById('vdCatId').value;
	document.location.href=sLink;
}

function suggestVideo(){
	document.frmMain.txtFullName.value = Trim(document.frmMain.txtFullName.value)
	document.frmMain.txtEmail.value = Trim(document.frmMain.txtEmail.value)
	document.frmMain.txtAddress.value = Trim(document.frmMain.txtAddress.value)
	document.frmMain.txtMessage.value = Trim(document.frmMain.txtMessage.value)
	if (document.frmMain.txtFullName.value=='') {alert('Παρακαλούμε συμπληρώστε το όνομά σας.'); document.frmMain.txtFullName.focus();	return;}
	if (document.frmMain.txtEmail.value!='') { if (!blnValidEmail(document.frmMain.txtEmail.value)) {alert('Το e-mail σας δεν είναι σωστό.'); document.frmMain.txtEmail.focus(); return}	}
	if (document.frmMain.txtAddress.value=='') {alert('Παρακαλούμε συμπληρώστε το Link του Video.'); document.frmMain.txtAddress.focus();	return;}
	document.frmMain.btnSubmit.disabled=true;
	document.frmMain.submit()
}

function wRADIO24Evocation(){
	var wListenRADIO24;
			wListenRADIO24 = window.open('http://www.radio24.gr/play.asp', 'wListenRADIO24', 'left=100, top=100, width=819, height=431')
			wListenRADIO24.focus();
}

function wListenRADIO24(){
	var wListenRADIO24;
			wListenRADIO24 = window.open('http://www.radio24.gr/play.asp', 'wListenRADIO24', 'left=100, top=100, width=819, height=431')
			wListenRADIO24.focus();
}

function fbs_click() {
		u=location.href;
		t=document.title;
		window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');
		return false;
}



function viewArticle(sEntId){

	sEntId = sEntId.toString();
	document.location.href = 'html/ent/' + sEntId.substr(sEntId.length-3, 3) + '/ent.' + sEntId + '.asp';
}

var iCurrentTvsLine=1;
function tvsMoveNext(iMaxItems){if (iCurrentTvsLine<iMaxItems) {tvsShow(iCurrentTvsLine + 1, iMaxItems)}}
function tvsMoveBack(iMaxItems){if (iCurrentTvsLine>1) {tvsShow(iCurrentTvsLine - 1, iMaxItems)}}
function tvsShow(iCtvL, iMI){
	iCurrentTvsLine = iCtvL;
	for (iCtvL=1;iCtvL<= iMI;iCtvL++) {if (iCtvL!=iCurrentTvsLine) {document.getElementById('tvchln' + iCtvL).style.display='none';}}
	document.getElementById('tvchln' + iCurrentTvsLine).style.display='block';
	document.getElementById('tvchlnsInd').innerHTML = iCurrentTvsLine + ' / ' + iMI;
}
function zoomD(iSetCID, sId){
	var sSetDate = document.getElementById("dtmCstDate").value
	document.location.href='?dtmDate=' + sSetDate + '&cid=' + iSetCID + '&sid=' + sId;
}
function zoomP(iExistID, sId){
	var iSetCID  = document.getElementById("iSetCID").value;
	if (iExistID==iSetCID){return}
	if (iSetCID.length<1){return}
	var sSetDate = document.getElementById("dtmCstDate").value;
	document.location.href='?dtmDate=' + sSetDate + '&cid=' + iSetCID + '&sid=' + sId;
}