/**
* resizing site for different resolutions
*/
var d = document;
var winIE = (navigator.userAgent.indexOf("Opera")==-1 && (d.getElementById &&  d.documentElement.behaviorUrns))  ? true : false;
var minW = 995;

function bodySize(){
	if(winIE && d.documentElement.clientWidth) {
		sObj = d.getElementsByTagName("body")[0].style;
		sObj.width = (d.documentElement.clientWidth < minW) ? minW + "px" : "100%";
	}
}

function init(){
	bodySize();
}

onload = init;
onresize = bodySize;

$(document).ready(
	function ()
	{		var version = deconcept.SWFObjectUtil.getPlayerVersion();
		if (version["major"] >= 8)
		{
			//$('#header_img').css('backgroundImage', 'url(/img/blank.gif)');
			$('#header1').css('backgroundImage', 'url(/img/blank.gif)').find('div').css('backgroundImage', 'url(/img/blank.gif)');
			$('#header2 div').css('backgroundImage', 'url(/img/blank.gif)');
			$("#headerF").css('display','block');
			$("#items").css('background','none');

			var so = new SWFObject("/img/paytechLogo.swf", "logo", "240", "170", "8", "#ffffff");
			so.write("logoF");

			so = new SWFObject("/img/paytechMain.swf", "topF", "100%", "290", "8", "#ffffff");
			so.addParam("wmode", "transparent");
			so.write("topF");
		}

		$("fieldset.another input:radio").click(function() {			if (this.value == 'another')
				$(this).parents('fieldset:first').find('input[type=text]:last').removeAttr('disabled');
			else
				$(this).parents('fieldset:first').find('input[type=text]:last').attr('disabled', 'disabled');
		});

		$("fieldset.another input:radio[value=another]").each(function() {
			if (this.checked)
				$(this).parents('fieldset:first').find('input[type=text]:last').removeAttr('disabled');
			else
				$(this).parents('fieldset:first').find('input[type=text]:last').attr('disabled', 'disabled');
		});
	}
);
