﻿function setImages(img1,img2,title1,title2){
document.getElementById('PI1').src='images/product-examples/'+img1;
document.getElementById('PI2').src='images/product-examples/'+img2;
document.getElementById('TI1').innerHTML=title1;
document.getElementById('TI2').innerHTML=title2;
}


var maxx = 370;
var start = 0;
function grow(){
document.getElementById('PE').style.height=start;
start = start+20;
if(start<maxx){
setTimeout("grow();",'10');
}
else{
revealImage1();
revealImage2();
}
}

var P1maxx = 123;
startP1 = 0;
function revealImage1(){
document.getElementById('PI2').style.visibility='visible';
document.getElementById('PI1').style.height=startP1+'px';
startP1 = startP1+8;
if(startP1<P1maxx){
setTimeout("revealImage1();",'10');
}else{
document.getElementById('TI1').style.visibility='visible';
}
}
var P2maxx = 123;
startP2 = 0;
function revealImage2(){
document.getElementById('PI1').style.visibility='visible';
document.getElementById('PI2').style.height=startP2+'px';
startP2 = startP2+8;
if(startP2<P2maxx){
setTimeout("revealImage2();",'10');
}else{
document.getElementById('TI2').style.visibility='visible';
}
}

      
var map = null;                  
var pinid = 0;    
var icon = "images/icons/mca-map-icon.jpg";  
function GetMap()      
{         
    map = new VEMap('myMap');         
    map.SetDashboardSize(VEDashboardSize.Small);
    map.LoadMap(new VELatLong(53.747593 ,-0.360134 ), 16 ,'h' ,false);
    // show a mini map
    //map.ShowMiniMap(0, 350);
} 
function AddPushpin(point, title, infobox)      
{         
    if (map != null)
    {
        var shape = new VEShape(VEShapeType.Pushpin, point);         
        //Set the icon         
        //shape.SetCustomIcon(icon);                  
        //Set the info box         
        map.ClearInfoBoxStyles();         
        shape.SetTitle(title);         
        shape.SetDescription(infobox);                  
        //Add the shape the the map         
        map.AddShape(shape);         
        pinid++;      
    }
}                         
function populateMap()
{
    AddPushpin(new VELatLong(53.747593 ,-0.360134), "Jadan Press.", "<div style='width:120px;'>Unit 27<br>Argyle Factory Estate<br>Wyndham Street<br>HULL<br>East Yorkshire<br>HU3 1HD</div>");
}
