var Default = {}

Default.Redirect = function(sUrl){

	window.location.href = (sUrl);

}

var Input = {}

Input.OnClickClearValue = function(sender,sValue){
    if(!document.getElementById(sender.id).getAttribute('Clicked',1) || document.getElementById(sender.id).value == sValue) {   
        document.getElementById(sender.id).setAttribute('Clicked',1);
        document.getElementById(sender.id).value = ''; 
    }
}

Input.OnBlur = function(sender,sValue){
    if(document.getElementById(sender.id).value == ""){
        document.getElementById(sender.id).value = sValue;
    }
}

function MapPopUp(PopUpTitle, Image, sWidth, sHeight){
	var winl = (screen.width-sWidth)/2;
	var wint = (screen.height-sHeight)/2;			
	win3 = window.open('','win3','width='+sWidth+',height='+sHeight+',top='+ wint+ ',left='+ winl+ 'scrollbars=auto');					
	
	sHeadContent = '<title>'+PopUpTitle+'</title>';
	sHead = '<head>'+sHeadContent+'</head>';
	
	sContent = '<img src=\"'+Image+'\" border=0>';
	sStyle = 'style=\"margin:0px; text-align:center\" ';
	sBody = '<body '+sStyle+'>'+sContent+'</body>';
	
	sHtml = '<html>'+sHead+sBody+'</html>';								
	win3.document.writeln(sHtml); 
}

function EditorPicturePopUp(oPicture,sWidth, sHeight){
 sPath  = oPicture.href.replace('Pictures//','Pictures/large/');
 MapPopUp('Picture', sPath, sWidth, sHeight); 
}