	function WriteFlashHeader()
	{
		document.write('<OBJECT id="banner_movie" codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"	width="642" height="167" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">\n');
			document.write('<PARAM NAME="_cx" VALUE="4763">\n');
			document.write('<PARAM NAME="_cy" VALUE="4868">\n');
			document.write('<PARAM NAME="FlashVars" VALUE="">\n');
			document.write('<PARAM NAME="Movie" VALUE="flash/header.swf">\n');
			document.write('<PARAM NAME="Src" VALUE="flash/header.swf">\n');
			document.write('<PARAM NAME="WMode" VALUE="Window">\n');
			document.write('<PARAM NAME="Play" VALUE="-1">\n');
			document.write('<PARAM NAME="Loop" VALUE="0">\n');
			document.write('<PARAM NAME="Quality" VALUE="High">\n');
			document.write('<PARAM NAME="SAlign" VALUE="">\n');
			document.write('<PARAM NAME="Menu" VALUE="-1">\n');
			document.write('<PARAM NAME="Base" VALUE="">\n');
			document.write('<PARAM NAME="AllowScriptAccess" VALUE="">\n');
			document.write('<PARAM NAME="Scale" VALUE="ShowAll">\n');
			document.write('<PARAM NAME="DeviceFont" VALUE="0">\n');
			document.write('<PARAM NAME="EmbedMovie" VALUE="0">\n');
			document.write('<PARAM NAME="BGColor" VALUE="">\n');
			document.write('<PARAM NAME="SWRemote" VALUE="">\n');
			document.write('<PARAM NAME="MovieData" VALUE="">\n');
			document.write('<PARAM NAME="SeamlessTabbing" VALUE="1">\n');
			document.write('<PARAM NAME="Profile" VALUE="0">\n');
			document.write('<PARAM NAME="ProfileAddress" VALUE="">\n');
			document.write('<PARAM NAME="ProfilePort" VALUE="0">\n');
			document.write('<embed src="flash/header.swf" quality="high" name="banner_movie" swliveconnect="true" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="642" height="167"> </embed>\n');
		document.write('</OBJECT>\n');
	}

	function WriteFlashLogos()
	{
		document.write('<OBJECT id="logo_movie" codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"	width="995" height="66" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">\n');
			document.write('<PARAM NAME="_cx" VALUE="4763">\n');
			document.write('<PARAM NAME="_cy" VALUE="4868">\n');
			document.write('<PARAM NAME="FlashVars" VALUE="">\n');
			document.write('<PARAM NAME="Movie" VALUE="flash/logos.swf">\n');
			document.write('<PARAM NAME="Src" VALUE="flash/logos.swf">\n');
			document.write('<PARAM NAME="WMode" VALUE="Window">\n');
			document.write('<PARAM NAME="Play" VALUE="0">\n');
			document.write('<PARAM NAME="Loop" VALUE="-1">\n');
			document.write('<PARAM NAME="Quality" VALUE="High">\n');
			document.write('<PARAM NAME="SAlign" VALUE="">\n');
			document.write('<PARAM NAME="Menu" VALUE="-1">\n');
			document.write('<PARAM NAME="Base" VALUE="">\n');
			document.write('<PARAM NAME="AllowScriptAccess" VALUE="">\n');
			document.write('<PARAM NAME="Scale" VALUE="ShowAll">\n');
			document.write('<PARAM NAME="DeviceFont" VALUE="0">\n');
			document.write('<PARAM NAME="EmbedMovie" VALUE="0">\n');
			document.write('<PARAM NAME="BGColor" VALUE="">\n');
			document.write('<PARAM NAME="SWRemote" VALUE="">\n');
			document.write('<PARAM NAME="MovieData" VALUE="">\n');
			document.write('<PARAM NAME="SeamlessTabbing" VALUE="1">\n');
			document.write('<PARAM NAME="Profile" VALUE="0">\n');
			document.write('<PARAM NAME="ProfileAddress" VALUE="">\n');
			document.write('<PARAM NAME="ProfilePort" VALUE="0">\n');
			document.write('<embed src="flash/logos.swf" name="logo_movie" play="0" swliveconnect="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="995" height="66"> </embed>\n');
		document.write('</OBJECT>\n');
	}

	function getFlashMovieObject(movieName)
	{
		if (window.document[movieName]) 
		{
			return window.document[movieName];
		}
		if (navigator.appName.indexOf("Microsoft Internet")==-1)
		{
			if (document.embeds && document.embeds[movieName])
			return document.embeds[movieName]; 
		}
		else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
		{
			return document.getElementById(movieName);
		}
	}

	var arrTestimonials;
	function initPage()
	{
		arrTestimonials = strTestimonial.split("</p>");
		currentTestimonial = parseInt((Math.random()*1000)%6);
		nextTestimonial();

		var flashMovie = getFlashMovieObject("logo_movie");
		flashMovie.GotoFrame(10);
		flashMovie.StopPlay();

        /*
		if (readCookie("moviePlayed") == 1) {
		    //var flashMovie2=getFlashMovieObject("banner_movie");
		    //flashMovie2.GotoFrame(700);				
		    loadFlash();

		}
		else {
		    window.setTimeout("loadFlash()", 17000);
		}
	    */
	    
		var flashMovieBanner = getFlashMovieObject("banner_movie");

		if (flashMovieBanner.IsPlaying()) {
		    window.setTimeout("loadFlash()", 15000);
		}
		
	}
			
	function nextTestimonial()
	{
		var myspan = document.getElementById("TestimonialSpan");
		if (currentTestimonial >= arrTestimonials.length-2)
		{
			currentTestimonial = 0;
		}
		else
		{
			currentTestimonial++;
        }
		
		myspan.innerHTML = arrTestimonials[currentTestimonial].replace("<p>", "");
	}

	function loadFlash()
	{
		var flashMovie=getFlashMovieObject("logo_movie");
		flashMovie.Play();
		//createCookie("moviePlayed",1);
	}
	
	function createCookie(name,value,days) {
		if (days) {
			var date = new Date();
			date.setTime(date.getTime()+(days*24*60*60*1000));
			var expires = "; expires="+date.toGMTString();
		}
		else var expires = "";
		document.cookie = name+"="+value+expires+"; path=/";
	}

	function readCookie(name) {
		var nameEQ = name + "=";
		var ca = document.cookie.split(';');
		for(var i=0;i < ca.length;i++) {
			var c = ca[i];
			while (c.charAt(0)==' ') c = c.substring(1,c.length);
			if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
		}
		return null;
	}


	function showHideAll(action)
	{
		var action;
		var divAnswers = document.getElementsByTagName('div');
		var bulletImage = document.getElementsByTagName('img');
		
		for(var no=0;no<divAnswers.length;no++){
			if(divAnswers[no].className=='answer'){
				if(action==1){ 
					divAnswers[no].style.display='block';
				}
				if(action==0){
					divAnswers[no].style.display='none';
				}
			}
		}
		
		for(var i_no=0;i_no<bulletImage.length;i_no++){
			if(bulletImage[i_no].className=='bulletImg'){
				if(action==1){
					bulletImage[i_no].src = "images/icon_minus.gif"
				}
				if(action==0){
					bulletImage[i_no].src = "images/icon_plus.gif"
				}
			}
		}
	}
	
	function showAnswer(item_no)
	{
		var obj_a = document.getElementById('a'+item_no);
		var theImage = document.getElementById('imgBullet'+item_no);
		
		if(obj_a.style.display=='none')
		{
			showHideAll(0);
			obj_a.style.display='block';
			theImage.src = "images/icon_minus.gif";
		}
		else
		{
			showHideAll(0);
			theImage.src = "images/icon_plus.gif";
		}		
	}

	var i = 0;
	var clinets = 6;
	var x = 20;
	var y = 20;

	var down_position = new Array();
	var up_position = new Array();
	var client_image = new Array();

	down_position[1] = "0px -525px";
	down_position[2] = "-120px -525px";
	down_position[3] = "-240px -525px";
	down_position[4] = "-360px -525px";
	down_position[5] = "0px -575px";
	down_position[6] = "-120px -575px";

	up_position[1] = "0px -696px";
	up_position[2] = "-120px -696px";
	up_position[3] = "-240px -696px";
	up_position[4] = "-360px -696px";
	up_position[5] = "0px -746px";
	up_position[6] = "-120px -746px";

	client_image[1] = "-20px -20px";
	client_image[2] = "-250px -20px";
	client_image[3] = "-20px -99px";
	client_image[4] = "-250px -99px";
	client_image[5] = "-250px -178px";
	client_image[6] = "-20px -257px";    


	function drawDivs() {

        for (i = 1; i <= clinets; i++) {

            var the_style = getStyleObject("cs" + i);

            if (the_style) {
                object = document.getElementById("cs" + i);
                object.style.backgroundPosition = down_position[i];
                object.style.width = "120px";
            }

	    }

	}

	var prev_val = 0;

	function showDetail(cs_id) {

	    var val = cs_id;
	    var cs_detail = getStyleObject("csdetails" + val);

	    if (cs_detail) {
	        if (prev_val != 0) {
	            var prev_detailobject = document.getElementById("csdetails" + prev_val);
	            prev_detailobject.style.display = "none";
	        }
	        var imageobject = document.getElementById("image" + val);
	        var detailobject = document.getElementById("csdetails" + val);
	        imageobject.style.backgroundPosition = client_image[val];

	        if (prev_val != val) {

	            var the_style = getStyleObject("cs" + val);

	            if (the_style) {

	                var object = document.getElementById("cs" + val);
	                object.style.backgroundPosition = up_position[val];

	                if (prev_val != 0) {
	                    var prev_object = document.getElementById("cs" + prev_val);
	                    prev_object.style.backgroundPosition = down_position[prev_val];
	                }
	                prev_val = val;
	            }
	        
	            //hoverImage(val); 
	        }
	        
	        detailobject.style.display = "block";
	        prev_val = val;
	    }
	}

	function getStyleObject(objectId) {
	    // cross-browser function to get an object's style object given its
	    if (document.getElementById && document.getElementById(objectId)) {
	        // W3C DOM
	        return document.getElementById(objectId).style;
	    } else if (document.all && document.all(objectId)) {
	        // MSIE 4 DOM
	        return document.all(objectId).style;
	    } else if (document.layers && document.layers[objectId]) {
	        // NN 4 DOM.. note: this won't find nested layers
	        return document.layers[objectId];
	    } else {
	        return false;
	    }
	}

	//window.onload = showDetail;