
function makeInvisible(id) {
	document.getElementById(id).style.visibility='hidden';
}

function makeVisible(id) {
	document.getElementById(id).style.visibility='visible';
}
function toggleElements(id1,id2) {
makeInvisible(id1); makeVisible(id2);
}

function randomPop(id) {
	var theImages = new Array() 

	theImages[0] = 'http://intgirl.com/images/comingsoon1.png'
	theImages[1] = 'http://intgirl.com/images/comingsoon2.png'
	theImages[2] = 'http://intgirl.com/images/comingsoon3.png'
	theImages[3] = 'http://intgirl.com/images/comingsoon1.png'


	var j = 0
	var p = theImages.length;
	var preBuffer = new Array()
	for (i = 0; i < p; i++){
		preBuffer[i] = new Image()
		preBuffer[i].src = theImages[i]
	}
	var whichImage = Math.round(Math.random()*(p-1));
	document.comingsoonimg.src=theImages[whichImage];

document.getElementById(id).style.left=(Math.random()*780) + 'px';
document.getElementById(id).style.top=(505-(Math.random()*202)) + 'px';
makeVisible(id);
}

function setLine(line) {
	document.buyaeropak2ea.item_name.value='The ' + line + ' Aeropak of 10';
	var line = document.buyaeropak10.item_name.value;
	return line;	
}

function showDesign(line, design) {
	document.design.src=('images/' + design + '.png');
	makeVisible('designview');
	document.buyaeropak10.item_name.value='The ' + line + ' ' + design + ' Aeropak of 10';
	var a = document.buyaeropak10.item_name.value;
	return a;
}
