<!--

//arrays & globals
//rollover vars
var imgwidth=new Array(38,94,49,73,141,115,36,76,122,122,122,122,122,122,98,122);
var imgheight=new Array(13,13,13,13,13,13,13,13,128,105,52,86,152,124,13,25);
var imgfiles=new Array("index","approach","whyus","campaigns","testimonials","dmservices","news","contact","expertsinlead","creativesupport","contactus","seewhy","howeffective","discuss-your","telemarketing","login");
var statusmsg=new Array('Home','Our approach','Why us','Campaigns','What our clients say','Direct marketing services','News','Contact us','','','','','','','Telemarketing','');
var relpaths=new Array('','../../../','../../../','../../../','','../../../','','../../../','../../../'); //last one is telemarketing
var relpath='';
//norollovers gives which pages have no rollover for the image at that index in imgfiles
//where page = p passed to imgload function
//norollovers[0-7] = nav buttons [8-13] = banners [14]=telemarketing [15]=login
//(telemarketing page index p=8)
var norollovers=new Array(0,1,2,3,4,5,6,7,1,5,7,2,3,7,8,-1);

var imgcount=imgwidth.length;
var imgloaded=false;
var imgstore=new Array();

for(i=0; i<imgcount; i++) {
  imgstore[i]=new Image(imgwidth[i],imgheight[i]);
  imgstore[i+imgcount]=new Image(imgwidth[i],imgheight[i]);
}

//flash banner
var banners=new Array(8,3,1,6,2,7,0,0,4,0); //6th(7th) one used to be 3 before Andrew changed it to 0 on Jan 30th 2007

//p = page index 0-7 (js) <=> 1-8 (php/mysql)
//p = 9 for resources page -> load all rollovers & no flash banner
//relpath[8]='' -> put resources page in root folder

//rollovers

function imgload(p) {
  if(!document.images) return;
  for(i=0;i<imgcount;i++) {
    //skip current page
    if(norollovers[i] != p) {
      imgstore[i].src=document.images["b"+i].src;
      imgstore[i+imgcount].src=relpath+"images/nav/"+imgfiles[i]+"_1.gif";
    }
  }
  imgloaded=true;
}

function imgswap(im,imgstate) {
  if(!imgloaded || !document.images) return;
  document.images["b"+im].src=imgstore[im+imgstate*imgcount].src;
  //setstatus(im,imgstate);
}

function setstatus(msg, over) {
  top.status = over ? statusmsg[msg] : "Market Makers";
}

//end rollovers

//flash banner

function getMovie(banner) {
	var noembed = '<noembed><div style="width: 506px"><p>Sorry but you do not have the correct plug-in to view content on this page</p><p>Please download the latest Flash plug-in <a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">here</a></p><h1>Skill and Experience to achieve your goals...</h1><p>Market makers are a UK telemarketing and telesales agency. We offer professional telemarketing and telesales management and support for companies. With over 25 years experience in telesales, Market Makers will work in conjunction with your team to maximise your telesales profitability, productivity and telemarketing success. For more information on our telemarketing and telesales services <a href="telemarketing/uk/company/london.php">contact us</a> or call 0845 468 0880.Here are some more information links of interest:</p><ul><li><a href="http://marketmakers.co.uk">Home</a></li><li><a href="http://marketmakers.co.uk/telemarketing/uk/company/index.html">Why Us</a></li><li><a href="http://marketmakers.co.uk/telemarketing/uk/services/index.html">Telemarketing and Telesales</a></li><li><a href="http://marketmakers.co.uk/telemarketing/uk/agency/index.html">Telemarketing Services</a></li><li><a href="http://marketmakers.co.uk/testimonials.html">Telemarketing Campaigns</a></li><li><a href="http://marketmakers.co.uk/telemarketing/uk/services/index.html">Telemarketing Campaigns - Client Testimonials</a></li></ul></div></noembed>';
	
	var flashstr='<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
	flashstr+='  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ';
	flashstr+=' ID="flashmovie" WIDTH="490" HEIGHT="215" ALIGN="">';
	flashstr+=' <PARAM NAME=movie VALUE="'+relpath+'swf/banner'+banner+'b.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF>  '; 
	flashstr+=' <EMBED src="'+relpath+'swf/banner'+banner+'b.swf" quality=high bgcolor=#FFFFFF  ';
	flashstr+=' swLiveConnect=FALSE WIDTH="490" HEIGHT="215" NAME="flashmovie" ALIGN=""';
	flashstr+=' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">';
	//insert noembed tag
	flashstr += noembed;	
	flashstr+=' </EMBED>';
	flashstr+=' </OBJECT>';

return flashstr;
}

function showMovie(banner) {
if(banner==0) return;
  if (document.getElementById) {
    document.getElementById('swf').innerHTML = getMovie(banner);
  }  else if (document.all){
    document.swf.innerHTML = getMovie(banner);
  } else if (document.layers) {
        x = document.layers['swf'];
		x.document.open();
		x.document.write(getMovie(banner));
		x.document.close();
  } else {
    //image banner for non-dhtml / non-js browsers using noscript tag
  }
}
//end banner


function init(p) {
  relpath=relpaths[p];  //global relpath = relative path from page to root
  imgload(p);
  var m=banners[p];
  showMovie(m);
}

var popupwin=null;
function popup(url, w, h) {
  popupwin=window.open(url,"mm_popup","width="+w+", height="+h+", scrollbars, resizable");
  popupwin.focus();
}

//-->