﻿// JScript File

function showPicture(sPth) {
	var mURL = "/Galery/showPic.aspx?img='" + sPth + "'" ;
	var newMobj = window.showModalDialog(mURL,'WinBld','status:no; help:0; dialogWidth:550px; dialogHeight:500px;')
}
			
function showVideo(num) {
		var mURL = "" ;
		if(num == 1)
			mURL = "video.html" ;
		else
			mURL = "video2.html" ;
		var newMobj = window.showModalDialog(mURL,'WinBld','status:no; help:0; dialogWidth:480px; dialogHeight:430px;')
}


function showPic(no) 
	{

		//var inputs = document.all.tags('img');
if (document.all) {
   inputs = document.all.tags('img');
   }
else {
  // element = document.getElementById(id);
   inputs = document.getElementsByTagName("img"); 
}
		
		var intLen = 0 ;
		intLen = inputs.length ; 
		var imgID = '';
		var retImgNumber ;
	
		for(var i = 0 ; i<intLen; i++){
		
			imgID = "ctl00_ContentPlaceHolderRight_TeaserArchive1_gly" + (no) ;

			if (inputs[i].id == imgID){
				for(var j=1; j<=6; j++)
				{
					if(j == no)
					{
						document.getElementById('ctl00_ContentPlaceHolderRight_TeaserArchive1_gly'+(j)).style.display = '' ;
					}
					else
					{
						document.getElementById('ctl00_ContentPlaceHolderRight_TeaserArchive1_gly'+(j)).style.display = 'none' ;
					}
				}
				
				
			}
			/*
			else
			{
				document.getElementById('News1_nwImg'+(i+1)).style.display = 'none' ;
			}
			*/
		}
		
	}
	

