function fixPNG(img,imgwidth,imgheight){

var arVersion = navigator.appVersion.split("MSIE")
var version = parseFloat(arVersion[1])

if ((version >= 5.5) && (document.body.filters)) 
{
      var imgName = img.src.toUpperCase();
      if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
      {
         var imgID = (img.id) ? "id='" + img.id + "' " : "";
         var imgClass = (img.className) ? "class='" + img.className + "' " : "";
         var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' ";
         var imgStyle = "display:inline;" + img.style.cssText ;
         if (img.align == "left") {imgStyle = "float:left;" + imgStyle;}
         if (img.align == "right") {imgStyle = "float:right;" + imgStyle;}
         if (img.parentElement.href) {imgStyle = "cursor:hand;" + imgStyle;}
         var strNewHTML = "<div " + imgID + imgClass + imgTitle
         + " style=\"" + "width:" + imgwidth + "px; height:" +  imgheight + "px;" + imgStyle + ";"
         + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
         + "(src=\'" + img.src + "\', sizingMethod='crop');\"></div>" ;
         img.outerHTML = strNewHTML;
      }
}

}


function footer1()
{
	
//	document.getElementsByTagName("div").style.border = "medium solid green";
//	document.getElementsByTagName("div").style.borderStyle = "solid";
	
//	var DIVTags = document.getElementsByTagName("div");
//for (var i = 0; i < DIVTags.length ; i++)
//{
//   DIVTags[i].style.border = "1px solid #000000";
//  if(DIVTags[i].id) alert("id :: " + DIVTags[i].id + " || heigth :: " + DIVTags[i].style.height + " width:" + DIVTags[i].style.width + " position:" + DIVTags[i].style.position + " top:" + DIVTags[i].style.top + " left:" + DIVTags[i].style.left );
//};
	
	
	
	var exclude=1;
var agt=navigator.userAgent.toLowerCase();
var win=0;var mac=0;var lin=1;
if(agt.indexOf('win')!=-1){win=1;lin=0;}
if(agt.indexOf('mac')!=-1){mac=1;lin=0;}
var lnx=0;if(lin){lnx=1;}
var ice=0;
var ie=0;var ie4=0;var ie5=0;var ie6=0;var com=0;var dcm;
var op5=0;var op6=0;var op7=0;
var ns4=0;var ns6=0;var ns7=0;var mz7=0;var kde=0;var saf=0;
if(typeof navigator.vendor!="undefined" && navigator.vendor=="KDE"){
	var thisKDE=agt;
	var splitKDE=thisKDE.split("konqueror/");
	var aKDE=splitKDE[1].split("; ");
	var KDEn=parseFloat(aKDE[0]);
	if(KDEn>=2.2){
		kde=1;
		ns6=1;
		exclude=0;
		}
	}
else if(agt.indexOf('webtv')!=-1){exclude=1;}
else if(typeof window.opera!="undefined"){
	exclude=0;
	if(/opera[\/ ][5]/.test(agt)){op5=1;}
	if(/opera[\/ ][6]/.test(agt)){op6=1;}
	if(/opera[\/ ][7-9]/.test(agt)){op7=1;}
	}
else if(typeof document.all!="undefined"&&!kde){
	exclude=0;
	ie=1;
	if(typeof document.getElementById!="undefined"){
		ie5=1;
		if(agt.indexOf("msie 6")!=-1){
			ie6=1;
			dcm=document.compatMode;
			if(dcm!="BackCompat"){com=1;}
			}
		}
	else{ie4=1;}
	}
else if(typeof document.getElementById!="undefined"){
	exclude=0;
	if(agt.indexOf("netscape/6")!=-1||agt.indexOf("netscape6")!=-1){ns6=1;}
	else if(agt.indexOf("netscape/7")!=-1||agt.indexOf("netscape7")!=-1){ns6=1;ns7=1;}
	else if(agt.indexOf("gecko")!=-1){ns6=1;mz7=1;}
	if(agt.indexOf("safari")!=-1 || (typeof document.childNodes!="undefined" && typeof document.all=="undefined" && typeof navigator.taintEnabled=="undefined")){mz7=0;ns6=1;saf=1;}
	}
else if((agt.indexOf('mozilla')!=-1)&&(parseInt(navigator.appVersion)>=4)){
	exclude=0;
	ns4=1;
	if(typeof navigator.mimeTypes['*']=="undefined"){
		exclude=1;
		ns4=0;
		}
	}
if(agt.indexOf('escape')!=-1){exclude=1;ns4=0;}
if(typeof navigator.__ice_version!="undefined"){exclude=1;ie4=0;}

//		resize_me();
		





//function resize_me()
//
//{
	
	
		var temp_left =  parseInt(document.body.clientWidth);
	if (ie==1)	
		{
//							alert('width of client is :: ' + temp_left);

				if (temp_left > 900)
					{
						var temp_left2 = (parseInt(temp_left) - 900 )/4 ;	
						document.getElementById("test1").style.overflowX = "hidden";	
					}
				else
					{
						document.getElementById("test1").style.overflowX = "scroll";	
						var temp_left2 = 0 ;	
					}
//					alert('left margin is :' + temp_left2);
		document.getElementById("footer").style.top = "-610px";
		document.getElementById("footer2").style.top = "-610px";
		document.getElementById("footer").style.zIndex = "-1";
		document.getElementById("flashcontent").style.marginLeft = parseInt(temp_left2 * 2)  + 'px';
		document.getElementById("container").style.marginLeft =  parseInt(temp_left2) + 'px';
//		document.getElementById("container").style.marginRight = parseInt(temp_left2) + 'px';
		document.getElementById("footer").style.marginLeft = parseInt(temp_left2) + 'px';
		document.getElementById("footer2").style.marginLeft = parseInt(temp_left2) + 'px';
		document.body.style.overflow = 'hidden';
		document.body.style.height = '900px';

//document.getElementById("container").style.border = '1px';
//document.getElementById("container").style.borderStyle = 'solid';


//var DIVTags = document.getElementsByTagName("div");

document.getElementById("container").style.height = '1200px';
document.getElementById("container").style.overflow = 'hidden';
//for (var i = 0; i < DIVTags.length ; i++)
//{
//   DIVTags[i].style.overflow = 'hidden';
//};
document.getElementById("bodyblock").style.overflow = 'hidden';
document.getElementById("container").style.overflow = 'visible';
document.getElementById("flashcontent").style.overflow = 'hidden';
		}
		
	else
		{
		if (temp_left > 900)
		{
		var temp_left2 = (parseInt(document.body.clientWidth) - 900) / 2 ;
		document.getElementById("test1").style.overflowX = "hidden";	
		}
		else
		{
		document.getElementById("test1").style.overflowX = "scroll";	
		var temp_left2 = 0 ;	
		}
		document.getElementById("footer").style.top = "-480px";
		document.getElementById("footer2").style.top = "-480px";
		document.getElementById("banner").style.top = "0px";
		document.getElementById("topMenu").style.top = "-295px";
		document.getElementById("bodyblock").style.top = "-150px";
//		document.getElementById("container").style.top = "10px";
		document.getElementById("footer").style.position = "relative";
//		document.getElementById("container").style.marginLeft = "15%";
//		document.getElementById("container").style.marginRight =  "15%";
//		document.getElementById("footer").style.marginLeft = "15%";
//		document.getElementById("flashcontent").style.marginLeft = "15%";
		document.getElementById("flashcontent").style.marginLeft = parseInt(temp_left2 + 10) + 'px';
		document.getElementById("container").style.marginLeft =  parseInt(temp_left2) + 'px';
//		document.getElementById("container").style.marginRight = parseInt(temp_left2) + 'px';
		document.getElementById("footer").style.marginLeft = parseInt(temp_left2) + 'px';
		document.getElementById("footer2").style.marginLeft = parseInt(temp_left2) + 'px';
		
//		var body_me = document.getElementsByTagName("body");
		
		//document.body.style.overflow = 'hidden';
		//document.body.style.height = '1100px';

		document.body.style.margin = "0px";
		}
//}

	


}
//	document.getElementsByTagName("div").style.border = "medium solid green";
//	document.getElementsByTagName("div").style.borderStyle = "solid";
	
//	var DIVTags = document.getElementsByTagName("div");
//for (var i = 0; i < DIVTags.length ; i++)
//{
//   DIVTags[i].style.border = "1px solid #000000";
//  if(DIVTags[i].id) alert("id :: " + DIVTags[i].id + " || heigth :: " + DIVTags[i].style.height + " width:" + DIVTags[i].style.width + " position:" + DIVTags[i].style.position + " top:" + DIVTags[i].style.top + " left:" + DIVTags[i].style.left );
//};



	
	/*overflow:hidden;
height:900px;
*/
