function positionSelectDiv()
{
var xcoord = \$(window).width()/2 + 415 - jQuery('#artindex').width();
var xcoord2 = \$(window).width()/2;
var locationString = '' + document.location;
var coords = {
top: locationString.match(/\.asp/) ? 100 : 130,
left: xcoord
};
jQuery('#artindex').offset(coords);
}
function positionFBDiv()
{
var xcoord = \$(window).width()/2-50;
var locationString = '' + document.location;
var coords = {
top: locationString.match(/\.asp/) ? 100 : 130,
left: xcoord
};
jQuery('.fb-like').offset(coords);
}
function positionGPDiv()
{
var xcoord = \$(window).width()/2-120;
var locationString = '' + document.location;
var coords = {
top: locationString.match(/\.asp/) ? 80 : 110,
left: xcoord
};
jQuery('#gplus').offset(coords);
}
jQuery(function() {
var urlmenu = document.getElementById( 'artindex' );
urlmenu.onchange = function() {
window.open( this.options[ this.selectedIndex ].value, '_parent');
};
\$(window).resize(positionSelectDiv);
\$(window).resize(positionFBDiv);
\$(window).resize(positionGPDiv);
\$(window).resize();
jQuery('#artindex option').each(function () {
this.selected = this.value == document.location;
});
jQuery('.fb-like').attr('data-href', document.location);
jQuery('.g-plusone').attr('data-href', document.location);
});
document.write('');
document.write('
');
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&appId=232733140092185&version=v2.0";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
document.write('');
document.write('');
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/platform.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
document.write('');
document.write('');