//var i=0;
//
//function blinkinbox(){
//	i++;
//	
//	if (i==1) blinkcolor = "#f1f1f1"
//	if (i==2) blinkcolor = "#F58220"
//	if (document.all) {
//		inbox.style.color=blinkcolor
//	} else {
//		document.getElementById("inbox").style.color = blinkcolor
//	}
//	if (i > 2) i = 0
//	setTimeout('blinkinbox()', 250)
//}
//
//var newmail;
//function checkEmails(aftertime) {
//	var now  = new Date();
//    var timestamp  = now.getDate();
//	
//	var req = null; //erstellen des requests
//	
//	try {
//		req = new XMLHttpRequest();
//	}
//	catch (ms) {
//		try {
//			req = new ActiveXObject("Msxml2.XMLHTTP");
//		} 
//		catch (nonms) {
//			try {
//				req = new ActiveXObject("Microsoft.XMLHTTP");
//			} 
//			catch (failed) {
//				req = null;
//			}
//		}  
//	}
//
//	if (req == null)
//		alert("Error creating request object!");
//  
//	//anfrage erstellen (GET, url ist localhost,
//	//request ist asynchron      
//	req.open("GET", "http://ichwarmitde.h1341006.stratoserver.net/checkmail.php?userid="+userid+"&t="+timestamp, true);
//
//	//Beim abschliessen des request wird diese Funktion ausgeführt
//	req.onreadystatechange = function() {            
//	if ((req.readyState != 4) || (req.status != 200)) {
//    	return false;
//    } 
//				//schreibe die antwort in den div container mit der id inbox2 
//				if(req.responseText>0) {
//					document.getElementById('inbox2').innerHTML = "<strong>" + req.responseText + "</strong>";
//					if(newmail!=1) blinkinbox();
//					newmail=1;
//				}
//	req.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
//	req.send(null);
//	setTimeout('checkEmails(aftertime)',aftertime);
//}

//var weekdays = new Array ('Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag');
//function aktZeit(zeit){
//    var now  = new Date(zeit);
//    var day  = now.getDate();
//    var month= now.getMonth()+1;
//    var year = now.getFullYear();
//    var wday = now.getDay();
//
//	if(year<999) year+=1900;
//    var h=now.getHours();
//    var m=now.getMinutes();
//    var s=now.getSeconds();
//    var Gesamt= ((h<10)?"0":"")+h+((m<10)?":0":":")+m+((s<10)?":0":":")+s+ "<br />"+weekdays[wday]+"<br />"+((day<10)?"0":"")+day+((month<10)?".0":".")+month+"."+year;
//    document.getElementById('Uhr').innerHTML=Gesamt;
//    window.setTimeout("aktZeit("+(zeit+1000)+")",999);
//}

/* AJAX Star Rating v1.0.2, Programming by Ulyses */
/* Updated February 7th, 2007 */

//function $(o) { return((typeof(o)=='object'?o:document).getElementById(o)); }
//function $S(o) { return($(o).style); }
//function agent(v) { return(Math.max(navigator.userAgent.toLowerCase().indexOf(v),0)); }
//function abPos(o) { var o=(typeof(o)=='object'?o:$(o)), z={X:0,Y:0}; while(o!=null) { z.X+=o.offsetLeft; z.Y+=o.offsetTop; 
//
//o=o.offsetParent; }; return(z); }
//function XY(e,v) { var 
//
//o=agent('msie')?{'X':event.clientX+document.body.scrollLeft,'Y':event.clientY+document.body.scrollTop}:{'X':e.pageX,'Y':e.pa
//
//geY}; return(v?o[v]:o); }
//
//var star={
//
//    /* Mouse Events */
//    
//    'cur':function(e,o) { if(star.stop) { star.stop=0;
//
//        document.onmousemove=function(e) { var n=star.num;
//        
//            var p=abPos($('star'+n)), x=XY(e), oX=x.X-p.X, oY=x.Y-p.Y; star.num=o.id.substr(4);
//
//            if(oX<1 || oX>84 || oY<0 || oY>19) { star.stop=1; star.revert(); }
//            
//            else {
//
//                $S('starCur'+n).width=oX+'px';
//                $S('starUser'+n).color='#111';
//                $('starUser'+n).innerHTML=Math.round(oX/84*100)+'%';
//            }
//        };
//    } },
//    'update':function(e,o) { var n=star.num, v=parseInt($('starUser'+n).innerHTML);
//    
//        n=o.id.substr(4); $('starCur'+n).title=v;
//
//        req=new XMLHttpRequest(); req.open('GET','/ajax/gallery_vote.php?vote='+(v/100),false); req.send(null);    
//
//    },
//    'revert':function() { var n=star.num, v=parseInt($('starCur'+n).title);
//    
//        $S('starCur'+n).width=Math.round(v*84/100)+'px';
//        $('starUser'+n).innerHTML=(v>0?Math.round(v)+'%':'');
//        $('starUser'+n).style.color='#888';
//        
//        document.onmousemove='';
//
//    },
//
//    /* Data */
//
//    'stop':1,
//    
//    'num':0
//
//};

