imgson = new Array(); 

imgson[0] = new Image(); imgson[0].src = "img/mapofworld.gif";
imgson[1] = new Image(); imgson[1].src = "img/workdots2.gif";
imgson[2] = new Image(); imgson[2].src = "img/mugs_over2.gif";
imgson[3] = new Image(); imgson[3].src = "img/victoryad.gif";
imgson[4] = new Image(); imgson[4].src = "img/rgcclogo.gif";
imgson[5] = new Image(); imgson[5].src = "img/workinghere.gif";

imgsoff = new Array();

imgsoff[0] = new Image(); imgsoff[0].src = "img/mapofworld.gif";
imgsoff[1] = new Image(); imgsoff[1].src = "img/workgroup.gif";
imgsoff[2] = new Image(); imgsoff[2].src = "img/mugs.gif";
imgsoff[3] = new Image(); imgsoff[3].src = "img/victoryad.gif";
imgsoff[4] = new Image(); imgsoff[4].src = "img/rgcclogo.gif";
imgsoff[5] = new Image(); imgsoff[5].src = "img/workinghere.gif";


//ROLLOVER FUNCTIONS
function turn_on (me){if(document.images){eval('document.images.nav' + me + '.src = imgson[me].src')}}
function turn_off(me){if(document.images){eval('document.images.nav' + me + '.src = imgsoff[me].src')}}

function lib_bwcheck(){ //Browsercheck (needed)
	this.ver=navigator.appVersion
	this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	this.opera5=(navigator.userAgent.indexOf("Opera")>-1 && document.getElementById)?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; 
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
	this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6
	this.mac=this.agent.indexOf("Mac")>-1
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)
	return this
}
var bw=lib_bwcheck()

/***************************************************************************************
Variables to set:
***************************************************************************************/
messages=new Array()
//Write your descriptions in here.
messages[0] = "<b>Novartis Value Propostion(NVP)</b><br>Typeface: MT News Gothic Italic<br>Size:10 to 14pt<br>Leading:14 to 18pt<br>Spacing: 0<br>Justification: Justified<br>Colour: Novartis Blue"
messages[1] = "<b>Job Title</b><br>Typeface: MT News Gothic Bold<br>Size:11 to 15pt<br>Leading: auto<br>Spacing: 0<br>Justification: Ranged left<br>Colour: Novartis Blue"
messages[2] = "<b>Divison, Job ID and Location</b><br>Typeface: MT News Gothic<br>Size:7 to 11pt<br>Leading: 8 to 12pt<br>Spacing: 0<br>Justification: Ranged left<br>Colour: Novartis Blue<br><br>"
messages[3] = "<b>Body text</b><br>Typeface: MT News Gothic<br>Size:7 to 10pt<br>Leading: 8 to 13pt<br>Spacing: 0<br>Justification: Justified<br>Colour: Black"
messages[4] = "<b>Bullet point</b><br>Bullet point typeface: Zapf Dingbat key character l<br>Typeface: MT News Gothic<br>Size:7 to 10pt<br>Leading: 8 to 13pt<br>Spacing: 0<br>Justification: Ranged left<br>Colour: Black"
messages[5] = "<b>Exit Paragraph</b><br>Typeface: MT News Gothic<br>Web adress: MT News Gothic Bold<br>Size:7 to 10pt<br>Leading: 8 to 13pt<br>Spacing: 0<br>Justification: Ranged left<br>Colour: Black"
messages[6] = "<b>Logo</b><br>In alignment with the right hand side of body text and with a two Cap height exclusion area."
messages[7] = "<b>Main web address</b><br>Typeface: MT News Gothic Bold<br>Size:12 to 18pt<br>Leading: auto<br>Spacing: 0<br>Justification: Ranged left with left hand side of body text<br>Colour: White"
messages[8] = "<b>Headline</b><br>Typeface: MT News Gothic<br>Size 12 to 18pt<br>Leading: Auto<br>Spacing: 0<br>Position: Should be place in the most readable area of the image<br>Colour: White or Black"
messages[9] = "<b>Base curve graphic</b><br>Maximum 10% of advertisement depth<br>Colour: Novartis Blue"
messages[10] = "<b>Top and tail bars</b><br>Depth: 20% of the depth of the base curve(see 10)<br>Colour: Novartis Yellow"
messages[11] = "<b>Keyline</b><br>Size: 1pt<br>Colour: Novartis Blue"
messages[12] = "<b>Image</b><br>Must be an image from the Novartis image library positioned within an area exactly 20% of advertisement depth measured from the right hand side of the picture box. (Picture depth should be a minimum of 20% and a maximum of 30% of advertisement depth)"
messages[13] = "<b>Margins and Gutter</b><br>In cases of single column advertisements, a measurement can be created that should be the same as the depth of the top and bottom bars."
messages[14] = "<b>Equal opportunities statement</b><br>Size: 6 to 8pt News Gothic Italic<br>Colour: Black"

//To have more descriptions just add to the array.

fromX = 15 //How much from the actual mouse X should the description box appear?
fromY = -15 //How much from the actual mouse Y should the description box appear?

//To set the font size, font type, border color or remove the border or whatever,
//change the clDescription class in the stylesheet.

//Makes crossbrowser object.
function makeObj(obj){								
   	this.evnt=bw.dom? document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?document.layers[obj]:0;
	if(!this.evnt) return false
	this.css=bw.dom||bw.ie4?this.evnt.style:bw.ns4?this.evnt:0;	
   	this.wref=bw.dom||bw.ie4?this.evnt:bw.ns4?this.css.document:0;		
	this.writeIt=b_writeIt;																
	return this
}

// A unit of measure that will be added when setting the position of a layer.
var px = bw.ns4||window.opera?"":"px";

function b_writeIt(text){
	if (bw.ns4){this.wref.write(text);this.wref.close()}
	else this.wref.innerHTML = text
}

//Capturing mousemove
var descx = 0
var descy = 0
function popmousemove(e){descx=bw.ns4||bw.ns6?e.pageX:event.x; descy=bw.ns4||bw.ns6?e.pageY:event.y}

var oDesc;
//Shows the messages
function popup(num){
    if(oDesc){
		oDesc.writeIt('<div class="clDescription">'+messages[num]+'</div>')
		if(bw.ie5||bw.ie6) descy = descy+document.body.scrollTop
		oDesc.css.left = (descx+fromX)+px
		oDesc.css.top = (descy+fromY)+px
		oDesc.css.visibility = "visible"
    }
}
//Hides it
function popout(){
	if(oDesc) oDesc.css.visibility = "hidden"
}
function setPopup(){
   	if(bw.ns4)document.captureEvents(Event.MOUSEMOVE)
    document.onmousemove = popmousemove;
	oDesc = new makeObj('divDescription')
}