function wSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
 // window.alert( 'Width = ' + myWidth );
 // window.alert( 'Height = ' + myHeight );
 return(myWidth);
}
function hSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
 // window.alert( 'Width = ' + myWidth );
 // window.alert( 'Height = ' + myHeight );
 return(myHeight);
}
function getColumnWidth(twidth) {

	var cwidth;
	cwidth = (twidth-parseInt('500'))/parseInt('2');
	return(cwidth);
}
function setAll(){
	var twidth;
        var columnwidth;        
	var columnheight;
	twidth = wSize();        
	columnwidth = getColumnWidth(twidth);   
	columnheight = hSize();
	document.getElementById('colonnaSx').style.width = columnwidth;
	document.getElementById('colonnaSx').style.height = columnheight;
	document.getElementById('colonnaDx').style.width = columnwidth;
	document.getElementById('colonnaDx').style.height = columnheight;


	var wbox;
	vbox = columnwidth-parseInt('20');		
	var i = 1;
	for(i = 1; i<=11; i++){
		if(i >= 10){
		$('#box_1'+i).css('height',vbox);
                $('#box_1'+i).css('width',vbox);
                $('#cover_1'+i).css('top',vbox);
                $('#box_1'+i+' > img').css('width',vbox);
                var image_height = $('#box_1'+i+' > img').height();
                var top_margin = (vbox - image_height)/parseInt('2');
                if(top_margin > 0){
                        $('#box_1'+i+' > img').css('height',vbox);
                        $('#box_1'+i+' > img').css( 'margin-top' , '0');
                        $('#box_1'+i+' > img').css('width','auto');
                }

		}else{
		$('#box_10'+i).css('height',vbox);
		$('#box_10'+i).css('width',vbox);
		$('#cover_10'+i).css('top',vbox);
		$('#box_10'+i+' > img').css('width',vbox);
		var image_height = $('#box_10'+i+' > img').height();
		var top_margin = (vbox - image_height)/parseInt('2');
		if(top_margin > 0){
		 	$('#box_10'+i+' > img').css('height',vbox);
		 	$('#box_10'+i+' > img').css( 'margin-top' , '0');
		 	$('#box_10'+i+' > img').css('width','auto');
		}
		}
	}
	/*for(i = 1; i<=6; i++){
		$('#box_'+i).css('height',vbox);
		$('#box_'+i).css('width',vbox);
                $('#cover_'+i).css('top',vbox);
                $('#box_'+i+' > img').css('width',vbox);
                var image_height = $('#box_'+i+' > img').height();
                var top_margin = (vbox - image_height)/parseInt('2');
                if(top_margin > 0){
                        $('#box_'+i+' > img').css('height',vbox);
                        $('#box_'+i+' > img').css( 'margin-top' , '0');
                        $('#box_'+i+' > img').css('width','auto');
                }
        }*/

	var sxc = parseInt('470')+parseInt('10');
	var wcd = twidth-parseInt('470');
	$('#colonnaSx').css('left',sxc);
	$('#colonnaDx').css('left','470px');
	$('#colonnaCt').css('width','465px');
	$('#colonnaDx').css('width',wcd);

	var toth = $(window).height(); 
	document.getElementById('colonnaCt').style.height = toth; 
	document.body.style.visibility = "visible";
	Shadowbox.init();
	$(document.body).show('slow');
	$(".img_content").show('fast');
        $(".box_content").show('fast'); 	
	blink();
}

function hideEmail(user,domain,subject) {
	var contact = user+"&#64;"+domain
	var email = user
	var emailHost = domain
	var emailSubject = subject
	document.write("<a href=" + "mail" + "to:" + email + "&#64;" + emailHost + "?subject=" + emailSubject +">" + contact + "</a>")
}

var col = new String();
var x=1;var y;

function blink()
{
 if(x%2) 
 {
  col = "rgb(0,200,255)";
 }else{
  col = "rgb(255,255,255)";
 }
 document.getElementById('aF').style.color=col;x++;if(x>2){x=1};setTimeout("blink()",3000);
}





