function getCalendarDate()
{
try {
//FF, Opera, Safari, Chrome
xmlHttp = new XMLHttpRequest();
}
catch (err1) {
//IE
try {
xmlHttp = new ActiveXObject('Msxml2.XMLHTTP');
}
catch (err2) {
try {
xmlHttp = new ActiveXObject('Microsoft.XMLHTTP');
}
catch (eerr3) {
//AJAX not supported, use CPU time.
alert("AJAX not supported");
}
}
}
xmlHttp.open('HEAD',window.location.href.toString(),false);
xmlHttp.setRequestHeader("Content-Type", "text/html");
xmlHttp.send('');
var st1= xmlHttp.getResponseHeader("Date");
var now1 = new Date();
var months = new Array(13);
months[0] = "Януари";
months[1] = "Февруари";
months[2] = "Март";
months[3] = "Април";
months[4] = "Май";
months[5] = "Юни";
months[6] = "Юли";
months[7] = "Август";
months[8] = "Септември";
months[9] = "Октомври";
months[10] = "Ноември";
months[11] = "Декември";
var weekdays = new Array(7);
weekdays[0] = "Неделя";
weekdays[1] = "Понеделник";
weekdays[2] = "Вторник";
weekdays[3] = "Сряда";
weekdays[4] = "Четвъртък";
weekdays[5] = "Петък";
weekdays[6] = "Събота";
var weekday_value = now1.getDay();
var weekdays = weekdays[weekday_value];
var monthnumber = now1.getMonth();
var monthname = months[monthnumber];
var monthday = now1.getDate();
var year = now1.getYear();
if(year < 2000) {
year = year + 1900;
}
var dateString =
'
' + weekdays +
'
' +
monthday +
'
' +
monthname +
' ' +
year + '
';
return dateString;
} // function getCalendarDate()
function draw_clock(width, fillColor, strokeColor, pinColor, hourHandColor, minuteHandColor, secondHandColor)
{
canvas = Raphael("clock_id",width, width);
var clock = canvas.circle(width*.5,width*.5, width * .475);
clock.attr({"fill":fillColor,"stroke":strokeColor,"stroke-width":(width*.015)})
var hour_sign;
for(i=0;i<12;i++){
var start_x = width*.5+Math.round((width*.4)*Math.cos(30*i*Math.PI/180));
var start_y = width*.5+Math.round((width*.4)*Math.sin(30*i*Math.PI/180));
var end_x = width*.5+Math.round((width*.45)*Math.cos(30*i*Math.PI/180));
var end_y = width*.5+Math.round((width*.45)*Math.sin(30*i*Math.PI/180));
hour_sign = canvas.path("M"+start_x+" "+start_y+"L"+end_x+" "+end_y);
}
hour_hand = canvas.path("M" + width*.5 + " " + width*.5 + "L" + width*.5 + " " + (width*.25) + "");
hour_hand.attr({stroke: hourHandColor, "stroke-width": width*.03});
minute_hand = canvas.path("M" + width*.5 + " " + width*.5 + "L" + width*.5 + " " + (width*.2) + "");
minute_hand.attr({stroke: minuteHandColor, "stroke-width": width*.02});
second_hand = canvas.path("M" + width*.5 + " " + (width*.55) + "L" + width*.5 + " " + (width*.125) + "");
second_hand.attr({stroke: secondHandColor, "stroke-width": width*.01});
var pin = canvas.circle(width*.5, width*.5, width*.025);
pin.attr("fill", pinColor);
update_clock(width)
setInterval("update_clock("+width+")",1000);
}
var xmlHttp;
function update_clock(width){
try {
//FF, Opera, Safari, Chrome
xmlHttp = new XMLHttpRequest();
}
catch (err1) {
//IE
try {
xmlHttp = new ActiveXObject('Msxml2.XMLHTTP');
}
catch (err2) {
try {
xmlHttp = new ActiveXObject('Microsoft.XMLHTTP');
}
catch (eerr3) {
//AJAX not supported, use CPU time.
alert("AJAX not supported");
}
}
}
xmlHttp.open('HEAD',window.location.href.toString(),false);
xmlHttp.setRequestHeader("Content-Type", "text/html");
xmlHttp.send('');
var st = xmlHttp.getResponseHeader("Date");
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds();
hour_hand.rotate(30*hours+(minutes/2.5), width/2, width/2);
minute_hand.rotate(6*minutes, width/2, width/2);
second_hand.rotate(6*seconds, width/2, width/2);
}
function ahref(lnk,bl) {
if (bl=="_blank")
window.open(lnk);
else
window.location=lnk;
}
var persistmenu="yes"
var persisttype="sitewide"
if (document.getElementById){
document.write('\n')
}
var pics1 = new Array("../img/menu_about.jpg", "../img/menu_about_hover.jpg", "../img/menu_product.jpg","../img/menu_product_hover.jpg","../img/menu_portfolio.jpg","../img/menu_portfolio_hover.jpg","../img/menu_contact.jpg","../img/menu_contact_hover.jpg");
var preload1 = new Array();
for(var i=1; i