// JavaScript Document
var dDoc="";
var path="images/changeimages/";
var changeimages=new Array("img1.jpg","img2.jpg","img3.jpg","img4.jpg","img5.jpg");

function showPop(page,file)
{
	var measure="100%";
	$("#coverup").css({"display":"block"});//,"width":measure,"height":measure});
	
	$("#coverup").animate({opacity:"0.6"});
	dDoc=file;
	var xCor; var yCor;
	var el=document.getElementById("flank");
	el.style.display="block";
	
	document.iqpcform.reset();
}

function closeDiv(elN)
{
	var el=document.getElementById(elN);
	el.style.display="none";
	
	$("#coverup").css({"display":"none"});
}

function checkMatter()
{
	var el=document.getElementById("flank");
	
	if(document.iqpcform.f807.value.length < 1 || document.iqpcform.f808.value.length < 1 || document.iqpcform.f8343.value.length < 1 || document.iqpcform.f810.value.length < 1 || document.iqpcform.f812.value.length < 1 || document.iqpcform.f811.value.length < 1)
	{
		alert("Please fill in all required details");
	}
	else
	{
		el.style.display="none";
		var nw=window.open(dDoc,"w1");
		
		document.iqpcform.submit();
	}
}

function goPlace(loc)
{
	window.open(loc);
}
function visit(loc)
{
	window.location.href=loc;
}
/*-----flash-slider----------------------------------------------------------------------------------------------------*/


