/*
function swf(p,w,h){
	document.write(" <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+w+"' height='"+h+"'> ");
    document.write(" <param name='movie' value='"+p+"'> ");
    document.write(" <param name='quality' value='high'> ");
    document.write(" <param name='wmode' value='transparent'> ");
    document.write(" <param name='allowScriptAccess' value='always' >");
    document.write(" <embed wmode='transparent' src='"+p+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+w+"' height='"+h+"'></embed> ");
    document.write(" </object> ");
}*/

function swf(src, w, h) {

    document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'");
    document.write("        codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='" + w + "' height='" + h + "'>");
    document.write("<param name='movie' value='" + src + "'>");
    document.write("<param name='quality' value='h'>");
    document.write("<param name='wmode' value='transparent'>");
    document.write("<param name='allowScriptAccess' value='always' >");
    document.write("<embed wmode='transparent'  src='" + src + "' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='" + w + "' height='" + h + "'></embed>");
    document.write("</object>");
}

//png24

function setPng24(obj) { 
  obj.width=obj.height=1; 
  obj.className=obj.className.replace(/\bpng24\b/i,''); 
  obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');" 
  obj.src='';  
  return ''; 
}

function MM_jumpMenu0(val1)
{
	if(val1 == "") return;
	window.open(val1.value);
}



function Open_Zipcode(frm,post1,post2,addr1,addr2)
{
	window.open("/layout/zipsearch.aspx?form=" + frm + "&post1=" + post1  + "&post2=" + post2  + "&addr1=" + addr1 + "&addr2=" + addr2   ,"ZipCode",'width=430,height=360,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=1,resizable=0');
}



function getCookie( name )
{
var nameOfCookie = name + "=";
var x = 0;
while ( x <= document.cookie.length )
{
var y = (x+nameOfCookie.length);
if ( document.cookie.substring( x, y ) == nameOfCookie ) {
if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
endOfCookie = document.cookie.length;
return unescape( document.cookie.substring( y, endOfCookie ) );
}
x = document.cookie.indexOf( " ", x ) + 1;
if ( x == 0 )
break;
}
return "";
}

 function tabMenu (tabNo,totalCnt) {
    for (i=1;i<=totalCnt;i++) {
	    obj = eval("document.getElementById('tab"+i+"')");
	    obj2 = eval("document.getElementById('news0"+i+"')");
	    if(i==tabNo) {
		    obj.style.display = "block";
		    obj2.style.display = "block";
	    } else {
		    obj.style.display = "none";
		    obj2.style.display = "none";
	    }
    }
}


function showOpinionComment(obj)
{
	if (eval("comment" + obj + ".style.display == 'inline'"))
	{
		eval("comment" + obj + ".style.display='none';");
	}
	else if (eval("comment" + obj + ".style.display == 'none'"))
	{
		eval("comment" + obj + ".style.display='inline';");
	}
}

function sitelink(s_name) {
    //alert(document.getElementById("<%=jumpMenu1.ClientID %>"));
    var obj = document.getElementById(s_name);
    var url = obj.value;
    if (url != "") {
        window.open(url, "", "");
    }
}
/*
function zoomIn() {
    newZoom = parseInt(zoomObj.style.zoom) + 10 + '%';
    zoomObj.style.zoom = newZoom;
    swZoom.innerText = 'zoom:' + newZoom;
}
function zoomOut() {
    newZoom = parseInt(zoomObj.style.zoom) - 10 + '%';
    zoomObj.style.zoom = newZoom;
    swZoom.innerText = 'zoom:' + newZoom;
}
*/
