if(document.images){

        icon1ro = new Image();
        icon1ro.src = "images/catalogue/send-to-friend-on.gif";
        icon1 = new Image();
        icon1.src = "images/catalogue/send-to-friend.gif";

        icon2ro = new Image();
        icon2ro.src = "images/catalogue/sub-win-new-on.gif";
        icon2 = new Image();
        icon2.src = "images/catalogue/sub-win-new.gif";


function enterRollover(name) {

                if (document.images) {

                document[name].src = eval(name + "ro.src");

}}

function exitRollover(name) {

                if (document.images) {

                document[name].src = eval(name + ".src");

}}

}


//Random Image Script
//Number of Images

var maxNum = 6

//Show random image

function loadImage() {

        var tempNum = 0
        tempNum = (parseInt(Math.random()*maxNum+1))
        showImage(tempNum)

}

//load random image to screen

function showImage(num) {

        if ((num > 0) && (num <= maxNum)) {
                document.writeln("<img src='images/side-photos/image-a" + num + ".gif' width='100' height='80'>")
        }

} //end image 1

// start - image 2

function loadImage2() {

        var tempNum = 0
        tempNum = (parseInt(Math.random()*maxNum+1))
        showImage2(tempNum)

}

//load random image to screen

function showImage2(num) {

        if ((num > 0) && (num <= maxNum)) {
                document.writeln("<img src='images/side-photos/image-b" + num + ".gif' width='100' height='80'>")
        }

} // end image 2 

// start - image 3

function loadImage3() {

        var tempNum = 0
        tempNum = (parseInt(Math.random()*maxNum+1))
        showImage3(tempNum)

}

//load random image to screen

function showImage3(num) {

        if ((num > 0) && (num <= maxNum)) {
                document.writeln("<img src='images/side-photos/image-c" + num + ".gif' width='100' height='80'>")
        }

} // end image 3

 // main pop up window script
 window.name = "hngs-main";
 var popWin = null    // use this when referring to pop-up window
 var winCount = 0
 var winName = "popWin"

 function openPopWin(winURL, winWidth, winHeight, winFeatures, winFeat){
   winName = "popWin" + winCount++ //unique name for each pop-up window
   closePopWin()           // close any previously opened pop-up window
   {
   if (openPopWin.arguments.length == 4){  // any additional features? 
     winFeatures = "," + winFeatures;
	}
   else {
     winFeatures = "";
	}}
   
   popWin = window.open(winURL, winName, "width=" + winWidth 
            + ",height=" + winHeight + winFeatures + 'toolbar=yes,scrollbars=yes,location=no,statusbar=yes,menubar=yes,left=20,top=20')
   }

 function closePopWin(){    // close pop-up window if it is open 
   if (navigator.appName != "Microsoft Internet Explorer" || parseInt(navigator.appVersion) >=4) //do not close if early IE
     if(popWin != null) if(!popWin.closed) popWin.close() 
   }
