﻿//function doJQueryPostBack(inputName)
//{
//    __doPostBack(inputName,'');
//}

function ShowHide(theDiv)
{
	if (document.getElementById(theDiv).style.display == 'none')
	{
		document.getElementById(theDiv).style.display = 'block';
	}
	else
	{
		document.getElementById(theDiv).style.display = 'none';
	}
}

function ShowHideSkills(shortDiv, longDiv, image) {
    if (document.getElementById(shortDiv).style.display == 'block') {
        document.getElementById(image).src = 'images/icons/minimize.png';
        document.getElementById(shortDiv).style.display = 'none';
        document.getElementById(longDiv).style.display = 'block';
    }
    else {
        document.getElementById(image).src = 'images/icons/expand.png';
        document.getElementById(shortDiv).style.display = 'block';
        document.getElementById(longDiv).style.display = 'none';
    }
}

function Show(theDiv)
{
	document.getElementById(theDiv).style.display = 'block';
}

function Hide(theDiv)
{
	document.getElementById(theDiv).style.display = 'none';
}

function sendMailTo(company, domain, name) {
    locationstring = 'mai' + 'lto:' + name + '@' + company + '.' + domain;
    window.location.replace(locationstring);
}

//$(document).ready(function() {
//	var options = {
//  		newsList: "#news",
// 		startDelay: 100,
// 		loopDelay: 1000,
//        placeHolder1: " ",
//        placeHolder2: " ]"
//	}
//	
//	if ( $("#news").length > 0 ) {
//	    $().newsTicker(options);
//	}
//	
//	$('.adorn').corner("25px");
//	$('.adorn-bottom').corner("25px");
//	
//});


//$(document).ready(function(){
//  settings = {
//      tl: { radius: 5 },
//      tr: { radius: 5 },
//      bl: { radius: 5 },
//      br: { radius: 5 },
//      antiAlias: true,
//      autoPad: true
//  }
//  var myBoxObject = new curvyCorners(settings, "rounded");
//  myBoxObject.applyCornersToAll();
//});