﻿var releases = new Array(
	"“Többször előfordult már, hogy a szoftvert sajtó- vagy politikai elemzések írására alkalmazott szakemberek használták, mivel éppen a gépies tevékenységet veszi le az elemzők válláról...”|- BPI International",
	"“Az alkalmazás harmadik generációs verziójának köszönhetően a felhasználó sok más céget megelőzve elemezheti saját és versenytársai kommunikációját...”|- BPI International"
);

function GetPressRelease()
{

	var i = Math.round((releases.length - 1) * Math.random())
	var Press = releases[i].split('|');
	
	document.write('<DIV class=rcopyshrt>' + Press[0] + '<br><A href="press.html" >' + Press[1] + '&nbsp;&raquo;</A></DIV>');
            
}

//////////////////////////////////////////////////////////////////////////////

var logos_top = new Array(
	"allianz.gif|Allianz|references.html",
	"provident.gif|Provident Financial|references.html",
	"erste.gif|Erste Bank|references.html",
	"cafe_logo.png|Café PR|references.html",
	"kurt_logo.png|Kürt Zrt|references.html",
	"mprsz_logo.png|Magyar PR Szövetség|references.html",
	"itdh.png|ITD Hungary|references.html"
);

var logos_bottom = new Array(
	"ericsson.gif|Ericsson|references.html",
	"trigranit_logo.png|TriGranit Development Corporation|references.html",
	"mav_logo.png|Magyar Államvasutak Zrt|references.html",
	"thalassa.gif|Thalassa Group Public Relations|references.html"
);

function GetCustomerLogos()
{

	var result = "";
	var i = Math.round((logos_top.length - 1) * Math.random())
	var LogoTop = logos_top[i].split('|');

	i = Math.round((logos_bottom.length - 1) * Math.random())
	var LogoBottom = logos_bottom[i].split('|');
	
//render all logos
result += "<div style='width:0px; height:0px; overflow:hidden; display:none'>"
for(var xx = 0; xx < logos_top.length; xx++)
{
	result += "<img src='images/" + logos_top[xx].split('|')[0] + "' style='display:none;' width=1 height=1>"
}

for(var xx = 0; xx < logos_bottom.length; xx++)
{
	result += "<img src='images/" + logos_bottom[xx].split('|')[0] + "' style='display:none;' width=1 height=10>"
}
result += "</div>"

    if (LogoTop[2] != "")
    {
		result = result + ('<A href="' + LogoTop[2] + '" title="' + LogoTop[1] + '"><IMG class=flogo height=31 alt="' + LogoTop[1] + '" src="images/' + LogoTop[0] + '" width=167 border=0></A>');
    }
    else
    {
		result = result + ('<IMG class=flogo height=31 alt="' + LogoTop[1] + '" title="' + LogoTop[1] + '" src="images/' + LogoTop[0] + '" width=167 border=0>');
    }
    
    if (LogoBottom[2] != "")
    {
	    result = result + ('<A href="' + LogoBottom[2] + '" title="' + LogoBottom[1] + '"><IMG class=flogo height=25 alt="' + LogoBottom[1] + '" src="images/' + LogoBottom[0] + '" width=138 border=0></A>'); 
    }
    else
    {
	    result = result + ('<IMG class=flogo height=25 alt="' + LogoBottom[1] + '" src="images/' + LogoBottom[0] + '" width=138 border=0>'); 
    }

	return result;
            
}
function ChangeDivContent(id, str)
{
	var type = "IE";
	if (navigator.userAgent.indexOf("Opera")!=-1 && document.getElementById) type="OP"; 
	if (document.all) type="IE"; 
	if (document.layers) type="NN";
	if (!document.all && document.getElementById) type="MO"; 
	
	if (type=="IE") {
		document.all[id].innerHTML = str;
	}
	if (type=="NN") {
		document.layers[id].document.open();
		document.layers[id].document.write(str);
		document.layers[id].document.close();
	}
	if (type=="MO" || type=="OP") {
		document.getElementById(id).innerHTML = str;
	}
}

////////////////////////////////////////////////////////////////////////////////

var slidespeed=5000;
var slideimages=new Array("images/6.jpg", "images/4.jpg", "images/1.jpg", "images/3.jpg", "images/9.jpg", "images/8.jpg", "images/5.jpg", "images/2.jpg","images/7.jpg");
var slidelinks=new Array("#", "#", "#", "#", "#", "#", "#", "#", "#");
//var slidelinks=new Array("service3.html", "service3.html", "service2.html", "service2.html", "service4.html", "service4.html", "service1.html", "service1.html", "services.html");

var whichlink=0;
var whichimage=0;
var imgobj, filtersupport, blenddelay;
var imageholder=new Array();
for (i=0;i<slideimages.length;i++)
{
	//preload images
	imageholder[i]=new Image();
	imageholder[i].src=slideimages[i];
}

function JumpTo()
{
	window.location = slidelinks[whichlink];
}

function slideit()
{
	if (filtersupport)	imgobj.filters[0].apply();
	imgobj.src=imageholder[whichimage].src;
	if (filtersupport) imgobj.filters[0].play();
	whichlink=whichimage;
	whichimage=(whichimage<slideimages.length-1)? whichimage+1 : 0;
	setTimeout("slideit()", slidespeed+blenddelay);
}

function InitSlideshow(){
	imgobj=document.getElementById("slideshow"); //access img obj
	filtersupport=imgobj.filters; //check for support for filters
	blenddelay=(filtersupport)? imgobj.filters[0].duration*1000 : 0;
	slideit();
}

