<!--
var Favoriler = {

        id : "shortcuts" ,
        rawCuts : "" ,
        extantCuts : "" ,
        name : "" ,
        source : "" ,
        cutsArray : []

}
Favoriler.add = function(name,source) {
 if (document.layers || document.all || document.getElementById) {
        this.rawCuts = unescape(document.cookie);
        if (this.rawCuts.indexOf("favoriler")>-1) {
                var start = this.rawCuts.indexOf("favoriler")+10;
                var end = (this.rawCuts.indexOf(";",start)>-1) ? this.rawCuts.indexOf(";",start) : this.rawCuts.length;
                this.extantCuts = this.rawCuts.substring(start,end);
                if (this.extantCuts.indexOf(name)>-1) return;
                else {
                        document.cookie = "favoriler=" + this.extantCuts + "#" + name + "@" + source + "; expires=Tue, 28 Dec 2010 00:00:00; path=/;"
                }
        } else {
                document.cookie = "favoriler=" + name + "@" + source + "; expires=Tue, 28 Dec 2070 00:00:00; path=/;"
        }
        this.compile();
 }
}
Favoriler.valores = function() {
this.rawCuts = unescape(document.cookie);
        if (this.rawCuts.indexOf("favoriler")>-1) {
                var start = this.rawCuts.indexOf("favoriler")+10;
                var end = (this.rawCuts.indexOf(";",start)>-1) ? this.rawCuts.indexOf(";",start) : this.rawCuts.length;
                this.extantCuts = this.rawCuts.substring(start,end)
                this.cutsArray = this.extantCuts.split("#")
                var temp = "";
                for (i=0;i<this.cutsArray.length;i++) {
                        var name = this.cutsArray[i].substring(0,this.cutsArray[i].indexOf("@"))
                        temp +=  "##" + name;
                }
                return temp;
}
}
Favoriler.compile = function() {
  if (document.layers || document.all || document.getElementById) {
        this.rawCuts = unescape(document.cookie);
        if (this.rawCuts.indexOf("favoriler")>-1) {
                var start = this.rawCuts.indexOf("favoriler")+10;
                var end = (this.rawCuts.indexOf(";",start)>-1) ? this.rawCuts.indexOf(";",start) : this.rawCuts.length;
                this.extantCuts = this.rawCuts.substring(start,end)
                this.cutsArray = this.extantCuts.split("#")
                var temp = ""
                for (i=0;i<this.cutsArray.length;i++) {
                        var name = this.cutsArray[i].substring(0,this.cutsArray[i].indexOf("@"))
                        var src = this.cutsArray[i].substring(this.cutsArray[i].indexOf("@")+1,this.cutsArray[i].length)
                        temp += "<img src='images/sag_ok.gif' width='9' height='5' hspace='3' align='absmiddle'><font class='ana_menu'><a href='" + src + "'>" + name + "</a></font><br>";
                }
                this.write(temp);
        } else return
}
}

Favoriler.write = function(str) {
        if (document.layers) {
                document.layers[this.id].document.open();
                document.layers[this.id].document.write(str);
                document.layers[this.id].document.close();
        } else {
                document.getElementById(this.id).innerHTML = str
        }
}
Favoriler.clear = function() {
        document.cookie = "favoriler=; expires=Thu, 01 Jan 1970 00:00:01; path=/;";
        location.reload();
}

function init() {
        Favoriler.compile();
}
//-->
