//pop up﻿
function pop_window(url,popW,popH)
{var winLeft=(screen.width-popW)/2;var winUp=(screen.height-popH)/2;var popit=window.open(url,'console','menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,width='+popW+',height='+popH+',top='+winUp+',left='+winLeft+'');}
function FitImagetoWin(pwidth,pheight,url)
{pwidth=parseInt(pwidth,10)+40
pheight=parseInt(pheight,10)+40
var winLeft=(screen.width-pwidth)/2;var winUp=(screen.height-pheight)/2;var popit=void window.open(url,'','titlebar=no,menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,border=no,width='+pwidth+',height='+pheight+',top='+winUp+',left='+winLeft+'');}


//get screen resolution
function getscreenresolution(){
res = "&res="+screen.width+"x"+screen.height+"&d="+screen.colorDepth 
//document.write(res);
return res;
}

//NEWS TICKER
//var tWidth = '600x';                  // width (in pixels)
//var tHeight = '20px';                  // height (in pixels)
//var tcolour = '#ffffff';               // background colour:
//var moStop = true;                     // pause on mouseover (true or false)
//var fontfamily = 'arial,sans-serif'; // font for content
//var tSpeed = 2;                        // scroll speed (1 = slow, 5 = fast)
//// enter your ticker content here (use \/ and \' in place of / and ' respectively)
//var cps = -tSpeed;
//var aw, mq;
//var fsz = parseInt(tHeight) - 4;
//function startticker() {
//    if (document.getElementById) {
//        //document.getElementById("hfLatestNews").value;
//        var content = ''; 
//        var tick = '<div style="position:relative;width:' + tWidth + ';height:' + tHeight + ';overflow:hidden;background-color:' + tcolour + '"'; if (moStop) tick += ' onmouseover="cps=0" onmouseout="cps=-tSpeed"'; tick += '><div id="mq" style="position:absolute;right:0px;top:0px;font-family:' + fontfamily + ';font-size:' + fsz + 'px;white-space:nowrap;"><\/div><\/div>';
//        document.getElementById('ticker').innerHTML = tick;
//        mq = document.getElementById("mq");
//        mq.style.right = (5 + parseInt(tWidth)) + "px";
//        mq.innerHTML = '<span id="tx">' + content + '<\/span>';
//        aw = document.getElementById("tx").offsetWidth;
//        lefttime = setInterval("scrollticker()", 50);
//    }
//}
//function scrollticker()
//{ mq.style.right = (parseInt(mq.style.right) > (-10 - aw)) ? mq.style.right = parseInt(mq.style.right) + cps + "px" : parseInt(tWidth) + 10 + "px"; }

////window.onload = startticker;

// end of NEWS TICKER

// current news
function ShowMyModalPopup(newsid) {
    var label = document.getElementById('lblNews');
    label.innerHTML = '';
    var modal = $find('ModalPopupExtender1');
    modal.show();
    PageMethods.ShowNews(newsid, displayresult);
}
function displayresult(result) {
    var label = document.getElementById('lblNews');
    label.innerHTML = result;
}

function HideModalPopup() {
    var modal = $find('ModalPopupExtender1');
    modal.hide();
}
// end of current news

//Accordian


//Accordian



