var slides=[]; //FIRST SLIDESHOW
//configure the below images and descriptions to your own. 
slides[0] = ["image1.png"];
slides[1] = ["image2.png"];
slides[2] = ["image3.png"];
slides[3] = ["image4.png"];
slides.no_descriptions=1; //use for no descriptions displayed
slides.no_controls=1;
//above slide show uses only the defaults

//Notes:
//slides#.target will set a target for a slide group, will be overridden by slides#[#][3], if present
//slides#.specs will set new window specifications for a slide group, will be overridden by slides#[#][4], if present
//slides#.fadecolor will set fading images background color, defaults to white
//slides#.no_controls will set a slide show with no controls
//slides#.random will set a random slide sequence on each page load
//slides#.delay=3000 will set miliseconds delay between slides for a given show, may also be set in the call as the last parameter
//slides#.jumpto=1 will display added controls to jump to a particular image by its number
//slides#.no_added_linebreaks=1; use for no added line breaks in formatting of texts and controls

//use below to create a customized onclick event for linked images in a given show:
//slides#.onclick="window.open(this.href,this.target,'top=0, left=0, width='+screen.availWidth+', height='+screen.availHeight);return false;"

function buttonani() {
	c=c+1;
//	document.all.txt.innerHTML = c + ':' + d.style.width + ' x ' + d.style.height;
//	document.all.txt2.innerHTML = c + ':' + d.style.top + ' x ' + d.style.left;
	if(c<=15) {	a=2;b=-1;	}
	if(c>15 && c<=25) { a=-2;b=1; }
	if(c>25 && c<=35) {	a=2;b=-1;	}
	if(c>35 && c<50) { a=-2;b=1; }
	if(c==50) {
		c=0;
		clearInterval(beginani);
		d.style.width=130;
		d.style.height=130;
		d.style.top=90;
		d.style.left=530;
	}
	d.style.width=parseInt(d.style.width)+a;
	d.style.height=parseInt(d.style.height)+a;
	d.style.top=parseInt(d.style.top)+b;
	d.style.left=parseInt(d.style.left)+b;
}
function buttonani2() {
	beginani=setInterval("buttonani()",50);
}

var player = null;
function playerReady(thePlayer) {
	player = window.document[thePlayer.id];
}


function createPlayer() {
	var flashvars = {
		file:"movies/video5.flv", 
		autostart:"true",
		controlbar:"none",
		displayclick:"none",
	  repeat:"always",
		stretching:"fill"

	}

	var params = {
		allowfullscreen:"true", 
		allowscriptaccess:"always"
	}

	var attributes = {
		id:"player1",  
		name:"player1"
	}

	swfobject.embedSWF("player.swf", "placeholder1", "478", "358", "9.0.115", false, flashvars, params, attributes);
}

function msProgressBar (k) 
	{
		//msPreloader by Maik Schindler v1.0
		var images = document.images.length;
		for (i = k; i < images; i++) {
			if (document.images[i].complete == false) {
				document.getElementById('content').style.display = "none";
				document.getElementById('ms_progressbox').style.display = "block";
				document.getElementById('ms_progressbar').style.width = ((i+1) * 100 / images)+"%";
				window.setTimeout("msProgressBar(" + i + ")", 100);
				return;
			}
			if((i+1) == images){
				document.getElementById('ms_progressbar').style.width = ((i+1) * 100 / images)+"%";
				window.setTimeout("msProgressBar('complete')", 2000);
			}
		}
		if(typeof(k) == 'string')
		document.getElementById('ms_progressbox').style.display = "none";
		document.getElementById('content').style.display = "block";
	}
