/*

/*  Tejat GUI~ 
 *  File: js.js
 *  Abstract: GENERAL Javascript for tejat.de
 *
 *  Version: 1.0.1
 *  © Team Tejat Hamburg 2006-2008  http://www.tejat.de	
 *
 */

 /* -------------------------------------------*/


/* default tejat window status */
   defaultStatus=('  tejat.de  ');

/* Preload some images */ 

if (document.images)
        {
            pre = new Image();
            pre_image_url = new Array();
            // insert your preloads here
            var siteURL = "http://tejat.de/wp-content/themes/tejat/";
            
            pre_image_url[0] = siteURL+'images/navigation/sub_nav_left.png';
            pre_image_url[1] = siteURL+'images/navigation/sub_nav_right.png';
            pre_image_url[2] = siteURL+'images/navigation/sub_nav_r.png';
            pre_image_url[3] = siteURL+'images/navigation/sub_nav_divider.png';
            pre_image_url[4] = siteURL+'images/tejat.png';
            pre_image_url[5] = siteURL+'slider/images/slider_bg.jpg';
            pre_image_url[6] = siteURL+'images/_email.png';
            pre_image_url[7] = siteURL+'images/_hilfe.png';
            pre_image_url[8] = siteURL+'images/_home.png';
            pre_image_url[9] = siteURL+'images/_impressum.png';
            pre_image_url[10]= siteURL+'images/_kontakt.png';
            pre_image_url[11]= siteURL+'images/_serverstatus.png';
            pre_image_url[12]= siteURL+'images/_tejat.png';
            pre_image_url[13]= siteURL+'images/Mail.png';
            pre_image_url[14]= siteURL+'images/info.png';
            pre_image_url[15]= siteURL+'slider/images/ajax-loader.gif';
            var i = 0;
            for(i=0; i<= 15; i++) 
            pre.src = pre_image_url[i];
            }
      
/* prevent draging*/
 function noPic()
    {
    document.getElementById("the_logo").onselectstart   = noSelect;
    document.getElementById("the_logo").ondragstart     = noSelect;
    document.getElementById("the_logo").oncontextmenu   = noSelect;

    document.getElementById("login_image").oncontextmenu   = noSelect;
    document.getElementById("login_image").onselectstart   = noSelect;
    document.getElementById("login_image").ondragstart     = noSelect;

    document.getElementById("login_text").oncontextmenu   = noSelect;
    document.getElementById("login_text").onselectstart   = noSelect;
    document.getElementById("login_text").ondragstart     = noSelect;

}
      
      
            
/*
    Disable Select Text
    THANX TO: Disable select-text script- © Dynamic Drive (www.dynamicdrive.com)
    Visit http://www.dynamicdrive.com/ for full source code
*/

//form tags to omit in NS6+:
/*var omitformtags=["input", "textarea", "select"]

omitformtags=omitformtags.join("|")

function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}

function reEnable(){
return true
}

if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
*/

/* Some popups we might need */

// Mail Window
function webmail(popup0) {
    OpenWin = this.open(popup0, "CtrlWindow0", "toolbar=no,menubar=no,location=no,scrollbars=yes,resize=no, status=yes, left=10,top=10, width=1000,height=650");
}


// Mail Window
function help(popup9) {
    OpenWin = this.open(popup9, "CtrlWindow9", "toolbar=no,menubar=no,location=no,scrollbars=yes,resize=no, status=yes, width=740,height=470");
}

//POPUPS for https://prior.tejat.de/statistik/
function queues(popup1) {
    OpenWin = this.wind(popup1, "CtrlWindow1", "toolbar=no,menubar=no,location=no,scrollbars=yes,resize=yes, status=yes, width=930,height=417");
}

function mail(popup2) {
    OpenWin = this.open(popup2, "CtrlWindow2", "toolbar=no,menubar=no,location=no,scrollbars=yes,resize=yes, status=yes, width=660,height=600");
}

function courier(popup3) {
    OpenWin = this.open(popup3, "CtrlWindow3", "toolbar=no,menubar=no,location=no,scrollbars=yes,resize=yes, status=yes, width=660,height=610");
}

function amavis(popup4) {
    OpenWin = this.open(popup4, "CtrlWindow4", "toolbar=no,menubar=no,location=no,scrollbars=yes,resize=yes, status=yes, width=660,height=560");
}

//POPUPS for https://tejat.de/help/mail-account_xx.html
function mailhelp_en(popup6) {
    OpenWin = this.open(popup6, "CtrlWindow6", "toolbar=no,menubar=no,location=no,scrollbars=yes,resize=yes, status=yes, width=470,height=700");
}

function mailhelp_de(popup7) {
    OpenWin = this.open(popup7, "CtrlWindow7", "toolbar=no,menubar=no,location=no,scrollbars=yes,resize=yes, status=yes, width=470,height=700");
}

function mail_mov(popup8) {
    OpenWin = this.open(popup8, "CtrlWindow8", "toolbar=no,menubar=no,location=no,scrollbars=yes,resize=yes, status=yes, width=450,height=300");
}
// Global Serverstatus Window Popup
function serverstatus(popup9) {
    OpenWin = this.open(popup9, "Tejat-Serverstatus", "toolbar=no,menubar=no,location=no,scrollbars=yes,resize=yes, status=no, left=0,top=0, width=1000, height=650");
}


