var _time=new _time();
function _time(){
var self = this;
this.d = 24;
this.cb=function(t){
var count=0;
var time = this.setClock(t,this.d);
var classes = document.querySelectorAll('._time_link');
if(classes.length==t.length){
for(var i=0;i12) ? next.getHours() -12 : ((next.getHours() == 0) ? 12 : next.getHours());}
hours = ((hours < 10) ? "0" + hours : hours);
var clock = hours + ":" + ((next.getMinutes() < 10) ? "0" + next.getMinutes() : next.getMinutes()) + ":" + ((next.getSeconds() < 10) ? "0" + next.getSeconds() : next.getSeconds());
clock = (d==12) ? ((next.getHours() >= 12) ? clock+"م" : clock+"ص") : clock;
document.getElementById(Element).innerHTML = clock;
arrayTimeZone[i][Element] = nowDate;
};
}
return arrayTimeZone;
}
this.selectTime=function(val){
clearInterval(this.interval);
this.d=val;
this.start(this.timeZone);
}
}