// IE HACKS with Conditional Comments

// Don't be cruel with IE7
/*document.write("<!--[if gte IE 7]><style>",
"#deco_001_sx {position: relative;margin-top:-435;}",
"</style><![endif]-->");*/

// Don't be cruel with IE6
document.write("<!--[if lt IE 7]><style>",
"#hdg-medium li a span.tooltip, #facebox td, ",
"#box1, #box2, #box3, #box4, #box5, ",
"#facebox .close { behavior: url('/vicks4you/js/iepngfix.htc'); }",
"</style><![endif]-->");



/*----------------------------------------*/  				  
/*----------------------------------------*/  				  
// jQuery
/*----------------------------------------*/  				  
/*----------------------------------------*/

$(document).ready(function() {
						   
/*----------------------------------------*/  				  
/*----------------------------------------*/  				  
// JQUERY Functions Start here 
/*----------------------------------------*/  				  
/*----------------------------------------*/  				  


$("#hdg-medium li a").each(function (a) {
$(this).hover(
function () {$(this).children("span").show()},
function () {$(this).children("span").hide()}
)});

$("#it001 a, #it002 a, #it003 a, #it004 a").click(
function () {$(this).parent().children("ul").toggle()}
);
	
$("#it001_selected a, #it002_selected a, #it003_selected a, #it004_selected a").click(
function () {$(this).parent().children("ul").toggle()}
);


/*----------------------------------------*/
//	jQueryFunctions End 
/*----------------------------------------*/  

	});
/*----------------------------------------*/
//	Closing jQuery
/*----------------------------------------*/  


/* Apri Flash Gioco dalla Home Page */

function popupGame() {
var width = 840;
var height = 610;
var str = "";
str += "resizable=0,";
str += "scrollbars=0,";
str += "location=0,";
str += "width=" + width + ",";
str += "height=" + height + ",";

if ( window.screen ) {
var ah = screen.availHeight - 30;
var aw = screen.availWidth - 10;

var xc = ( aw - width ) / 2;
var yc = ( ah - height ) / 2;

str += ",left=" + xc + ",screenX=" + xc;
str += ",top=" + yc + ",screenY=" + yc; 
}

	window.open("/vicks4you/_swf/Gioco.aspx", "GiocoVicks", str);
}

/* Apri finestra 'Invia ad un amico' */

function inviaAmico(url,idTema,idContent) {
var width = 430;
var height = 700;
var str = "";
str += "resizable=0,";
str += "scrollbars=0,";
str += "location=0,";
str += "width=" + width + ",";
str += "height=" + height + ",";

if ( window.screen ) {
var ah = screen.availHeight - 30;
var aw = screen.availWidth - 10;

var xc = ( aw - width ) / 2;
var yc = ( ah - height ) / 2;

str += ",left=" + xc + ",screenX=" + xc;
str += ",top=" + yc + ",screenY=" + yc; 
}
window.open("/vicks4you/Hp3Service/segnala.aspx?url="+url+"&idTema="+idTema+"&idContent="+idContent, "inviaAmico", str); 
}


/* Apri Disclaimer */
function ApriDisclaimer(value) {
var width = 450;
var height = 450;
var str = "";
str += "resizable=0,";
str += "scrollbars=0,";
str += "location=0,";
str += "width=" + width + ",";
str += "height=" + height + ",";

if ( window.screen ) {
var ah = screen.availHeight - 30;
var aw = screen.availWidth - 10;

var xc = ( aw - width ) / 2;
var yc = ( ah - height ) / 2;

str += ",left=" + xc + ",screenX=" + xc;
str += ",top=" + yc + ",screenY=" + yc; 
}
window.open("/vicks4you/Hp3Service/popUp.aspx?content="+value, "PopUp", str); 
}


/* Apri finestra 'Contatta il webMaster' */

function Contatti(idTema) {
var width = 400;
var height = 600;
var str = "";
str += "resizable=0,";
str += "scrollbars=0,";
str += "location=0,";
str += "width=" + width + ",";
str += "height=" + height + ",";

if ( window.screen ) {
var ah = screen.availHeight - 30;
var aw = screen.availWidth - 10;

var xc = ( aw - width ) / 2;
var yc = ( ah - height ) / 2;

str += ",left=" + xc + ",screenX=" + xc;
str += ",top=" + yc + ",screenY=" + yc; 
}
window.open("/vicks4you/Hp3Service/Contatti.aspx?idTema="+idTema, "contatti", str); 
}


