/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
var _max=0;
tl = new textlist(
    "I work with small companies to improve their productivity with softwre.",
    "I worked with with a good team, in Smart Village with small control system.",
    "I realsed small E-Magazine which you can integrate it with PHP forums.",
    "I worked with GPS tracing system for days.",
    "I finished my third product with softCompany Team.",
    "I i finished Azan(\u0627\u0644مؤذن) for linux and other Operating system."
    );

function textlist() {
    _max=textlist.arguments.length;
    for (i=0; i<_max; i++)
        this[i]=textlist.arguments[i];
}
var x = 0; pos = 0;
var l = tl[0].length;
function textticker() {
    document.tickform.tickfield.value =">"+ tl[x].substring(0, pos) + "|";
    if(pos++ == l) {
        pos = 0;       
        setTimeout("textticker()", 2000);       
        if(++x == _max) x = 0;
        l = tl[x].length;
    } else{
        setTimeout("textticker()", 50);
    }

}
var _max2=0;
tl2 = new textlist2(
    "Welcome to My Site",
    "More about me",
    "About my Projects",
    "You can contact me at",
    "Muhammad.hammed@yahoo.com",
    "Muhammad.hammed@gmail.com",""
    );

function textlist2() {
    _max2=textlist2.arguments.length;
    for (i2=0; i2<_max2; i2++)
        this[i2]=textlist2.arguments[i2];
}
var x2 = 0; pos2 = 0;
var l2 = tl2[0].length;
function textticker2() {
    document.getElementById("welcome").innerHTML ="<H1>"+ tl2[x2].substring(0, pos2)+"</H1>";
    if(pos2++ == l2) {
        pos2 = 0;
        setTimeout("textticker2()", 2000);
        if(++x2 == _max2) x2 = 0;
        l2 = tl2[x2].length;
    } else{
        setTimeout("textticker2()", 100);
    }

}
function showHide(id,caller){
    if(document.getElementById(id).className == 'hidden_class'){
        document.getElementById(id).className = '';       
    }else{
        document.getElementById(id).className = 'hidden_class';
        caller.style="height:30px;";
    }
}
function startPage(){
    textticker();
    textticker2();
    show('home.php');
/* alert("welcome To My site")*/       
}
var fullscr = 0;
var beforeFullStyle;
function full(id){
    
    if(fullscr==0){
        fullscr=1;
        beforeFullStyle= document.getElementById(id).style;
        document.getElementById(id).className = "full";
    }else{
        fullscr=0;
        document.getElementById(id).style=beforeFullStyle;
    }
}

