




//######################################################################################
// Author: ricocheting.com
// For: public release (freeware)
// Date: 4/24/2003 (update: 5/24/2006)
// Description: displays the amount of time until the "dateFuture" entered below.


// NOTE: the month entered must be one less than current month. ie; 0=January, 11=December
// NOTE: the hour is in 24 hour format. 0=12am, 15=3pm etc
// format: dateFuture = new Date(year,month-1,day,hour,min,sec)
// example: dateFuture = new Date(2003,06,15,14,15,00) = April 26, 2003 - 2:15:00 pm

dateFuture = new Date(2009,00,2,09,30,00);

// TESTING: comment out the line below to print out the "dateFuture" for testing purposes
//document.write(dateFuture +"<br />");


//###################################
//nothing beyond this point
function GetCount(){

	dateNow = new Date();									//grab current date
	amount = dateFuture.getTime() - dateNow.getTime();		//calc milliseconds between dates
	delete dateNow;

	// time is already past
	if(amount < 0){
		document.getElementById('countbox').innerHTML="<br>Сервизът е отворен и ви очаква";
	}
	// date is still good
	else{
		days=0;hours=0;mins=0;secs=0;out="";

		amount = Math.floor(amount/1000);//kill the "milliseconds" so just secs

		days=Math.floor(amount/86400);//days
		amount=amount%86400;

		hours=Math.floor(amount/3600);//hours
		amount=amount%3600;

		mins=Math.floor(amount/60);//minutes
		amount=amount%60;

		secs=Math.floor(amount);//seconds

		if(days != 0){out += days +" дни"+((days!=1)?"":"")+", ";}
		if(days != 0 || hours != 0){out += hours +" часа"+((hours!=1)?"":"")+", ";}
		if(days != 0 || hours != 0 || mins != 0){out += mins +" мин."+((mins!=1)?" и":"")+"  ";}
		out += secs +" сек.";
                document.getElementById('countbox').innerHTML="<br>Сервизът ще е отворен след:<br>"+out;

		setTimeout("GetCount()", 1000);
	}
}

window.onload=function(){GetCount();}//call when everything has loaded













<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = 'baner/01.jpg'
theImages[1] = 'baner/02.jpg'
theImages[2] = 'baner/03.jpg'
theImages[3] = 'baner/04.jpg'
theImages[4] = 'baner/05.jpg'
theImages[5] = 'baner/06.jpg'
theImages[6] = 'baner/07.jpg'
theImages[7] = 'baner/08.jpg'
theImages[8] = 'baner/09.jpg'
theImages[9] = 'baner/10.jpg'
theImages[10] = 'baner/11.jpg'
theImages[11] = 'baner/12.jpg'
theImages[12] = 'baner/13.jpg'
theImages[13] = 'baner/14.jpg'
theImages[14] = 'baner/15.jpg'



// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'"height=144 width=164>');
}

//  End -->










if((navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 3 && navigator.userAgent.indexOf("Opera") == -1) || (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) >= 4) || (navigator.appName == "Opera" && parseInt(navigator.appVersion) >= 5)) {

  for(i = 0; i < parent.frames.length; i++) {
    if(parent.frames[i].name == "code" && parent.frames[i].MTMLoaded) {
      parent.frames[i].MTMTrack = true;
      setTimeout("parent.frames[" + i + "].MTMDisplayMenu()", 250);
      break;
    }
  }
}