// pop-up functions

function qtvrPop(page,windowname)
{
newWind=window.open(page,windowname,"toolbar=no,status=no,directories=no,location=no,scrollbars=yes,menubar=no,resizable=no,width=370,height=365");
newWind.focus();    
}

function flvvPop(page,windowname)
{
newWind=window.open(page,windowname,"toolbar=no,status=no,directories=no,location=no,scrollbars=no,menubar=no,resizable=no,width=450,height=350");
newWind.focus();    
}

function websitePop(page,windowname)
{
newWind=window.open(page,windowname,"toolbar=no,status=no,directories=no,location=no,scrollbars=no,menubar=no,resizable=no,width=1024,height=768");
newWind.focus();    
}

function awardPop(page,windowname)
{
newWind=window.open(page,windowname,"toolbar=no,status=no,directories=no,location=no,scrollbars=no,menubar=no,resizable=no,width=600,height=550");
newWind.focus();    
}

function projPop(page,windowname)
{
newWind=window.open(page,windowname,"toolbar=no,status=no,directories=no,location=no,scrollbars=no,menubar=no,resizable=no,width=540,height=560");
newWind.focus();    
}

function projPopFl(page,windowname)
{
newWind=window.open(page,windowname,"toolbar=no,status=no,directories=no,location=no,scrollbars=yes,menubar=no,resizable=no,width=610,height=570");
newWind.focus();    
}

function galleryPop(page,windowname)
{
newWind=window.open(page,windowname,"toolbar=no,status=no,directories=no,location=no,scrollbars=yes,menubar=no,resizable=no,width=685,height=480");
newWind.focus();    
}

function galleryPopMid(page,windowname)
{
newWind=window.open(page,windowname,"toolbar=no,status=no,directories=no,location=no,scrollbars=yes,menubar=no,resizable=no,width=685,height=380");
newWind.focus();    
}

function galleryPopSmall(page,windowname)
{
newWind=window.open(page,windowname,"toolbar=no,status=no,directories=no,location=no,scrollbars=yes,menubar=no,resizable=no,width=685,height=275");
newWind.focus();    
}

function photosPop(page,windowname)
{
newWind=window.open(page,windowname,"toolbar=no,status=no,directories=no,location=no,scrollbars=yes,menubar=no,resizable=no,width=630,height=445");
newWind.focus();    
}


// rollover functions

function navBar_item (img_name, loc, width, height) {
	img_str = "i/" + loc + img_name;

	this.img_name_off = new Image (width, height);
	this.img_name_off.src = img_str + "_off.gif";
	this.img_name_on = new Image (width, height);
	this.img_name_on.src = img_str + "_on.gif";
}

function new_navBar_item (img_name, loc, width, height) {
	navBar_item [img_name] = new navBar_item (img_name, loc, width, height);
}

function tn_over (img_name) {
	document.images[img_name].src = navBar_item[img_name].img_name_on.src;
}

function tn_out (img_name) {
	document.images[img_name].src = navBar_item [img_name].img_name_off.src;
}

if (brwCheck.supported) {
	new_navBar_item ("what_is_animation", "tn/", 134, 24);
	new_navBar_item ("about_us", "tn/", 135, 25);
	new_navBar_item ("distinctions", "tn/", 138, 25);
	new_navBar_item ("faculty", "tn/", 138, 25);
	new_navBar_item ("facility", "tn/", 130, 25);
	new_navBar_item ("courses", "tn/", 126, 25);
	new_navBar_item ("add_ons", "tn/", 129, 25);
	new_navBar_item ("placements", "tn/", 132, 25);
	new_navBar_item ("student_works", "tn/", 132, 25);
	new_navBar_item ("registration", "tn/", 132, 25);
	new_navBar_item ("corp_training", "tn/", 111, 25);

	new_navBar_item ("photo_gallery", "tn/", 99, 22);
	new_navBar_item ("photo_gallery_in", "tn/", 98, 22);
	new_navBar_item ("foreign_students", "tn/", 126, 22);
	new_navBar_item ("foreign_students_in", "tn/", 112, 22);
	new_navBar_item ("alumni", "tn/", 70, 22);
	new_navBar_item ("anniversary", "tn/", 99, 22);
	new_navBar_item ("outreach", "tn/", 91, 22);

	new_navBar_item ("home", "tn/", 34, 11);
	new_navBar_item ("faqs", "tn/", 31, 14);
	new_navBar_item ("need_people", "tn/", 75, 14);
	new_navBar_item ("sitemap", "tn/", 47, 14);
	new_navBar_item ("jobs", "tn/", 43, 14);
	new_navBar_item ("contact", "tn/", 41, 12);

}
