﻿var x 
var y
var i = 0
function mouseMove(e) {
try {
if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
		x =  event.x+document.documentElement.scrollLeft ; 
		y =  event.y+document.documentElement.scrollTop ; 
	} else {
	
		x = e.pageX ;
		y = e.pageY ;
	}
    } catch(ex) {}	
}
document.onmousemove=mouseMove;
//---------------------------------------------------------------------//
function showAgenda(id){
    var AgendaDiv = document.getElementById('AgendaDiv');
    if  (AgendaDiv.style.display != 'block'){
        iframeHTML='\<iframe id="Agendawin" scrolling="0" allowtransparency="true" src="" frameborder="0" style="';
        iframeHTML+='border:0px;';
        iframeHTML+='width:100%;';
        iframeHTML+='height:310px;';
        iframeHTML+='"><\/iframe>';     
        AgendaDiv.innerHTML =  iframeHTML;   
        AgendaDiv.style.display = 'block' ;
        AgendaDiv.style.top = (y-100) + 'px' ;
        
        //resizeParent
        if (x>=(document.body.clientWidth-200)){
            AgendaDiv.style.left= (x-130) + 'px';
        }
        else {
            AgendaDiv.style.left= (x-150) + 'px';
        }
        document.getElementById('Agendawin').src = '/15,' + id + ',00,00.aspx';
    }
    else {
        AgendaDiv.style.display = 'none';
        document.getElementById('Agendawin').src = '';    
    }
}

function hideme(){
    var AgendaDiv = document.getElementById('AgendaDiv');
    AgendaDiv.style.display = 'none';
    document.getElementById('Agendawin').src = ''
}

function swf(w,h,source,fvars){
        document.write('<object ')
        document.write('classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="loader"')
        document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"" ')
        document.write('width="'+ w +'"')
        document.write('height="'+ h +'">')
        document.write('<param name="movie" value="'+ source +'" />')
        document.write('<param name="FlashVars" value="'+ fvars +'">')
        document.write('<param name="wmode" value="transparent" />')
        document.write('<param name="quality" value="high" />')
        document.write('<param name="menu" value="false" />')
        document.write('<embed wmode="transparent" ')
        document.write('src="'+ source +'" quality="high" ')
        document.write('width="'+ w +'" menu="no" ')
        document.write('height="'+ h +'" ')
        document.write('allowScriptAccess="sameDomain" FlashVars="'+ fvars +'" ')
        document.write('type="application/x-shockwave-flash" ')
        document.write('pluginspage="http://www.macromedia.com/go/getflashplayer" />')
        document.write('</object>')
}


/* Open Oasis window */
var popup = null;
function openCustomPopup(location, height, width) {
       if (popup != null) popup.close();

        popup = openWindowA(location, "popup",width, height,"no", "no", "no", "no");
        popup.focus();
}

function openWindowA(destination, title, width, height, wantScrollbars, wantStatusBar, wantLocation, isResizable) {
        var features =  "alwaysRaised=yes" +
                        ",location=" + wantLocation +
                        ",scrollbars=" + wantScrollbars +
                        ",status=" + wantStatusBar +
                        ",resizable=" + isResizable +
                        ",width=" + width +
                        ",height=" + height +
                        ",left=" + (screen.width - width) / 2 +
                        ",top=" + (screen.height - height) / 2;
        return window.open(destination, title, features);
}
function playlist(w,h,flash,flashvars){
        var cd;
        cd = ('<object ')
        cd +=('classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ')
        cd +=('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" ')
        cd +=('width="'+ w +'"')
        cd +=('height="'+ h +'">')
        cd +=('<param name="movie" value="'+ flash +'" />')
        cd +=('<param name="FlashVars" value="'+ flashvars +'">')
        cd +=('<param name="wmode" value="transparent" />')
        cd +=('<param name="menu" value="false" />')
        cd +=('<embed wmode="transparent" ')
        cd +=('src="'+ flash +'" quality="high" ')
        cd +=('width="'+ w +'" menu="no" ')
        cd +=('height="'+ h +'" ')
        cd +=('flashvars="'+ flashvars +'"')
        cd +=('allowScriptAccess="sameDomain" ')
        cd +=('type="application/x-shockwave-flash" ')
        cd +=('pluginspage="http://www.macromedia.com/go/getflashplayer" />')
        cd +=('</object>')
        
        document.getElementById("latestrightcd").innerHTML = cd;
}
function openPress(id){
    var objLink = document.getElementById(id);
    Lightbox.prototype.start(objLink);
}

function showSikoFantisContact(){
    var SikoDiv = document.getElementById('SikoContactDiv');
    if  (SikoDiv.style.display != 'block'){
        iframeHTML='\<iframe id="SikoContactwin" scrolling="0" allowtransparency="true" src="" frameborder="0" style="';
        iframeHTML+='border:0px;';
        iframeHTML+='width:100%;';
        iframeHTML+='height:310px;';
        iframeHTML+='"><\/iframe>';     
        SikoDiv.innerHTML =  iframeHTML;   
        SikoDiv.style.display = 'block' ;
        SikoDiv.style.top = (y-20) + 'px' ;
        
        //resizeParent
        if (x>=(document.body.clientWidth-200)){
            SikoDiv.style.left= (x-250) + 'px';
        }
        else {
            SikoDiv.style.left= (x-250) + 'px';
        }
        document.getElementById('SikoContactwin').src = '/19,00,00,00.aspx';
    }
    else {
        SikoDiv.style.display = 'none';
        document.getElementById('SikoContactwin').src = '';    
    }
}

function hideSikofantisContact(){
    var AgendaDiv = document.getElementById('SikoContactDiv');
    SikoContactDiv.style.display = 'none';
    document.getElementById('SikoContactwin').src = ''
}

function openPlayer(){
    var win;
    win = window.open("/oasis98.html", "mplayer", "width=320,height=460,personalbar=yes,locationbar=yes,status=no,titlebar=no, left=400, top=250, screenX=50,screenY=100");
}