// JavaScript Document
function gologitalk()
{
window.open('http://www.logitalk.com.au','Logitalk');//,'width=500,height=700,top=0,left=100,scrollbars=Yes,location=no,directories=no,status=yes,menubar=no,toolbar=no,resizable=Yes');
}
function elementBlock(element){
document.getElementById(element).style.display = 'none';
}
function elementDisplay(element){
document.getElementById(element).style.display = 'block';
}
function roll_over(img_name, img_src)
{
document[img_name].src = img_src;
}
function NewWindow(mypage, myname, w, h, l, t)
{
LeftPosition =l;
TopPosition =t;
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars=Yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=Yes';
win1=window.open(mypage,myname,settings);
}
function mydownload(downloadaddress)
{
open(downloadaddress);
}
function redirectpage(url)
{
window.location=url;
}
function ChangeClass(cname, obj)
{
obj.className = cname;
obj.style.cursor='hand';
}
function ChangeClass(objectID, classx)
{
document.getElementById(objectID).className=classx;
}
function themouseon(tdid, imgid)
{
document.getElementById(tdid).className='beyazflora2';
document.getElementById(tdid).bgColor='#9ADBE9';
document[imgid].src = '../images/menuok2.gif';
document.getElementById(tdid).style.cursor = 'hand';
}
function themouseout(tdid, imgid)
{
document.getElementById(tdid).className='beyazflora';
document.getElementById(tdid).bgColor='#006799';
document[imgid].src = '../images/menuok.gif';
document.getElementById(tdid).style.cursor = 'default';
}
function initNavigationMenu() {
    $("body")
        .delegate("#p7menubar > li", "mouseenter", expandSubMenu)
        .delegate("#p7menubar > li", "mouseleave", collapseSubMenus)
    ;
}
function expandSubMenu(event) {
    // Reveal selected submenu.
    $("ul", $(this)).show();
}
function collapseSubMenus(event) {
    // Hide all expanded submenus.
    $("#p7menubar").find("ul:visible").hide();
}
$(document).ready(function () {
	initNavigationMenu();
});


